/* ============================================================
   VORTIUM Redesign v2 — style.css
   Mobile-first, hell als Standard, editorial statt Cards.
   Design-Begründungen: siehe ../README.md (Hick's Law, F-Pattern,
   Weißraum, Social Proof).
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

/* ---------- Tokens ---------- */
:root {
    --bg: #FBFAF8;
    --bg-alt: #F2F0EC;
    --text: #16181D;
    --text-2: #5C6270;
    --line: rgba(22, 24, 29, .12);
    --accent: #2F6FEF;
    --accent-ink: #FFFFFF;
    --header-bg: rgba(251, 250, 248, .88);
    --dd-bg: #FFFFFF;

    --font-d: "Space Grotesk", Inter, sans-serif;
    --font-b: Inter, system-ui, sans-serif;

    --w: 1160px;
    --w-text: 660px;
    --pad: clamp(20px, 5vw, 48px);
    --sec: clamp(72px, 12vw, 150px);
}

body.dark {
    --bg: #0E1116;
    --bg-alt: #151A21;
    --text: #F2F3F5;
    --text-2: #9AA3B2;
    --line: rgba(242, 243, 245, .13);
    --accent: #5B8DF6;
    --accent-ink: #0E1116;
    --header-bg: rgba(14, 17, 22, .88);
    --dd-bg: #1A2029;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-b);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3 {
    font-family: var(--font-d);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }

.kicker {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-2); max-width: var(--w-text); }

.section { padding: var(--sec) 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Buttons: max 1 primärer CTA pro Sektion (Hick's Law) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    min-height: 48px; /* Touch-Target */
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header: Nav links, Kontakt + Dropdown rechts ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-in {
    max-width: var(--w);
    margin: 0 auto;
    padding: 14px var(--pad);
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.nav { display: flex; gap: 22px; font-size: .92rem; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; color: var(--text-2); transition: color .2s ease; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-contact { padding: 10px 18px; min-height: 42px; font-size: .9rem; }

/* Dropdown (rechts): Über Vortium, Einstellungen, Rechtliches */
.dd { position: relative; }
.dd-btn {
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s ease;
}
.dd-btn:hover { border-color: var(--accent); }
.dd-btn svg { width: 17px; height: 17px; }
.dd-menu {
    position: absolute;
    right: 0; top: calc(100% + 10px);
    min-width: 210px;
    background: var(--dd-bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-menu a {
    display: block;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: .92rem;
    color: var(--text-2);
}
.dd-menu a:hover { background: var(--bg-alt); color: var(--text); }
.dd-sep { height: 1px; background: var(--line); margin: 7px 8px; }

/* Mobile Nav */
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 17px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.m-nav {
    position: fixed;
    inset: 0;
    top: 71px;
    background: var(--bg);
    z-index: 80;
    padding: 28px var(--pad);
    display: none;
    flex-direction: column;
    gap: 4px;
}
.m-nav.open { display: flex; }
.m-nav a {
    padding: 16px 4px;
    font-family: var(--font-d);
    font-size: 1.45rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
.m-nav .m-nav-small a { font-family: var(--font-b); font-size: 1rem; font-weight: 500; color: var(--text-2); border: none; padding: 12px 4px; }
.m-nav .m-nav-small { margin-top: 14px; }
.m-nav .btn-primary { margin-top: 26px; justify-content: center; }

/* Füllt den leeren Bereich unten im Mobile-Menü mit der Wellen-Grafik
   aus dem Hero — dezent, nach oben ausgeblendet, damit sie nicht mit
   den Nav-Links konkurriert. */
.m-nav-visual {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 42%;
    z-index: -1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 55%);
    mask-image: linear-gradient(to bottom, transparent, black 55%);
    opacity: .55;
}
body.dark .m-nav-visual { opacity: .4; }
.m-nav-visual img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 10vw, 130px) 0 var(--sec); }
.hero h1 {
    font-size: clamp(2.5rem, 6.4vw, 4.6rem);
    max-width: 820px;
    margin-bottom: 26px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: .85rem; color: var(--text-2); margin-top: 18px; }

.hero-visual {
    margin-top: clamp(48px, 7vw, 90px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 21 / 9;
    position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Fakten-Zeile (statt Cards): schlichte Inline-Stats ---------- */
.facts {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(28px, 6vw, 80px);
    padding-top: 34px;
    border-top: 1px solid var(--line);
}
.fact strong { display: block; font-family: var(--font-d); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.fact span { font-size: .88rem; color: var(--text-2); }

/* ---------- Editoriale Split-Sektion (Text | Bild) ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
}
.split.rev .split-media { order: -1; }
.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 18px; max-width: 480px; }
.split p { color: var(--text-2); max-width: 500px; }
.split p + p { margin-top: 14px; }
.split .btn { margin-top: 28px; }
.split-media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Leistungsliste (nummeriert, KEINE Cards) ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: clamp(16px, 3vw, 40px);
    align-items: baseline;
    padding: clamp(24px, 4vw, 40px) 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left .25s ease;
}
a.svc-row:hover { padding-left: 10px; }
.svc-num { font-family: var(--font-d); font-size: .95rem; color: var(--text-2); }
.svc-row h3 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); margin-bottom: 6px; }
.svc-row p { color: var(--text-2); max-width: 560px; font-size: .95rem; }
.svc-price { font-size: .88rem; color: var(--text-2); white-space: nowrap; }
.svc-price strong { display: block; font-family: var(--font-d); font-size: 1.05rem; color: var(--text); }
.svc-arrow { font-size: 1.3rem; color: var(--accent); align-self: center; transition: transform .25s ease; }
a.svc-row:hover .svc-arrow { transform: translateX(5px); }

/* ---------- Versions-Karte (Einstellungen) ---------- */
.ver-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 28px;
}
.ver-label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.ver-card h2 { font-size: 1.5rem; }
.ver-card h2 span { color: var(--accent); }
.ver-desc { color: var(--text-2); font-size: .92rem; margin-top: 8px; max-width: 420px; }
.ver-status { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text-2); white-space: nowrap; }
.ver-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ---------- Weitere Projekte: Logo-Grid (Klick-Liste) ---------- */
.more-toggle { display: inline-flex; align-items: center; gap: 8px; }
.more-toggle .car { transition: transform .25s ease; font-size: .8em; }
.more-toggle.open .car { transform: rotate(180deg); }
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 26px;
}
/* Höhere Spezifität als ".logo-grid" allein, damit das HTML-Attribut
   "hidden" nicht vom eigenen "display: grid" oben überstimmt wird
   (author-CSS schlägt sonst die UA-Default-Regel [hidden]{display:none}). */
.logo-grid[hidden] { display: none; }
.logo-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px 18px;
    transition: border-color .2s ease, transform .2s ease;
}
a.logo-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.logo-tile .lt-mark {
    font-family: var(--font-d);
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 14px;
}
.logo-tile span { font-size: .82rem; color: var(--text-2); }

/* ---------- Prozess (nummerierte Schritte, schlicht) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); counter-reset: step; }
.step { counter-increment: step; }
.step::before {
    content: "0" counter(step);
    display: block;
    font-family: var(--font-d);
    font-size: .95rem;
    color: var(--accent);
    margin-bottom: 12px;
}
.step { border-top: 2px solid var(--line); padding-top: 18px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .93rem; }

/* ---------- Referenz-Teaser / Referenzliste ---------- */
.ref-item {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: center;
    padding: clamp(36px, 6vw, 64px) 0;
    border-top: 1px solid var(--line);
}
.ref-item:last-child { border-bottom: 1px solid var(--line); }
.ref-tag { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; display: block; }
.ref-item h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.ref-item p { color: var(--text-2); max-width: 480px; }
.ref-item .btn { margin-top: 22px; }
.ref-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.ref-media img { width: 100%; display: block; }

/* ---------- Bild-Platzhalter (bis echte Bilder da sind) ---------- */
.ph {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        repeating-linear-gradient(135deg, rgba(47, 111, 239, .05) 0 2px, transparent 2px 14px),
        var(--bg-alt);
    color: var(--text-2);
    padding: 26px;
    min-height: 240px;
    width: 100%;
    height: 100%;
}
.ph small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.ph p { font-size: .84rem; max-width: 300px; margin: 0 auto; }

/* ---------- Abschluss-CTA ---------- */
.cta-final { text-align: left; }
.cta-final h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 700px; margin-bottom: 18px; }
.cta-final .lead { margin-bottom: 34px; }

/* ---------- Formular ---------- */
.form { max-width: 620px; }
.f-field { margin-bottom: 22px; }
.f-field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; }
.f-field input, .f-field select, .f-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    min-height: 48px;
}
.f-field textarea { min-height: 130px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.f-note { font-size: .8rem; color: var(--text-2); margin-top: 14px; }
.form-status { font-size: .88rem; min-height: 1.2em; margin-bottom: 4px; }
.form-status.error { color: #D64545; }
.form-status.success { color: #1E9E5A; }
.form-success { max-width: 620px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; }

/* ---------- Footer (nah an Live-Site) ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 56px 0 0; margin-top: var(--sec); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.footer a, .footer p { display: block; font-size: .92rem; color: var(--text-2); margin-bottom: 10px; }
.footer a:hover { color: var(--text); }
.footer .brand { margin-bottom: 12px; }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: .82rem;
    color: var(--text-2);
}
.footer-theme { display: flex; align-items: center; gap: 12px; }

/* Theme-Toggle (Footer) */
.t-toggle {
    width: 46px; height: 26px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    position: relative;
    transition: background .25s ease;
}
.t-toggle .knob {
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform .25s ease;
}
body.dark .t-toggle .knob { transform: translateX(20px); }

/* ---------- Erstbesuch: dezente Theme-Bar (statt blockierendem Modal) ---------- */
.theme-bar {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    max-width: 460px;
    margin: 0 auto;
    background: var(--dd-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    z-index: 100;
    transform: translateY(140%);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.theme-bar.show { transform: none; }
.theme-bar p { font-size: .9rem; margin-bottom: 12px; }
.theme-bar-row { display: flex; gap: 10px; }
.theme-bar-row .btn { flex: 1; justify-content: center; padding: 11px 10px; min-height: 44px; font-size: .88rem; }

/* ---------- Scroll-Reveal (dezent) ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.on { opacity: 1; transform: none; }

/* ---------- Preis-Tag (Leistungen) ---------- */
.price-tag { display: inline-block; margin-top: 18px; }
.price-tag strong { display: block; font-family: var(--font-d); font-size: 1.5rem; letter-spacing: -0.01em; }
.price-tag span { font-size: .84rem; color: var(--text-2); }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.prose { max-width: var(--w-text); }
.prose h2 { font-size: 1.15rem; margin-top: 40px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); margin-bottom: 12px; }
.prose ul { margin: 12px 0 12px 4px; }
.prose li { color: var(--text-2); padding: 5px 0 5px 18px; position: relative; }
.prose li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Einstellungen-Seite ---------- */
.set-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.set-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.set-row p { font-size: .88rem; color: var(--text-2); }

/* ============================================================
   MOBILE — die Hauptbaustelle der alten Seite
   ============================================================ */
/* ============================================================
   DEMO SEITEN � Grid & Cards f�r Demo-Projekte
   ============================================================ */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 3vw, 28px);
    margin-bottom: var(--sec);
}

.demo-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease;
}

.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

body.dark .demo-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
}

.demo-header {
    padding: clamp(20px, 4vw, 32px);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.demo-header .demo-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 12px;
}

.demo-header h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    margin-bottom: 6px;
}

.demo-header p {
    font-size: .95rem;
    opacity: 0.95;
}

.demo-body {
    padding: clamp(20px, 4vw, 28px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.demo-body p {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--text-2);
}

.demo-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-body li {
    font-size: .9rem;
    padding: 6px 0;
}

.demo-card .btn {
    margin-top: 24px;
}

/* "Coming Soon"-Demos: gleicher Streifen-Platzhalter wie Bild-Platzhalter im Rest der Seite,
   statt Farbverlauf — .demo-header + .ph kombiniert, hier mit korrekter Spezifität überschrieben */
.demo-header.ph {
    color: var(--text);
    text-shadow: none;
    padding: 26px;
    min-height: 200px;
}
.demo-header.ph small { color: var(--accent); }
.demo-header.ph p:last-child { color: var(--text-2); }

/* Aktive Demos: echtes Vorschau-Bild als Karten-Kopf */
.demo-thumb { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.demo-card:hover .demo-thumb img { transform: scale(1.04); }
.demo-thumb .demo-badge {
    position: absolute; top: 14px; left: 14px;
    background: rgba(11,11,12,.82); color: #fff;
    font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 3px;
}
.demo-body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.demo-body .demo-sub { font-size: .8rem; letter-spacing: .04em; color: var(--accent); margin-bottom: 14px; }

/* ============================================================
   PORTFOLIO-GRID (Demo-Übersicht im Referenzgalerie-Stil)
   ============================================================ */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 42px); align-items: start; }
.pf-item { display: flex; flex-direction: column; }
.pf-item.full { grid-column: 1 / -1; }

.pf-card {
    position: relative; display: block;
    border-radius: 16px; overflow: hidden;
    background: var(--bg-alt); border: 1px solid var(--line);
    aspect-ratio: 16 / 10;
    transition: transform .4s ease, box-shadow .4s ease;
}
.pf-item.full .pf-card { aspect-ratio: 21 / 9; }
.pf-card > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
a.pf-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.pf-card .ph { position: absolute; inset: 0; min-height: 0; height: 100%; border-radius: 0; }

/* Status-Pille oben links */
.pf-pill {
    position: absolute; left: 16px; top: 16px; z-index: 2;
    background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px; font-size: .7rem; font-weight: 600; letter-spacing: .05em; color: var(--text-2);
}
.pf-pill.live { color: var(--accent); }

/* Callout-Badge unten rechts (wie in der Vorlage) */
.pf-badge {
    position: absolute; right: 16px; bottom: 16px; z-index: 2; max-width: min(70%, 340px);
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
    padding: 13px 17px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.pf-badge .l { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.pf-badge .t { font-family: var(--font-d); font-size: .98rem; line-height: 1.3; color: var(--text); }

/* Titelzeile unter der Karte */
.pf-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-top: 18px; }
.pf-title { font-family: var(--font-d); font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; }
.pf-cat { font-size: .84rem; color: var(--text-2); margin-top: 4px; }
.pf-open { font-size: .82rem; font-weight: 600; color: var(--accent); white-space: nowrap; transition: transform .3s ease; }
a.pf-card + .pf-meta .pf-open, .pf-item:hover .pf-open { }

/* CTA-Kachel */
.pf-cta {
    background: var(--text); color: var(--bg);
    border-radius: 16px; aspect-ratio: 16 / 10;
    padding: clamp(26px, 3.5vw, 46px);
    display: flex; flex-direction: column; justify-content: center; gap: 12px;
    transition: transform .4s ease;
}
.pf-cta:hover { transform: translateY(-4px); }
.pf-cta h3 { font-family: var(--font-d); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--bg); }
.pf-cta p { color: rgba(255,255,255,.72); font-size: .95rem; max-width: 32ch; }
.pf-cta .pf-cta-arr { margin-top: 6px; font-size: .84rem; font-weight: 600; letter-spacing: .04em; color: #fff; }
body.dark .pf-cta { background: var(--accent); }
body.dark .pf-cta h3 { color: #fff; }

@media (max-width: 720px) {
    .pf-grid { grid-template-columns: 1fr; }
    .pf-item.full .pf-card { aspect-ratio: 16 / 10; }
    .pf-badge { max-width: 78%; }
}

@media (max-width: 860px) {
    .nav { display: none; }
    .nav-toggle { display: flex; }
    .btn-contact { display: none; }           /* wandert ins Mobile-Menü */
    .header-in { gap: 14px; padding-top: 12px; padding-bottom: 12px; }
    .header-right { gap: 8px; }

    .split, .split.rev { grid-template-columns: 1fr; }
    .split.rev .split-media { order: 0; }
    .split-media { aspect-ratio: 16 / 10; }

    .svc-row { grid-template-columns: 1fr; gap: 6px; }
    .svc-num { font-size: .82rem; }
    .svc-price { margin-top: 6px; }
    .svc-arrow { display: none; }

    .steps { grid-template-columns: 1fr; gap: 26px; }

    .ref-item { grid-template-columns: 1fr; gap: 22px; }
    .ref-media { order: -1; }

    .hero-visual { aspect-ratio: 4 / 3; border-radius: 14px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .logo-grid { grid-template-columns: 1fr 1fr; }
    .ver-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero-cta .btn { width: 100%; justify-content: center; }
    .facts { gap: 22px; }
    .fact { min-width: 40%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .rv { opacity: 1; transform: none; }
}
