/* Die HTML-Seite um die App (WEB_DESKTOP_KONZEPT 5 und 9).
   Farben 1:1 aus DESIGNSYSTEM 1, als Variablen im <head> von index.html,
   damit das erste Bild ohne diese Datei richtig aussieht. */

@font-face{font-family:"Roboto Web";src:url("schrift/Roboto-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Roboto Web";src:url("schrift/Roboto-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Roboto Web";src:url("schrift/Roboto-SemiBold.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Roboto Web";src:url("schrift/Roboto-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
body{font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}

a{color:var(--akzent);text-decoration:none;text-underline-offset:3px}
a:hover,a:focus-visible{text-decoration:underline}
:focus-visible{outline:2px solid var(--glow);outline-offset:2px;border-radius:6px}

/* ---------- Lader ---------- */
.lader-status{margin:18px 0 0;min-height:20px;font-size:14px;font-weight:500;line-height:20px;color:var(--text-muted)}
.knopf{margin-top:16px;min-height:48px;min-width:48px;padding:0 24px;border-radius:999px;border:1px solid var(--akzent);background:transparent;color:var(--akzent);font:600 14px/20px "Roboto Web",system-ui,sans-serif;cursor:pointer}
.knopf:hover{background:var(--glow-flaeche)}
.knopf[hidden]{display:none}

/* ---------- Buehne: App und Werbeleiste ---------- */
/* Werbung ist aus, bis es ein Werbe-SDK mit Einwilligung gibt
   (Konzept 11.3). Ohne die Klasse "anzeigen-an" sind beide Flaechen weg,
   und die App bekommt ihren Platz zurueck. */
.anzeige{display:none}

html.anzeigen-an .anzeige{position:relative;background:var(--glass);border:1px solid var(--rand)}
.anzeige-etikett{position:absolute;top:8px;left:10px;font-size:12px;font-weight:500;line-height:16px;color:var(--text-muted)}
@media (prefers-color-scheme: light){html.anzeigen-an .anzeige{background:rgba(255,255,255,.7)}}

/* Handy und Tablet: Streifen unter der App, im Fluss, nie darueber. */
@media (max-width:999px){
  html.anzeigen-an .app-rahmen{height:calc(100vh - 60px);height:calc(100dvh - 60px - env(safe-area-inset-bottom))}
  html.anzeigen-an .anzeige--streifen{display:flex;align-items:center;justify-content:center;height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-width:1px 0 0;border-radius:0;margin-top:0;box-shadow:inset 0 5px 0 var(--bg-bottom)}
  html.anzeigen-an .anzeige--streifen .anzeige-etikett{top:12px}
  .anzeige-flaeche{display:block;width:320px;max-width:calc(100% - 96px);height:50px;border-radius:12px;border:1px dashed var(--rand)}
}
@media (min-width:600px) and (max-width:999px){
  .anzeige-flaeche{width:468px;height:60px}
  html.anzeigen-an .anzeige--streifen{height:72px}
  html.anzeigen-an .app-rahmen{height:calc(100dvh - 72px)}
}

/* Desktop ab 1280: Leiste rechts, nur wenn danach mindestens 1000 px fuer
   die App bleiben. App und Leiste stehen als Gruppe in der Mitte. */
@media (min-width:1280px){
  html.anzeigen-an .buehne{grid-template-columns:minmax(1000px,1440px) 160px;gap:24px;padding:0 24px;justify-content:center}
  html.anzeigen-an .anzeige--leiste{display:block;width:160px;height:600px;border-radius:16px;position:sticky;top:88px;margin-top:88px}
}
@media (min-width:1400px){
  html.anzeigen-an .buehne{grid-template-columns:minmax(1000px,1440px) 300px}
  html.anzeigen-an .anzeige--leiste{width:300px}
}
@media (min-width:1400px) and (max-height:759px){
  html.anzeigen-an .anzeige--leiste{height:250px}
}

/* ---------- Infoteil ---------- */
#ueber{position:relative;padding:48px 20px 24px}
.vorschau{display:none}
@media (min-width:1000px){
  #ueber{padding-top:0}
  /* Das Vorschauband ragt 40 px ins erste Bild (Konzept 5.3). */
  .vorschau{display:flex;align-items:center;justify-content:center;gap:6px;height:40px;font-size:14px;font-weight:500;line-height:20px;color:var(--text-muted)}
  .vorschau:hover{color:var(--akzent);text-decoration:none}
  .vorschau span{display:inline-block;transition:transform .2s ease-out}
  .vorschau:hover span{transform:translateY(2px)}
}
.ueber-inhalt{max-width:1040px;margin:0 auto}
@media (min-width:1000px){.ueber-inhalt{padding-top:96px}}

#ueber h1{margin:0;font-size:32px;line-height:38px;font-weight:700;letter-spacing:-.01em}
@media (min-width:1000px){#ueber h1{font-size:40px;line-height:48px}}
#ueber .lead{max-width:680px;margin:16px 0 0;font-size:18px;line-height:28px;color:var(--text-2)}
#ueber h2{margin:0 0 8px;font-size:20px;line-height:26px;font-weight:600}
#ueber p{color:var(--text-2)}
#ueber strong{color:var(--text);font-weight:600}

.karten{display:grid;grid-template-columns:1fr;gap:16px;margin:40px 0 0}
@media (min-width:600px){.karten{grid-template-columns:1fr 1fr}}
@media (min-width:1000px){.karten{grid-template-columns:repeat(3,1fr);gap:24px}}
.karten article{padding:24px;border-radius:24px;background:var(--glass);border:1px solid var(--rand);box-shadow:0 8px 24px rgba(0,0,0,.18)}
@media (prefers-color-scheme: light){.karten article{box-shadow:0 6px 18px rgba(26,18,54,.08)}}
.karten article p{margin:0}

.zweispaltig{display:grid;grid-template-columns:1fr;gap:8px 48px;margin-top:48px}
@media (min-width:1000px){.zweispaltig{grid-template-columns:1fr 1fr}}
.zweispaltig p{margin:0 0 16px;max-width:680px}

#ueber .hinweis{max-width:680px;margin:32px 0 0;padding-top:24px;border-top:1px solid var(--rand);font-size:14px;line-height:20px;color:var(--text-muted)}

/* ---------- Footer ---------- */
footer{margin-top:64px;padding:32px 24px calc(24px + env(safe-area-inset-bottom));border-top:1px solid var(--rand);text-align:center;font-size:14px;font-weight:500;line-height:20px;color:var(--text-muted)}
footer p{margin:0}
footer nav{margin:12px 0}
footer nav a{display:inline-flex;align-items:center;min-height:48px;padding:0 12px}
footer .klein{font-size:12px;line-height:16px}

.ohne-js{max-width:680px;margin:24px auto;padding:16px 20px;border-radius:16px;background:var(--glass);border:1px solid var(--rand);text-align:center}
