/* CampingSim – Website. Farben aus dem Logo: Terrakotta #d98f71, Dunkelgrün #35473d, Creme #fbf6ec. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f3e8;
  --bg-tint: #eef0e2;
  --surface: #fffdf7;
  --ink: #26352c;
  --muted: #5c6a61;
  --line: #e1ddcf;
  --green: #35473d;
  --green-deep: #1f2b24;
  --accent: #3f7a55;
  --accent-ink: #ffffff;
  --terra: #d98f71;
  --terra-ink: #a8573b;
  --cream: #fbf6ec;
  --shadow: 0 1px 2px rgba(31, 43, 36, .06), 0 8px 24px rgba(31, 43, 36, .08);
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151c18;
    --bg-tint: #1a231e;
    --surface: #202a24;
    --ink: #e8ece6;
    --muted: #a6b2aa;
    --line: #2e3a33;
    --accent: #86c99c;
    --accent-ink: #12301f;
    --terra-ink: #eba78a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

/* Sprachumschaltung: das Element mit der anderen Sprache bleibt verborgen. */
html[lang="de"] body [lang="en"],
html[lang="en"] body [lang="de"] { display: none !important; }

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0; }
p + p { margin-top: .8em; }
/* Silbentrennung nur für lange deutsche Absätze auf schmalen Bildschirmen. */
@media (max-width: 559px) {
  [lang="de"] .feature-text p, .faq[lang="de"] p, .card p[lang="de"] { hyphens: auto; -webkit-hyphens: auto; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: var(--cream); padding: 10px 16px; border-radius: 10px; font-weight: 800;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 880px; }

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--green); text-decoration: none; font-weight: 900; font-size: 1.25rem; letter-spacing: -.01em;
}
@media (prefers-color-scheme: dark) { .brand { color: var(--cream); } }
.brand-tent { width: 30px; height: 26px; color: var(--green); flex: none; }
@media (prefers-color-scheme: dark) { .brand-tent { color: var(--cream); } }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.lang-switch button {
  font: inherit; font-weight: 800; font-size: .85rem; letter-spacing: .04em;
  border: 0; border-radius: 999px; padding: 4px 11px; min-height: 32px; cursor: pointer;
  background: transparent; color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
@media (prefers-color-scheme: dark) { .lang-switch button[aria-pressed="true"] { background: var(--cream); color: var(--green); } }
@media (max-width: 859px) {
  .nav { display: none; }
  .lang-switch { margin-left: auto; }
}

/* Titelbild */
.hero { position: relative; isolation: isolate; background: var(--green-deep); color: var(--cream); overflow: hidden; }
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(24, 34, 28, 0) 42%, rgba(24, 34, 28, .5) 66%, rgba(24, 34, 28, .9) 100%);
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px 48px;
  /* Das Logo steht im oberen Drittel des Bildes; unter ~700 px Höhe rückt der Text zu nah heran. */
  min-height: clamp(700px, 56.25vw, 92vh);
  display: flex; align-items: flex-end;
}
.hero-copy { max-width: 880px; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-lead { margin-top: 14px; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.55; max-width: 640px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.badge {
  font-size: .88rem; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  background: rgba(251, 246, 236, .16); border: 1px solid rgba(251, 246, 236, .35); color: var(--cream);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge-terra { background: var(--terra); border-color: var(--terra); color: #2a1d17; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* Schmale Fenster: das Key-Art steht oben, der Text darunter auf Dunkelgrün, damit er das Logo im Bild nicht verdeckt.
   Tablets zeigen das breite Bild ganz, Handys das hohe als Quadrat. */
@media (max-width: 899px) {
  .hero::after { display: none; }
  .hero picture { position: relative; display: block; z-index: 0; aspect-ratio: 16 / 9; }
  .hero picture::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(31, 43, 36, 0) 52%, rgba(31, 43, 36, .75) 80%, var(--green-deep) 100%);
  }
  .hero picture img { z-index: 0; }
  .hero-inner { position: relative; min-height: 0; margin-top: -48px; padding-bottom: 36px; }
}
@media (max-width: 699px) {
  .hero picture { aspect-ratio: 1 / 1; }
  .hero-inner { margin-top: -64px; }
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--terra); color: #2a1d17; box-shadow: 0 6px 18px rgba(217, 143, 113, .35); }
.btn-primary:hover { transform: translateY(-1px); background: #e29c80; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn-quiet { background: rgba(251, 246, 236, .12); color: var(--cream); border-color: rgba(251, 246, 236, .45); cursor: default; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* Kurzfakten */
.facts { background: var(--green); color: var(--cream); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 8px; padding-bottom: 8px; }
.fact { padding: 28px 22px; }
.fact + .fact { border-left: 1px solid rgba(251, 246, 236, .14); }
.fact svg { width: 30px; height: 30px; fill: none; stroke: var(--terra); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact h3 { font-size: 1.12rem; margin-top: 12px; }
.fact p { margin-top: 6px; color: rgba(251, 246, 236, .82); font-size: .96rem; line-height: 1.5; }
@media (max-width: 959px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid rgba(251, 246, 236, .14); }
}
@media (max-width: 559px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact { padding: 22px 4px; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
  .fact svg { grid-row: span 2; margin-top: 2px; }
  .fact h3 { margin-top: 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid rgba(251, 246, 236, .14); }
}

/* Abschnitte */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); color: var(--green); }
@media (prefers-color-scheme: dark) { .section-head h2 { color: var(--cream); } }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.08rem; }

/* Trailer */
.video-frame {
  max-width: 980px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* Spielbeschreibung */
.features { display: grid; gap: clamp(48px, 7vw, 96px); }
.feature { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line);
}
.kicker { font-weight: 900; color: var(--terra-ink); letter-spacing: .08em; font-size: .9rem; }
.feature h3 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); color: var(--green); margin: 6px 0 14px; }
@media (prefers-color-scheme: dark) { .feature h3 { color: var(--cream); } }
.feature-text p { color: var(--ink); }
@media (max-width: 859px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* Was du bauen kannst */
.builds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.build {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.build img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--line); }
.build-text { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.build h3 { font-size: 1.12rem; color: var(--green); }
@media (prefers-color-scheme: dark) { .build h3 { color: var(--cream); } }
.build p { font-size: .95rem; line-height: 1.5; }
.build-list { margin-top: auto !important; padding-top: 8px; color: var(--terra-ink); font-weight: 700; font-size: .85rem !important; }
.builds-more { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--muted); }
@media (max-width: 1023px) { .builds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) { .builds { grid-template-columns: 1fr; } }

/* Noch mehr im Spiel */
.more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  border-top: 4px solid var(--terra);
}
.more h3 { font-size: 1.05rem; }
.more p { margin-top: 6px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 859px) { .more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) { .more { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery button:hover img { transform: none; } }
@media (max-width: 959px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 459px) { .gallery { gap: 10px; } }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--cream);
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(14, 20, 16, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 12px; }
.lightbox figcaption { margin-top: 14px; font-weight: 700; text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(251, 246, 236, .14); color: var(--cream); display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(251, 246, 236, .26); }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 699px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lightbox figure { padding-bottom: 80px; }
}

/* Early Access */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 800; font-size: 1.06rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--terra-ink); border-bottom: 2.5px solid var(--terra-ink);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* Systemanforderungen */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.spec-card h3 { font-size: 1.25rem; color: var(--terra-ink); }
.spec-card dl { margin: 12px 0 0; }
.spec-card dt { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 12px; }
.spec-card dd { margin: 2px 0 0; line-height: 1.45; }
.note { margin-top: 18px; color: var(--muted); text-align: center; font-size: .95rem; }
@media (max-width: 699px) { .specs { grid-template-columns: 1fr; } }

/* Kontakt */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; }
@media (max-width: 699px) { .cards { grid-template-columns: 1fr; } .card .btn { width: 100%; } }

/* Fußzeile */
.footer { background: var(--green-deep); color: rgba(251, 246, 236, .78); padding: 40px 0 48px; }
.footer-inner { display: grid; gap: 18px; }
.brand-footer, .brand-footer .brand-tent { color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--cream); font-weight: 700; }
.legal { font-size: .88rem; line-height: 1.55; max-width: 820px; }

/* Unterseiten: Impressum und Datenschutz */
.legal-page { padding: clamp(40px, 6vw, 72px) 0 72px; }
.legal-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--green); }
@media (prefers-color-scheme: dark) { .legal-page h1 { color: var(--cream); } }
.legal-page .stand { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.legal-page h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal-page h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal-page p, .legal-page li { color: var(--ink); }
.legal-page ul { padding-left: 1.2em; margin: 8px 0; }
.legal-page li + li { margin-top: 4px; }
.legal-page address { font-style: normal; }
.legal-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-top: 14px; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 700; }
[data-umami-optout] .optout-on, [data-umami-optout] .optout-off { display: none; }
[data-umami-optout][data-disabled="false"] .optout-on { display: block; }
[data-umami-optout][data-disabled="true"] .optout-off { display: block; }
[data-umami-optout] .btn { margin-top: 12px; }
