/* ---------------------------------------
   AEM Site — Global Styles
   --------------------------------------- */

:root{
  --green:#009246; --white:#ffffff; --red:#cf2d25;
  --bg: linear-gradient(90deg, rgba(0,146,70,.10), rgba(255,255,255,1), rgba(207,45,37,.10));
  --base:#f7f7f8;
  --ink:#222; --muted:#666; --line:#e8e8e8; --radius:14px;

  /* Layout widths */
  --leftnav: 260px;                 /* NEW: left tabs column */
  --sidebar: 280px; 
  --gap: 20px; 
  --main: 900px;

  /* container is now leftnav + main + sidebar + 2 gaps */
  --container: calc(var(--leftnav) + var(--gap) + var(--main) + var(--gap) + var(--sidebar));
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font-family:'Oswald',sans-serif;
  background:var(--base);
  background-image:var(--bg);
  color:var(--ink);
}

.container{ width:min(100%, var(--container)); margin:0 auto; padding:0 20px; }

/* ---------------------------------------
   Header & Brand
   --------------------------------------- */
header.top{
  background:rgba(255,255,255,.9);
  box-shadow:0 6px 20px rgba(0,0,0,.08);
  backdrop-filter:blur(2px);
}
header .inner{ display:flex; align-items:center; gap:12px; justify-content:space-between; padding:10px 0; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img.logo{ width:48px; height:48px; object-fit:contain; }
.brand .title{ font-size:20px; font-weight:600; }
.header-actions{ display:flex; align-items:center; gap:10px; }
.lang-select select{ padding:6px 10px; border-radius:10px; border:1px solid #cfcfcf; background:#fff; font-family:'Oswald',sans-serif; }

/* ---------------------------------------
   Buttons
   --------------------------------------- */
.btn{
  background:linear-gradient(#2b2b2b,#1a1a1a);
  color:#fff; border:1px solid #111; padding:10px 14px; border-radius:12px;
  text-decoration:none; cursor:pointer; display:inline-flex; align-items:center; gap:8px;
  box-shadow:0 6px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 10px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08); filter:brightness(1.02); }
.btn:active{ transform:translateY(0); box-shadow:inset 0 2px 6px rgba(0,0,0,.35); }
.btn.light{
  background:linear-gradient(#fff,#f2f2f2); color:#111; border:1px solid #d6d6d6;
  box-shadow:0 6px 14px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.8);
}
.btn-fb{ background:linear-gradient(#1b7af3,#166fe5); border-color:#0b5bd3; color:#fff; }
.btn-ig{ background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4); border-color:#c13584; color:#fff; }

/* ---------------------------------------
   Countdown
   --------------------------------------- */
.countdown-card{ margin-top:12px; }
.countdown-card .card{
  background:rgba(255,255,255,.9); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 6px 20px rgba(0,0,0,.08); padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.countdown-title{ font-size:16px; opacity:.9; margin:0; }
.countdown-bar{ display:flex; gap:10px; flex-wrap:wrap; }
.pill{ background:#0001; border:1px solid var(--line); padding:8px 12px; border-radius:999px; }

/* ---------------------------------------
   Layout (3 columns: left tabs / main / right sponsors)
   --------------------------------------- */
.wrap{ padding:20px 0 20px; }
.grid{
  width:min(100%, var(--container));
  margin:0 auto; display:grid; gap:20px;
  grid-template-columns: var(--leftnav) minmax(0,var(--main)) var(--sidebar);
  align-items:start;
}

/* Collapse to single column on narrow screens */
@media (max-width:900px){
  .grid{ grid-template-columns:1fr; }
  .tabs-box{ display:none; }          /* left tabs hidden on mobile */
}

/* ---------------------------------------
   Cards / Boxes (subtle red border)
   --------------------------------------- */
main.card, aside, .content-box, .poi, .contact-card, .history-card, .weather-card, .gallery-card, .tickets-card {
  background:rgba(255,255,255,.95);
  border-radius:var(--radius);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  border:1px solid rgba(200,0,0,.25);
}

.content-box{ padding:16px; }
main.card{ padding:18px; }

/* ---------------------------------------
   Hero (Home)
   --------------------------------------- */
.hero{ padding:18px; display:grid; grid-template-columns:auto 1fr; gap:14px; align-items:center; }
.hero img.logo{ width:216px; height:216px; object-fit:contain; }
.hero h1{ font-size:28px; margin:0; }
.lead{ color:var(--muted); margin:6px 0 0; }
@media (max-width:700px){
  .hero{ grid-template-columns:1fr; text-align:center; }
  .hero img.logo{ width:140px; height:140px; margin:0 auto; }
}

/* ---------------------------------------
   TOP NAV (kept for legacy pages but hidden)
   --------------------------------------- */
header.top nav.primary{ display:none; } /* remove the original top row */

/* Original 3D tab style (used previously). Kept for reference/consistency if needed elsewhere */
nav.primary{
  display:flex; gap:8px; padding:12px 18px 0 18px; flex-wrap:wrap; align-items:stretch;
}
nav.primary a{
  flex:1 1 auto;
  text-align:center;
  min-width:120px;
  height:48px;
  padding:0 14px;
  display:flex; align-items:center; justify-content:center;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  border-radius:10px; border:1px solid #b7b7b7;
  background:linear-gradient(#ffffff,#eaeaea); color:#222; font-weight:600; text-decoration:none;
  box-shadow:0 4px 0 #9a9a9a, 0 6px 12px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
nav.primary a:hover{
  background: linear-gradient(90deg, rgba(232,245,234,0.6) 0%, rgba(255,255,255,0.8) 50%, rgba(253,234,234,0.6) 100%);
  border-color:rgba(179,0,0,0.5);
  filter:brightness(1.03);
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 6px 0 rgba(136,136,136,0.6), 0 12px 20px rgba(0,0,0,.25);
}
nav.primary a:active{
  transform:translateY(2px) scale(0.98);
  box-shadow:0 2px 0 #6e6e6e, 0 4px 8px rgba(0,0,0,.18) inset;
  background:linear-gradient(#e6e6e6,#f5f5f5);
}
nav.primary a.active{
  background: linear-gradient(90deg, rgba(58,181,74,0.25) 0%, rgba(255,255,255,0.5) 50%, rgba(214,40,40,0.25) 100%);
  border-color:rgba(179,0,0,0.4);
  box-shadow: 0 4px 0 rgba(136,136,136,0.4), 0 0 0 3px rgba(0,0,0,0.05), 0 8px 16px rgba(0,0,0,0.15);
  color:#222;
}

/* ---------------------------------------
   LEFT SIDE NAV (new compact vertical menu)
   --------------------------------------- */
.tabs-box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 6px 16px rgba(0,0,0,.10);
  padding:10px;
}

nav.primary.side{ 
  display:flex; 
  flex-direction:column; 
  gap:6px; 
  padding:0; 
}
nav.primary.side a{
  /* override the chunky 3D buttons */
  flex:none; min-width:0; height:auto;
  padding:8px 12px;
  text-align:left; justify-content:flex-start;
  border-radius:8px;
  box-shadow:none;
  background:#fafafa;
  border:1px solid #ddd;
}
nav.primary.side a:hover{ transform:none; box-shadow:none; background:#f2f2f2; }
nav.primary.side a.active{
  background:linear-gradient(90deg, rgba(58,181,74,.18), #fff 60%, rgba(214,40,40,.18));
  border-color:#d5d5d5;
}
/* Left nav section headers */
.nav-head {
  font-weight: 700;
  font-size: 13px;
  color: #444;
  margin: 8px 0 4px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f0f0f0;   /* slightly darker grey */
  border: 1px solid #ddd;
  cursor: default;
}
}
nav.primary.side .nav-sep{ height:6px; }


/* ---------------------------------------
   Mobile nav (dropdown)
   --------------------------------------- */
.mobile-nav{ display:none; padding:10px 18px; }

.mobile-nav-label {
  font-weight: 600;
  margin-right: 8px;
  font-family: 'Oswald', sans-serif;
}

/* Style the dropdown like your buttons */
.mobile-nav select{
  width:100%;
  appearance:none;
  padding:12px 14px;
  border:1px solid #b7b7b7;
  border-radius:10px;
  background: linear-gradient(#ffffff,#eaeaea) no-repeat right 0.8em center/1em auto;
  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position:
    calc(100% - 15px) center,
    calc(100% - 10px) center;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 2em;
  font-family:'Oswald',sans-serif;
  font-weight:600;
  box-shadow:0 4px 0 #9a9a9a, 0 6px 12px rgba(0,0,0,.18);
}

/* Show dropdown under 720px (left box is already hidden at 900px) */
@media (max-width: 720px){
  .mobile-nav{ display:block; }
}
/* sponsors page desktop/tablet layout */
body.sponsors-page .grid{
  grid-template-columns: var(--leftnav) minmax(0,1fr);
}

/* sponsors page mobile override */
@media (max-width:900px){
  body.sponsors-page .grid{
    grid-template-columns: 1fr;   /* full width */
  }
}
/* ---------------------------------------
   Section titles & text
   --------------------------------------- */
.section-title{ font-size:20px; margin:8px 0 6px; }
.text{ line-height:1.5; color:#333; white-space:pre-line; }
.small{ font-size:12px; color:#666; }
.note{ font-size:12px; color:#666; margin-top:8px; }
.visually-hidden{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Two-col helper */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:800px){ .two-col{ grid-template-columns:1fr; } }

/* ---------------------------------------
   Sponsors
   --------------------------------------- */
aside{ padding:16px; display:flex; flex-direction:column; gap:14px; }
.sponsor-title{
  font-size:18px; font-weight:600; border-bottom:1px solid var(--line);
  padding-bottom:6px; text-align:center;
}
.sponsor-grid{ display:grid; grid-template-columns:1fr; gap:10px; }
.sponsor{
  background:#fff; border:1px solid var(--line); border-radius:12px;
  padding:10px; display:flex; align-items:center; justify-content:center;
}
.sponsor img{ max-width:100%; max-height:56px; object-fit:contain; }
.add-note{ font-size:12px; color:var(--muted); text-align:center; }

/* Sponsor attending badge */
.sponsor { position: relative; }
/* --- Kleinere en Subtielere Badges --- */
.sponsor-badge {
  position: absolute;
  top: 5px;    /* Iets dichter bij de rand voor een cleaner uiterlijk */
  right: 5px;
  font-size: 9px;   /* Verkleind van 11px naar 9px */
  font-weight: 700;
  padding: 2px 5px; /* Slanker gemaakt voor een minder 'blokkerig' effect */
  border-radius: 4px;
  background: #eee;
  color: #222;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.08);
  line-height: 1;   /* Zorgt voor strakke uitlijning van tekst in de badge */
}
/* De specifieke kleuren voor de badges blijven hetzelfde, maar passen zich aan de nieuwe maat aan */
.sponsor-badge.attending { background: #0a8f5b; color: #fff; border-color: #087f5b; }
/* --- Verberg de 'Not Attending' Badge --- */
.sponsor-badge.not-attending { 
  display: none; /* Hiermee wordt de badge volledig onzichtbaar en neemt deze geen ruimte in */
}

/* --- Verbeterde Centrering voor Sponsor Logo's --- */
.sponsor img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  margin-bottom: 0; /* Verwijderd: dit zorgde ervoor dat logo's te hoog stonden */
}
.sponsor-note {
  margin-top: 10px; /* more breathing space below logo + badge */
}


/* Make long sponsor lists scroll without breaking the layout */
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 100%;
  overflow: auto;
  padding-right: 4px;
}
/* prettier scrollbar (optional) */
.sponsor-grid::-webkit-scrollbar { width: 8px; }
.sponsor-grid::-webkit-scrollbar-thumb { background: #ddd; border-radius: 6px; }
.sponsor-grid:hover::-webkit-scrollbar-thumb { background: #c5c5c5; }

.sponsor-note{ font-size:12px; color:#555; margin-top:6px; text-align:center; line-height:1.35; }


/* ---------------------------------------
   POI lists (car wash / gas)
   --------------------------------------- */
.poi-list{ list-style:none; padding:0; margin:8px 0 0; display:grid; gap:12px; }
.poi{ padding:10px; }
.poi h4{ margin:0 0 6px; font-size:15px; }
.poi .meta{ color:#555; font-size:13px; }
.poi .actions{ margin-top:8px; }
.poi-img{
  width:100%; height:180px; object-fit:cover; border-radius:10px;
  border:1px solid var(--line); margin-top:8px;
}

/* ---------------------------------------
   Contact form
   --------------------------------------- */
.contact-card{ padding:14px; margin-top:10px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:700px){ .form-row{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:14px; }
.field input, .field textarea{
  border:1px solid #ccc; border-radius:10px; padding:10px; font-family:'Oswald',sans-serif; font-size:14px; background:#fff;
}
.form-actions{ margin-top:10px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.success{ color:#087f5b; } .error{ color:#b00020; }

/* ---------------------------------------
   Gallery
   --------------------------------------- */
.gallery-card{ padding:16px; }
.gallery-section{ margin-bottom:18px; }
.gallery-title{ font-size:18px; margin:0 0 10px; }
.gallery-grid{ display:grid; gap:12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid img{
  width:100%; height:180px; object-fit:cover; border-radius:10px; border:1px solid var(--line);
}

/* ---------------------------------------
   Tickets
   --------------------------------------- */
.tickets-card{ padding:16px; }
.tickets-cta{ display:inline-block; margin-top:10px; }

/* ---------------------------------------
   Weather widget box
   --------------------------------------- */
.weather-card{ padding:16px; }
.weather-card .section-title{ margin-bottom:10px; }

/* ---------------------------------------
   Footer
   --------------------------------------- */
footer{
  border-top:1px solid var(--line); color:#666; font-size:12px;
  background:rgba(255,255,255,.9); box-shadow:0 -6px 20px rgba(0,0,0,.05); margin-top:20px;
}
footer .inner{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; flex-wrap:wrap; padding:16px 28px;
}
.translation-note{ font-size:11px; color:#777; }

/* Optional: tweak sizes on very large screens */
@media (min-width:1400px){
  :root{ --main: 960px; --sidebar: 300px; --leftnav: 280px; }
}

/* Places page grid layout */
.places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;                /* less gap */
}

.place-item {
  padding: 10px;            /* smaller padding */
  border-radius: 8px;
  font-size: 0.9rem;        /* shrink text */
}

.place-item h4 {
  font-size: 1rem;          /* smaller heading */
}

.place-item .meta {
  font-size: 0.85rem;
  line-height: 1.3;
}

.place-item img {
  width: 100%;
  height: 160px;            /* smaller image height */
  object-fit: cover;
  border-radius: 6px;
}

.place-item .btn.light {
  padding: 6px 10px;        /* slimmer button */
  font-size: 0.8rem;
  border-radius: 6px;
}

/* Two columns for wider screens */
@media (min-width: 768px) {
  .places-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Make sponsor page main card span full width */
body.sponsors-page .grid {
  grid-template-columns: 1fr; /* only one column */
}

body.sponsors-page main.card {
  width: 100%;
}
/* Hide sponsor descriptions in sidebar */
aside .sponsor-note {
  display: none;
}
/* Sponsors page: no right sidebar → use 2 columns */
body.sponsors-page .grid{
  grid-template-columns: var(--leftnav) minmax(0,1fr);
}
/* Consistent event date styling */
.event-date {
  font-size: 16px;
  font-weight: 600;
  color: #b00020;         /* Abarth red accent */
  margin-top: 6px;
  text-align: center;     /* center on home hero, looks neat */
}

@media (max-width: 700px) {
  .event-date {
    display: block;
    margin-top: 10px;
    font-size: 15px;
  }
}
.programme-subgroup-title {
  margin-top: 1.5rem;
  color: var(--primary-color); /* Matches your brand color */
  font-size: 1.2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.note-item {
  list-style: none !important;
  margin-top: 15px;
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.8;
}

.programme-divider {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #ddd;
}
/* Subtle Top Banner */
/* --- Aangepaste Subtiele Top Banner --- */
.supporters-banner {
  background-color: transparent; /* Geen grijze balk meer, blendt met de achtergrond */
  border-bottom: 1px solid rgba(0,0,0,0.05); /* Zeer lichte scheidingslijn */
  padding: 2px 0; /* Minimale hoogte */
  font-family: 'Oswald', sans-serif;
  font-size: 10px; /* Kleiner lettertype */
  color: #aaa; /* Lichtere tekstkleur */
}

.supporter-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.supporter-label {
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 400; /* Niet meer vetgedrukt */
  font-size: 11px;  /* Kleiner dan de vorige 13px */
  color: #999;      /* Minder contrastrijk grijs */
}

.supporter-logos {
  display: flex;
  align-items: center;
  gap: 15px;
}

.supporter-img {
  height: 15px; /* Verkleind van 20px naar 15px */
  width: auto;
  display: block;
  /* Verlaagde opacity (0.4) maakt het logo veel minder aanwezig */
  filter: grayscale(1) brightness(1.8) opacity(0.4); 
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.supporter-img:hover {
  opacity: 0.8; 
  filter: grayscale(0) brightness(1); /* Wordt pas duidelijk bij hover */
}

/* Mobiele aanpassing voor de extra kleine banner */
@media (max-width: 600px) {
  .supporter-content {
    flex-direction: row; /* Houd het op één regel als het past */
    font-size: 9px;
  }
}
/* Updated for Original Logo Colors */
.sponsor-static-banner {
  background: #111; /* Keep the dark background for contrast */
  padding: 12px 0;
  border-bottom: 2px solid #ed1c24; /* Abarth Red accent */
}

.static-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.static-banner-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 1.5px;
}

.static-banner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.static-banner-logos img {
  height: 35px; /* Slightly larger to make color details visible */
  width: auto;
  /* REMOVED: brightness(0) invert(1) */
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5)); /* Added shadow to help logos pop on dark bg */
  transition: transform 0.2s ease;
}

.static-banner-logos img:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .static-banner-logos {
    gap: 15px;
  }
  .static-banner-logos img {
    height: 25px;
  }
}