/* Entwurf 8: Bento (Entwurf 5) + Titel aus Entwurf 1 + Hintergrund färbt sich beim Scrollen hell in der App-Farbe (wie Entwurf 6) */

/* Schrift lokal – keine Verbindung zu Google Fonts */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #eeede9; --tile: #ffffff; --ink: #151515; --muted: #6c6b66; --line: #e2e1dc;
  --pmd: #1e88e5; --pmd-bg: #dcebfb; --pmd-ink: #0b3d6e;
  --tmc: #a4571c; --tmc-bg: #f8e7d2; --tmc-ink: #4a2300;
  --tmw: #8e1f3a; --tmw-bg: #f4dde3; --tmw-ink: #4a0f1e;
  --shadow: 0 1px 2px rgb(40 30 20 / .05), 0 14px 32px -20px rgb(40 30 20 / .28);
  --on-c: #ffffff;
  --r: 28px; --gap: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0d; --tile: #18181a; --ink: #f1f0ec; --muted: #9a9993; --line: #26262a;
    --pmd: #64b5f6; --pmd-bg: #11243a; --pmd-ink: #cfe5fb;
    --tmc: #e0995e; --tmc-bg: #2a1c10; --tmc-ink: #f6dfc7;
    --tmw: #e57391; --tmw-bg: #2c1219; --tmw-ink: #f6d3dc;
    --shadow: 0 0 0 1px rgb(255 255 255 / .05);
    --on-c: #0c0c0d;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0d; --tile: #18181a; --ink: #f1f0ec; --muted: #9a9993; --line: #26262a;
  --pmd: #64b5f6; --pmd-bg: #11243a; --pmd-ink: #cfe5fb;
  --tmc: #e0995e; --tmc-bg: #2a1c10; --tmc-ink: #f6dfc7;
  --tmw: #e57391; --tmw-bg: #2c1219; --tmw-ink: #f6d3dc;
  --shadow: 0 0 0 1px rgb(255 255 255 / .05);
    --on-c: #0c0c0d;
}

/* Scroll-Einfärbung: der Seitenhintergrund nimmt einen hellen Ton der App an */
body[data-app="pmd"] { --bg: #cfe3f8; }
body[data-app="tmc"] { --bg: #f1dcc2; }
body[data-app="tmw"] { --bg: #eed0d8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-app="pmd"] { --bg: #14283f; }
  :root:not([data-theme="light"]) body[data-app="tmc"] { --bg: #25190d; }
  :root:not([data-theme="light"]) body[data-app="tmw"] { --bg: #271118; }
}
:root[data-theme="dark"] body[data-app="pmd"] { --bg: #14283f; }
:root[data-theme="dark"] body[data-app="tmc"] { --bg: #25190d; }
:root[data-theme="dark"] body[data-app="tmw"] { --bg: #271118; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 "Plus Jakarta Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .7s ease; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }

/* Kopfzeile: läuft mit und färbt sich mit */
header.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color .7s ease; }
header.bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; }
/* Schriftzug mittig im freien Raum zwischen "r" (links) und Navigation (rechts) */
header.bar .brand { flex: 1; min-width: 0; }
header.bar .brand span { flex: 1; text-align: center; }
header.bar nav { display: flex; gap: 6px; }
header.bar nav a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--tile); box-shadow: var(--shadow); transition: background-color .25s, color .25s; }
header.bar nav a svg { width: 26px; height: 26px; border-radius: 8px; flex: none; }
header.bar nav a.lang { padding: 6px 14px; letter-spacing: .04em; }
/* App-Einträge: aktiv und beim Darüberfahren in der kräftigen Farbe der App */
header.bar nav a[data-for="pmd"] { --c: var(--pmd); }
header.bar nav a[data-for="tmc"] { --c: var(--tmc); }
header.bar nav a[data-for="tmw"] { --c: var(--tmw); }
header.bar nav a[data-for]:hover, header.bar nav a[data-for].on { background: var(--c); color: var(--on-c); }
header.bar nav a.lang:hover { background: var(--ink); color: var(--bg); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.tile { background: var(--tile); border-radius: var(--r); padding: 32px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.tile .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Einstieg */
.intro { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 420px; padding: 44px; }
.intro h1 { font-size: clamp(42px, 6vw, 80px); }
.intro h1 .c-pmd { color: var(--pmd); }
.intro h1 .c-tmc { color: var(--tmc); }
.intro h1 .c-tmw { color: var(--tmw); }
.intro .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.intro .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(90deg, var(--pmd), var(--tmc), var(--tmw)); }
.intro p { margin: 0; font-size: 19px; color: var(--muted); max-width: 560px; }
.icons { grid-column: span 2; display: grid; grid-template-rows: repeat(3, 1fr); gap: var(--gap); background: none; padding: 0; box-shadow: none; }
.icons a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r); background: var(--bg-c); color: var(--ink-c); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.icons a:hover { transform: scale(1.02); }
.icons svg { width: 52px; height: 52px; border-radius: 15px; flex: none; }
.icons b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.icons small { font-size: 14px; opacity: .75; }
.icons em { margin-left: auto; font-style: normal; font-size: 20px; }

/* App-Bereich */
section.app { margin-top: 72px; scroll-margin-top: 80px; }
.app-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 4px 16px; }
.app-label h2 { font-size: clamp(32px, 4vw, 48px); }
.app-label span { font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-tile { grid-column: span 4; grid-row: span 2; background: var(--bg-c); color: var(--ink-c); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 40px 0; min-height: 540px; box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--c) 14%, transparent); }
.hero-tile .copy { display: flex; flex-direction: column; padding-bottom: 40px; }
.hero-tile svg.logo { width: 64px; height: 64px; border-radius: 18px; }
.hero-tile .claim { margin: 28px 0 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.hero-tile .txt { margin: 16px 0 0; opacity: .8; }
.hero-tile .actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.phones { position: relative; align-self: end; height: 100%; min-height: 420px; }
.phone { position: absolute; width: 62%; border-radius: 26px 26px 0 0; overflow: hidden; border: 5px solid var(--ink-c); border-bottom: 0; background: #fff; container-type: inline-size; }
.phone img { width: 100%; }
.phone:first-child { left: 0; bottom: 0; z-index: 2; }
.phone:last-child { right: 0; bottom: 40px; transform: rotate(4deg); border-radius: 26px; border-bottom: 5px solid var(--ink-c); }

.f { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; }
.f .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-c); color: var(--c); display: grid; place-items: center; margin-bottom: 10px; }
.f .ic svg { width: 22px; height: 22px; }
.f b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.f span { color: var(--muted); font-size: 15px; }
.f.wide { grid-column: span 3; }
.f.full { grid-column: span 6; }
.f.accent { background: var(--c); color: #fff; }
.f.accent span { color: rgba(255,255,255,.85); }
.f.accent .ic { background: rgba(255,255,255,.18); color: #fff; }
.quick { font: 500 15px/1.4 ui-monospace, "SF Mono", Menlo, monospace; padding: 14px 16px; border-radius: 14px; background: var(--bg); margin-top: 4px; transition: background-color .7s ease; }
.quick .q { color: var(--c); font-weight: 700; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--ink-c); color: var(--bg-c); text-decoration: none; font-weight: 700; font-size: 15px; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; color: var(--ink-c); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink-c) 30%, transparent); }
.btn[aria-disabled] { pointer-events: none; }
/* Offizielles Google-Play-Badge (Bild bringt eigenen Rand mit) */
.play-badge { display: inline-block; margin: -9px -8px; transition: transform .15s; }
.play-badge:hover { transform: translateY(-2px); }
.play-badge img { height: 66px; width: auto; }

.pmd { --c: var(--pmd); --bg-c: var(--pmd-bg); --ink-c: var(--pmd-ink); }
.tmc { --c: var(--tmc); --bg-c: var(--tmc-bg); --ink-c: var(--tmc-ink); }
.tmw { --c: var(--tmw); --bg-c: var(--tmw-bg); --ink-c: var(--tmw-ink); }


/* Grundsätze */
.principles { margin-top: 72px; }
.principles .big { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; justify-content: space-between; min-height: 320px; transition: color .7s ease; }
.principles .big h2 { font-size: clamp(34px, 4vw, 52px); }
.principles .big p { margin: 0; opacity: .7; }
.principles .p { grid-column: span 2; }
.principles .p b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 6px; }
.principles .p span { color: var(--muted); font-size: 15px; }

footer { margin-top: var(--gap); }
footer .tile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 24px 32px; color: var(--muted); font-size: 15px; }
footer .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--ink); font-weight: 600; }
footer .tm { margin: 12px 32px 0; font-size: 12px; color: var(--muted); }
.end { height: 48px; }

/* Einblenden nur, wenn JavaScript läuft – sonst ist alles sofort sichtbar */
@media (scripting: enabled) {
  .fade { opacity: 0; transform: translateY(16px) scale(.99); transition: opacity .6s ease, transform .6s ease; }
  .fade.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  body, header.bar, .quick { transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .intro, .icons, .hero-tile, .f.full, .principles .big { grid-column: span 2; }
  .f, .f.wide, .principles .p { grid-column: span 1; }
  .principles .big { grid-row: auto; min-height: 0; gap: 24px; }
  .intro { min-height: 0; padding: 32px; }
}
@media (max-width: 760px) {
  /* Navigation schrumpft auf die App-Icons */
  header.bar nav a:not(.lang) { padding: 5px; }
  header.bar nav a:not(.lang) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  header.bar .wrap { padding-top: 10px; padding-bottom: 10px; }
  section.app { scroll-margin-top: 64px; }
  .tile { padding: 24px; border-radius: 22px; }
  .icons a { border-radius: 22px; }
  .tile.icons { padding: 0; }
  .hero-tile { grid-template-columns: 1fr; padding: 28px 24px 0; min-height: 0; }
  .hero-tile .copy { padding-bottom: 0; }
  .phones { min-height: 0; height: auto; display: flex; gap: 12px; align-items: flex-end; margin-top: 8px; }
  .phone { position: static; width: calc(50% - 6px); border-width: 4px; border-radius: 18px 18px 0 0; }
  .phone:last-child { transform: none; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .f, .f.wide, .principles .p { grid-column: span 2; }
  .app-label { flex-direction: column; gap: 4px; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}

/* Rechtstexte (Impressum, Datenschutz) */
.legal-page main { max-width: 760px; margin: 24px auto 0; }
.legal-page article { padding: 44px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.legal-page h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; margin: 32px 0 8px; }
.legal-page p, .legal-page li { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.legal-page .meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.legal-page article a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal-page hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.legal-page code { font-size: .92em; }
.legal-page .todo { background: #fff3b0; color: #4a3b00; padding: 0 .3em; border-radius: 4px; }
.legal-page .apps { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.legal-page .apps a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: var(--bg-c); color: var(--ink-c); text-decoration: none; font-weight: 700; }
.legal-page .apps svg { width: 36px; height: 36px; border-radius: 10px; }
@media (max-width: 640px) { .legal-page article { padding: 26px 22px; } }
