/* Öffentliche Seiten (apps.website). Eigenständig, ohne Tailwind: die Datei
   wird nur von templates/website/ geladen und nicht vom Portal. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.81419bf5abb5.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.8e986e86d57e.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.a1e2a2d7d4c0.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.ba4513495282.woff2") format("woff2"); }

:root {
  --schiefer: #1d2a2f;
  --schiefer-hell: #2a3a40;
  --gruen: #0d7a6c;
  --gruen-dunkel: #0a4d46;
  --beton: #e6eaea;
  --papier: #ffffff;
  --gelb: #ffd21f;
  --text: #1d2a2f;
  --text-leise: #52636a;
  --linie: #c9d1d2;
  --kopf: "Barlow Condensed", "Arial Narrow", sans-serif;
  --lauf: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rand: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font: 400 1.125rem/1.55 var(--lauf);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 2px; }
.dunkel :focus-visible { outline-color: var(--gelb); }

.breite { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--rand); }
.sprung { position: absolute; left: -999rem; }
.sprung:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--papier); padding: .5rem .75rem; }

h1, h2 { font-family: var(--kopf); font-weight: 600; line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font: 600 1.125rem/1.3 var(--lauf); }
.vorspann { max-width: 34rem; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--text-leise); }
.dunkel .vorspann { color: #b9c6c9; }

/* Schaltflächen */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .625rem 1.25rem;
  border: 2px solid var(--gruen); border-radius: 4px;
  background: var(--gruen); color: #fff;
  font: 600 1.0625rem/1.2 var(--lauf); text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.knopf:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
.knopf-ruhig { background: transparent; color: var(--text); border-color: var(--schiefer); }
.knopf-ruhig:hover { background: var(--schiefer); border-color: var(--schiefer); color: #fff; }
.knopf-klein { min-height: 2.5rem; padding: .375rem .875rem; font-size: 1rem; }
.knopf-gelb { background: var(--gelb); border-color: var(--gelb); color: var(--schiefer); }
.knopf-gelb:hover { background: #fff; border-color: #fff; }

/* Kopfzeile */
.kopfzeile { border-bottom: 1px solid var(--linie); background: var(--papier); }
.kopfzeile .breite { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.marke { font: 600 1.875rem/1 var(--kopf); letter-spacing: .01em; color: var(--gruen-dunkel); text-decoration: none; }
.kopfzeile nav { display: flex; align-items: center; gap: .5rem 1.5rem; }
.kopfzeile nav a:not(.knopf) { font-weight: 500; font-size: 1rem; text-decoration: none; }
.kopfzeile nav a:not(.knopf):hover { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 40rem) { .nur-breit { display: none; } }

/* Einstieg */
.einstieg { background: var(--beton); overflow: hidden; }
.einstieg .breite {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem);
}
.einstieg .vorspann { margin-top: 1.5rem; }
.einstieg .aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.einstieg .hinweis { margin-top: 1rem; font-size: .9375rem; color: var(--text-leise); }
@media (max-width: 56rem) { .einstieg .breite { grid-template-columns: 1fr; } }

/* Das Bild im Einstieg: derselbe Tagesbericht auf dem Telefon und als Blatt. */
.akte { position: relative; padding: 0 0 7.5rem 3.5rem; }
.blatt {
  background: var(--papier); color: #222; padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 1px 0 rgba(29, 42, 47, .08), 0 18px 40px -18px rgba(29, 42, 47, .45);
  font-size: .875rem; line-height: 1.4;
}
.blatt header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .625rem; border-bottom: 2px solid var(--gruen); }
.blatt header strong { font: 600 1.25rem/1.1 var(--lauf); }
.blatt header span { color: #666; white-space: nowrap; }
.blatt dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: .25rem .75rem; margin: .875rem 0 1rem; }
.blatt dt { color: #666; }
.blatt table { width: 100%; border-collapse: collapse; }
.blatt th, .blatt td { padding: .375rem .375rem; border-bottom: 1px solid #dcdcdc; text-align: left; vertical-align: top; }
.blatt th { font-weight: 600; color: #555; border-bottom-color: #999; }
.blatt .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.blatt tfoot td { border-bottom: 0; font-weight: 600; }
.marker { display: inline-block; padding: 0 .4rem; background: #d5efea; color: var(--gruen-dunkel); font-weight: 600; border-radius: 2px; }
.blatt .unterschrift { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.25rem; font-size: .6875rem; color: #777; }
.blatt .unterschrift div { border-top: 1px solid #999; padding-top: .25rem; }

.telefon {
  position: absolute; left: 0; bottom: 0; width: 13rem;
  background: var(--schiefer); border-radius: 1.75rem; padding: .5rem;
  box-shadow: 0 24px 40px -16px rgba(29, 42, 47, .6);
}
.telefon .schirm { background: #f4f6f6; border-radius: 1.3rem; padding: .875rem .75rem 1rem; font-size: .75rem; line-height: 1.35; }
.telefon .titel { font-weight: 600; font-size: .875rem; }
.telefon .unter { color: var(--text-leise); margin-bottom: .625rem; }
.telefon .feld { background: #fff; border: 1px solid #dde2e2; border-radius: .375rem; padding: .375rem .5rem; margin-top: .375rem; }
.telefon .feld small { display: block; color: var(--text-leise); font-size: .625rem; }
.zustand { position: relative; height: 1.5rem; margin-top: .625rem; font-weight: 600; font-size: .6875rem; }
.zustand span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.zustand .offline { background: var(--gelb); color: var(--schiefer); opacity: 0; }
.zustand .fertig { background: var(--gruen); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .zustand .offline { animation: erst-offline 2.4s ease both; }
  .zustand .fertig { animation: dann-fertig 2.4s ease both; }
  .blatt { animation: blatt-kommt .6s 1.5s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes erst-offline { 0%, 62% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes dann-fertig { 0%, 62% { opacity: 0; } 72%, 100% { opacity: 1; } }
@keyframes blatt-kommt { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

@media (max-width: 30rem) {
  .akte { padding: 0 0 9rem 0; }
  .telefon { width: 11.5rem; left: auto; right: .5rem; }
  .blatt .spalte-abschnitt { display: none; }
}

/* Zollstock: trennt den Einstieg vom Rest, kommt genau einmal vor. */
.zollstock {
  height: 1.375rem; background-color: var(--gelb);
  background-image:
    repeating-linear-gradient(90deg, var(--schiefer) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, var(--schiefer) 0 2px, transparent 2px 100px);
  background-size: 100% 35%, 100% 70%;
  background-repeat: no-repeat;
  background-position: left bottom, left bottom;
  border-block: 1px solid var(--schiefer);
}

/* Abschnitte */
.abschnitt { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.abschnitt > .breite > h2 + .vorspann { margin-top: 1.25rem; }
.grau { background: var(--beton); }
.dunkel { background: var(--schiefer); color: #fff; }

/* Leistungen als Verzeichnis: links der Name, rechts was es tut. */
.verzeichnis { margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 2px solid var(--schiefer); }
.verzeichnis > div { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: .5rem 2.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--linie); }
.verzeichnis dt { font: 600 1.75rem/1.1 var(--kopf); }
.verzeichnis dd { max-width: 40rem; color: var(--text-leise); }
.verzeichnis dd strong { color: var(--text); font-weight: 500; }
@media (max-width: 44rem) { .verzeichnis > div { grid-template-columns: 1fr; padding-block: 1.25rem; } }

/* Ablauf ohne Netz: eine echte Reihenfolge, deshalb nummeriert. */
.ablauf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; margin-top: clamp(2rem, 4vw, 3.5rem); counter-reset: schritt; }
.ablauf li { counter-increment: schritt; border-top: 2px solid var(--gelb); padding-top: 1rem; }
.ablauf li::before { content: counter(schritt); display: block; font: 600 2.75rem/1 var(--kopf); color: var(--gelb); margin-bottom: .75rem; }
.ablauf h3 { font-size: 1.25rem; }
.ablauf p { margin-top: .5rem; color: #b9c6c9; }
@media (max-width: 50rem) { .ablauf { grid-template-columns: 1fr; } }

/* Gewerke */
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.zweispaltig .vorspann { margin-top: 1.25rem; }
@media (max-width: 50rem) { .zweispaltig { grid-template-columns: 1fr; } }
.gewerke { columns: 2; column-gap: 2rem; font-weight: 500; }
.gewerke li { break-inside: avoid; padding-block: .5rem; border-bottom: 1px solid var(--linie); }
@media (max-width: 26rem) { .gewerke { columns: 1; } }

/* Daten */
.punkte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 6vw, 5rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.punkte p { margin-top: .375rem; color: var(--text-leise); max-width: 32rem; }
@media (max-width: 44rem) { .punkte { grid-template-columns: 1fr; } }

/* Stand und Anfrage */
.stand .breite { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: end; }
.stand .vorspann + .vorspann { margin-top: 1rem; }
.stand h2 + .vorspann { margin-top: 1.25rem; }
.stand .anfrage p { margin-top: .875rem; font-size: 1rem; color: #b9c6c9; }
.stand .anfrage a:not(.knopf) { color: #fff; }
@media (max-width: 50rem) { .stand .breite { grid-template-columns: 1fr; align-items: start; } }

/* Fußzeile */
.fusszeile { background: var(--schiefer); color: #b9c6c9; border-top: 1px solid var(--schiefer-hell); font-size: 1rem; }
.fusszeile .breite { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.75rem; }
.fusszeile ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.fusszeile a { color: #fff; text-decoration: none; }
.fusszeile a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Rechtstexte */
.rechtstext { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.rechtstext h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.rechtstext .stand-datum { margin-top: .75rem; color: var(--text-leise); }
.rechtstext h2 { font: 600 1.3125rem/1.3 var(--lauf); letter-spacing: 0; margin-top: 2.5rem; }
.rechtstext p, .rechtstext ul { margin-top: .75rem; }
.rechtstext ul { list-style: disc; padding-left: 1.25rem; }
.rechtstext li + li { margin-top: .375rem; }
.rechtstext a { color: var(--gruen-dunkel); text-underline-offset: .2em; }
