/* umlage.eu: Stil der Landingpage. Farben und Schrift wie die App (Redesign 11/2026).
   Richtung: die Abrechnung als Dokument. Papiergrund, feine Linien, Tabellen statt Karten,
   gleich breite Ziffern. Keine Verläufe, keine Schatten-Effekte, keine gesperrten Versalien,
   keine Animation. Geladen wird nur, was auf diesem Server liegt. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("schriften/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("schriften/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("schriften/ibm-plex-sans-600.woff2") format("woff2"); }

:root {
  --papier: #FBFBF8;
  --grund: #F4F4F0;
  --flaeche: #FFFFFF;
  --tinte: #141916;
  --text: #1A1F1C;
  --neben: #4F5752;
  --linie: #E2E3DD;
  --linie-stark: #C9CBC4;
  --mineral: #1E4B3D;
  --mineral-tief: #15372C;
  --salbei: #6FAE95;
  --minze: #E6EEEA;
  --kupfer: #C96A3D;
  --kupfer-text: #9A4B24;
  --kupfer-hell: #F6E6DC;
  --rand: 24px;
  --breite: 1160px;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--papier);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mineral); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--mineral-tief); }
:focus-visible { outline: 2px solid var(--mineral); outline-offset: 3px; border-radius: 2px; }
.mitte { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.sprungmarke { position: absolute; left: -9999px; top: 8px; background: var(--flaeche); padding: 8px 14px; border: 1px solid var(--linie-stark); border-radius: var(--radius); z-index: 20; }
.sprungmarke:focus { left: 16px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; background: var(--papier); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.marke { display: inline-flex; align-items: center; gap: 9px; color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.marke:hover { color: var(--tinte); }
.kopf nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.kopf nav a { color: var(--neben); text-decoration: none; }
.kopf nav a:hover { color: var(--tinte); }
.kopf-aktion { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.kopf-aktion > a:first-child { color: var(--neben); text-decoration: none; padding: 8px 6px; }
.kopf-aktion > a:first-child:hover { color: var(--tinte); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); border: 1px solid transparent; font-size: 16px; font-weight: 600; line-height: 1.25; text-decoration: none; text-align: center; }
.knopf-haupt { background: var(--mineral); color: #FFFFFF; }
.knopf-haupt:hover { background: var(--mineral-tief); color: #FFFFFF; }
.knopf-neben { background: var(--flaeche); color: var(--text); border-color: var(--linie-stark); }
.knopf-neben:hover { background: var(--grund); color: var(--tinte); }
.knopf-klein { min-height: 40px; padding: 8px 14px; font-size: 15px; }

/* Überschriften */
h1, h2, h3 { color: var(--tinte); font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -0.022em; }
h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.005em; }
.leit { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.5; color: var(--neben); }
.klein { font-size: 15px; line-height: 1.55; color: var(--neben); }

/* Einstieg */
.einstieg { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.einstieg h1 { max-width: 16em; }
.einstieg h1 .zeile { display: block; }
.einstieg .leit { max-width: 38em; margin-top: 24px; }
.einstieg-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.bildschirm { border: 1px solid var(--linie-stark); border-radius: 12px; overflow: hidden; background: var(--grund); }
.einstieg-bild { padding-bottom: clamp(24px, 4vw, 40px); }
.bildnotiz { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--neben); max-width: 46em; }

/* Abschnitte */
.abschnitt { padding-block: clamp(64px, 8.5vw, 112px); border-top: 1px solid var(--linie); }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.abschnitt-kopf .leit { margin-top: 18px; }
.abschnitt-kopf-breit { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.abschnitt-kopf-breit .leit { margin-top: 18px; }

/* Zeitleiste des Jahres */
.jahr { margin-top: 8px; }
.jahr-balken { display: flex; gap: 2px; height: 56px; }
.jahr-balken span { display: flex; align-items: center; padding-left: 12px; border-radius: 3px; font-size: 15px; font-weight: 500; overflow: hidden; }
.jahr-mueller { flex: 106 1 0; background: var(--mineral); color: #FFFFFF; }
.jahr-balken .jahr-leer { flex: 14 1 0; background: var(--kupfer); padding-left: 0; }
.jahr-schmidt { flex: 245 1 0; background: var(--salbei); color: var(--tinte); }
.jahr-achse { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; color: var(--neben); }
.jahr-tabelle { width: 100%; border-collapse: collapse; margin-top: 28px; }
.jahr-tabelle caption { text-align: left; font-size: 15px; color: var(--neben); padding-bottom: 12px; line-height: 1.5; }
.jahr-tabelle th, .jahr-tabelle td { padding: 13px 0; border-top: 1px solid var(--linie); text-align: left; vertical-align: top; font-weight: 400; }
.jahr-tabelle thead th { font-size: 14px; font-weight: 500; color: var(--neben); border-top: 0; padding-top: 0; }
.jahr-tabelle .zahl { text-align: right; white-space: nowrap; padding-left: 16px; }
.jahr-tabelle tbody th { font-weight: 500; color: var(--tinte); }
.jahr-tabelle tfoot th, .jahr-tabelle tfoot td { font-weight: 600; color: var(--tinte); border-top: 1px solid var(--tinte); }
.farbpunkt { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 9px; vertical-align: 0; }
.punkt-mueller { background: var(--mineral); }
.punkt-leer { background: var(--kupfer); }
.punkt-schmidt { background: var(--salbei); }
.zeile-zeitraum { display: block; font-size: 14px; font-weight: 400; color: var(--neben); }

/* Sachliste */
.sachliste { list-style: none; border-bottom: 1px solid var(--linie); }
.sachliste li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 28px; padding: 18px 0; border-top: 1px solid var(--linie); }
.sachliste p { color: var(--neben); font-size: 16px; line-height: 1.55; }

/* Rechenweg */
.rechnung { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: clamp(20px, 3vw, 32px); }
.rechnung h3 { font-size: 1.125rem; }
.rechnung .rechnung-sub { font-size: 15px; color: var(--neben); margin-top: 2px; }
.rechnung ol { list-style: none; margin-top: 18px; }
.rechnung li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--linie); align-items: baseline; }
.rechnung li span:first-child { color: var(--neben); font-size: 16px; }
.rechnung li span:last-child { text-align: right; white-space: nowrap; }
.rechnung li.ergebnis { border-top: 1px solid var(--tinte); }
.rechnung li.ergebnis span { color: var(--tinte); font-weight: 600; font-size: 1.125rem; }
.rechnung-formel { margin-top: 16px; padding: 12px 14px; background: var(--grund); border-radius: 6px; font-size: 15px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }

/* Verteilungstabelle */
#verteilung { margin-top: clamp(48px, 6vw, 80px); }
.tabelle-rahmen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; overflow-x: auto; }
.verteilung { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.verteilung th, .verteilung td { padding: 12px 16px; text-align: right; border-top: 1px solid var(--linie); font-weight: 400; white-space: nowrap; }
.verteilung thead th { border-top: 0; color: var(--neben); font-weight: 500; font-size: 14px; }
.verteilung th:first-child { text-align: left; white-space: normal; }
.verteilung tbody th { color: var(--tinte); font-weight: 500; }
.verteilung .gesamt-klein { display: none; font-weight: 400; font-size: 13.5px; color: var(--neben); }
.verteilung .vermieter { color: var(--kupfer-text); }
.verteilung tfoot th, .verteilung tfoot td { font-weight: 600; color: var(--tinte); border-top: 1px solid var(--tinte); }
.verteilung tfoot .vermieter { color: var(--kupfer-text); }
.tabellen-notiz { margin-top: 14px; }

/* Dokument */
.dokumente { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.dokumente a { display: block; border: 1px solid var(--linie-stark); border-radius: 4px; background: #FFFFFF; overflow: hidden; }
.dokumente a:hover { border-color: var(--tinte); }
.dokument-aktion { margin-top: 24px; }

/* Vergleich */
.vergleich { width: 100%; border-collapse: collapse; }
.vergleich th, .vergleich td { padding: 16px 20px 16px 0; text-align: left; border-top: 1px solid var(--linie); vertical-align: top; font-weight: 400; font-size: 16px; line-height: 1.5; }
.vergleich thead th { border-top: 0; padding-top: 0; font-weight: 500; font-size: 14px; color: var(--neben); }
.vergleich tbody th { font-weight: 500; color: var(--tinte); width: 22%; }
.vergleich td:nth-child(2) { color: var(--neben); width: 36%; }

/* Preise */
.preise { width: 100%; border-collapse: collapse; }
.preise th, .preise td { padding: 15px 16px; text-align: right; border-top: 1px solid var(--linie); font-weight: 400; font-size: 16px; }
.preise th:first-child { text-align: left; padding-left: 20px; }
.preise td:last-child, .preise th:last-child { padding-right: 20px; }
.preise thead th { border-top: 0; font-weight: 500; font-size: 14px; color: var(--neben); }
.preise tbody th { font-weight: 600; color: var(--tinte); }
.preise .preis { font-weight: 600; color: var(--tinte); font-size: 1.125rem; white-space: nowrap; }
.preis-notizen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; margin-top: 22px; list-style: none; }

/* Fragen */
.fragen { border-bottom: 1px solid var(--linie); }
.fragen details { border-top: 1px solid var(--linie); }
.fragen summary { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; cursor: pointer; font-weight: 500; color: var(--tinte); list-style: none; line-height: 1.4; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1.1; color: var(--neben); font-weight: 400; }
.fragen details[open] summary::after { content: "–"; }
.fragen details p { padding: 0 32px 20px 0; color: var(--neben); font-size: 16px; line-height: 1.6; }

/* Schluss */
.schluss { background: var(--mineral-tief); color: #E6EEEA; padding-block: clamp(56px, 8vw, 96px); }
.schluss h2 { color: #FFFFFF; max-width: 18em; }
.schluss p { margin-top: 16px; max-width: 36em; font-size: 1.125rem; line-height: 1.5; }
.schluss-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.knopf-hell { background: #FFFFFF; color: var(--mineral-tief); }
.knopf-hell:hover { background: #E6EEEA; color: var(--mineral-tief); }
.schluss a:not(.knopf) { color: #FFFFFF; }

/* Fuß */
.fuss { padding-block: 32px 40px; font-size: 15px; color: var(--neben); }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; align-items: center; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fuss a { color: var(--neben); }
.fuss a:hover { color: var(--tinte); }

/* Rechtsseite und Fehlerseite */
.textseite { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 96px); max-width: 44rem; }
.textseite h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.022em; margin-bottom: 28px; }
.textseite h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin-top: 28px; margin-bottom: 6px; }

/* Schmale Bildschirme */
@media (max-width: 980px) {
  .kopf nav { display: none; }
  .zweispaltig { grid-template-columns: minmax(0, 1fr); }
  .preis-notizen { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .kopf-innen { min-height: 60px; gap: 10px; }
  .marke { font-size: 18px; }
  .kopf-aktion { gap: 6px; font-size: 14.5px; }
  .kopf-aktion .knopf { padding: 8px 12px; font-size: 14.5px; }
  .einstieg-aktion .knopf { width: 100%; }
  .sachliste li { grid-template-columns: minmax(0, 1fr); }
  .jahr-balken { height: 44px; }
  /* Verteilung: nur die Wohnung mit dem Mieterwechsel, alle Beträge bleiben sichtbar. */
  .verteilung { font-size: 14.5px; }
  .verteilung th, .verteilung td { padding: 11px 8px; }
  .verteilung th:first-child { padding-left: 14px; }
  .verteilung th:last-child, .verteilung td:last-child { padding-right: 14px; }
  .verteilung .nur-breit { display: none; }
  .verteilung .gesamt-klein { display: block; }
  .tabellen-notiz-handy { display: block; }
  /* Vergleich als Blöcke statt drei enger Spalten */
  .vergleich thead { position: absolute; left: -9999px; }
  .vergleich, .vergleich tbody, .vergleich tr, .vergleich th, .vergleich td { display: block; width: auto !important; }
  .vergleich tr { padding: 14px 0; border-top: 1px solid var(--linie); }
  .vergleich th, .vergleich td { border: 0; padding: 2px 0; }
  .vergleich td::before { content: attr(data-spalte) ": "; font-weight: 500; color: var(--neben); }
  /* Preise: Spalten mit Grenzen unter den Namen */
  .preise thead { position: absolute; left: -9999px; }
  .preise, .preise tbody, .preise tr { display: block; }
  .preise tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 16px; border-top: 1px solid var(--linie); }
  .preise tr:first-child { border-top: 0; }
  .preise th, .preise td { display: block; border: 0; padding: 0 !important; text-align: left; font-size: 15px; }
  .preise tbody th { grid-column: 1; font-size: 16.5px; }
  .preise .preis { grid-column: 2; grid-row: 1; text-align: right; }
  .preise td:not(.preis) { grid-column: 1 / -1; color: var(--neben); }
  .preise td:not(.preis)::before { content: attr(data-spalte) ": "; }
  .fuss-innen { flex-direction: column; align-items: flex-start; }
}
.tabellen-notiz-handy { display: none; }
@media (max-width: 360px) {
  :root { --rand: 16px; }
  .verteilung { font-size: 13.5px; }
  .verteilung th, .verteilung td { padding: 10px 6px; }
  .verteilung th:first-child { padding-left: 10px; }
  .verteilung th:last-child, .verteilung td:last-child { padding-right: 10px; }
  .verteilung tbody th { overflow-wrap: anywhere; hyphens: auto; }
}

@media print {
  .kopf, .schluss { position: static; }
  .knopf { border: 1px solid #000; }
}
