/* Immoseva GmbH. Richtung: Exposé (siehe richtung.md) */

@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/sserif-400.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/sserif-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/plexsans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/plexsans-600.woff2") format("woff2"); }

:root {
  --navy: #0A355E;
  --navy-deep: #072A49;
  --navy-glass: #061E36;
  --amber: #E3A230;
  --paper: #EEF1F4;
  --white: #FFFFFF;
  --ink: #1B2733;
  --muted: #465463;
  --muted-on-navy: #B9C7D6;
  --stone: #C9D1DA;
  --hair: #C9D1DA;
  --hair-on-navy: #3C6590;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1120px;
  --abstand-sektion: clamp(48px, 6vw, 80px);
  --abstand-fassade: clamp(28px, 4vw, 52px);
  --fenster-luecke: clamp(10px, 1.6vw, 22px);
  --einstieg-oben: clamp(36px, 4.5vw, 60px);
  --einstieg-unten: clamp(40px, 6vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--navy) var(--paper); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--text-groesse, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  caret-color: var(--navy);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--navy-glass); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.auf-dunkel :focus-visible, .fassade :focus-visible, .fuss :focus-visible { outline-color: var(--amber); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.15; letter-spacing: -0.005em; }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--hair); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--kopf-hoehe, 64px); }
.logo { display: block; line-height: 0; }
.logo img { height: 34px; width: auto; }
.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 20px); list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; line-height: 1.6; }
.nav a { white-space: nowrap; font-size: 0.9375rem; text-decoration: none; color: var(--ink); padding-block: 6px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.kopf-mail { font-size: 0.9375rem; line-height: 1.6; font-weight: 600; white-space: nowrap; }
.menue { position: relative; }
.menue summary { cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--navy); list-style: none; padding: 8px 16px; border: 1px solid var(--navy); border-radius: 4px; }
.menue summary::-webkit-details-marker { display: none; }
.menue ul { position: absolute; right: 0; top: 100%; width: 260px; margin: 0; padding: 8px 0; list-style: none; background: var(--white); border: 1px solid var(--hair); }
.menue a { display: block; padding: 12px 18px; text-decoration: none; color: var(--ink); }
.menue a:hover { background: var(--paper); }
.kopf-mail { display: none; }
@media (min-width: 520px) { .kopf-mail { display: inline; } }
@media (min-width: 1280px) {
  .nav { display: block; }
  .menue { display: none; }
}

/* Einstieg */

.kontaktschild { position: relative; background: var(--navy); border: 1px solid var(--amber); border-radius: 4px; padding: var(--kontakt-innen, 32px) 28px; color: var(--white); }
.kontaktschild::before, .kontaktschild::after { content: ""; position: absolute; top: 12px; width: 8px; height: 8px; border: 1px solid #8FA3B8; border-radius: 50%; }
.kontaktschild::before { left: 12px; }
.kontaktschild::after { right: 12px; }
.kontaktschild .frage { margin: 0 0 10px; font-size: 1rem; color: var(--muted-on-navy); }
.kontaktschild .mail { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 0.85rem + 1.15vw, 1.7rem); line-height: 1.2; color: var(--amber); text-decoration: none; white-space: nowrap; }
.kontaktschild .mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.kontaktschild .tel { margin: 18px 0 0; font-size: 1.125rem; color: var(--white); }
.kontaktschild .tel a { color: var(--white); }
.kontaktschild .hinweis { margin: 14px 0 0; font-size: 0.9375rem; color: var(--muted-on-navy); }


/* Sektionen */
.sektion { padding-block: var(--abstand-sektion); scroll-margin-top: 64px; }
.sektion--paper { background: var(--paper); }
.sektion--weiss { background: var(--white); }
.sektion--navy { background: var(--navy); color: var(--white); }
.sektion--navy h2, .sektion--navy h3 { color: var(--white); }
.sektion--navy a { color: var(--amber); }
.sektion--navy .gedaempft { color: var(--muted-on-navy); }
.sektion > .wrap > h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.zwei { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .zwei { grid-template-columns: 1fr 1fr; } .zwei--links { grid-template-columns: 5fr 7fr; } }
.zwei > article + article { border-top: 1px solid var(--hair); padding-top: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .zwei > article + article { border-top: 0; padding-top: 0; border-left: 1px solid var(--hair); padding-left: clamp(36px, 5vw, 64px); } }
.zwei h2, .zwei h3 { margin-bottom: 20px; }

/* Rubrik: Überschrift links, Inhalt rechts */
.rubrik { display: grid; gap: clamp(24px, 4vw, 40px); }
.rubrik h2 { margin: 0; }
@media (min-width: 960px) {
  .rubrik { grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 88px); }
  .rubrik-kopf { position: sticky; top: 96px; align-self: start; }
}

/* Tafeln */
.tafel { width: 100%; border-collapse: collapse; }
.tafel th, .tafel td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.tafel tr:first-child th, .tafel tr:first-child td { border-top: 1px solid var(--hair); }
.tafel th { width: 9.5rem; padding-right: 20px; font-weight: 600; color: var(--navy); }
.tafel caption { text-align: left; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--navy); padding-bottom: 14px; }
@media (max-width: 560px) { .tafel th, .tafel td { display: block; width: 100%; } .tafel th { padding: 14px 0 0; border-bottom: 0; } .tafel td { padding: 4px 0 14px; } }
.notiz { margin-top: 24px; }

/* Ablauf */
.partner { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hair-on-navy); max-width: 40ch; }

/* Liste Banken */
.massnahmen { list-style: none; margin: 20px 0; padding: 0; border-top: 1px solid var(--hair); }
.massnahmen li { padding: 12px 0; border-bottom: 1px solid var(--hair); font-weight: 600; color: var(--navy); }

/* Porträt */
.person { display: grid; gap: clamp(28px, 5vw, 64px); }
.portrait { margin: 0; max-width: var(--portrait-breite, 360px); }
.portrait img { width: 100%; border: 1px solid var(--hair); background: var(--stone); }
.portrait figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 820px) { .person { grid-template-columns: var(--portrait-breite, 360px) 1fr; align-items: start; } }

/* Fragen */
.fragen details { border-bottom: 1px solid var(--hair); }
.fragen details:first-child { border-top: 1px solid var(--hair); }
.fragen summary { position: relative; cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--navy); }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::before, .fragen summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--navy); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.fragen summary::after { transform: rotate(90deg); }
.fragen details[open] summary::after { transform: rotate(0deg); }
.fragen details p { padding: 0 44px 22px 0; max-width: 62ch; }


/* Kontakt (Klinkerband) */
.kontaktband { background: var(--paper); padding: 0 var(--gutter) clamp(48px, 7vw, 80px); }
.kontaktband::before { content: ""; display: block; height: clamp(32px, 4vw, 48px); margin: 0 calc(-1 * var(--gutter)) clamp(40px, 6vw, 64px); background-color: var(--navy); background-image: url("../img/klinker.svg"); background-size: 276px auto; }
.kontaktband .kontaktschild { max-width: 720px; margin-inline: auto; padding: 40px clamp(24px, 4vw, 48px); }
.kontaktband h2 { color: var(--white); margin-bottom: 18px; }
.kontaktband .kontaktschild p { color: var(--muted-on-navy); }

/* Fuß */
.fuss { background: var(--navy-deep); color: var(--muted-on-navy); padding: 48px 0 40px; font-size: 0.9375rem; }
.fuss .wrap { display: grid; gap: 28px; }
.fuss img { height: 34px; width: auto; }
.fuss a { color: var(--white); }
.fuss address { font-style: normal; line-height: 1.7; }
.fuss .links { display: flex; gap: 24px; }
@media (min-width: 820px) { .fuss .wrap { grid-template-columns: 1fr 1fr auto; align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Exposé ---------- */
.einband { height: clamp(32px, 4vw, 48px); background-color: var(--navy); background-image: url("../img/klinker.svg"); background-size: 276px auto; border-bottom: 1px solid var(--navy-deep); }

.titel { padding-block: var(--titel-oben, clamp(32px, 5vw, 64px)) clamp(32px, 5vw, 56px); background: var(--paper); }
.titel-raster { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
.titel h1 { max-width: 14ch; font-size: var(--h1-groesse, clamp(2.25rem, 1.3rem + 3.2vw, 3.6rem)); }
.titel .unter { margin-top: 24px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem); max-width: 54ch; }
.titel .kontaktschild { margin-top: 32px; max-width: 560px; }
@media (min-width: 960px) { .titel-raster { grid-template-columns: 7fr 5fr; } }

.steckbrief { position: relative; background: var(--white); border: 1px solid var(--hair); padding: var(--steckbrief-innen, 32px) 28px 12px; }
.steckbrief::after { content: ""; position: absolute; top: -1px; right: 24px; width: 28px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect width='28' height='28' rx='4' fill='%23E3A230'/%3E%3Cpath d='M14 2v24M2 14h24' stroke='%230A355E' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; }
.steckbrief h2 { font-size: 1.5rem; margin: 0 0 18px; max-width: 12ch; }
.steckbrief dl { margin: 0; }
.steckbrief .zeile { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--hair); }
.steckbrief dt { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.steckbrief dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.125rem; line-height: 1.35; color: var(--navy); }
.steckbrief dd small { display: block; margin-top: 4px; font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--muted); }

.blattfuss { display: flex; justify-content: space-between; gap: 16px; margin: var(--blattfuss-abstand, clamp(28px, 4vw, 44px)) 0 0; padding-top: 14px; border-top: 1px solid var(--hair); max-width: none; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sektion--navy .blattfuss { border-top-color: var(--hair-on-navy); color: var(--muted-on-navy); }
.titel .blattfuss { margin-top: clamp(32px, 5vw, 48px); }

mark { background: var(--amber); color: var(--navy-glass); padding: 0.05em 0.3em; margin: 0 -0.3em; }

/* Datenblatt: Ablauf */
.zeilen { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.zeilen li { display: grid; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.zeilen .zn { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: var(--navy); }
.zeilen h3 { font-size: 1.25rem; margin: 0; }
.zeilen p { margin: 0; max-width: 62ch; }
@media (min-width: 760px) { .zeilen li { grid-template-columns: 3rem 11rem 1fr; align-items: baseline; } }
.partner { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hair); max-width: 40ch; color: var(--muted); }

/* Eye-catcher: Logo-Haus im Klinkerband */
.einband--haus { display: grid; place-items: center; height: var(--band-hoehe, clamp(160px, 18vw, 230px)); }
.einband--haus svg { height: var(--haus-anteil, 78%); width: auto; display: block; }

/* Kontakt immer sichtbar auf dem Handy */
.kontaktleiste { display: none; }
@media (max-width: 820px) {
  .kontaktleiste { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--navy); border-top: 1px solid var(--amber); padding-bottom: env(safe-area-inset-bottom); }
  .kontaktleiste a { flex: 1; padding: 14px 8px; text-align: center; color: var(--white); font-weight: 600; font-size: 1rem; text-decoration: none; }
  .kontaktleiste a + a { border-left: 1px solid var(--hair-on-navy); }
  body { padding-bottom: 56px; }
}

/* Rechtsseiten */
.recht { max-width: 760px; }
.recht h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 32px; }
.recht h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.recht p { max-width: 68ch; }
