/* Liri website. System fonts only, nothing is loaded from other servers.
   Colours from the game (sun yellow #FFD93D, orange #FF6B35, meadow green #6BCB77, sky blue #4D96FF, cream #FFF5E4).
   Yellow, orange and green are too light for text: use them only for areas, lines and badges;
   text colours below reach at least 4.5:1 on all page, band and card colours of the three schemes.

   SURFACE COLOURS: the five variables --page ... --header-line decide the look. Three schemes were compared
   on 03.12.2026 (pruefung/farbe-A|B|C.png, made by tools/color_preview.py):
     A  white page, light sky-blue bands      --page #ffffff  --band #eaf4ff  --card #ffffff  --soft #f3f8ff  --header-line #ffd93d
     B  very light sky-blue page, white cards  --page #e8f3ff  --band #d2e7ff  --card #ffffff  --soft #ffffff  --header-line #4d96ff
     C  white page, soft meadow-green bands    --page #ffffff  --band #e4f5e6  --card #ffffff  --soft #fffbe6  --header-line #ffd93d
   Built in: C (chosen by Marina, 03.12.2026). To switch, change the five values (and theme-color in the pages). */

:root {
  --page: #ffffff;         /* page background */
  --band: #e4f5e6;         /* every second section (.section-tint) */
  --card: #ffffff;         /* cards and boxes */
  --soft: #fffbe6;         /* small filled areas: store notice, notes */
  --header-line: #ffd93d;  /* line under the header */
  --ink: #2b2118;          /* outline brown of the illustrations, 15:1 on white */
  --ink-soft: #5a4636;     /* 8:1 */
  --sun: #ffd93d;
  --orange: #ff6b35;
  --green: #6bcb77;
  --blue: #4d96ff;
  --link: #1a5bc4;         /* 6.3:1 on white, at least 5:1 on every band colour */
  --orange-text: #a8390b;  /* 6.5:1 on white, at least 5:1 on every band colour */
  --green-text: #1f6b2c;   /* 6.4:1 on its tag */
  --radius: 20px;
  --shadow: 0 2px 0 rgba(43, 33, 24, 0.08), 0 8px 24px rgba(43, 33, 24, 0.07);
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 800px); }

/* header */
.site-header { background: var(--card); border-bottom: 4px solid var(--header-line); position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 12px; }
.main-nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.4rem 0.2rem; border-bottom: 3px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--orange); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.main-nav { margin-left: auto; }
/* language switcher DE | EN: the current language is marked, the other one links to the same page */
.lang-switch { display: flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: 0.95rem; }
.lang-switch a { color: var(--ink); text-decoration: none; padding: 0.3rem 0.5rem; border-radius: 8px; border: 2px solid transparent; }
.lang-switch a:hover { border-color: var(--orange); }
.lang-switch a[aria-current] { background: var(--soft); border-color: var(--ink); }
.lang-switch span { color: var(--ink-soft); }

/* notice on the English pages: the game itself speaks German for now */
.lang-note { max-width: 46rem; margin: 1rem auto 0; padding: 0.7rem 1rem; border-radius: 14px; background: var(--soft); border: 2px solid var(--header-line); color: var(--ink); font-weight: 600; }
.page-intro .lang-note { margin-inline: 0; }
.translation-note { padding: 0.8rem 1.1rem; border-radius: 14px; background: var(--soft); border: 2px solid var(--header-line); }

/* hero */
.hero { padding-block: 1.75rem 1rem; }
.hero-picture img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card {
  position: relative;
  margin: 1.5rem auto 0;
  width: min(100% - 2rem, 900px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem 2.25rem;
  text-align: center;
}
.kicker { color: var(--orange-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; margin-bottom: 0.4rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.hero-card .lead { max-width: 46rem; margin-inline: auto; }

/* store notice: deliberately no links and no official store logos while the app is not published */
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--soft);
  font-weight: 600;
}
.store-badge svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--ink); stroke-width: 2; }
.store-badge svg circle { fill: var(--ink); stroke: none; }

/* sections */
.section { padding-block: 3.5rem; }
.section-tint { background: var(--band); }
.section-title { text-align: center; }
.section-lead { text-align: center; max-width: 44rem; margin: 0 auto 2rem; color: var(--ink-soft); font-size: 1.1rem; }
.section-title + .grid, .section-title + .gallery { margin-top: 2rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

.point { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border-top: 6px solid var(--sun); }
.point p { margin: 0; color: var(--ink-soft); }
.point-star { border-top-color: var(--blue); }
.point-check { border-top-color: var(--green); }

/* areas */
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; margin-top: 2rem; }
@media (max-width: 900px) { .area-grid { grid-template-columns: 1fr; } }
.area { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 10px solid var(--green); display: flex; flex-direction: column; overflow: hidden; }
.area-picture img { width: 100%; }
.area-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.area-points { margin: 0 0 1.2rem; padding-left: 1.2rem; color: var(--ink-soft); }
.area-points li { margin-bottom: 0.25em; }
.area-points li::marker { color: var(--orange); }
.area-body > p { color: var(--ink-soft); }
.area-body > .area-topic { color: var(--ink); }
.area-body > .area-more { margin: auto 0 0; font-weight: 700; }
.area[data-area="stadt"] { border-top-color: var(--orange); }
.area[data-area="zoo"] { border-top-color: var(--sun); }
.area[data-area="schwimmbad"] { border-top-color: var(--blue); }
.area h3 { font-size: 1.45rem; margin-bottom: 0.15em; }
.area-topic { font-weight: 700; color: var(--ink); margin-bottom: 0.6em; }
.area-tag { align-self: flex-start; font-size: 0.85rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem; background: #dcf3df; color: var(--green-text); }
.area-tag-paid { background: #e6efff; color: #1a4fa8; }
.note { text-align: center; max-width: 46rem; margin: 2rem auto 0; color: var(--ink-soft); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); border: 4px solid var(--card); }
.gallery figcaption { margin-top: 0.7rem; text-align: center; font-weight: 600; }

.more { text-align: center; margin-top: 2rem; font-weight: 600; }

/* coming soon */
.soon { background: var(--card); border: 3px dashed var(--orange); border-radius: var(--radius); padding: 2.25rem 1.5rem; text-align: center; max-width: 900px; margin-inline: auto; }
.soon > p { max-width: 42rem; margin-inline: auto; color: var(--ink-soft); }
.soon-help { margin: 1.5rem 0 0; font-weight: 600; }

.button {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px;
  background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 0 var(--orange-text);
}
.button:hover { background: #ff7d4d; }

/* sub pages */
.page { padding-block: 3rem 4rem; }
.page h1 { margin-bottom: 0.6em; }
.prose { margin-bottom: 1rem; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
.legal-part > h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem); }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.4em; font-size: 1.15rem; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose p, .prose li { overflow-wrap: break-word; }

.toc { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.toc a { display: inline-block; padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--card); border: 2px solid var(--blue); color: var(--ink); font-weight: 600; text-decoration: none; }
.toc a:hover { background: #e6efff; }

.legal-part { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.5rem 1.75rem 1.25rem; margin-top: 2rem; border-left: 8px solid var(--sun); scroll-margin-top: 1rem; }
.legal-app { border-left-color: var(--green); }
.legal-web { border-left-color: var(--blue); }
.legal-part h2 { margin-top: 1.1em; }

.mail-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 6px solid var(--orange); padding: 1.5rem 1.75rem 0.75rem; margin: 2rem 0 2.5rem; }
.mail-link { font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; }
.faq { display: grid; gap: 1rem; margin-top: 1rem; }
.faq-item { background: var(--card); border-radius: 16px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow); }
.faq-item h3 { font-size: 1.1rem; }
.faq-item p { margin: 0; color: var(--ink-soft); }

.not-found { text-align: center; }
.not-found picture img { margin: 0 auto 1.5rem; }

/* footer */
.site-footer { background: var(--ink); color: #fff5e4; padding-block: 2.5rem; margin-top: 1rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer-about p { margin: 0 0 0.5em; }
.footer-name { font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; }
.footer-small { font-size: 0.92rem; opacity: 0.9; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: #fff5e4; font-weight: 600; }
.footer-nav a[aria-current="page"] { text-decoration-thickness: 3px; text-decoration-color: var(--sun); }

/* only for screen readers */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* family project */
.family { max-width: 760px; margin-inline: auto; text-align: center; padding: 0.5rem 1rem; }
.family p { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.family h2::after { content: ""; display: block; width: 4rem; height: 4px; border-radius: 2px; background: var(--sun); margin: 0.6rem auto 0; }

/* page "Was Ihr Kind lernt" */
.page-intro { padding-block: 3rem 1rem; }
.page-intro .toc { margin-bottom: 0; }
.point-stage { border-top-color: var(--green); }
.point .stage-age { font-weight: 700; color: var(--orange-text); margin-bottom: 0.3rem; }
.point .stage-short { font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.learn-area { scroll-margin-top: 1rem; }
.learn-area:nth-child(even of .learn-area) { background: var(--band); }
.learn-area-head { max-width: 52rem; margin-bottom: 2rem; border-left: 8px solid var(--green); padding-left: 1.25rem; }
.learn-area[data-area="stadt"] .learn-area-head { border-left-color: var(--orange); }
.learn-area[data-area="zoo"] .learn-area-head { border-left-color: var(--sun); }
.learn-area[data-area="schwimmbad"] .learn-area-head { border-left-color: var(--blue); }
.learn-area-head .area-tag { display: inline-block; }
.learn-area-head h2 { margin-bottom: 0.1em; }
.learn-area-head .area-topic { font-size: 1.2rem; }
.learn-area-intro { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.level { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.5rem 1.2rem; }
.level h3 { font-size: 1.3rem; margin-bottom: 0.1em; }
.level-who { color: var(--orange-text); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.8rem; }
.stations { list-style: none; margin: 0; padding: 0; }
.stations li { padding: 0.55rem 0; border-top: 1px solid rgba(43, 33, 24, 0.1); color: var(--ink-soft); }
.stations strong { display: block; color: var(--ink); }
.level-note { margin: 0.8rem 0 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--soft); border: 2px solid var(--sun); font-size: 0.95rem; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; align-items: start; }
@media (max-width: 1000px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots figure, .around figure { margin: 0; }
.shots img, .around img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); border: 3px solid var(--card); }
.shots figcaption, .around figcaption { margin-top: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.also { margin-top: 2rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.5rem 0.6rem; }
.also h3 { font-size: 1.1rem; }
.also ul { padding-left: 1.2rem; color: var(--ink-soft); }
.also li { margin-bottom: 0.4em; }
.around { display: grid; gap: 1.5rem; margin-top: 2rem; }
.around-item { display: grid; grid-template-columns: 1fr 440px; gap: 1.75rem; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.around-item:nth-child(even) { grid-template-columns: 440px 1fr; }
.around-item:nth-child(even) .around-text { order: 2; }
.around-item:not(:has(figure)) { grid-template-columns: 1fr; }
.around-text p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) {
  .around-item, .around-item:nth-child(even) { grid-template-columns: 1fr; }
  .around-item:nth-child(even) .around-text { order: 0; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .hero { padding-top: 1rem; }
  .hero .container { width: 100%; }
  .hero-picture img { border-radius: 0; box-shadow: none; }
  .hero-card { margin-top: 1rem; padding: 1.5rem 1.25rem 1.75rem; }
  .lead { font-size: 1.05rem; }
  .section { padding-block: 2.5rem; }
  .gallery { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .page-intro { padding-top: 2rem; }
  .learn-area-head { padding-left: 0.9rem; border-left-width: 6px; }
  .level { padding: 1.2rem 1.15rem 1rem; }
  .around-item { padding: 1.1rem; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav { margin-left: 0; justify-content: center; }
  .brand { font-size: 1.05rem; }
  .legal-part { padding: 0.25rem 1.1rem 1rem; border-left-width: 6px; }
  .mail-box { padding: 1.25rem 1.25rem 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
