/* mondwaldkarten.de – CI (#4510): Wald/Gold/Pergament, Cormorant + Nunito.
   Dunkle Flächen (Hero, Arion, Footer) im Nachtwald-Ton der App. */
:root {
  --gold: #D7B36A;
  --gold-deep: #8a6828;
  --green: #556B4E;
  --green-dark: #3E5139;
  --night: #34465B;
  --forest: #1d241b;
  --forest-deep: #151a13;
  --cream: #F3EBDD;
  --cream-soft: #ECE3D0;
  --cream-light: #f5eedf;
  --brown: #7C5B47;
  --ink: #3D3A34;
  --white: #fffdf8;
  --shadow: 0 10px 30px rgba(52, 70, 91, 0.12);
  --shadow-lift: 0 18px 40px rgba(52, 70, 91, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--night);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
a { color: var(--green); }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--brown); }

/* Barrierefreiheit: Sprunglink und sichtbarer Tastaturfokus. */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--forest); color: var(--cream-light); padding: .7rem 1.1rem;
  border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(215, 179, 106, .55);
  border-radius: 6px;
}
/* Ziel des Sprunglinks: kein Rahmen um den ganzen Inhalt. */
main:focus { outline: none; box-shadow: none; }
.night-band :focus-visible, .hero :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(215, 179, 106, .35);
}

/* Buttons. Der Verlauf endet in dunklem Bronze statt hellem Gold, damit
   die weiße Schrift überall genug Kontrast hat (WCAG AA). */
.btn {
  display: inline-block; cursor: pointer; border: none; text-decoration: none;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: .8rem 1.6rem; border-radius: 999px; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 45%, #7a6534 100%);
  color: var(--white); box-shadow: inset 0 0 0 1px rgba(215, 179, 106, .45);
}
.btn-primary:hover { box-shadow: inset 0 0 0 1px rgba(215, 179, 106, .7), 0 10px 26px rgba(62, 81, 57, .3); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green); }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--cream-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(29, 36, 27, .25);
}
/* Wortmarke „mondwaldkarten“ – „karten“ kursiv in dunklem Gold. */
.brand-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 600;
  color: var(--night); letter-spacing: .01em; line-height: 1;
}
.brand-name em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { color: var(--night); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--green); }
.nav-links a.btn-primary { color: var(--white); }
.nav-links a.btn-primary:hover { color: var(--white); }
/* Menü-Knopf: nur auf dem Handy sichtbar (siehe @media unten). */
.nav-toggle {
  display: none; background: none; border: 0; padding: .45rem; margin-right: -.45rem;
  color: var(--night); cursor: pointer; border-radius: 10px;
}
.nav-toggle svg { width: 28px; height: 28px; display: block; }

/* Hero */
.hero {
  padding: 5.5rem 0 4.5rem;
  color: #f2ead9;
  /* Mondwald-Hintergrund (#4577) mit dunklem Waldschleier – das Motiv wirkt
     satt und stimmungsvoll, heller Hero-Text bleibt ruhig lesbar. */
  background-image:
    linear-gradient(rgba(26, 31, 23, 0.62), rgba(20, 25, 18, 0.84)),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-inner { max-width: 740px; text-align: left; }
.hero h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .tagline { color: var(--gold); }
.hero .lead { color: #efe7d7; }
.hero .btn-outline { border-color: rgba(255, 253, 248, .82); color: var(--white); }
.hero .btn-outline:hover { background: rgba(255, 253, 248, .12); }
.tagline { font-family: 'Caveat', cursive; font-size: 1.6rem; color: var(--brown); }
.hero p.lead { font-size: 1.2rem; }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Sections */
section.block { padding: 4rem 0; }
section.tinted { background: var(--cream-soft); }
.section-head { max-width: 680px; margin: 0 auto 2.6rem; }
/* Kleine Handschrift-Zeile über einer Abschnittsüberschrift. */
.kicker { font-family: 'Caveat', cursive; font-size: 1.5rem; color: var(--brown); margin: 0 0 .1rem; }

/* Features (Kacheln mit den illustrierten Menü-Icons der App) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
  background: var(--white); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow);
  border: 1px solid var(--cream-soft); transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feature h2, .feature h3 { font-size: 1.5rem; }
.feature p:last-child { margin-bottom: 0; }
.feature-icon { height: 88px; width: auto; margin: -.2rem 0 .7rem -.2rem; filter: drop-shadow(0 6px 10px rgba(29, 36, 27, .18)); }
.quota { color: var(--brown); }

/* Dunkles Band im Nachtwald-Ton der App (Arion-Abschnitt). */
.night-band {
  color: #ddd4c1;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(215, 179, 106, .16), transparent 55%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
}
.night-band h2 { color: var(--cream-light); }
.night-band .tagline { color: var(--gold); }
.night-band .btn-outline { border-color: var(--gold); color: var(--cream-light); }
.night-band .btn-outline:hover { background: rgba(215, 179, 106, .14); }
.night-band .arion-portrait { box-shadow: 0 0 0 1px rgba(215, 179, 106, .5), 0 24px 50px rgba(0, 0, 0, .45); }

/* App-Screenshots im Passepartout: Desktop 4 nebeneinander, Tablet 2×2,
   Handy als wischbare Leiste. */
.shots {
  display: grid; grid-template-columns: repeat(4, minmax(0, 220px));
  gap: 1.8rem; justify-content: center; align-items: start;
}
.shot { margin: 0; }
.shot figcaption { text-align: center; margin-top: .7rem; font-weight: 700; color: var(--night); }
.phone {
  width: 100%; border-radius: 16px; padding: 9px;
  background: linear-gradient(160deg, var(--white), var(--cream-soft));
  border: 1px solid var(--gold);
  box-shadow: 0 18px 40px rgba(52, 70, 91, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.phone:hover { transform: translateY(-5px); box-shadow: 0 26px 54px rgba(52, 70, 91, .26); }
.phone .screen {
  border-radius: 10px; overflow: hidden; background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(215, 179, 106, .35);
}
.phone .screen img { display: block; width: 100%; height: auto; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.plan {
  background: var(--white); border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow);
  border: 1px solid var(--cream-soft); display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--gold); position: relative; }
.plan .price { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--night); }
.plan .quota { color: var(--brown); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0; }
.plan li { padding: .3rem 0 .3rem 1.4rem; position: relative; }
/* Goldene Raute statt Emoji – Screenreader lesen nichts Zusätzliches vor. */
.plan li::before {
  content: ''; position: absolute; left: .2rem; top: .95rem;
  width: .42rem; height: .42rem; background: var(--gold); transform: rotate(45deg);
}
.plan .btn { margin-top: auto; text-align: center; }
.plans-4 { grid-template-columns: repeat(4, 1fr); }

/* Was kostet was (unter den Lichtfunken-Paketen) */
.costs {
  max-width: 640px; margin: 2.2rem auto 0; background: var(--white); border-radius: 18px;
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow); border: 1px solid var(--cream-soft);
}
.costs h3 { margin: 0 0 .6rem; }
.costs ul { list-style: none; margin: 0; padding: 0; }
.costs li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .55rem 0; border-top: 1px solid var(--cream-soft);
}
.costs li:first-child { border-top: 0; }
.costs li small { display: block; color: var(--brown); font-size: .85rem; }
.costs li strong { white-space: nowrap; color: var(--night); }
/* Eck-Ribbon („Beliebt“, „Bester Wert“): dunkle Schrift auf Gold. Der
   Wrapper clippt das Band und trägt dieselbe runde Außenecke wie die Karte
   (18px = 20px Kartenradius − 2px Rand). */
.ribbon {
  position: absolute; top: 0; right: 0; width: 116px; height: 116px;
  overflow: hidden; pointer-events: none; border-top-right-radius: 18px;
}
.ribbon span {
  position: absolute; top: 30px; right: -30px; width: 160px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #e7ca8c 0%, var(--gold) 50%, #c9a157 100%);
  color: #3b2d12;
  text-align: center; font: 800 .75rem/1 'Nunito', system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; padding: .42rem 0;
  border-top: 1px solid rgba(255, 255, 255, .45);
  border-bottom: 1px solid rgba(120, 90, 30, .35);
}

/* Store-Buttons (ohne Apple-Logo: das offizielle Badge kommt, sobald die
   App live ist) */
.stores { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.store-badge {
  display: flex; align-items: center; gap: .7rem; text-decoration: none;
  background: var(--forest); color: var(--cream-light); border-radius: 12px; padding: .7rem 1.25rem;
  border: 1px solid rgba(215, 179, 106, .6);
}
.store-badge small { display: block; font-size: .72rem; color: #d8cfbc; }
.store-badge strong { font-size: 1.1rem; }
/* Noch nicht im Store: sichtbar, aber nicht klickbar. */
.store-badge.is-soon { cursor: default; }
.store-note { margin: 0; color: var(--brown); font-size: .95rem; }

/* Hinweisboxen in den Rechtstexten */
.alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert-info { background: #eef3ea; color: var(--green-dark); }

/* Footer */
.site-footer {
  color: #e2d9c6;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(215, 179, 106, .15), transparent 50%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  border-top: 1px solid rgba(215, 179, 106, .35);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.4rem;
  padding: 3.4rem 0 2.2rem;
}
.footer-brand .brand-name { color: var(--cream-light); font-size: 1.75rem; }
.footer-brand .brand-name em { color: var(--gold); }
.footer-brand .brand img { width: 56px; height: 56px; }
.footer-brand .tagline { color: var(--gold); margin: .8rem 0 .3rem; }
.footer-brand p { color: #cfc6b2; max-width: 34ch; }
.footer-title {
  font-family: 'Nunito', system-ui, sans-serif; font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: .4rem 0 .8rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a {
  display: inline-block; padding: .3rem 0; color: #efe7d6; text-decoration: none;
}
.footer-col li a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .stores { justify-content: flex-start; margin-top: 0; }
.site-footer .store-note { color: #cfc6b2; }
.footer-contact { margin-top: 1rem; color: #cfc6b2; }
.footer-contact a { color: var(--gold); display: inline-block; padding: .25rem 0; }
/* Hilfe-Hinweis: kein Kleingedrucktes, sondern eine eigene ruhige Karte. */
.help-card {
  display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.2rem; align-items: start;
  padding: 1.4rem 1.6rem; border-radius: 18px;
  background: rgba(255, 253, 248, .04); border: 1px solid rgba(215, 179, 106, .28);
}
.help-icon { width: 44px; height: 44px; color: var(--gold); grid-column: 1; grid-row: 1 / span 4; }
.help-card > :not(.help-icon) { grid-column: 2; }
.help-card h2 { font-size: 1.4rem; color: var(--cream-light); margin: 0; }
.help-card p { margin: .2rem 0; }
.help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .5rem !important; }
.help-call {
  display: inline-flex; align-items: center; padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid rgba(215, 179, 106, .6); color: var(--cream-light); text-decoration: none; font-weight: 700;
}
.help-call:hover { background: rgba(215, 179, 106, .14); }
.help-note { color: #bdb4a0; font-size: .9rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.2rem; padding: 1.3rem 0 1.8rem; font-size: .88rem; color: #bdb4a0;
  border-top: 1px solid rgba(232, 226, 212, .12);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #e2d9c6; text-decoration: none; display: inline-block; padding: .2rem 0; }
.footer-bottom a:hover { color: var(--gold); }

/* Legal pages: lesbare Zeilenlänge, Silbentrennung gegen Überlauf. */
.legal { max-width: 760px; margin: 2.5rem auto; hyphens: auto; overflow-wrap: break-word; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { margin-top: 1.8rem; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.legal a { overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .plans-4 { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 220px)); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero-inner { max-width: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans, .plans-4 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }

  /* Menü als aufklappbare Liste unter der Kopfzeile. */
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: .2rem 4vw 1rem;
    border-bottom: 1px solid var(--cream-soft); box-shadow: 0 14px 24px rgba(52, 70, 91, .12);
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: .85rem .2rem; border-bottom: 1px solid var(--cream-soft); }
  .nav-links a.btn { margin-top: .9rem; padding: .85rem 1.2rem; text-align: center; border-bottom: 0; }
}

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; padding-top: 2.6rem; }
  .help-card { grid-template-columns: 1fr; padding: 1.2rem; }
  .help-icon { grid-row: auto; width: 36px; height: 36px; }
  .help-card > :not(.help-icon) { grid-column: 1; }
  .brand-name { font-size: 1.45rem; }
  .brand img { width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  /* Screenshots als wischbare Leiste statt langer Bildstrecke. */
  .shots {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem;
    justify-content: flex-start; padding: .4rem 4vw 1rem; margin: 0 -4vw;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 64%; scroll-snap-align: center; }
  .phone:hover { transform: none; }
}

/* --- Arion-Seite (#4567) --- */
.arion-hero { padding: 3.5rem 0; }
.arion-hero-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: center; }
.arion-portrait { border-radius: 20px; box-shadow: var(--shadow); width: 100%; max-width: 380px; margin: 0 auto; }
/* Titelbild des Mondwald-Decks über den vier Kartenwelten (#7068). */
.deck-cover { margin-bottom: 2.8rem; }
.pfad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pfad {
  background: var(--white); border-radius: 16px; padding: 1.2rem; box-shadow: var(--shadow);
  border: 1px solid var(--cream-soft); position: relative;
}
.pfad-nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff;
  font-family: 'Cormorant Garamond', serif; font-weight: 700; margin-bottom: .4rem;
}
.pfad strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--night); }
.pfad-tier { color: var(--brown); font-weight: 700; margin-bottom: .3rem; }
.badge-gold {
  display: inline-block; padding: .15rem .7rem; border-radius: 999px;
  background: rgba(215, 179, 106, .2); color: #6b5226; font-weight: 700; font-size: .85rem;
}
.arion-quote {
  font-family: 'Caveat', cursive; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--green); max-width: 820px; margin: 0 auto; line-height: 1.3;
}
.atlas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.atlas-grid a { text-decoration: none; color: var(--night); }
.atlas-grid img { border-radius: 14px; box-shadow: var(--shadow); transition: transform .15s; }
.atlas-grid a:hover img { transform: translateY(-3px); }
.atlas-grid span { display: block; text-align: center; margin-top: .5rem; font-weight: 700; }

@media (max-width: 860px) {
  .arion-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .pfad-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pfad-grid, .atlas-grid { grid-template-columns: 1fr; }
}

/* Wer weniger Bewegung möchte, bekommt keine Animationen. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .feature:hover, .phone:hover, .atlas-grid a:hover img { transform: none; }
}
