/* ==========================================================================
   Verwaltungs-Check für Eigentümer (/verwaltungs-check/)
   Baut auf styles.css auf: Farben, Abstände, .btn, .field, .aside-card usw.
   ========================================================================== */

/* ---------- Seitenkopf ---------- */
.chk-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.chk-hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.chk-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.chk-hero .lead { margin: 24px 0 0; max-width: 620px; }
.chk-hero .btn-row { margin-top: 32px; }

.chk-teaser {
  position: relative; display: grid; gap: 4px; margin: 0; padding: 14px; list-style: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg);
  counter-reset: teaser;
}
.chk-teaser::before {
  content: ""; position: absolute; top: -14px; right: 28px; width: 28px; height: 28px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 14px 14px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 14px 14px / 14px 14px no-repeat;
  transform: rotate(17deg);
}
.chk-teaser li { display: flex; gap: 16px; align-items: flex-start; padding: 16px; counter-increment: teaser; }
.chk-teaser li + li { border-top: 1px solid var(--line); }
.chk-teaser__icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--sky-100); color: var(--blue); }
.chk-teaser__icon .icon { width: 24px; height: 24px; }
.chk-teaser__icon::after {
  content: counter(teaser); position: absolute; top: -7px; right: -7px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}
.chk-teaser strong { display: block; color: var(--ink); font-size: 1.06rem; font-weight: 600; line-height: 1.3; }
.chk-teaser span:not(.chk-teaser__icon) { display: block; margin-top: 4px; font-size: .95rem; line-height: 1.5; color: var(--text); }

@media (max-width: 960px) {
  .chk-hero__grid { grid-template-columns: 1fr; }
  .chk-teaser { max-width: 620px; }
}

/* ---------- Aufbau: Check und Seitenspalte ---------- */
.chk-section { padding-top: clamp(28px, 4vw, 56px); }
.chk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.chk-main { min-width: 0; }
.chk-aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 18px; min-width: 0; }
@media (max-width: 1060px) {
  .chk-layout { grid-template-columns: minmax(0, 1fr); }
  .chk-aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 700px) { .chk-aside { grid-template-columns: 1fr; } }

.chk-noscript { padding: 22px 24px; border: 1px solid var(--sky-200); border-radius: var(--radius-lg); background: var(--sky-50); }
.chk-noscript p:last-child { margin: 0; }

/* ---------- Karte ---------- */
.chk-card {
  position: relative; padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.chk-card[hidden], .chk-step[hidden], .chk-form[hidden], .chk-progress[hidden] { display: none !important; }

/* ---------- Fortschritt ---------- */
.chk-progress { margin-bottom: clamp(24px, 3.5vw, 36px); }
.chk-progress__text { margin: 0 0 12px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.chk-progress__bar { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: var(--sky-100); }
.chk-progress__bar span {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(.111);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: transform .5s var(--ease);
}
.chk-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chk-phases li { position: relative; padding-left: 16px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chk-phases li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: #fff;
}
.chk-phases li.is-done { color: var(--blue); }
.chk-phases li.is-done::before { border-color: var(--blue); background: var(--blue); }
.chk-phases li.is-current { color: var(--ink); }
.chk-phases li.is-current::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 3px rgba(32, 193, 242, .22); }
@media (max-width: 600px) {
  .chk-phases { display: none; }
}

/* ---------- Schritte ---------- */
.chk-form { display: block; }
fieldset.chk-step, .chk-sub { min-width: 0; margin: 0; padding: 0; border: 0; }
.chk-step { animation: chk-in .45s var(--ease) both; }
@keyframes chk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.chk-legend { float: left; width: 100%; padding: 0; margin: 0; }
.chk-legend + * { clear: both; }
.chk-kicker { display: block; margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.chk-q { font-size: clamp(1.55rem, 2.6vw, 2.15rem); letter-spacing: -.025em; line-height: 1.15; }
.chk-q:focus { outline: none; }
.chk-q:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; }
.chk-hint { margin: 12px 0 22px; padding-top: 0; font-size: .97rem; color: var(--muted); }

/* ---------- Auswahlkarten ---------- */
.chk-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chk-options--3 { grid-template-columns: repeat(3, 1fr); }
.chk-opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chk-opt input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chk-opt__box {
  display: flex; align-items: center; gap: 14px; height: 100%; min-height: 72px; padding: 14px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 16px; background: #fff;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.chk-opt:hover .chk-opt__box { border-color: var(--blue-400); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.chk-opt input:focus-visible + .chk-opt__box { outline: 3px solid var(--navy); outline-offset: 2px; }
.chk-opt input:checked + .chk-opt__box { border-color: var(--blue); background: var(--sky-50); box-shadow: inset 0 0 0 1px var(--blue); }
.chk-opt.has-error .chk-opt__box { border-color: #d0928c; }

.chk-opt__icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--sky-100); color: var(--blue); transition: background-color .2s, color .2s;
}
.chk-opt__icon .icon { width: 22px; height: 22px; }
.chk-opt__icon--num { font-size: .84rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.chk-opt input:checked + .chk-opt__box .chk-opt__icon { background: var(--blue); color: #fff; }

.chk-opt__text { display: block; min-width: 0; flex: 1; }
.chk-opt__title { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.chk-opt__desc { display: block; margin-top: 3px; font-size: .88rem; line-height: 1.4; color: var(--muted); }

.chk-opt__mark {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-left: auto;
  border: 1.5px solid var(--line-strong); border-radius: 50%; background: #fff; color: transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chk-opt--multi .chk-opt__mark { border-radius: 7px; }
.chk-opt__mark .icon { width: 15px; height: 15px; stroke-width: 3; }
.chk-opt input:checked + .chk-opt__box .chk-opt__mark { border-color: var(--blue); background: var(--blue); color: #fff; }

.chk-opt--compact .chk-opt__box { min-height: 60px; padding: 10px 14px; }
.chk-opt--compact .chk-opt__icon { width: 38px; height: 38px; border-radius: 10px; }
.chk-opt--compact .chk-opt__icon .icon { width: 20px; height: 20px; }

.chk-error { margin: 14px 0 0; font-size: .93rem; font-weight: 500; color: var(--danger); }
.chk-error:empty { display: none; }

@media (max-width: 760px) { .chk-options--3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .chk-options { grid-template-columns: 1fr; gap: 10px; }
  .chk-opt__box { min-height: 64px; padding: 12px 14px; gap: 12px; }
  .chk-opt--compact .chk-opt__box { min-height: 56px; }
}

/* ---------- Navigation ---------- */
.chk-nav { display: flex; align-items: center; gap: 12px; margin-top: clamp(26px, 4vw, 36px); padding-top: 24px; border-top: 1px solid var(--line); }
.chk-nav__next { margin-left: auto; }
.chk-icon-back { transform: rotate(180deg); }
.btn:hover .chk-icon-back { transform: rotate(180deg) translateX(3px); }
.chk-nav .btn[hidden] { display: none; }
@media (max-width: 600px) {
  .chk-nav { flex-wrap: wrap; }
  .chk-nav__next { flex: 1 1 100%; order: -1; }
  .chk-nav__back { flex: 1 1 100%; }
}

/* ---------- Einschätzung ---------- */
.chk-step--result > .chk-q { margin-bottom: 18px; }
.chk-result__summary { margin: 0 0 22px; font-size: clamp(1.04rem, 1.4vw, 1.14rem); line-height: 1.6; color: var(--ink); }
.chk-result__h { margin: 34px 0 14px; font-size: 1.2rem; }

.chk-fit { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--sky-200); background: var(--sky-50); }
.chk-fit h3 { margin: 2px 0 6px; font-size: 1.12rem; }
.chk-fit p { margin: 0; font-size: .98rem; }
.chk-fit__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; }
.chk-fit__icon .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.chk-fit--gut { border-color: #bfe3cd; background: #eef8f2; }
.chk-fit--gut .chk-fit__icon { background: var(--success); }
.chk-fit--klaeren .chk-fit__icon { background: var(--navy); }

.chk-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
.chk-topic { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.chk-topic__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--sky-100); color: var(--blue); }
.chk-topic__icon .icon { width: 20px; height: 20px; }
.chk-topic h4 { margin: 2px 0 6px; color: var(--ink); font-size: 1.02rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.chk-topic p { margin: 0; font-size: .94rem; line-height: 1.55; }
.chk-topic .chk-topic__service {
  display: inline-flex; margin-top: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--sky-100); color: var(--navy); font-size: .8rem; font-weight: 600; line-height: 1.5;
}
@media (max-width: 760px) { .chk-topics { grid-template-columns: 1fr; } }

.chk-notes { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.chk-notes li { display: flex; gap: 14px; align-items: flex-start; }
.chk-notes__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--sky-200); color: var(--blue); }
.chk-notes__icon .icon { width: 18px; height: 18px; }
.chk-notes strong { display: block; color: var(--ink); font-weight: 600; }
.chk-notes p { margin: 2px 0 0; font-size: .97rem; }

.chk-focus {
  position: relative; overflow: hidden; margin-top: 34px; padding: clamp(24px, 3.5vw, 34px);
  border-radius: var(--radius-lg); background: var(--navy-900); color: #c8d6e8;
}
.chk-focus::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 100% 0%, rgba(40, 116, 187, .45), transparent 70%), radial-gradient(360px 220px at 0% 100%, rgba(32, 193, 242, .12), transparent 70%);
}
.chk-focus > * { position: relative; }
.chk-focus .eyebrow { margin-bottom: 14px; }
.chk-focus__lead { margin: 0 0 18px; color: #fff; font-size: clamp(1.1rem, 1.6vw, 1.28rem); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }
.chk-focus__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: agenda; }
.chk-focus__list li { position: relative; padding-left: 40px; font-size: .97rem; line-height: 1.5; counter-increment: agenda; }
.chk-focus__list li::before {
  content: counter(agenda); position: absolute; left: 0; top: -1px; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px; background: rgba(32, 193, 242, .16); color: var(--cyan); font-size: .82rem; font-weight: 700;
}

.chk-profile { display: grid; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.chk-profile__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 6px 8px 6px 18px; }
.chk-profile__row + .chk-profile__row { border-top: 1px solid var(--line); }
.chk-profile dt { font-size: .86rem; font-weight: 600; color: var(--muted); }
.chk-profile dd { margin: 0; color: var(--ink); font-size: .97rem; line-height: 1.45; overflow-wrap: anywhere; }
.chk-profile__edit {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--blue); font-size: .92rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.chk-profile__edit:hover { background: var(--sky-50); color: var(--navy); }
@media (max-width: 600px) {
  .chk-profile__row { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 6px 8px 14px; }
  .chk-profile dt { grid-column: 1; }
  .chk-profile dd { grid-column: 1; }
  .chk-profile__edit { grid-column: 2; grid-row: 1 / span 2; }
}

.chk-disclaimer { margin: 22px 0 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }

/* ---------- Wunschtermin ---------- */
.chk-confirm {
  display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 26px; padding: 14px 16px;
  border-radius: 12px; background: var(--sky-50); border: 1px solid var(--sky-200); font-size: .96rem; line-height: 1.5;
}
.chk-confirm .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--blue); }
.chk-confirm strong { color: var(--ink); }
.chk-sub + .chk-sub { margin-top: 24px; }
.chk-sublegend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: 1.04rem; font-weight: 600; color: var(--ink); }
.chk-sublegend + * { clear: both; }
.chk-sublegend .req { color: var(--blue); }
.chk-date { max-width: 340px; margin-top: 24px; }
.chk-field-hint { font-size: .86rem; line-height: 1.45; color: var(--muted); }
.chk-date input[type="date"] { min-height: 52px; }

/* ---------- Kontaktdaten ---------- */
.chk-fields { margin-top: 6px; }
.chk-step .chk-hint:has(+ .chk-fields) { margin-bottom: 14px; }
.chk-details { border: 1px solid var(--line); border-radius: 12px; background: var(--sky-50); }
.chk-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px;
  font-size: .94rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; border-radius: 12px;
}
.chk-details summary::-webkit-details-marker { display: none; }
.chk-details summary .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.chk-details[open] summary .icon { transform: rotate(180deg); }
.chk-preview {
  margin: 0; padding: 4px 16px 16px; max-height: 320px; overflow: auto;
  font-family: var(--font); font-size: .86rem; line-height: 1.55; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere;
}
.chk-nav__next--send { min-width: 220px; }
@media (max-width: 600px) { .chk-nav__next--send { min-width: 0; } }

/* ---------- Erfolg ---------- */
.chk-success { padding: 8px 0 4px; animation: chk-in .45s var(--ease) both; }
.chk-success .form-success__icon { margin: 0 0 20px; }
.chk-success__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.chk-success__title:focus { outline: none; }
.chk-success__lead { margin: 12px 0 0; font-size: 1.1rem; color: var(--ink); }
.chk-next { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: weiter; }
.chk-next li { position: relative; padding: 0 0 20px 52px; counter-increment: weiter; }
.chk-next li::before {
  content: counter(weiter); position: absolute; left: 0; top: -2px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--sky-100); color: var(--blue); font-weight: 700; font-size: .92rem;
}
.chk-next li::after { content: ""; position: absolute; left: 16.5px; top: 36px; bottom: 4px; width: 1px; background: var(--sky-200); }
.chk-next li:last-child { padding-bottom: 0; }
.chk-next li:last-child::after { display: none; }
.chk-next strong { display: block; color: var(--ink); font-weight: 600; }
.chk-next span { display: block; font-size: .97rem; line-height: 1.55; }
.chk-success__contact { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .97rem; }
.chk-success__contact a { font-weight: 600; white-space: nowrap; }

/* ---------- Seitenspalte ---------- */
.chk-aside .aside-card { padding: 22px; }
.chk-aside .aside-card p { font-size: .95rem; }
.chk-aside .contact-list a { gap: 12px; padding: 14px; font-size: .94rem; }
.chk-aside .contact-list .icon { width: 40px; height: 40px; padding: 10px; }
.chk-facts__title { margin: 0 0 12px; font-size: 1.12rem; letter-spacing: -.01em; }
.chk-facts ul { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.chk-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; line-height: 1.5; }
.chk-facts li .icon { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--blue); color: #fff; stroke-width: 2.6; }
.chk-facts__more { margin: 0; }
.chk-facts__more + .chk-facts__more { margin-top: 2px; }
.chk-facts__more .link-arrow { min-height: 44px; font-size: .95rem; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 600px) {
  .chk-card { padding: 22px 18px; border-radius: 20px; }
  .chk-hint { margin-bottom: 18px; }
  .chk-fit { padding: 16px; gap: 12px; }
  .chk-fit__icon { width: 36px; height: 36px; }
  .chk-topic { padding: 16px; }
  .chk-focus { border-radius: 20px; }
  .chk-focus__list li { padding-left: 36px; }
  .chk-teaser { padding: 8px; }
  .chk-teaser li { padding: 14px 12px; gap: 14px; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .chk-step, .chk-success { animation: none; }
  .chk-progress__bar span { transition: none; }
  .chk-opt:hover .chk-opt__box { transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .chk-aside, .chk-nav, .chk-hero .btn-row { display: none !important; }
  .chk-layout { grid-template-columns: 1fr; }
  .chk-card { box-shadow: none; }
}

/* ---------- Adresssuche mit Gebäuderegister (gebaeude.js) ---------- */
.chk-adresse { margin: 0 0 30px; padding: 22px 22px 18px; border: 1px solid var(--sky-200); border-radius: var(--radius); background: var(--sky-50); }
.chk-adresse[hidden] { display: none !important; }
.chk-adresse__kopf { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.chk-adresse__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--sky-200); color: var(--blue); }
.chk-adresse__titel { margin: 0 0 4px; font-size: 1.12rem; letter-spacing: -.01em; }
.chk-adresse__optional { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.chk-adresse__text { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.chk-adresse__status:empty { display: none; }
.chk-adresse__status { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: #eef8f2; border: 1px solid #bfe3cd; color: var(--ink); font-size: .95rem; line-height: 1.5; }

/* Gebäudebox in der Einschätzung */
.chk-gebaeude { margin: 0 0 26px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.chk-gebaeude .eyebrow { margin-bottom: 12px; }
.chk-gebaeude__daten { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px 22px; margin: 0; }
.chk-gebaeude__daten div:first-child { grid-column: 1 / -1; }
.chk-gebaeude__daten div { min-width: 0; }
.chk-gebaeude__daten dt { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.chk-gebaeude__daten dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.chk-gebaeude__hinweis { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.55; }
.chk-gebaeude__quelle { margin: 12px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
