/* Renditerechner – CBlue Apartments
   Farben: Petrol (Marke), Bernstein (Akzent), Gischt (Fläche), Tinte (Text) */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --petrol: #2D6E73;
  --tiefsee: #1E4A4E;
  --bernstein: #D4AF37;
  --bernstein-dark: #9C7B14;
  --sand: #F6EFD8;
  --gischt: #F1F5F5;
  --linie: #D7E2E2;
  --tinte: #232931;
  --grau: #5B666B;
  --weiss: #FFFFFF;
  --gut: #2F8261;
  --mittel: #C8961A;
  --schlecht: #B5503B;
  --radius: 10px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--tinte); background: var(--gischt); }
img { max-width: 100%; height: auto; }
a { color: var(--petrol); }
a:hover { color: var(--tiefsee); }
h1, h2, h3 { color: var(--tiefsee); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--bernstein); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tiefsee); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.print-only { display: none; }
.print-logo { display: none; }

/* ---------- Kopf ---------- */
.site-head { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tiefsee); }
.brand img { border-radius: 8px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--grau); font-size: .8rem; }
.head-link { font-size: .9rem; text-decoration: none; color: var(--grau); }

/* ---------- Einstieg ---------- */
.hero { background: var(--tiefsee); color: #E7F0F0; position: relative; overflow: hidden; }
.hero::after { /* Horizontlinie in Bernstein */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--bernstein) 0 38%, transparent 38%);
}
.hero__in { padding: 48px 16px 52px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero__lead { font-size: 1.08rem; max-width: 62ch; color: #D2E3E3; }
.hero__facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-width: 900px; }
.hero__facts li { font-size: .92rem; color: #C3D8D8; border-left: 3px solid var(--bernstein); padding-left: 12px; }
.hero__facts strong { color: #fff; display: block; }

/* ---------- Formular ---------- */
.calc-form { margin: 32px 0 48px; }
.step { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 8px 24px 16px; margin: 0 0 20px; }
.step legend, .step summary { font-weight: 700; color: var(--tiefsee); font-size: 1.15rem; padding: 0 8px; margin-left: -8px; display: flex; align-items: center; gap: 10px; }
.step legend { float: left; width: 100%; padding: 16px 0 8px; margin: 0; }
.step legend + * { clear: both; }
.step__no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--petrol); color: #fff; font-size: .9rem; flex: none; }
.step--assumptions summary { cursor: pointer; list-style: none; padding: 16px 0; flex-wrap: wrap; }
.step--assumptions summary::-webkit-details-marker { display: none; }
.step--assumptions summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--petrol); }
.step--assumptions[open] summary::after { content: "–"; }
.summary-hint { font-weight: 500; font-size: .9rem; color: var(--grau); }
.assumptions__intro { color: var(--grau); font-size: .95rem; max-width: 70ch; }
.assumptions__h { margin: 20px 0 4px; font-size: 1rem; color: var(--petrol); }

.field { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--gischt); align-items: start; }
.field:first-of-type { border-top: 0; }
.field__label { font-weight: 500; padding-top: 10px; grid-column: 1; grid-row: 1; }
.field__control { min-width: 0; grid-column: 2; grid-row: 1 / span 2; }
.field__help { grid-column: 1; grid-row: 2; font-size: .85rem; color: var(--grau); margin: 0; max-width: 62ch; }
.field--address { grid-template-columns: 1fr; }
.field--address .field__control, .field--address .field__label { grid-column: 1; grid-row: auto; }
.field--address .field__help { grid-column: 1; grid-row: auto; }
.req { color: var(--schlecht); }
input[type="text"], select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tinte); background: var(--weiss);
  border: 1.5px solid #C5D3D3; border-radius: 8px; padding: 10px 12px; min-height: 46px;
}
input[type="text"]:focus, select:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px rgba(45,110,115,.18); }
.input-unit { display: flex; align-items: stretch; }
.input-unit input { border-radius: 8px 0 0 8px; text-align: right; }
.unit { display: flex; align-items: center; padding: 0 12px; background: var(--sand); color: var(--bernstein-dark); border: 1.5px solid #C5D3D3; border-left: 0; border-radius: 0 8px 8px 0; font-size: .85rem; font-weight: 600; white-space: nowrap; min-width: 96px; justify-content: center; }
.field.has-error input, .field.has-error select { border-color: var(--schlecht); background: #FFF7F5; }
.field__error { color: var(--schlecht); font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.field__error:empty { display: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--petrol); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.auto-reset { margin-top: 4px; }
.share-sum { font-size: .9rem; font-weight: 600; margin: 8px 0 0; text-align: right; }
.share-sum.bad { color: var(--schlecht); }
.share-sum.ok { color: var(--gut); }

.error-summary { background: #FFF3F0; border: 1.5px solid var(--schlecht); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; color: #7A2A1A; }
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.error-summary a { color: #7A2A1A; }

.form-actions { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 8px 0; }
.form-actions__note { margin: 0; color: var(--grau); font-size: .92rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; border: 2px solid var(--petrol); background: var(--petrol); color: #fff; border-radius: 8px; padding: 10px 18px; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--tiefsee); border-color: var(--tiefsee); color: #fff; }
.btn--ghost { background: transparent; color: var(--petrol); }
.btn--ghost:hover { background: var(--gischt); color: var(--tiefsee); }
.btn--gold { background: var(--bernstein); border-color: var(--bernstein); color: var(--tinte); }
.btn--gold:hover { background: #E2C25A; border-color: #E2C25A; color: var(--tinte); }
.btn--big { font-size: 1.05rem; padding: 14px 28px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.notice { border-radius: var(--radius); padding: 12px 16px; margin: 20px 0 0; font-size: .95rem; }
.notice--info { background: #E6F0F0; border-left: 4px solid var(--petrol); }
.notice--recalc { background: var(--sand); border-left: 4px solid var(--bernstein); }

/* ---------- Laden ---------- */
.loading { text-align: center; padding: 80px 16px; max-width: 640px; }
.wave { display: flex; justify-content: center; gap: 8px; height: 40px; align-items: flex-end; margin-bottom: 24px; }
.wave span { width: 12px; height: 12px; border-radius: 50%; background: var(--petrol); animation: bob 1.2s ease-in-out infinite; }
.wave span:nth-child(2) { animation-delay: .15s; background: var(--bernstein); }
.wave span:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@media (prefers-reduced-motion: reduce) { .wave span { animation: none; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(20, 40, 42, .55); display: grid; place-items: center; padding: 16px; z-index: 50; overflow-y: auto; }
.modal__box { background: var(--weiss); border-radius: 14px; max-width: 520px; width: 100%; padding: 28px; position: relative; text-align: left; }
.modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 1.8rem; color: var(--grau); cursor: pointer; line-height: 1; padding: 4px 8px; }
.modal__logo { border-radius: 10px; margin-bottom: 12px; }
.modal__addr { font-weight: 600; color: var(--tiefsee); margin-top: -.6em; }
.modal__price { font-size: 2rem; font-weight: 700; color: var(--tiefsee); margin: .2em 0 .6em; }
.modal__price small { font-size: .85rem; font-weight: 500; color: var(--grau); }
.consent-check { display: flex; gap: 12px; align-items: flex-start; background: var(--sand); border-radius: 8px; padding: 14px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.consent-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--petrol); }
.consent-check.has-error { outline: 2px solid var(--schlecht); }
.modal__legal { font-size: .82rem; color: var(--grau); margin: 12px 0 16px; }
.modal__secure { font-size: .8rem; color: var(--grau); text-align: center; margin: 10px 0 0; }

/* ---------- Bericht ---------- */
.report-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding: 32px 0 8px; }
.report-bar__kicker { margin: 0; color: var(--bernstein-dark); font-weight: 600; }
.report-bar__addr { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0; }
.report-bar__meta { color: var(--grau); font-size: .88rem; margin: 4px 0 0; }
.report-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--linie); margin: 24px 0 0; overflow-x: auto; }
.tabs button { font: inherit; font-weight: 600; background: none; border: 0; padding: 12px 18px; color: var(--grau); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--tiefsee); border-bottom-color: var(--bernstein); }
.tabpanel { padding: 24px 0 8px; }

.panel { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; break-inside: avoid; }
.panel > h2 { margin-bottom: .3em; }
.panel__intro { color: var(--grau); max-width: 75ch; font-size: .95rem; }

/* Pegel: Gesamtnote als Wasserstandsanzeige 1–5 */
.verdict { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; align-items: center; }
.pegel { position: relative; }
.pegel__score { font-size: 3.6rem; font-weight: 700; color: var(--tiefsee); line-height: 1; }
.pegel__score small { font-size: 1.1rem; color: var(--grau); font-weight: 500; }
.pegel__scale { position: relative; height: 14px; border-radius: 7px; margin: 18px 0 6px; background: linear-gradient(90deg, var(--schlecht) 0%, var(--mittel) 50%, var(--gut) 100%); }
.pegel__mark { position: absolute; top: -8px; width: 4px; height: 30px; background: var(--tinte); border-radius: 2px; transform: translateX(-2px); }
.pegel__ticks { display: flex; justify-content: space-between; font-size: .78rem; color: var(--grau); }
.verdict__word { font-size: 1.35rem; font-weight: 700; color: var(--tiefsee); margin-bottom: .35em; }
.verdict__text { margin: 0; }

.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.money div { padding: 16px 18px; background: var(--weiss); border-left: 1px solid var(--linie); }
.money div:first-child { border-left: 0; }
.money span { display: block; font-size: .85rem; color: var(--grau); }
.money strong { font-size: 1.45rem; color: var(--tiefsee); font-variant-numeric: tabular-nums; }
.money em { font-style: normal; display: block; font-size: .82rem; color: var(--grau); }
.pos { color: var(--gut) !important; }
.neg { color: var(--schlecht) !important; }

.ai h3 { margin-top: 1.2em; }
.ai__fazit { font-size: 1.05rem; max-width: 75ch; }
.ai__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ai ul { padding-left: 20px; margin: 0; }
.ai li { margin-bottom: .5em; }
.ai ol.recs { list-style: none; padding: 0; counter-reset: rec; }
.ai ol.recs li { counter-increment: rec; position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--gischt); margin: 0; }
.ai ol.recs li::before { content: counter(rec); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--bernstein-dark); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.ai__source { font-size: .78rem; color: var(--grau); margin-top: 12px; }

/* Tabellen */
.tbl-wrap { overflow-x: auto; margin: 12px 0 0; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--gischt); vertical-align: top; }
.tbl thead th { background: var(--petrol); color: #fff; font-weight: 600; text-align: left; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl tr.sub td { font-weight: 700; background: var(--gischt); }
.tbl tr.total td { font-weight: 700; background: var(--sand); }
.tbl tr.gap td { padding: 6px; border: 0; }
.tbl--kpi td:first-child { font-weight: 600; width: 26%; }
.tbl--kpi td.num { width: 14%; }
.tbl--kpi td.pts { width: 14%; white-space: nowrap; }
.tbl--kpi td.wt { width: 10%; text-align: right; color: var(--grau); }

/* Monatstabelle: feste, gleich breite Spalten */
table.tbl--months { table-layout: fixed; min-width: 1000px; font-size: .78rem; }
.tbl--months col.label { width: 178px; }
.tbl--months col.year { width: 86px; }
.tbl--months tbody tr:not(.group):not(.sub):not(.total) td:last-child { background: #FBF7EA; font-weight: 600; }
.tbl--months th, .tbl--months td { padding: 7px 6px; }
.tbl--months thead th { text-align: right; }
.tbl--months thead th:first-child { text-align: left; }
.tbl--months td:first-child { white-space: normal; }
.tbl--months .group td { background: var(--tiefsee); color: #fff; font-weight: 600; }

.dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--linie); display: inline-block; }
.dots i.on { background: var(--petrol); }
/* Bewertungs-Plaketten: kräftige Farben mit weißer Schrift (gut lesbar, auch gedruckt) */
.chip { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: .82rem; font-weight: 600; background: #1E4A4E; color: #fff; line-height: 1.35; }
.chip--5 { background: #2F7D5B; }
.chip--4 { background: #46793A; }
.chip--3 { background: #8A6400; }
.chip--2 { background: #A3501F; }
.chip--1 { background: #A8432F; }

.kpi-block { display: grid; grid-template-columns: 1fr 260px; gap: 8px 32px; }
.kpi-block__value { background: var(--gischt); border-radius: var(--radius); padding: 16px; align-self: start; }
.kpi-block__value strong { display: block; font-size: 1.8rem; color: var(--tiefsee); line-height: 1.1; }
.kpi-block__value span { font-size: .85rem; color: var(--grau); }
.kpi-block dl { margin: 0; }
.kpi-block dt { font-weight: 700; color: var(--petrol); margin-top: .8em; font-size: .92rem; }
.kpi-block dd { margin: .2em 0 0; }

.chart { width: 100%; height: auto; display: block; margin-top: 12px; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--grau); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--grau); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bars { margin-top: 12px; }
.bars__row { display: grid; grid-template-columns: 170px 1fr 150px; gap: 12px; align-items: center; font-size: .86rem; padding: 4px 0; }
.bars__track { background: var(--gischt); border-radius: 4px; height: 12px; overflow: hidden; }
.bars__fill { height: 100%; background: var(--petrol); border-radius: 4px; }
.bars__row .num { text-align: right; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.disclaimer { font-size: .8rem; color: var(--grau); margin: 8px 0 40px; max-width: 90ch; }

/* ---------- Eigentümer-Hinweis & Fuß ---------- */
.owner-cta { background: var(--sand); border-top: 4px solid var(--bernstein); }
.owner-cta__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); align-items: start; gap: 20px 48px; padding: 32px 16px; }
.owner-cta__btn { margin-top: 16px !important; }
.owner-cta__contact { font-style: normal; font-size: .95rem; line-height: 1.65; background: var(--weiss); border-radius: var(--radius); padding: 16px 20px; border: 1px solid #E6D9AE; }
.owner-cta__contact strong { color: var(--tiefsee); font-size: 1.05rem; }
.owner-cta__contact a { overflow-wrap: anywhere; }
.owner-cta h2 { margin-bottom: .3em; }
.owner-cta p { margin: 0; max-width: 62ch; }
.site-foot { background: var(--tiefsee); color: #C3D8D8; font-size: .85rem; }
.site-foot__in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 20px 16px; }
.site-foot p { margin: 0; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }

/* ---------- Cookie-Hinweis ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; }
.consent__box { background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--petrol); border-radius: 12px; box-shadow: 0 12px 40px rgba(20,40,42,.25); padding: 20px 22px; max-width: 760px; width: 100%; }
.consent h2 { font-size: 1.1rem; }
.consent p { font-size: .88rem; margin-bottom: .8em; }
.consent__opt { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; padding: 8px 0; border-top: 1px solid var(--gischt); }
.consent__opt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--petrol); }
.consent__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.consent__actions .btn { font-size: .88rem; padding: 8px 14px; min-height: 40px; }

/* ---------- Rechtsseiten ---------- */
.legal { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 32px clamp(16px, 4vw, 48px); margin: 32px auto 48px; max-width: 860px; }
.legal h1 { margin-bottom: .8em; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal h3 { font-size: 1rem; margin-top: 1.2em; }
.legal p, .legal li { max-width: 75ch; }
.legal .stand { color: var(--grau); font-size: .88rem; }
.legal .box { background: var(--gischt); border-radius: 8px; padding: 16px 20px; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .field { grid-template-columns: 1fr; }
  .field__label { padding-top: 0; }
  .field__label, .field__control, .field__help { grid-column: 1; grid-row: auto; }
  .field__help { order: 3; }
  .step { padding: 4px 16px 12px; }
  .verdict, .ai__cols, .kpi-block, .two-col { grid-template-columns: 1fr; }
  .money { grid-template-columns: 1fr; }
  .money div { border-left: 0; border-top: 1px solid var(--linie); }
  .money div:first-child { border-top: 0; }
  .bars__row { grid-template-columns: 1fr 130px; }
  .bars__row .bars__track { grid-column: 1 / -1; grid-row: 2; }
  .panel { padding: 18px 16px; }
  .hero__in { padding: 36px 16px 40px; }
  .owner-cta__in { grid-template-columns: 1fr; }
  .consent__actions .btn { flex: 1 1 auto; }
}

/* ---------- Druck / PDF ---------- */
@page { size: A4; margin: 14mm 12mm; }
@media print {
  body { background: #fff; font-size: 10.5pt; }
  .site-head { border: 0; }
  .head-link, .no-print, .tabs, .consent, .modal, #view-input, .skip, .site-foot nav { display: none !important; }
  .tabpanel[hidden] { display: block !important; }
  .tabpanel { padding-top: 0; }
  .tabpanel + .tabpanel { break-before: page; }
  .panel { border: 1px solid #ddd; break-inside: avoid; padding: 14px; }
  .panel--months { break-inside: auto; break-before: page; }
  .tbl-wrap { overflow: visible; }
  table.tbl--months { min-width: 0; font-size: 6.6pt; }
  .tbl--months col.label { width: 110px; }
  .tbl--months col.year { width: 62px; }
  .tbl--months th, .tbl--months td { padding: 3px 2px; }
  .tbl thead th, .tbl--months .group td, .pegel__scale, .chip, .dots i.on, .bars__fill, .tbl tr.total td, .tbl tr.sub td, .owner-cta, .step__no { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .owner-cta { break-inside: avoid; }
  .owner-cta .btn { display: none; }
  .owner-cta__in { grid-template-columns: 1.3fr 1fr; padding: 16px 0; }
  .owner-cta__contact { border-color: #ddd; }
  .owner-cta__contact a { overflow-wrap: normal; white-space: nowrap; }
  .owner-cta__in { grid-template-columns: 1fr 1.1fr; }
  .print-only { display: block; }
  a[href^="http"]::after { content: ""; }
  .site-foot { background: none; color: #555; border-top: 1px solid #ccc; }
}

/* Lange Links (z. B. persönlicher Auswertungslink) dürfen umbrechen */
.notice a, .legal a { overflow-wrap: anywhere; }
@media (max-width: 480px) { .head-link { display: none; } }

/* ---------- Kontaktwunsch ---------- */
.contact-opt { margin-top: 12px; border: 1px solid var(--linie); border-radius: 8px; padding: 12px 14px; }
.contact-opt__check { display: flex; gap: 12px; align-items: flex-start; font-size: .84rem; cursor: pointer; }
.contact-opt__check input, .lead-form .consent-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--petrol); }
.contact-opt__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.contact-opt__fields label, .lead-form label.lf { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 600; color: var(--tiefsee); }
.contact-opt__fields .field__error { grid-column: 1 / -1; }
.lead-panel { border-left: 4px solid var(--bernstein); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 12px; max-width: 760px; }
.lead-form .full { grid-column: 1 / -1; }
.lead-form textarea { width: 100%; font: inherit; font-size: 1rem; border: 1.5px solid #C5D3D3; border-radius: 8px; padding: 10px 12px; min-height: 90px; resize: vertical; }
.lead-form textarea:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px rgba(45,110,115,.18); }
.lead-form .consent-check { font-weight: 500; }
.lead-done { background: #E6F2EC; border-radius: 8px; padding: 14px 16px; color: #1E5C43; font-weight: 600; margin: 0; }
@media (max-width: 760px) { .contact-opt__fields, .lead-form { grid-template-columns: 1fr; } }
@media print { .lead-panel { display: none !important; } }

/* ---------- Marke & Werbung für CBlue ---------- */
.site-head__in { min-height: 80px; }
.brand strong { font-size: 1.15rem; }
.head-nav { display: flex; align-items: center; gap: 18px; }
.btn--small { min-height: 38px; padding: 7px 14px; font-size: .88rem; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px 48px; align-items: center; }
.hero__card { background: #fff; color: var(--tinte); border-radius: 14px; padding: 24px; border-top: 5px solid var(--bernstein); }
.hero__card img { border-radius: 14px; display: block; margin-bottom: 12px; }
.hero__card-h { font-weight: 700; color: var(--tiefsee); font-size: 1.05rem; margin-bottom: .4em; }
.hero__card p { font-size: .9rem; }
.hero__card-tel { margin: 10px 0 0; text-align: center; font-size: .85rem !important; }
.loading__promo { display: flex; gap: 14px; align-items: flex-start; text-align: left; background: var(--sand); border-radius: var(--radius); padding: 14px 16px; margin-top: 28px; }
.loading__promo img { border-radius: 10px; flex: none; }
.loading__promo p { margin: 0; font-size: .9rem; }

.promo { background: var(--tiefsee); color: #D8E7E7; border: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 28px; align-items: start; }
.promo img { border-radius: 16px; }
.promo h2 { color: #fff; }
.promo p { max-width: 70ch; }
.promo ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.promo li { padding-left: 22px; position: relative; font-size: .94rem; }
.promo li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--bernstein); }
.promo__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.promo .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.promo .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.promo a:not(.btn) { color: #fff; }


@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__card { max-width: 520px; }
  .promo { grid-template-columns: 1fr; }
  .promo img { width: 72px; height: 72px; }
  .promo ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand img { width: 44px; height: 44px; }
  .brand small { display: none; }
  .head-nav .head-link { display: none; }
}
@media print {
  @page {
    margin: 22mm 12mm 20mm;
    @top-center { content: "CBlue Apartments  |  Renditerechner für Ferienwohnungen"; font-family: Montserrat, sans-serif; font-size: 9pt; font-weight: 600; color: #1E4A4E; vertical-align: bottom; padding-bottom: 4mm; }
    @top-right { content: "Seite " counter(page) " von " counter(pages); font-family: Montserrat, sans-serif; font-size: 8pt; color: #5B666B; vertical-align: bottom; padding-bottom: 4mm; }
    @bottom-center { content: "Vermietung abgeben? CBlue Apartments übernimmt alles.  Julia Loock  |  +49 (0)152 52997337  |  info@cblue-apartments.de  |  www.cblueapartments.de/partner"; font-family: Montserrat, sans-serif; font-size: 7.5pt; color: #1E4A4E; vertical-align: top; padding-top: 3mm; }
  }
  .site-head { display: block !important; border-bottom: 2px solid #D4AF37; margin-bottom: 4mm; }
  .site-head .head-nav { display: none !important; }
  .hero__card, .loading__promo, .promo__actions { display: none !important; }
  .promo { -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
  .report-bar { padding-top: 0; }
  .print-logo { display: block !important; position: fixed; top: 0; right: 0; width: 10mm; height: 10mm; border-radius: 1.5mm; }
  body { padding-right: 13mm; }
  .tbl--months th, .tbl--months td { padding: 2.2px 2px; line-height: 1.25; }
}
.btn--small { white-space: nowrap; }
.score-line { display: block; margin-top: 6px; white-space: nowrap; }

/* ---------- Kontaktbereich im Bestellfenster ---------- */
.contact-opt__h { font-weight: 700; color: var(--tiefsee); margin: 0 0 8px !important; font-size: .92rem; }
.contact-opt__check + .contact-opt__check { margin-top: 10px; }
.contact-opt__note { grid-column: 1 / -1; font-size: .8rem; color: var(--grau); margin: 0; }
.consent-check--light { background: var(--gischt); font-weight: 500; }

/* ---------- Diagramm & Tabellen: Wischhinweis nur auf kleinen Bildschirmen ---------- */
.swipe-hint { display: none; font-size: .8rem; color: var(--grau); margin: 6px 0 0; }
.chart-wrap { width: 100%; }
.tbl-wrap--months { position: relative; }

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .wrap { padding: 0 14px; }
  .swipe-hint { display: block; }

  /* Formular */
  .calc-form { margin: 20px 0 32px; }
  .input-unit input { min-width: 0; }
  .unit { min-width: 0; padding: 0 10px; font-size: .78rem; }
  .form-actions .btn--big { width: 100%; }
  .form-actions__note { text-align: center; width: 100%; }
  .step legend, .step summary { font-size: 1.05rem; }
  .hero h1 { max-width: none; }
  .hero__lead { font-size: 1rem; }

  /* Bestellfenster als Vollbild von unten */
  .modal { padding: 0; align-items: end; }
  .modal__box { border-radius: 16px 16px 0 0; padding: 22px 18px 26px; max-height: 94vh; overflow-y: auto; }
  .modal__price { font-size: 1.7rem; }
  .consent-check { font-size: .84rem; }

  /* Bericht */
  .report-bar { padding-top: 20px; }
  .report-bar__actions { width: 100%; }
  .report-bar__actions .btn { flex: 1 1 140px; }
  .tabs { gap: 0; }
  .tabs button { flex: 1 1 0; padding: 12px 6px; font-size: .9rem; white-space: normal; line-height: 1.25; }
  .pegel__score { font-size: 3rem; }
  .verdict { gap: 18px; }
  .money strong { font-size: 1.3rem; }

  /* Kennzahlen-Tabelle als Karten */
  .tbl--kpi thead { display: none; }
  .tbl--kpi, .tbl--kpi tbody, .tbl--kpi tr, .tbl--kpi td { display: block; width: 100% !important; }
  .tbl--kpi tr { border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
  .tbl--kpi tr.total { background: var(--sand); }
  .tbl--kpi td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .tbl--kpi td.kpi-name { font-weight: 700; font-size: 1rem; color: var(--tiefsee); padding-bottom: 6px; text-align: left; }
  .tbl--kpi td[data-label]::before { content: attr(data-label); color: var(--grau); font-size: .82rem; text-align: left; font-weight: 500; }
  .tbl--kpi td.wt { color: var(--tinte); }

  /* Diagramm: lesbar, seitlich wischbar */
  .chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart-wrap .chart { min-width: 680px; }

  /* Monatstabelle: erste Spalte bleibt stehen */
  table.tbl--months { min-width: 980px; font-size: .78rem; }
  .tbl--months col.label { width: 128px; }
  .tbl--months td:first-child, .tbl--months th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 2px 0 0 var(--linie); }
  .tbl--months tr.sub td:first-child { background: var(--gischt); }
  .tbl--months tr.total td:first-child { background: var(--sand); }
  .tbl--months thead th:first-child, .tbl--months .group td:first-child { background: var(--petrol); }
  .tbl--months .group td { position: static; }
  .tbl--months .group td:first-child { background: var(--tiefsee); position: sticky; }

  /* Produktivität */
  .kpi-block__value { order: -1; }
  .kpi-block__value strong { font-size: 1.5rem; }
  .bars__row { font-size: .84rem; }

  /* Fuß */
  .site-foot nav { gap: 10px 16px; }
  .owner-cta__contact { font-size: .9rem; }
}
@media print { .swipe-hint { display: none !important; } .chart-wrap { overflow: visible; } }

/* ---------- Kopfbereich mobil: nichts darf über den Rand ragen ---------- */
.hero__in > * { min-width: 0; }
.hero__facts { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .site-head__in { min-height: 64px; gap: 10px; }
  .brand { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 1rem; line-height: 1.15; }
  .head-nav .btn--small { padding: 6px 12px; font-size: .82rem; min-height: 36px; }
  .hero__in { padding: 28px 14px 32px; gap: 22px; }
  .hero h1 { font-size: 1.65rem; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
  .hero__lead { font-size: .98rem; }
  .hero__facts { margin-top: 18px; gap: 12px; }
  .hero__facts li { font-size: .88rem; }
  /* Service-Karte kompakt: Logo neben der Überschrift */
  .hero__card { padding: 18px; display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; align-items: center; }
  .hero__card img { width: 56px; height: 56px; margin: 0; border-radius: 10px; grid-row: span 1; }
  .hero__card-h { margin: 0 !important; font-size: 1rem; }
  .hero__card > p:not(.hero__card-h), .hero__card .btn, .hero__card-tel { grid-column: 1 / -1; }
  .hero__card > p:not(.hero__card-h):not(.hero__card-tel) { margin: 8px 0 12px; font-size: .88rem; }
}

/* ===== Eingebettet auf cblueapartments.de ===== */
.is-embedded .site-head, .is-embedded .skip { display: none; }
.is-embedded .consent { position: static; margin: 12px 16px 0; }
.is-embedded .modal { place-items: start center; }
