/* NextLevel:5 – Stylesheet
   Farben und Schriften stehen oben als Variablen. Für Änderungen am Look
   zuerst hier anpassen, nicht in einzelnen Regeln. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #FAFBFE;      /* Heftpapier */
  --grid: #DCE3F4;       /* Karo-Linien */
  /* Farben aus dem Logo */
  --ink: #0A2D52;        /* Navy (Schriftzug „Next“) */
  --teal: #067D94;       /* Petrol (Schriftzug „Level“) */
  --orange: #F2611D;     /* Orange (die „5“), sparsam einsetzen */
  --sky: #CFE8F7;        /* Himmel */
  --graphite: #1B2433;   /* Text */
  --pencil: #FFB27D;     /* Unterstreichungen */
  --redpen: #C62B2B;     /* Fehlermeldungen */
  --muted: #55606F;

  /* Fächerfarben im Stundenplan */
  --f-ma: #D3E9F6;
  --f-de: #FFE0C9;
  --f-en: #CDEBEA;
  --f-lern: #E4E2F7;
  --f-spiel: #FBDCD4;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Atkinson", system-ui, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.4rem + 4.2vw, 4.5rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; color: var(--graphite); }
h2 { font-size: var(--step-2); font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 100%; line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* Platzhalter: gelb markiert, damit offene Inhalte auffallen.
   Wenn alle Inhalte stehen, verschwindet die Markierung automatisch,
   weil kein <mark class="todo"> mehr im HTML ist. */
mark.todo { background: #FFF1B8; color: inherit; padding: 0 .15em; border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grid);
}
.logo {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: 1.35rem; text-decoration: none; color: var(--graphite); margin: 0;
}
.logo { display: inline-flex; align-items: center; }
.logo img { width: 2.6rem; height: 2.6rem; border-radius: 50%; margin-right: .6rem; }
.logo span { color: var(--orange); }
.site-header ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; align-items: center; }
.site-header nav a { text-decoration: none; color: var(--graphite); font-weight: 700; font-size: .95rem; }
.site-header nav a:hover { color: var(--ink); }
.site-header .nav-cta { background: var(--ink); color: #fff; padding: .45rem .95rem; border-radius: 6px; }
.site-header .nav-cta:hover { color: #fff; background: #12406F; }
@media (max-width: 760px) {
  .site-header li:not(:last-child) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: var(--gutter);
  padding: clamp(3rem, 8vw, 6.5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
  max-width: var(--wrap); margin: 0 auto;
}
.hero::before { /* Karopapier über die volle Breite */
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center top;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero h1 {
  font-size: var(--step-3); font-weight: 900; font-stretch: 118%;
  letter-spacing: -.02em; line-height: .98; max-width: 11ch;
}
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 34em; color: var(--graphite); }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.5rem; margin: 2rem 0 2.25rem; max-width: 34rem;
}
.facts div { border-left: 3px solid var(--teal); padding-left: .75rem; background: var(--paper); }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }

.hero-logo {
  justify-self: center; margin: 0;
  width: min(100%, 27rem);
}
.hero-logo img {
  display: block; width: 100%; height: auto; border-radius: 50%;
  box-shadow: 0 0 0 10px var(--paper), 0 18px 40px -18px #0A2D5266;
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(72%, 17rem); }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block; cursor: pointer;
  font: 700 1.05rem/1 var(--body);
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 1rem 1.6rem; border: 0; border-radius: 8px;
  box-shadow: 0 4px 0 #041A33;
  transition: transform .08s, box-shadow .08s;
}
.button:hover { background: #12406F; }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 #041A33; }
.button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Sektionen ---------- */
.section {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}
.section + .section { border-top: 1px solid var(--grid); }
.intro { max-width: 40em; font-size: var(--step-1); line-height: 1.5; color: var(--muted); margin-bottom: 2.5rem; }

/* Das Camp */
.changes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; max-width: 60rem; }
@media (max-width: 680px) { .changes { grid-template-columns: 1fr; } }
.changes article { max-width: 30em; }
.changes h3 { padding-bottom: .4rem; border-bottom: 3px solid var(--pencil); display: inline-block; }
.changes p { color: var(--graphite); }

/* Stundenplan */
.plan-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.plan {
  width: 100%; min-width: 44rem; border-collapse: separate; border-spacing: 6px;
  font-size: .98rem; table-layout: fixed;
}
.plan th { font-family: var(--display); font-weight: 700; font-stretch: 110%; text-align: left; padding: .4rem .6rem; }
.plan thead th { font-size: 1.15rem; border-bottom: 3px solid var(--graphite); }
.plan thead th:first-child { width: 5rem; }
.plan tbody th { font-family: var(--body); font-weight: 700; color: var(--muted); font-size: .9rem; vertical-align: top; }
.plan td {
  padding: .85rem .8rem; border-radius: 6px; vertical-align: top;
  font-weight: 700; line-height: 1.3; background: #fff; border: 1px solid var(--grid);
}
.plan .pause td { background: transparent; border: 0; border-top: 2px dashed var(--grid); border-radius: 0; color: var(--muted); font-weight: 400; text-align: center; padding: .5rem; }
.s-ma { background: var(--f-ma) !important; border-color: transparent !important; }
.s-de { background: var(--f-de) !important; border-color: transparent !important; }
.s-en { background: var(--f-en) !important; border-color: transparent !important; }
.s-lern { background: var(--f-lern) !important; border-color: transparent !important; }
.s-spiel { background: var(--f-spiel) !important; border-color: transparent !important; }
.plan .s-ausflug { background: var(--teal); color: #fff; border-color: var(--teal); }
.plan .s-start { background: var(--ink); color: #fff; border-color: var(--ink); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; margin: 1.25rem 0 0; font-size: .92rem; color: var(--muted); }
.legend i { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; margin-right: .4rem; vertical-align: -.1rem; }

/* Team */
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem; }
.avatar {
  width: 5.5rem; height: 5.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--f-ma); color: var(--ink);
  font: 900 2.2rem/1 var(--display); font-stretch: 120%; margin-bottom: .9rem;
}
.people li:nth-child(2) .avatar { background: var(--f-en); }
.people li:nth-child(3) .avatar { background: var(--f-de); }
.people .name { font-weight: 700; font-size: var(--step-1); margin: 0; }
.people .role { color: var(--muted); }

/* Preis */
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--gutter); align-items: start; }
.amount { font: 900 clamp(3rem, 2rem + 4vw, 5rem)/1 var(--display); font-stretch: 120%; color: var(--orange); margin-bottom: .5rem; }
.price p:last-child { color: var(--muted); max-width: 22em; }
.included { margin: 0; padding: 0; list-style: none; }
.included li { padding: .8rem 0 .8rem 2rem; border-bottom: 1px solid var(--grid); position: relative; }
.included li::before { content: ""; position: absolute; left: .2rem; top: 1.1rem; width: .9rem; height: .5rem; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
@media (max-width: 720px) { .price-row { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--grid); max-width: 48rem; }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; font-size: var(--step-1); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font: 400 1.6rem/1 var(--display); color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40em; padding-bottom: .6rem; }

/* Formular */
.anmeldung { padding-bottom: clamp(4rem, 9vw, 7rem); }
.form { max-width: 46rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.form legend { font: 700 var(--step-1)/1.2 var(--display); margin-bottom: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  display: block; width: 100%; margin-top: .35rem;
  font: 400 1rem/1.4 var(--body); color: var(--graphite);
  padding: .75rem .85rem; background: #fff;
  border: 2px solid var(--grid); border-radius: 6px;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #067D9433; }
.form [aria-invalid="true"] { border-color: var(--redpen) !important; }
.form .check { display: flex; gap: .75rem; font-weight: 400; align-items: flex-start; margin: .5rem 0 1.75rem; }
.form .check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1.25rem; font-weight: 700; }
.form-status.ok { color: #1D7A3E; }
.form-status.err { color: var(--redpen); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: 2rem var(--gutter); background: var(--ink); color: #E3EAF2;
}
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: var(--orange); }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 1.5rem; }

/* Unterseiten (Impressum, Datenschutz) */
.page { max-width: 46rem; margin: 0 auto; padding: 4rem var(--gutter); }
.page h1 { font-size: var(--step-2); font-weight: 800; font-stretch: 112%; }
.page h2 { font-size: var(--step-1); margin-top: 2rem; }
