/* ──────────────────────────────────────────────────────────────
   plattform.css — Startseite und Eigentuemerbereich von Carveplan
   Gleiches Layout wie secudraw.com (Planschrank: Papiergrund mit Zeichenraster,
   weisse Blaetter mit Tuschrahmen, Reiterschiene am Fensterrand). Uebernommen aus
   secudraw/frontend/start.css und secudraw.css, Praefix cp- statt st-/sd-.
   Eigen ist nur der Akzent: Ultramarin statt Secudraw-Blau (Entscheidung 18.09.2026).
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('/web/plattform/fonts/space-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('/web/plattform/fonts/space-grotesk-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 {
    --cp-bg:          #F5F5F7;
    --cp-surface:     #FFFFFF;
    --cp-toolbar-bg:  rgba(255,255,255,0.72);
    --cp-text:        #1D1D1F;
    --cp-text-sec:    #6E6E73;
    --cp-accent:      #2740D6;
    --cp-accent-hover:#1B2FA8;
    --cp-accent-soft: rgba(39,64,214,0.10);
    --cp-red:         #FF3B30;
    --cp-green:       #34C759;
    --cp-border:      rgba(0,0,0,0.08);
    --cp-radius:      12px;
    --cp-font:        -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
                      'Helvetica Neue', Helvetica, Arial, sans-serif;
    --cp-brand-font:  'Space Grotesk', var(--cp-font);
    --cp-mono:        ui-monospace, 'SF Mono', Menlo, monospace;
    --cp-shadow:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --cp-grid:        linear-gradient(rgba(0,0,0,0.045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,0,0,0.045) 1px, transparent 1px),
                      linear-gradient(rgba(0,0,0,0.022) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,0,0,0.022) 1px, transparent 1px);
    --cp-grid-size:   60px 60px, 60px 60px, 12px 12px, 12px 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.cp-page {
    min-height: 100vh;
    margin: 0;
    background: var(--cp-bg);
    background-image: var(--cp-grid);
    background-size: var(--cp-grid-size);
    color: var(--cp-text);
    font-family: var(--cp-font);
    -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

/* ── Kopfleiste ─────────────────────────────────────────── */
.cp-head {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px max(20px, 3vw);
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: var(--cp-toolbar-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--cp-border);
}
.cp-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--cp-text);
    font-family: var(--cp-brand-font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.cp-brand img { display: block; }
.cp-head-spacer { flex: 1; }
.cp-head-link {
    color: var(--cp-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 980px;
}
.cp-head-link:hover { background: rgba(0, 0, 0, 0.05); }

/* ── Bühne: Reiterschiene + Blattstapel ─────────────────── */
/* Die Schiene liegt fest am Fensterrand und damit außerhalb dieser Bühne –
   sie braucht keine eigene Rasterspalte mehr, nur genug Luft nach links. */
.cp-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px max(16px, 2vw) 72px;
}
/* Der aktive Reiter ist 130 px breit und beginnt am Fensterrand. Mit 10 px Luft
   muss das Blatt bei 140 px beginnen – das schafft der zentrierte Rand erst ab
   1600 px Fensterbreite (1320 Bühne + zweimal 140). Darunter rückt die Bühne ein. */
@media (max-width: 1600px) {
    .cp-stage { padding-left: 140px; }
}

/* Am linken Fensterrand, nicht am Rand der zentrierten Bühne. Die Rasterspalte
   bleibt trotzdem stehen: Auf schmalen Fenstern liegt die Schiene genau darin,
   auf breiten wandert sie nach außen – so überdeckt sie nie ein Blatt. */
.cp-rail {
    padding: 0;
    position: fixed;
    left: 0;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    z-index: 15;
}
.cp-tab {
    display: block;
    /* Blattkante, die aus dem Fensterrand ragt: links angeschnitten, rechts
       gerundet – keine freistehende Pille. */
    width: 112px;
    padding: 11px 11px 11px 8px;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-left: none;
    border-radius: 0 var(--cp-radius) var(--cp-radius) 0;
    box-shadow: var(--cp-shadow);
    text-decoration: none;
    color: var(--cp-text-sec);
    transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease, background 0.18s ease;
}
.cp-tab b {
    display: block;
    font-family: var(--cp-font);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}
.cp-tab span {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.25;
}
/* Alle Reiter bleiben am Fensterrand bündig – der aktive streckt sich nach rechts.
   Kein Versatz: sonst löste sich seine linke Kante vom Rand und er läse als
   schwebende Pille statt als angeschnittene Blattkante. */
.cp-tab:hover { width: 120px; color: var(--cp-text); }
.cp-tab:focus-visible { outline: 2px solid var(--cp-accent); outline-offset: 2px; }
.cp-tab.is-active {
    width: 130px;
    background: var(--cp-accent);
    border-color: var(--cp-accent);
    color: #fff;
}

/* ── Das Blatt ──────────────────────────────────────────── */
/* Blätter mit Luft dazwischen – sie liegen nebeneinander im Schrank, nicht gestapelt. */
.cp-sheets { display: flex; flex-direction: column; gap: 26px; min-width: 0; position: relative; z-index: 1; }

.cp-sheet {
    position: relative;
    background: var(--cp-surface);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.10);
    scroll-margin-top: 92px;
    /* Papier hat keine runden Ecken */
    border-radius: 0;
}
.cp-sheet-inner {
    border: 1.5px solid var(--cp-text);
    margin: 14px;
    padding: clamp(22px, 3.4vw, 46px);
    min-height: 0;
}
.cp-sheet-no {
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--cp-text-sec);
    letter-spacing: 0.06em;
}

/* ── Typografie ─────────────────────────────────────────── */
.cp-title {
    font-family: var(--cp-brand-font);
    font-size: clamp(32px, 4.8vw, 62px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
    margin: 0;
}
.cp-lead {
    margin: 18px 0 0;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.55;
    color: var(--cp-text-sec);
    max-width: 46ch;
}
.cp-h2 {
    font-family: var(--cp-brand-font);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
    margin: 0;
}
.cp-body {
    margin: 14px 0 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--cp-text-sec);
    max-width: 62ch;
}
.cp-body strong { color: var(--cp-text); font-weight: 600; }

/* ── Handlung ───────────────────────────────────────────── */
.cp-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}
.cp-cta {
    padding: 13px 26px;
    font-size: 15.5px;
    font-weight: 600;
    border-radius: 980px;
    background: var(--cp-accent);
    color: #fff;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.cp-cta:hover { background: var(--cp-accent-hover); transform: translateY(-1px); }
.cp-cta:focus-visible { outline: 2px solid var(--cp-text); outline-offset: 3px; }
.cp-note { font-size: 13.5px; color: var(--cp-text-sec); }

/* ── Blatt 01: Überschrift links, Zeichnung rechts ──────── */
.cp-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 3.5vw, 52px);
    align-items: center;
}
.cp-figure { min-width: 0; }
.cp-figure svg { display: block; width: 100%; height: auto; }
.cp-caption {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--cp-text-sec);
    letter-spacing: 0.01em;
}

/* ── Der Anlass: wann jemand das braucht ────────────────── */
.cp-occasions {
    list-style: none;
    margin: clamp(26px, 3vw, 40px) 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--cp-border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(14px, 2vw, 30px);
}
.cp-occasions li {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--cp-text-sec);
}
.cp-occasions b { color: var(--cp-text); font-weight: 600; }

/* ── Blatt 02: Ebenenliste ──────────────────────────────── */
.cp-split {
    display: grid;
    grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(20px, 3vw, 44px);
    align-items: start;
    margin-top: 28px;
}
.cp-layers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cp-border); }
.cp-layer {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 4px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--cp-border);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--cp-text);
    text-align: left;
    cursor: pointer;
}
.cp-layer:hover { background: rgba(0, 0, 0, 0.02); }
.cp-layer:focus-visible { outline: 2px solid var(--cp-accent); outline-offset: -2px; }
.cp-switch {
    flex: none;
    width: 38px;
    height: 22px;
    border-radius: 980px;
    background: var(--cp-accent);
    position: relative;
    transition: background 0.18s ease;
}
.cp-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: left 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.cp-layer[aria-pressed="false"] .cp-switch { background: #D2D2D7; }
.cp-layer[aria-pressed="false"] .cp-switch::after { left: 2px; }
.cp-layer[aria-pressed="false"] .cp-layer-name { color: var(--cp-text-sec); }
.cp-layer-name { flex: 1; }
.cp-layer-count {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--cp-text-sec);
}
.cp-hint {
    margin-top: 16px;
    font-size: 13.5px;
    color: var(--cp-text-sec);
    line-height: 1.5;
}

/* geschaltete Ebenen im SVG */
[data-layer] { transition: opacity 0.3s ease; }
[data-layer].is-off { opacity: 0.08; }

/* ── Blatt 03: Formate ──────────────────────────────────── */
.cp-formats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 1px;
    margin-top: 26px;
    background: var(--cp-border);
    border: 1px solid var(--cp-border);
}
.cp-format { background: var(--cp-surface); padding: 16px 14px; }
.cp-format b {
    display: block;
    font-family: var(--cp-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.cp-format span { display: block; margin-top: 5px; font-size: 13px; color: var(--cp-text-sec); line-height: 1.45; }

/* ── Fußzeile ───────────────────────────────────────────── */
.cp-foot {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 max(16px, 2vw) calc(40px + env(safe-area-inset-bottom, 0px));
    font-size: 13px;
    color: var(--cp-text-sec);
    text-align: center;
}
.cp-foot a { color: var(--cp-text-sec); }

/* ── Schmale Fenster ────────────────────────────────────── */
@media (max-width: 860px) {
    .cp-hero, .cp-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    /* Auf dem Telefon gibt es die Schiene nicht – also auch keine Luft für sie. */
    .cp-stage { padding-top: 12px; padding-left: max(16px, 2vw); }
    .cp-stage > nav { display: none; }
    .cp-sheet-inner { margin: 8px; padding: 20px 16px; }
    .cp-sheet-no { top: 14px; right: 14px; }
    .cp-cta { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .cp-tab, .cp-cta, .cp-switch, .cp-switch::after, [data-layer] { transition: none; }
}

/* ══════════════════════════════════════════════════════════════
   Ab hier Carveplan-eigen: der gezeichnete Beispielplan, die Suche,
   die Trefferblaetter, der Eigentuemerbereich und die Anmeldung.
   ══════════════════════════════════════════════════════════════ */

.cp-head-link.is-cta { background: var(--cp-accent); color: #fff; }
.cp-head-link.is-cta:hover { background: var(--cp-accent-hover); }
.cp-cta-leise {
    padding: 13px 22px; font-size: 15.5px; font-weight: 600; border-radius: 980px;
    color: var(--cp-text); text-decoration: none; background: var(--cp-bg);
}
.cp-cta-leise:hover { background: #E8E8ED; }

/* ── Der Beispielplan (SVG aus start.js) ────────────────── */
.cp-plan { display: block; width: 100%; height: auto; overflow: visible; }
.cp-plan .wand      { stroke: var(--cp-text); stroke-linecap: square; fill: none; }
.cp-plan .wand-a    { stroke-width: 8; }
.cp-plan .wand-i    { stroke-width: 4; }
.cp-plan .luecke    { fill: #fff; stroke: none; }
.cp-plan .tuer      { stroke: var(--cp-text); stroke-width: 1.4; fill: none; }
.cp-plan .fenster   { stroke: var(--cp-text); stroke-width: 1.4; fill: #fff; }
.cp-plan .raum      { fill: var(--cp-accent); opacity: 0; transition: opacity .5s ease; }
.cp-plan .schild    { font-family: var(--cp-mono); font-size: 16px; font-weight: 600; fill: var(--cp-text); opacity: 0; transition: opacity .4s ease; }
.cp-plan .schild tspan.m2 { fill: var(--cp-text-sec); font-size: 14px; font-weight: 400; }
.cp-plan .mass      { stroke: var(--cp-text-sec); stroke-width: 1.2; fill: none; }
.cp-plan .masstext  { font-family: var(--cp-mono); font-size: 16px; fill: var(--cp-text-sec); }
.cp-plan .moebel    { fill: #fff; stroke: var(--cp-text); stroke-width: 1.4; }
.cp-plan .stuhl     { fill: var(--cp-accent); stroke: none; }
.cp-plan .fest      { fill: none; stroke: var(--cp-text-sec); stroke-width: 1.2; }
.cp-plan .platz     { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0;
                      transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease; }
.cp-plan .scan      { fill: var(--cp-accent); opacity: 0; }
.cp-plan [data-ebene] { transition: opacity .3s ease; }
.cp-plan [data-ebene].is-off { opacity: 0.06; }

/* Phasen: roh → gelesen → moebliert. Die Verzoegerung je Element kommt aus --i. */
.cp-plan.is-gelesen .raum   { opacity: var(--ton, 0.10); transition-delay: calc(var(--i, 0) * 90ms + 500ms); }
.cp-plan.is-gelesen .schild { opacity: 1; transition-delay: calc(var(--i, 0) * 90ms + 700ms); }
.cp-plan.is-moebliert .platz { transform: scale(1); opacity: 1; transition-delay: calc(var(--i, 0) * 45ms); }
.cp-plan.is-scan .scan { animation: cp-scan 1.5s cubic-bezier(0.45, 0, 0.55, 1) both; }
@keyframes cp-scan {
    0%   { transform: translateX(0);     opacity: 0; }
    12%  { opacity: 0.22; }
    88%  { opacity: 0.22; }
    100% { transform: translateX(880px); opacity: 0; }
}
.cp-plan .raum.is-hover { opacity: 0.28 !important; transition-delay: 0s !important; }
.cp-plan .raumflaeche { fill: transparent; cursor: default; }

/* Anzeige ueber dem Plan: Korridor und Phasenpunkte */
.cp-figure { position: relative; }
.cp-zaehler {
    display: flex; align-items: baseline; gap: 10px; justify-content: flex-end;
    font-family: var(--cp-brand-font); margin-bottom: 6px; min-height: 44px;
}
.cp-zaehler b { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cp-zaehler span { font-family: var(--cp-font); font-size: 14px; color: var(--cp-text-sec); }
.cp-zaehler { opacity: 0; transition: opacity .4s ease; }
.cp-zaehler.is-an { opacity: 1; }
.cp-phasen { display: flex; gap: 18px; justify-content: center; margin: 12px 0 0; padding: 0; list-style: none;
             font-family: var(--cp-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--cp-text-sec); }
.cp-phasen li { display: flex; align-items: center; gap: 7px; transition: color .3s ease; }
.cp-phasen li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #D2D2D7; transition: background .3s ease; }
.cp-phasen li.is-an { color: var(--cp-text); }
.cp-phasen li.is-an::before { background: var(--cp-accent); }

/* ── Blatt 02: die Suche als ein Satz ───────────────────── */
.cp-suche {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 24px;
    font-family: var(--cp-brand-font); font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em;
}
.cp-suche input[type="number"], .cp-suche select {
    font: inherit; font-weight: 700; color: var(--cp-accent); background: var(--cp-accent-soft);
    border: none; border-radius: 12px; padding: 6px 12px; outline: none; -moz-appearance: textfield;
}
.cp-suche input[type="number"] { width: 3.4ch; box-sizing: content-box; text-align: center; }
.cp-suche input::-webkit-outer-spin-button, .cp-suche input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cp-suche input:focus-visible, .cp-suche select:focus-visible { box-shadow: 0 0 0 3px rgba(39,64,214,0.25); }
.cp-suche select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 14px; }
.cp-wahl { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
           border-radius: 12px; padding: 6px 12px; background: var(--cp-bg); color: var(--cp-text-sec); transition: background .18s ease, color .18s ease; }
.cp-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.cp-wahl:has(input:checked) { background: var(--cp-accent-soft); color: var(--cp-accent); font-weight: 700; }
.cp-wahl:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(39,64,214,0.25); }
.cp-wahl .cp-switch { width: 34px; height: 20px; background: #D2D2D7; }
.cp-wahl .cp-switch::after { width: 16px; height: 16px; left: 2px; }
.cp-wahl:has(input:checked) .cp-switch { background: var(--cp-accent); }
.cp-wahl:has(input:checked) .cp-switch::after { left: 16px; }

.cp-treffer { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.cp-treffer > li { animation: cp-auf .5s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes cp-auf { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cp-objekt { display: block; color: inherit; text-decoration: none; border: 1px solid var(--cp-border); background: var(--cp-surface); }
.cp-objekt-bild { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cp-bg); transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1); }
.cp-objekt-rahmen { overflow: hidden; position: relative; }
.cp-objekt:hover .cp-objekt-bild { transform: scale(1.025); }
.cp-objekt-marke { position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 980px; font-size: 12px; font-weight: 600;
                   background: var(--cp-accent); color: #fff; }
.cp-objekt-marke.is-leise { background: rgba(255,255,255,0.86); color: var(--cp-text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cp-objekt-fuss { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 18px 18px; flex-wrap: wrap; }
.cp-objekt-name { font-family: var(--cp-brand-font); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.cp-objekt-meta { margin-top: 4px; font-family: var(--cp-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--cp-text-sec); }
.cp-objekt-zahl { text-align: right; font-family: var(--cp-brand-font); }
.cp-objekt-zahl b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cp-objekt-zahl span { font-family: var(--cp-font); font-size: 12.5px; color: var(--cp-text-sec); }
.cp-leer { margin-top: 28px; padding: 38px 20px; text-align: center; color: var(--cp-text-sec); font-size: 15px; border: 1px dashed rgba(0,0,0,0.16); }
.cp-klein { margin: 16px 0 0; font-size: 12px; color: var(--cp-text-sec); line-height: 1.5; max-width: 80ch; }

/* ── Blatt 04: Szenarien ────────────────────────────────── */
.cp-segment { display: inline-flex; padding: 3px; border-radius: 980px; background: var(--cp-bg); margin-top: 22px; }
.cp-segment button { font: 600 14px var(--cp-font); color: var(--cp-text-sec); background: none; border: none; border-radius: 980px; padding: 8px 16px; cursor: pointer; transition: background .18s ease, color .18s ease; }
.cp-segment button[aria-pressed="true"] { background: var(--cp-surface); color: var(--cp-text); box-shadow: var(--cp-shadow); }
.cp-segment button:focus-visible { outline: 2px solid var(--cp-accent); outline-offset: 2px; }
.cp-korridor { margin-top: 26px; }
.cp-korridor-zahl { font-family: var(--cp-brand-font); font-size: clamp(44px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cp-korridor-zahl small { display: block; margin-top: 6px; font: 400 14px var(--cp-font); letter-spacing: 0; color: var(--cp-text-sec); }
.cp-leiste { position: relative; height: 4px; border-radius: 4px; background: var(--cp-accent-soft); margin: 30px 8px 0; }
.cp-leiste i { position: absolute; top: -5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--cp-accent); transition: background .2s ease, transform .2s ease; }
.cp-leiste i.is-an { background: var(--cp-accent); transform: scale(1.25); }
.cp-leiste-zahlen { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--cp-mono); font-size: 12px; color: var(--cp-text-sec); }

/* ── Blatt 05: Puppenhaus ───────────────────────────────── */
.cp-haus { display: block; margin-top: 26px; overflow: hidden; border: 1px solid var(--cp-border); position: relative; background: var(--cp-bg); }
.cp-haus img { display: block; width: 100%; height: auto; animation: cp-schwenk 18s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes cp-schwenk { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1%, -0.5%); } }
.cp-haus.is-paused img { animation-play-state: paused; }

/* ── Blatt 06: drei Schritte fuer Eigentuemer ───────────── */
.cp-schritte { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--cp-border); border: 1px solid var(--cp-border); }
.cp-schritte li { background: var(--cp-surface); padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.cp-schritte svg { width: 100%; height: 96px; }
.cp-schritte b { font-family: var(--cp-brand-font); font-size: 17px; font-weight: 700; }
.cp-schritte span { font-size: 13.5px; color: var(--cp-text-sec); line-height: 1.45; }
.cp-anim-pdf   { animation: cp-pdf 4.5s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
@keyframes cp-pdf { 0%, 10% { transform: translateY(-16px); opacity: 0; } 30%, 80% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
.cp-anim-linie { stroke-dasharray: 260; animation: cp-linie 4.5s ease infinite; }
@keyframes cp-linie { 0%, 5% { stroke-dashoffset: 260; } 60%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.cp-anim-haken { stroke-dasharray: 30; animation: cp-haken 4.5s ease infinite; }
@keyframes cp-haken { 0%, 35% { stroke-dashoffset: 30; } 55%, 100% { stroke-dashoffset: 0; } }
.cp-anim-kasten { animation: cp-kasten 4.5s ease infinite; }
@keyframes cp-kasten { 0%, 35% { fill: #fff; } 50%, 100% { fill: var(--cp-accent); } }
.is-paused .cp-anim-pdf, .is-paused .cp-anim-linie, .is-paused .cp-anim-haken, .is-paused .cp-anim-kasten { animation-play-state: paused; }

/* ── Anmeldung: wie secudraw (.sd-auth-*) ───────────────── */
.cp-auth-page { position: fixed; inset: 0; z-index: 200; display: flex; background: var(--cp-surface); }
.cp-auth-form-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; overflow-y: auto; position: relative; }
.cp-auth-back { position: absolute; top: 24px; left: 28px; font-size: 14px; color: var(--cp-text-sec); text-decoration: none; }
.cp-auth-back:hover { color: var(--cp-text); }
.cp-auth-section { width: 100%; max-width: 360px; }
.cp-auth-heading { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 24px; }
.cp-auth-lead { font-size: 15px; line-height: 1.5; color: var(--cp-text-sec); margin: -12px 0 8px; }
.cp-auth-lead strong { color: var(--cp-text); }
.cp-auth-label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.cp-auth-input { display: block; width: 100%; padding: 10px 14px; border: 1px solid var(--cp-border); border-radius: 10px; font: 15px var(--cp-font); color: var(--cp-text); background: var(--cp-surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.cp-auth-input:focus { border-color: var(--cp-accent); box-shadow: 0 0 0 3px rgba(39,64,214,0.15); }
.cp-auth-input::placeholder { color: #A1A1A6; }
.cp-auth-code { font-family: var(--cp-mono); font-size: 24px; letter-spacing: 8px; text-align: center; }
.cp-auth-error { color: var(--cp-red); font-size: 13px; min-height: 20px; margin-top: 8px; }
.cp-auth-error:empty { display: none; }
.cp-auth-note { color: var(--cp-text-sec); font-size: 13px; margin-top: 8px; }
.cp-auth-note:empty { display: none; }
.cp-auth-submit { display: block; width: 100%; padding: 12px 20px; margin-top: 16px; border: none; border-radius: 10px; background: var(--cp-accent); color: #fff; font: 600 15px var(--cp-font); cursor: pointer; transition: background .15s; }
.cp-auth-submit:hover { background: var(--cp-accent-hover); }
.cp-auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.cp-auth-hint { font-size: 13px; color: var(--cp-text-sec); margin-top: 16px; line-height: 1.45; }
.cp-auth-links { margin-top: 18px; font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.cp-auth-links a, .cp-auth-linkbtn { color: var(--cp-accent); background: none; border: none; padding: 0; font: 500 14px var(--cp-font); cursor: pointer; text-decoration: none; }
.cp-auth-links a:hover, .cp-auth-linkbtn:hover { text-decoration: underline; }
/* Anmeldung mit Google (25.09.2026), Aufbau wie secudraw.com: Knopf über dem E-Mail-Feld */
.cp-auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 12px 20px; border: 1px solid var(--cp-border); border-radius: 10px; background: var(--cp-surface); color: var(--cp-text); font: 500 15px var(--cp-font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.cp-auth-google:hover { background: var(--cp-bg); border-color: rgba(0,0,0,0.15); }
.cp-auth-google:focus-visible { outline: none; border-color: var(--cp-accent); box-shadow: 0 0 0 3px rgba(39,64,214,0.15); }
.cp-auth-google svg { flex-shrink: 0; }
.cp-auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--cp-text-sec); font-size: 13px; }
.cp-auth-divider::before, .cp-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--cp-border); }
.cp-auth-brand-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--cp-accent); color: #fff; padding: 48px;
                       background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 60px 60px; }
.cp-auth-brand-img { width: 80px; height: auto; filter: brightness(0) invert(1); }
.cp-auth-brand-logo { font-family: var(--cp-brand-font); font-size: 48px; font-weight: 700; letter-spacing: -1px; }
.cp-auth-brand-tagline { font-size: 18px; opacity: 0.85; text-align: center; max-width: 320px; line-height: 1.5; }
@media (max-width: 768px) {
    .cp-auth-page { flex-direction: column-reverse; }
    .cp-auth-brand-panel { flex: 0 0 140px; padding: 24px; gap: 8px; }
    .cp-auth-brand-img { width: 36px; }
    .cp-auth-brand-logo { font-size: 32px; }
    .cp-auth-brand-tagline { font-size: 14px; }
    .cp-auth-form-panel { padding: 24px; }
}

/* ── Eigentuemerbereich ─────────────────────────────────── */
.cp-app .cp-stage { padding-left: max(16px, 2vw); max-width: 1080px; }
.cp-head-mail { font-size: 13px; color: var(--cp-text-sec); }
.cp-ablage { margin-top: 24px; border: 1.5px dashed rgba(0,0,0,0.22); padding: 28px 22px; display: grid; gap: 16px; transition: border-color .15s ease, background .15s ease; }
.cp-ablage.is-ziel { border-color: var(--cp-accent); background: var(--cp-accent-soft); }
.cp-ablage-zeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.cp-feld { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; font-size: 13px; font-weight: 600; }
.cp-feld input { padding: 10px 14px; border: 1px solid var(--cp-border); border-radius: 10px; font: 15px var(--cp-font); outline: none; background: #fff; }
.cp-feld input:focus { border-color: var(--cp-accent); box-shadow: 0 0 0 3px rgba(39,64,214,0.15); }
.cp-datei { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--cp-text-sec); }
.cp-datei button, .cp-knopf { font: 600 14px var(--cp-font); padding: 9px 18px; border-radius: 980px; border: none; cursor: pointer; background: var(--cp-bg); color: var(--cp-text); }
.cp-datei button:hover, .cp-knopf:hover { background: #E8E8ED; }
.cp-knopf.is-haupt { background: var(--cp-accent); color: #fff; }
.cp-knopf.is-haupt:hover { background: var(--cp-accent-hover); }
.cp-knopf:disabled { opacity: 0.5; cursor: not-allowed; }
.cp-meldung { font-size: 13.5px; color: var(--cp-red); min-height: 18px; }
.cp-meldung.is-gut { color: #1F8A3B; }

.cp-liste { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--cp-border); }
.cp-zeile { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--cp-border); }
.cp-zeile-bild { width: 132px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--cp-bg); display: block; border: 1px solid var(--cp-border); }
.cp-zeile-bild.is-leer { display: flex; align-items: center; justify-content: center; font-family: var(--cp-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--cp-text-sec); }
.cp-zeile-name { font-family: var(--cp-brand-font); font-size: 17px; font-weight: 700; }
.cp-zeile-meta { margin-top: 3px; font-family: var(--cp-mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--cp-text-sec); line-height: 1.5; }
.cp-zeile-zahl { margin-top: 6px; font-size: 14.5px; }
.cp-zeile-zahl b { font-family: var(--cp-brand-font); font-size: 18px; }
.cp-zeile-tun { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cp-chip { display: inline-block; padding: 3px 10px; border-radius: 980px; font-size: 11.5px; font-weight: 600; background: var(--cp-bg); color: var(--cp-text-sec); }
.cp-chip.is-analysiert { background: var(--cp-accent-soft); color: var(--cp-accent); }
.cp-chip.is-beantragt { background: rgba(255,159,10,0.16); color: #9A5B00; }
.cp-chip.is-veroeffentlicht { background: rgba(52,199,89,0.16); color: #1F7A38; }
.cp-haken { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.cp-haken input { width: 18px; height: 18px; accent-color: var(--cp-accent); cursor: pointer; }
.cp-haken:has(input:disabled) { color: var(--cp-text-sec); cursor: not-allowed; }
.cp-zeile-admin { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; color: var(--cp-text-sec); }
.cp-zeile-admin select { font: 13px var(--cp-font); padding: 5px 8px; border-radius: 8px; border: 1px solid var(--cp-border); background: #fff; max-width: 260px; }
.cp-bo-gruppe { display: inline-flex; align-items: center; gap: 10px; flex-wrap: nowrap; max-width: 100%; }
.cp-zeile-admin .cp-bo { font: 13px var(--cp-font); padding: 5px 8px; border-radius: 8px; border: 1px solid var(--cp-border); background: #fff; width: 230px; max-width: 100%; }
.cp-bo-wahl { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 100%; }
.cp-bo-label { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11.5px; color: var(--cp-text-sec); }
.cp-bo-wahl select { font: 13px var(--cp-font); padding: 5px 8px; border-radius: 8px; border: 1px solid var(--cp-border); background: #fff; max-width: 260px; }
.cp-bo-hinweis { font-size: 11.5px; color: var(--cp-text-sec); text-align: right; }
.cp-bo-hinweis a { color: var(--cp-accent); }
/* Knöpfe der Objektzeile: ein Zeichen, ein Wort. Statt einer Liste blauer Links
   (Entscheidung Tom, 22.09.2026). */
.cp-wege { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cp-tun {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px; border-radius: 980px;
    border: 1px solid var(--cp-border); background: var(--cp-surface);
    font: 500 12.5px var(--cp-font); color: var(--cp-text);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
}
.cp-tun:hover { border-color: var(--cp-accent); color: var(--cp-accent); background: var(--cp-accent-soft); }
.cp-tun:focus-visible { outline: 2px solid var(--cp-accent); outline-offset: 2px; }
.cp-tun[disabled] { opacity: .55; cursor: default; border-color: var(--cp-border); background: var(--cp-bg); color: var(--cp-text-sec); }
.cp-tun.is-haupt { border-color: var(--cp-accent); background: var(--cp-accent); color: #fff; }
.cp-tun.is-haupt:hover { background: var(--cp-accent); color: #fff; filter: brightness(1.08); }
.cp-tun.is-rot { color: var(--cp-red); }
.cp-tun.is-rot:hover { border-color: var(--cp-red); background: rgba(255,59,48,0.08); color: var(--cp-red); }
.cp-zeichen { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
    .cp-wege { justify-content: flex-start; }
    .cp-tun { padding: 6px 10px; font-size: 12px; }
}

.cp-linkknopf { background: none; border: none; padding: 0; font: 500 13px var(--cp-font); color: var(--cp-accent); cursor: pointer; text-decoration: none; }
.cp-linkknopf:hover { text-decoration: underline; }
.cp-linkknopf.is-rot { color: var(--cp-red); }
.cp-einladen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cp-einladen input { flex: 1 1 240px; padding: 10px 14px; border: 1px solid var(--cp-border); border-radius: 10px; font: 15px var(--cp-font); outline: none; }
.cp-einladen input:focus { border-color: var(--cp-accent); box-shadow: 0 0 0 3px rgba(39,64,214,0.15); }
.cp-eingeladen { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; }
.cp-eingeladen li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--cp-border); }
.cp-eingeladen small { color: var(--cp-text-sec); font-family: var(--cp-mono); font-size: 11.5px; }

@media (max-width: 760px) {
    .cp-zeile { grid-template-columns: 84px minmax(0, 1fr); }
    .cp-zeile-bild { width: 84px; }
    .cp-zeile-tun { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
    .cp-zeile-admin { grid-column: 1 / -1; }
    .cp-head-mail { display: none; }
    .cp-objekt-zahl { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cp-plan .raum, .cp-plan .schild, .cp-plan .platz, .cp-treffer > li, .cp-objekt-bild { transition: none; animation: none; }
    .cp-haus img, .cp-anim-pdf, .cp-anim-linie, .cp-anim-haken, .cp-anim-kasten { animation: none; }
    .cp-anim-linie, .cp-anim-haken { stroke-dashoffset: 0; }
    .cp-anim-kasten { fill: var(--cp-accent); }
}

/* Plaetze, die im gewaehlten Szenario nicht gestellt werden */
.cp-plan.is-moebliert .platz.is-weg { transform: scale(0); opacity: 0; transition-delay: 0s; }

/* Im Held steht die Ueberschrift neben einem grossen Bild, deshalb eine Stufe kleiner als bei secudraw. */
.cp-hero .cp-title { font-size: clamp(30px, 3.7vw, 50px); }
.cp-suche select { padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232740D6' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }

figure.cp-figure { margin: 0; }

/* ── Rechtsseiten: ein Blatt, lange Texte ───────────────── */
.cp-legal .cp-stage { padding-left: max(16px, 2vw); max-width: 920px; }
.cp-legal h1 { font-family: var(--cp-brand-font); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.cp-legal .cp-stand { margin: 8px 0 0; font-family: var(--cp-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--cp-text-sec); }
.cp-legal h2 { font-family: var(--cp-brand-font); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 34px 0 0; scroll-margin-top: 92px; }
.cp-legal p, .cp-legal li, .cp-legal address, .cp-legal td, .cp-legal th { font-size: 15px; line-height: 1.62; color: #3A3A3C; font-style: normal; }
.cp-legal p, .cp-legal address, .cp-legal ul, .cp-legal ol { margin: 10px 0 0; max-width: 70ch; }
.cp-legal ul, .cp-legal ol { padding-left: 22px; }
.cp-legal li + li { margin-top: 4px; }
.cp-legal .cp-sheet a { color: var(--cp-accent); }
.cp-legal strong { color: var(--cp-text); font-weight: 600; }
.cp-legal .cp-kurz { margin-top: 22px; padding: 16px 18px; background: var(--cp-bg); max-width: 70ch; }
.cp-legal .cp-inhalt { columns: 2; column-gap: 32px; margin-top: 22px; padding: 0; list-style-position: inside; max-width: none; }
.cp-legal .cp-inhalt li { font-size: 14px; break-inside: avoid; }
.cp-legal .cp-tabelle { overflow-x: auto; margin-top: 12px; }
.cp-legal table { border-collapse: collapse; width: 100%; min-width: 520px; }
.cp-legal th, .cp-legal td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--cp-border); font-size: 14px; }
.cp-legal th { font-weight: 600; color: var(--cp-text); }
.cp-legal code { font-family: var(--cp-mono); font-size: 13px; }
.cp-foot a + a::before, .cp-auth-foot a + a::before { content: "·"; margin: 0 8px; color: var(--cp-text-sec); display: inline-block; text-decoration: none; }
.cp-foot a, .cp-auth-foot a { text-decoration: none; }
.cp-foot a:hover, .cp-auth-foot a:hover { text-decoration: underline; }
.cp-auth-foot { margin-top: 40px; font-size: 12.5px; color: var(--cp-text-sec); text-align: center; }
.cp-auth-foot a { color: var(--cp-text-sec); }
.cp-zustimmung { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--cp-text-sec); font-weight: 400; cursor: pointer; }
.cp-zustimmung input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--cp-accent); flex: none; }
.cp-zustimmung a { color: var(--cp-accent); }
.cp-sperre { font-size: 12.5px; color: #9A5B00; max-width: 34ch; text-align: right; line-height: 1.4; }
@media (max-width: 760px) { .cp-legal .cp-inhalt { columns: 1; } .cp-sperre { text-align: left; max-width: none; } }

/* ── Analyse im Eigentuemerbereich ──────────────────────── */
.cp-analyse { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--cp-text-sec); }
.cp-analyse.is-fehler { color: var(--cp-red); }
.cp-analyse-balken { flex: 0 0 140px; height: 4px; border-radius: 4px; background: var(--cp-accent-soft); overflow: hidden; }
.cp-analyse-balken i { display: block; height: 100%; background: var(--cp-accent); border-radius: 4px; transition: width .6s ease; }
.cp-chip.is-fehler { background: rgba(255,59,48,0.12); color: #B3261E; }
.cp-analyse-hilfe { flex-basis: 100%; font-size: 12.5px; color: var(--cp-text-sec); }
.cp-kosten { font-family: var(--cp-mono); font-size: 11.5px; color: var(--cp-text-sec); }
