/* Running Passion – Homepage. Farben und Stil wie der Hub der App (Design „Modernist“). */
@font-face { font-family: Archivo; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/archivo-latin.woff2) format('woff2'); }
:root { --bg: #f1f2f4; --flaeche: #e7e9ed; --text: #1b1d22; --akzent: #2447d6; --linie: #1b1d22; --leise: #50545e; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--text); font: 400 17px/1.55 Archivo, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--akzent); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 88px); }
h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 12px; }
h3 { font-size: 26px; margin-bottom: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: 64px 0; border-bottom: 2px solid var(--linie); scroll-margin-top: 72px; }
.flaeche { background: var(--flaeche); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 20; background: var(--bg); padding: 8px 12px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 2px solid var(--linie); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.marke { display: flex; flex-direction: column; color: var(--text); text-decoration: none; line-height: 1.15; margin-right: auto; }
.marke b { font-weight: 800; font-size: 19px; }
.marke span { font-size: 13px; color: var(--leise); }
nav { display: flex; gap: 20px; }
nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--akzent); }
.sprache { display: flex; border: 2px solid var(--linie); }
.sprache a { padding: 4px 8px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.sprache a[aria-current] { background: var(--linie); color: var(--bg); }

.knopf { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 12px 18px; background: var(--akzent); color: #fff; border: 2px solid var(--akzent); font: 600 17px/1.2 Archivo, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--text); border-color: var(--text); }
.knopf.hell { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf.hell:hover { background: var(--text); color: var(--bg); }
.knopf.klein { min-height: 40px; padding: 6px 14px; font-size: 15px; white-space: nowrap; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero h1 { font-size: clamp(42px, 12vw, 72px); }
.hero .wrap { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.zeile, .nr { font-weight: 600; color: var(--akzent); font-size: 15px; }
.zeile { margin-bottom: 12px; }
.lead { font-size: 20px; margin-top: 20px; max-width: 34ch; }
.klein-text { font-size: 14px; color: var(--leise); margin-top: 16px; }
.hero figure { position: relative; border: 2px solid var(--linie); }
.hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero figcaption { position: absolute; left: 0; bottom: 0; background: var(--akzent); color: #fff; padding: 10px 16px; display: flex; align-items: baseline; gap: 10px; }
.hero figcaption b { font-size: 36px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

.intro { font-size: 19px; max-width: 52ch; margin-bottom: 32px; }
.drei, .zwei { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.drei article { border-top: 2px solid var(--linie); }
.drei img { width: 100%; margin-bottom: 14px; }

.lauf { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border: 2px solid var(--linie); --l-akzent: #ae1800; background: #f3f2f2; color: #201e1d; }
.lauf svg { width: 84px; height: 84px; fill: currentColor; }
.lauf .akzent { fill: var(--l-akzent); }
.lauf .nr, .lauf .weiter { color: var(--l-akzent); }
.lauf h3 { font-size: 34px; margin: 0; }
.vineyard { --l-akzent: #8fce4c; background: #0d0e0c; color: #eef0e9; }
.vineyard svg path { fill: none; stroke: currentColor; stroke-width: 3.5; }
.lauf dl { width: 100%; margin-top: auto; }
.lauf dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid currentColor; }
.lauf dd { font-weight: 600; text-align: right; }
.weiter { font-weight: 600; }

.halb { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.halb > img { border: 2px solid var(--linie); }
.schritte { list-style: none; counter-reset: s; }
.schritte li { counter-increment: s; position: relative; padding: 14px 0 14px 48px; border-top: 2px solid var(--linie); }
.schritte li::before { content: counter(s); position: absolute; left: 0; top: 12px; font-weight: 800; font-size: 26px; color: var(--akzent); }
.schritte b { display: block; }
.karte { border: 2px solid var(--linie); padding: 24px; background: var(--bg); }

.schmal { min-height: 65vh; }
.schmal .wrap { max-width: 460px; display: flex; flex-direction: column; gap: 20px; }
form { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 600; }
input[type=password] { font: inherit; min-height: 52px; padding: 10px 14px; border: 2px solid var(--linie); border-radius: 0; background: #fff; color: var(--text); margin-bottom: 8px; }
.meldung { border: 2px solid #ae1800; color: #8a1300; padding: 12px 14px; font-weight: 600; }

.text .wrap { max-width: 720px; }
.text h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 24px; }
.text h2 { font-size: 21px; margin: 28px 0 8px; }
.text p { margin-bottom: 10px; }

footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }

@media (min-width: 760px) {
  .drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .hero h1 { font-size: clamp(50px, 5.6vw, 68px); }
  .halb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  nav { display: none; }
  .top .wrap { gap: 10px; }
  .marke b { font-size: 16px; }
  .marke span { font-size: 12px; }
  section { padding: 44px 0; }
}

/* Vorschaltseite (intern/vorschalt.php) */
.vorschalt { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; border-top: 12px solid var(--akzent); }
.vorschalt main { flex: 1; width: min(760px, 100% - 32px); margin: 0 auto; padding: 40px 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; position: relative; }
.vorschalt .sprache { position: absolute; top: 20px; right: 0; }
.vorschalt .logo { display: flex; flex-direction: column; line-height: 1.1; padding-left: 14px; border-left: 6px solid var(--akzent); }
.vorschalt .logo b { font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.vorschalt .logo span { font-size: 15px; color: var(--leise); }
.vorschalt h1 { font-size: clamp(40px, 9vw, 80px); }
.statement { font-size: clamp(18px, 2.4vw, 22px); max-width: 40ch; }
.vorschalt form { max-width: 460px; margin-top: 8px; padding-top: 20px; border-top: 2px solid var(--linie); }
.vorschalt label { font-weight: 400; color: var(--leise); }
.zeile-form { display: flex; gap: 8px; }
.zeile-form input { flex: 1; min-width: 0; margin-bottom: 0; }
.zeile-form .knopf { gap: 12px; }
.vorschalt footer { width: min(760px, 100% - 32px); margin: 0 auto; padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--leise); }
@media (max-width: 759px) { .vorschalt main { padding-top: 72px; } }

/* Startseite: zwei stilisierte iPhones mit der App (index.php). Alle Maße in em, die Schriftgröße von .phones skaliert alles. */
.hero figure.phones { border: 0; }
.hero { overflow-x: clip; }
.phones { position: relative; font-size: clamp(8px, 2.35vw, 15px); height: 41em; max-width: 100%; overflow: visible; display: flex; justify-content: center; }
.phone { position: absolute; top: 0; width: 17.5em; aspect-ratio: 9 / 19.3; padding: .55em; background: #111; border-radius: 2.6em; box-shadow: 0 0 0 .14em #3a3a3c, 0 1.6em 3em -1.2em rgba(0, 0, 0, .45); }
.phone::before { content: ''; position: absolute; top: 1.15em; left: 50%; width: 5.2em; height: 1.45em; margin-left: -2.6em; background: #000; border-radius: 1em; z-index: 2; }
.phone.hinten { left: calc(50% - 17.9em); top: 1.6em; transform: rotate(-4deg); }
.phone.vorne { left: calc(50% - 1.2em); transform: rotate(3deg); }
.ph-screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.1em; display: flex; flex-direction: column; padding-top: 3em; line-height: 1.15; }
.ph-screen small { display: block; font-size: .56em; }
.ph-screen svg { display: block; }
.ph-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .6em; padding: 0 .9em .7em; }
.ph-kopf small { text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.ph-kopf b { display: block; font-weight: 800; letter-spacing: -.02em; }
.ph-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: .55em .3em 1.5em; border-top: .08em solid currentColor; font-size: .5em; text-align: center; }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: .3em; opacity: .75; }
.ph-tabs span.an { opacity: 1; font-weight: 700; }
.ph-tabs svg { width: 2.2em; height: 2.2em; fill: none; stroke: currentColor; stroke-width: 2; }

/* Hub */
.hub { background: var(--bg); color: var(--text); }
.hub .ph-kopf b { font-size: 1.45em; line-height: .98; margin-top: .15em; }
.ph-sprache { display: flex; border: .1em solid var(--text); font-size: .5em; font-weight: 700; }
.ph-sprache i { font-style: normal; padding: .25em .45em; }
.ph-sprache i.an { background: var(--text); color: var(--bg); }
.ph-count { display: flex; align-items: center; gap: .55em; background: var(--text); color: #fff; padding: .7em .9em; }
.ph-count > b { font-size: 2.3em; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ph-count small { text-transform: uppercase; font-weight: 600; }
.ph-count small.d { text-transform: none; font-weight: 400; }
.ph-count strong { display: block; font-size: .95em; font-weight: 800; }
.ph-count em { margin-left: auto; align-self: flex-start; font-style: normal; background: var(--akzent); width: 1.6em; height: 1.6em; display: grid; place-items: center; font-size: .75em; }
.ph-kacheln { display: grid; grid-template-columns: 1fr 1fr; border-bottom: .1em solid var(--text); }
.ph-k { padding: .55em .55em .7em; display: flex; flex-direction: column; gap: .25em; }
.ph-k + .ph-k { border-left: .1em solid var(--text); }
.ph-k .bild { aspect-ratio: 4 / 3; border: .1em solid var(--text); display: grid; place-items: center; margin-bottom: .2em; }
.ph-k .bild svg { width: 62%; }
.ph-k .metm { background: #f3f2f2; }
.ph-k .metm rect { fill: #201e1d; }
.ph-k .metm .akz { fill: #ec3013; }
.ph-k .vy { background: #0d0e0c; }
.ph-k .vy path { fill: none; stroke: #eef0e9; stroke-width: 3.5; }
.ph-k .vy circle { fill: #8fce4c; }
.ph-k b { font-size: .8em; font-weight: 800; }
.ph-k .tag { font-size: .48em; font-weight: 700; color: var(--akzent); }
.ph-fehlt { display: flex; align-items: center; justify-content: space-between; gap: .5em; margin: .7em .6em; padding: .6em .7em; border: .1em solid var(--text); }
.ph-fehlt b { font-size: .62em; display: block; }
.ph-fehlt small { color: var(--leise); }
.ph-fehlt em { font-style: normal; border: .1em solid var(--text); width: 1.4em; height: 1.4em; display: grid; place-items: center; font-size: .8em; }

/* METM-App */
.metm { background: #f3f2f2; color: #201e1d; }
.metm .ph-kopf { justify-content: flex-start; align-items: center; padding-bottom: .55em; }
.metm .ph-kopf b { font-size: 1.25em; }
.ph-glocke { order: 2; margin-left: auto; border: .1em solid #201e1d; width: 1.6em; height: 1.6em; display: grid; place-items: center; }
.ph-glocke svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; }
.ph-streifen { display: flex; justify-content: space-between; gap: .5em; background: #ec3013; color: #fff; padding: .5em .9em; font-size: .52em; font-weight: 600; }
.ph-streifen b { text-transform: uppercase; font-weight: 800; }
.ph-rolle { position: relative; flex: 1; min-height: 0; overflow: hidden; border-bottom: .1em solid #201e1d; background: #201e1d; }
.ph-rolle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .9; }
.ph-rolle em { position: absolute; top: 0; right: 0; background: #ec3013; color: #fff; font-style: normal; width: 1.35em; height: 1.35em; display: grid; place-items: center; font-size: .7em; }
.ph-rolle div { position: absolute; left: 0; right: 0; bottom: 0; padding: .4em .7em .5em; background: linear-gradient(transparent, rgba(20, 18, 17, .92) 35%); color: #fff; }
.ph-rolle b { display: block; font-size: 1.3em; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ph-rolle small { margin-top: .3em; font-size: .5em; line-height: 1.3; }
.metm .ph-tabs span.an { color: #ec3013; }
@media (min-width: 900px) { .phones { font-size: clamp(11px, 1.15vw, 15px); } }
