/* Olympia Haarlem — clubkleuren oranje & blauw */
:root {
  --color-bg: #0a1628;
  --color-surface: #112240;
  --color-card: #1a2f4a;
  --color-border: #2d4f7a;
  --color-text: #f0f4fa;
  --color-muted: #94a8c4;
  --color-orange: #f97316;
  --color-orange-bright: #fb923c;
  --color-orange-soft: #ffedd5;
  --color-orange-dim: #ea580c;
  --color-orange-glow: rgba(249, 115, 22, 0.22);
  --color-blue: #3b82f6;
  --color-blue-bright: #60a5fa;
  --color-accent: var(--color-orange);
  --color-accent-dim: var(--color-orange-dim);
  /* Standaardlinks in de pagina: oranje (blauw alleen waar expliciet) */
  --color-link: var(--color-orange-bright);
  --color-link-hover: #fdba74;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 90% 60% at 85% 5%, var(--color-orange-glow) 0%, transparent 45%),
    radial-gradient(ellipse 120% 80% at 50% -20%, #1e3a5f 0%, var(--color-bg) 55%);
  background-attachment: fixed;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-link-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--color-orange);
  color: #0a1628;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 0 0 var(--color-orange-dim);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.header-login-wrap {
  flex-shrink: 0;
}

.header-login-wrap[hidden] {
  display: none !important;
}

.header-login-btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: #fff;
  padding: 5px;
  box-sizing: border-box;
  box-shadow: 0 4px 24px var(--color-orange-glow), var(--shadow);
}

.nav-toggle {
  display: none;
  background: var(--color-card);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: var(--color-orange-bright);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-list a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--color-orange-bright);
}

.nav-list a[aria-current="page"] {
  color: var(--color-orange-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-orange);
  text-decoration-thickness: 2px;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  padding: 2.5rem 0 2rem;
  border-left: 4px solid var(--color-orange);
  padding-left: 1.25rem;
  margin-left: -0.25rem;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0%, transparent 55%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
  text-shadow: 0 0 32px rgba(249, 115, 22, 0.35);
}

.hero .lead {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 38ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-orange), var(--color-orange-dim));
  color: #fff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--color-text);
}

.btn-ghost:hover {
  border-color: var(--color-orange);
  color: var(--color-orange-bright);
  background: rgba(249, 115, 22, 0.08);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--color-orange);
  border-bottom: 1px solid rgba(249, 115, 22, 0.35);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, var(--color-card) 28%);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-orange);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-orange-soft);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.matches-table th,
.matches-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.matches-table th {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.08));
  color: var(--color-orange-soft);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.matches-table tr:last-child td {
  border-bottom: none;
}

.empty-state {
  padding: 1.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  background: rgba(249, 115, 22, 0.06);
  border-radius: var(--radius);
  border: 1px dashed rgba(249, 115, 22, 0.45);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: block;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.07) 0%, var(--color-card) 40%);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.news-item:hover {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
  transform: translateX(4px);
}

.news-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.news-item time {
  font-size: 0.8rem;
  color: var(--color-orange-bright);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.07) 0%, var(--color-card) 40%);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.doc-item:hover {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
  transform: translateX(4px);
}

.doc-item:focus-visible {
  outline: 2px solid var(--color-orange-bright);
  outline-offset: 2px;
}

.doc-item__label {
  font-weight: 600;
  color: var(--color-text);
}

.doc-item__meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  flex-shrink: 0;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  border-top: 3px solid var(--color-orange-dim);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, rgba(8, 18, 36, 0.95) 28%);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  font-size: 0.9rem;
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-orange-bright);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--color-muted);
}

.site-footer a:hover {
  color: var(--color-orange-bright);
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.page-intro {
  margin-bottom: 2rem;
}

.page-intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  border-left: 4px solid var(--color-orange);
  padding-left: 0.75rem;
}

.page-intro p {
  margin: 0;
  color: var(--color-muted);
  max-width: 55ch;
}

.page-intro__lead {
  max-width: 60ch;
}

.page-intro__lead p {
  margin: 0 0 0.75rem;
}

.page-body {
  margin-top: 1.5rem;
}

.cms-content {
  font-size: 0.98rem;
  line-height: 1.65;
}

.cms-content p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.cms-content h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-orange-soft);
}

.cms-content h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.cms-content ul,
.cms-content ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--color-muted);
}

.cms-content li {
  margin-bottom: 0.35rem;
}

.cms-content a {
  color: var(--color-link);
}

.cms-content strong {
  color: var(--color-text);
}

.contact-block {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-orange);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.contact-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--color-orange-soft);
}

.contact-block p {
  margin: 0 0 0.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.contact-block a {
  word-break: break-word;
}

.contact-block--people {
  border-left-color: var(--color-blue);
}

.contact-people-intro {
  margin: 0 0 1.25rem !important;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.contact-people-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.contact-person-card {
  position: relative;
  margin: 0;
  padding: 1.2rem 1.2rem 1.2rem 1.35rem;
  background: linear-gradient(145deg, var(--color-surface) 0%, rgba(26, 47, 74, 0.65) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}

.contact-person-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-orange-bright), var(--color-orange-dim));
  border-radius: 4px 0 0 4px;
}

.contact-person-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.contact-person-card__role {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange-bright);
}

.contact-person-card__name {
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.contact-person-card__name-line2 {
  font-weight: 700;
}

.contact-person-card__address {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.contact-person-card__note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-muted);
  font-style: italic;
}

.contact-person-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-person-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
  word-break: break-word;
}

.contact-person-card__link:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-orange-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.social-link:hover {
  border-color: var(--color-orange);
  color: var(--color-orange-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.15);
}

.social-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.social-name {
  color: inherit;
}

@media (max-width: 480px) {
  .social-link {
    flex: 1 1 calc(50% - 0.35rem);
    justify-content: center;
    min-width: 8rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-orange-soft);
}

.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-fieldset {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1rem 1.1rem;
  margin: 0;
  background: rgba(0, 0, 0, 0.12);
}

.form-fieldset legend {
  padding: 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-orange-soft);
}

.form-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.form-radios {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
}

.form-radio-label input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-orange);
  flex-shrink: 0;
}

.form-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hcaptcha-box {
  margin: 0.25rem 0;
}

.form-actions {
  margin-top: 0.25rem;
}

.btn-submit {
  background: linear-gradient(180deg, var(--color-orange), var(--color-orange-dim));
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.btn-submit:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status[hidden] {
  display: none !important;
}

.form-status--info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--color-blue-bright);
}

.form-status--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.form-status--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0;
    gap: 0.75rem;
  }

  .nav-list.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* PWA: install prompt (Chrome/Edge Android) */
.pwa-install-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.pwa-install-bar__text {
  margin: 0;
  flex: 1;
  min-width: 12rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.pwa-install-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pwa-install-bar .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.pwa-install-bar__dismiss {
  min-width: 2.5rem;
  padding: 0.5rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 1.25rem;
}

.footer-pwa-help {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding: 0 1.25rem 2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-pwa-help summary {
  cursor: pointer;
  color: var(--color-orange-bright);
  font-weight: 600;
  list-style: none;
}

.footer-pwa-help summary::-webkit-details-marker {
  display: none;
}

.footer-pwa-help__body {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.footer-pwa-help__body p {
  margin: 0 0 0.75rem;
}

.footer-pwa-help__body p:last-child {
  margin-bottom: 0;
}

.footer-pwa-help__muted {
  font-size: 0.85rem;
  opacity: 0.9;
}
