/* UNO Immobilien – Bewertungsseite */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben aus dem Logo von UNO Immobilien (Rot, Blau, Grau) */
  --paper: #F5F7F9;
  --paper-2: #EAF1F7;
  --white: #FFFFFF;
  --ink: #1C2836;
  --ink-2: #2D3B4B;
  --graphite: #5F666B;
  --rule: #D3DAE0;
  --rule-strong: #878C90;
  --red: #C2263E;
  --red-deep: #A01D32;
  --red-tint: #F8E1E5;
  --blue: #1F79BB;
  --blue-deep: #134A73;
  --on-dark: #F5F7F9;
  --on-dark-2: #C5D3DF;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  font-stretch: 100%; font-weight: 400; color: var(--ink); background: var(--paper);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 640; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 1.5rem + 3.4vw, 4.125rem); font-stretch: 116%; font-weight: 660; line-height: 1.03; letter-spacing: -.018em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.1vw, 2.75rem); font-stretch: 112%; line-height: 1.08; letter-spacing: -.012em; }
h3 { font-size: 1.25rem; font-stretch: 104%; line-height: 1.25; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 14px 24px; border: 0; border-radius: 4px; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 1.0625rem; font-stretch: 106%; font-weight: 650; line-height: 1.2;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16); }
.btn-primary:hover { background: var(--red-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-small { min-height: 42px; padding: 10px 16px; font-size: .9375rem; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 64px; width: auto; }
.site-header .btn-small { white-space: nowrap; }
section { scroll-margin-top: var(--header-h); }
@media (max-width: 440px) {
  :root { --header-h: 68px; }
  .brand img { height: 50px; }
  .site-header .btn-small { min-height: 40px; padding: 9px 12px; font-size: .875rem; font-stretch: 88%; }
}

/* ---------- Einstieg ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); } }
.hero h1 { max-width: 12.5ch; margin-bottom: 24px; }
.lead { font-size: clamp(1.125rem, 1.02rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin-bottom: 32px; }
.cta-note { margin: 14px 0 0; font-size: .9375rem; color: var(--graphite); }
.sheet { border: 1px solid var(--ink); padding: 7px; background: var(--paper); }
.plan {
  position: relative; margin: 0; border: 1px solid var(--ink); background-color: var(--white);
  background-image: linear-gradient(rgba(28, 40, 54, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 40, 54, .05) 1px, transparent 1px);
  background-size: 16px 16px; overflow: hidden;
}
.plan-svg { width: 100%; height: auto; }
.titleblock {
  position: absolute; right: 0; bottom: 0; width: min(300px, 52%); background: var(--white);
  border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); font-size: .875rem; line-height: 1.35;
}
.tb-title { margin: 0; padding: 9px 12px 8px; font-weight: 650; font-stretch: 100%; border-bottom: 1px solid var(--ink); }
.titleblock dl { margin: 0; display: grid; grid-template-columns: auto 1fr; font-stretch: 80%; }
.titleblock dt, .titleblock dd { margin: 0; padding: 6px 12px; border-bottom: 1px solid var(--rule); }
.titleblock dt { color: var(--graphite); border-right: 1px solid var(--rule); }
.titleblock dd { font-weight: 580; }
.titleblock dt:last-of-type, .titleblock dd:last-of-type { border-bottom: 0; }
@media (max-width: 600px) { .titleblock { position: static; width: 100%; border-left: 0; } }
/* Der Lageplan zeichnet sich beim Laden einmal auf. */
@media (prefers-reduced-motion: no-preference) {
  .plan .d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.55, 0, .25, 1) .15s forwards; }
  .plan .fade { opacity: 0; animation: fade .7s ease 1.05s forwards; }
  .plan .mine { opacity: 0; animation: fade .6s ease 1.55s forwards; }
  .titleblock { opacity: 0; transform: translateY(6px); animation: rise .6s ease 1.8s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Abschnitte ---------- */
.band { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--rule); }
.band-tint { background: var(--paper-2); }

/* Preis */
.problem-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .problem-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }
.problem-grid p { color: var(--ink-2); margin: 20px 0 0; max-width: 34em; }
.scale { margin: 0; padding-top: 40px; }
.scale-bar, .scale-notes { display: grid; grid-template-columns: 1fr 1.35fr 1fr; }
.scale-bar { position: relative; height: 72px; border: 1px solid var(--ink); }
.seg { display: flex; align-items: center; justify-content: center; padding: 6px; text-align: center; font-stretch: 78%; font-weight: 600; font-size: .9375rem; line-height: 1.2; }
.seg-out { background: repeating-linear-gradient(135deg, rgba(28, 40, 54, .13) 0 1.5px, transparent 1.5px 7px); color: var(--graphite); }
.seg-low { border-right: 1px solid var(--ink); }
.seg-high { border-left: 1px solid var(--ink); }
.seg-fair { background: var(--red-tint); color: var(--red); box-shadow: inset 0 0 0 2px var(--red); font-size: 1.0625rem; }
.scale-marker { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; color: var(--red); font-weight: 650; font-stretch: 90%; font-size: .9375rem; line-height: 1; }
.scale-marker::after { content: ""; position: absolute; left: 50%; top: calc(100% + 3px); width: 0; height: 0; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--red); }
.scale-notes p { margin: 12px 0 0; padding-inline: 8px; font-size: .9375rem; line-height: 1.35; text-align: center; color: var(--ink-2); }
.scale-notes p:nth-child(2) { color: var(--red); font-weight: 600; }

/* Ablauf */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 40px; }
.steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; align-content: start; }
.steps .survey { width: 64px; height: 64px; grid-row: span 2; }
.steps h3 { padding-top: 8px; }
.steps p { margin: 6px 0 0; color: var(--ink-2); max-width: 26em; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 31.5px; top: 70px; bottom: -34px; border-left: 1.5px dashed var(--rule-strong); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .steps li { grid-template-columns: 1fr; gap: 0; }
  .steps .survey { grid-row: auto; margin-bottom: 20px; }
  .steps h3 { padding-top: 0; }
  .steps li:not(:last-child)::before { left: 72px; right: -40px; top: 31.5px; bottom: auto; border-left: 0; border-top: 1.5px dashed var(--rule-strong); }
}

/* Vorteile */
.benefits { margin: 48px 0 0; border-top: 1px solid var(--ink); }
.benefits > div { display: grid; gap: 8px 48px; padding-block: 28px; border-bottom: 1px solid var(--rule); }
.benefits dt { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); font-stretch: 110%; font-weight: 640; line-height: 1.15; }
.benefits dd { margin: 0; color: var(--ink-2); max-width: 34em; }
@media (min-width: 860px) { .benefits > div { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: baseline; } }

/* Vertrauen */
.trust-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .trust-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; } }
.map { margin: 0; }
.map .frame { border: 1px solid var(--ink); background: var(--white); }
@media (max-width: 600px) {
  .map-svg .t-town { font-size: 21px; }
  .map-svg .t-city { font-size: 25px; }
  .map-svg .t-office { font-size: 23px; }
  .map-svg .t-sub { font-size: 17px; }
  .map-svg .t-river { font-size: 19px; }
}
.map figcaption { margin-top: 10px; font-size: .875rem; font-stretch: 84%; color: var(--graphite); }
.facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { position: relative; padding: 16px 0 16px 28px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.facts li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 11px; height: 11px; border: 1.5px solid var(--blue); }
.facts strong { color: var(--ink); font-weight: 640; }
blockquote { margin: 36px 0 0; padding: 0; }
blockquote p { margin: 0; font-size: clamp(1.3125rem, 1.15rem + .6vw, 1.625rem); font-stretch: 108%; font-weight: 560; line-height: 1.3; text-indent: -.42em; }
blockquote footer { margin-top: 12px; font-size: .9375rem; font-stretch: 84%; color: var(--graphite); }
.team { margin-top: 72px; }
.team h3 { margin-bottom: 24px; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
@media (min-width: 700px) { .team-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .team-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.team-list li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; align-content: start; font-size: .9375rem; line-height: 1.35; }
.initials { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); font-stretch: 118%; font-weight: 680; font-size: .8125rem; letter-spacing: .02em; }
.initials.lead-person { background: var(--blue); border-color: var(--blue); color: #fff; }
.team-list b { font-weight: 640; }
.team-list span:last-child { color: var(--graphite); font-stretch: 88%; }
@media (max-width: 520px) { .initials { display: none; } .team-list li { grid-template-columns: 1fr; } }

/* Fragen */
.faq { margin-top: 40px; max-width: 54rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(1.1875rem, 1.08rem + .4vw, 1.375rem); font-stretch: 106%; font-weight: 620; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 38em; }

/* ---------- Abschluss mit Formular ---------- */
.closing { background: var(--blue-deep); color: var(--on-dark); padding-block: clamp(64px, 8vw, 112px); }
.closing-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .closing-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }
.closing h2 { color: #fff; }
.closing-copy > p { margin: 20px 0 0; color: var(--on-dark-2); max-width: 28em; }
.direct { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(243, 245, 241, .18); color: var(--on-dark-2); font-size: 1rem; }
.direct p { margin: 0; }
.direct p + p { margin-top: 8px; color: var(--on-dark); }
.direct a { color: #fff; text-underline-offset: 3px; }
.direct a:focus-visible { outline-color: #fff; }
.form-card { background: var(--white); color: var(--ink); border-radius: 6px; padding: clamp(22px, 4vw, 36px); }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 620; font-size: 1rem; font-stretch: 100%; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 480px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chips label { position: relative; display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; text-align: center;
  border: 1.5px solid var(--rule-strong); border-radius: 4px; font-weight: 560; font-size: .9375rem; font-stretch: 92%;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chips input:hover + span { border-color: var(--ink); }
.chips input:checked + span { background: var(--red-tint); border-color: var(--red); color: var(--red); font-weight: 650; }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
input[type="text"] {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--rule-strong); border-radius: 4px;
  font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--white);
}
input[type="text"]::placeholder { color: #8A949C; }
input[type="text"]:hover { border-color: var(--ink); }
input[type="text"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 121, 187, .22); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.error { margin: 6px 0 0; color: var(--red); font-size: .9375rem; font-weight: 560; }
.error:empty { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 4px; background: var(--red-tint); color: var(--red-deep); font-size: .9375rem; font-weight: 560; }
.form-error[hidden] { display: none; }
.form-error a { color: inherit; font-weight: 650; }
.form-card .btn { width: 100%; margin-top: 6px; padding-inline: 16px; font-stretch: 98%; }
.form-card .btn:focus-visible { outline-color: var(--ink); }
.form-note { margin: 14px 0 0; font-size: .875rem; color: var(--graphite); }
.form-note a { text-underline-offset: 2px; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--blue-deep); color: var(--on-dark-2); font-size: .9375rem; line-height: 1.5; padding-block: 40px calc(48px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 24px; align-items: start; border-top: 1px solid rgba(243, 245, 241, .16); padding-top: 32px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: auto auto 1fr; gap: 56px; } }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline-color: #fff; }
.foot-logo { display: inline-block; justify-self: start; padding: 8px 12px; background: var(--white); border-radius: 4px; }
.foot-logo img { height: 52px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.plain-footer .foot-grid { border-top: 0; padding-top: 0; }

/* ---------- Unterseiten: Danke, Impressum, Datenschutz, 404 ---------- */
.page { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.page h1 { font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem); font-stretch: 104%; max-width: 18ch; margin-bottom: 16px; hyphens: auto; overflow-wrap: break-word; }
.page .intro { font-size: clamp(1.125rem, 1.02rem + .35vw, 1.3125rem); color: var(--ink-2); max-width: 34em; }
.page h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-stretch: 108%; line-height: 1.2; margin: 44px 0 12px; }
.page p, .page li { max-width: 42em; color: var(--ink-2); }
.page ul { padding-left: 1.2em; margin: 0 0 1em; }
.page li + li { margin-top: 6px; }
.page .stand { margin-top: 48px; font-size: .9375rem; color: var(--graphite); }
.facts-dl { display: grid; grid-template-columns: minmax(10rem, max-content) 1fr; margin: 28px 0 0; max-width: 52rem; border-top: 1px solid var(--ink); }
.facts-dl dt, .facts-dl dd { margin: 0; padding: 12px 20px 12px 0; border-bottom: 1px solid var(--rule); }
.facts-dl dt { color: var(--graphite); font-stretch: 90%; }
.facts-dl dd { color: var(--ink); font-weight: 520; }
@media (max-width: 560px) {
  .facts-dl { grid-template-columns: 1fr; }
  .facts-dl dt { border-bottom: 0; padding-bottom: 0; }
}
mark.todo { background: #FFE9A8; color: var(--ink); padding: 1px 6px; border-radius: 3px; font-weight: 650; }
.thanks .steps { margin-top: 40px; }
.thanks .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 48px; }
.thanks .actions p { margin: 0; color: var(--ink-2); }
.thanks .actions a:not(.btn) { font-weight: 620; text-underline-offset: 3px; }
