:root {
  --orange: #f97316;
  --orange-soft: #fed7aa;
  --bg: #0f172a;
  --bg-soft: #111827;
  --card-bg: rgba(15, 23, 42, 0.9);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius-xl: 1.25rem;
  --transition-fast: 180ms ease-out;
  --max-width: 1100px;
  --header-height: 80px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Dynamische seizoensachtergrond */

html, body {
  height: 100%;
  margin: 0;
  background-color: #ff7420; /* oranje */
  background-image: none;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Algemene layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-height);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.club-logo {
  height: 80px;
  width: auto;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.3rem 0.4rem;
}

.club-title h1 {
  font-size: 1.1rem;
  margin: 0;
}

.club-title p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform 120ms ease-out;
}

.main-nav a:hover {
  color: var(--text);
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.main-content {
  padding-bottom: 4rem;
}

/* Hero */

.hero {
  padding: 2.8rem 0 1.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-text {
  padding: 1.8rem;
  border-radius: 1.7rem;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow-soft);
}

.hero-text h2 {
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
}

.hero-text p {
  margin: 0.2rem 0;
}

.hero-search {
  padding: 1.6rem;
  border-radius: 1.6rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
}

.hero-search label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.search-wrap {
  position: relative;
}

.search-wrap::before {
  content: "🔍";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.85;
}

#site-search {
  width: 100%;
  padding: 0.8rem 0.9rem 0.8rem 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.94);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

#site-search::placeholder {
  color: #6b7280;
}

#site-search:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
  background: rgba(15, 23, 42, 1);
}

/* Section en kaarten */

.section {
  padding: 1.8rem 0;
}

.section h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

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

.card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
}

/* Tabellen */

.kalender-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.kalender-tabel th,
.kalender-tabel td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.kalender-tabel th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
}

/* Clubblad */

.clubblad-grid .card h3 {
  font-size: 1rem;
}

.clubblad-grid a {
  color: var(--orange-soft);
  text-decoration: none;
  font-weight: 500;
}

.clubblad-grid a:hover {
  text-decoration: underline;
}

/* Galerij */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.gallery-images img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
}

/* Formulieren */

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.form-row label {
  font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

input:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
}

textarea {
  resize: vertical;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to right, #f97316, #fb923c);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.45);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, filter 120ms ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.55);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.45);
}

.form-feedback {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Bezoekersteller */

.visitor-counter {
  padding-top: 0.5rem;
}

.visitor-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.96);
  padding: 1.6rem 0 2.2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.site-footer h3 {
  margin-top: 0;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.15rem 0;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--orange-soft);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Helpers */

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8rem;
}

/* Responsiveness */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.4rem 0;
    height: auto;
    gap: 0.8rem;
  }

  .club-logo {
    height: 64px;
  }

  .main-nav {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 1.6rem;
  }

  .card,
  .hero-text,
  .hero-search {
    padding: 1.1rem 1.1rem;
  }

  .gallery-images img {
    height: 70px;
  }

  .visitor-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
