/* AutoAufmass — weiß, hell, farbig. Die Farben sind die der Auswertung
   selbst: jede Wohnung im Bericht bekommt eine, die Seite nimmt sie wieder auf. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/static/schriften/figtree.woff2") format("woff2");
}

:root {
  --weiss:   #FFFFFF;
  --grund:   #FAFBFC;
  --feld:    #F3F5F8;
  --linie:   #E3E7EE;
  --tinte:   #1B2430;
  --tinte-weich: #4A5566;
  --grau:    #7B8595;

  --blau:    #2F7FD1;
  --blau-tint:   #E4F0FC;
  --lila:    #7C4DD6;
  --lila-tint:   #EFE7FB;
  --orange:  #E8842B;
  --orange-tint: #FDEEDF;
  --gruen:   #2FA65A;
  --gruen-tint:  #E3F6E9;
  --rot:     #D24C3E;
  --rot-tint:    #FBE7E4;

  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --schatten: 0 1px 2px rgba(27,36,48,.05), 0 8px 28px rgba(27,36,48,.06);
}

* { box-sizing: border-box; }
button { -webkit-appearance: none; appearance: none; font: inherit; }

html { background: var(--weiss); }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Ein schmaler Farbstreifen oben — das ganze Branding in vier Pixeln. */
.streifen {
  height: 4px;
  background: linear-gradient(90deg, var(--blau) 0 25%, var(--lila) 25% 50%,
                              var(--orange) 50% 75%, var(--gruen) 75%);
}

.kopf { max-width: 1080px; margin: 0 auto; padding: 22px 20px 0;
        display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marke { display: flex; align-items: baseline; gap: 10px; color: var(--tinte); }
.marke:hover { text-decoration: none; }
.marke b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.marke b i { font-style: normal; color: var(--blau); }
.marke small { color: var(--grau); font-size: 13px; }
.kopf nav a { color: var(--tinte-weich); font-size: 14px; margin-left: 16px; }

main { max-width: 1080px; margin: 0 auto; padding: 36px 20px 60px; }

h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 700; }
h1 .farbe { color: var(--blau); }
.unter { color: var(--tinte-weich); font-size: 17px; margin: 0 0 28px; max-width: 720px; }

h2 { font-size: 20px; margin: 44px 0 12px; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.leise { color: var(--grau); font-size: 14px; }

/* --- Held: Schieber links, Formular rechts ---------------------------- */
.held { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.held-links { min-width: 0; }
.schieber { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--linie); background: #fff;
            user-select: none; cursor: ew-resize; touch-action: pan-y; }
.schieber img { display: block; width: 100%; height: auto; pointer-events: none; }
.sb-nachher { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; }
.sb-nachher img { width: auto; height: 100%; max-width: none; }
.sb-griff { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--blau); transform: translateX(-1px); }
.sb-griff span { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; border-radius: 50%; background: var(--blau);
                 transform: translate(-50%, -50%); box-shadow: 0 2px 10px rgba(27,36,48,.25); }
.sb-griff span::before, .sb-griff span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 5px solid transparent; }
.sb-griff span::before { left: 6px; border-right-color: #fff; transform: translateY(-50%); }
.sb-griff span::after { right: 6px; border-left-color: #fff; transform: translateY(-50%); }
.sb-marke { position: absolute; bottom: 10px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--tinte-weich); }
.sb-links { left: 10px; } .sb-rechts { right: 10px; color: var(--blau); }
.sb-text { margin-top: 10px; font-size: 13.5px; }
@media (max-width: 860px) { .held { grid-template-columns: 1fr; } }

/* --- Formular ------------------------------------------------------- */
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
         box-shadow: var(--schatten); padding: 22px; }

.ablage {
  position: relative;
  border: 2px dashed #B9C3D1; border-radius: 14px;
  background: var(--grund);
  padding: 30px 20px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ablage:hover, .ablage.ueber { border-color: var(--blau); background: var(--blau-tint); }
.ablage.gewaehlt { border-style: solid; border-color: var(--gruen); background: var(--gruen-tint); }
.ablage input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ablage .symbol { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px;
                  background: var(--blau); display: grid; place-items: center; color: #fff; }
.ablage.gewaehlt .symbol { background: var(--gruen); }
.ablage strong { display: block; font-size: 17px; }
.ablage span { color: var(--grau); font-size: 14px; }

.feld { margin-top: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=email], textarea {
  width: 100%; font: inherit; color: var(--tinte);
  background: var(--feld); border: 1px solid transparent; border-radius: 10px;
  padding: 11px 13px; outline: none; transition: border-color .15s, background .15s;
}
input[type=email]:focus, textarea:focus { background: var(--weiss); border-color: var(--blau); }
textarea { resize: none; min-height: 88px; line-height: 1.5; }

.haken { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tinte-weich);
         margin-top: 16px; cursor: pointer; }
.haken input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blau); flex: none; }

.turnstile { margin-top: 14px; min-height: 0; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 18px; padding: 14px 20px;
  background: var(--blau); color: #fff; border: 0; border-radius: 12px;
  font-size: 17px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .05s;
}
.knopf:hover { background: #2669B0; }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { background: #9FB6D0; cursor: wait; }
.knopf.still { background: var(--feld); color: var(--tinte); width: auto; margin: 0; padding: 10px 16px; font-size: 15px; }
.knopf.still:hover { background: var(--linie); }

.fehler { background: var(--rot-tint); color: var(--rot); border-radius: 10px; padding: 12px 14px;
          font-size: 15px; margin-bottom: 16px; }
.hinweis { background: var(--blau-tint); color: #1E4E85; border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.hinweis.gruen { background: var(--gruen-tint); color: #1F6B3B; }
.hinweis.orange { background: var(--orange-tint); color: #8A4A12; }

/* --- Schritte und Nutzen ------------------------------------------- */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.schritte li { background: var(--grund); border-radius: 14px; padding: 16px; font-size: 14.5px; color: var(--tinte-weich); }
.schritte b { display: block; color: var(--tinte); font-size: 15.5px; margin-bottom: 4px; }
.schritte .nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
                color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.nr.blau { background: var(--blau); } .nr.lila { background: var(--lila); }
.nr.orange { background: var(--orange); } .nr.gruen { background: var(--gruen); }

.liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.liste li { display: flex; gap: 10px; align-items: flex-start; }
.liste li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 9px; background: var(--blau); }
.liste li:nth-child(2)::before { background: var(--lila); }
.liste li:nth-child(3)::before { background: var(--orange); }
.liste li:nth-child(4)::before { background: var(--gruen); }
.liste li:nth-child(5)::before { background: var(--blau); }

.beispiel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.beispiel figure { margin: 0; }
.beispiel img { width: 100%; border-radius: 12px; border: 1px solid var(--linie); display: block; }
.beispiel-einzeln { margin: 0; }
.beispiel-einzeln img { width: 100%; border-radius: 12px; border: 1px solid var(--linie); display: block; }
.beispiel-einzeln figcaption { font-size: 13.5px; color: var(--grau); margin-top: 8px; }
.beispiel figcaption { font-size: 13px; color: var(--grau); margin-top: 6px; text-align: center; }

/* --- Ergebnis ------------------------------------------------------- */
.status { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px;
          background: var(--grund); border: 1px solid var(--linie); margin: 20px 0; }
.status .punkt { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.punkt.laeuft { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); animation: puls 1.6s infinite; }
.punkt.fertig { background: var(--gruen); box-shadow: 0 0 0 4px var(--gruen-tint); }
@keyframes puls { 50% { box-shadow: 0 0 0 8px var(--orange-tint); } }

/* --- Rechtstexte ---------------------------------------------------- */
.text h1 { font-size: 26px; }
.text h2 { font-size: 17px; margin-top: 28px; }
.text h3 { font-size: 15.5px; margin: 18px 0 6px; }
.text p, .text li { font-size: 15px; color: var(--tinte-weich); }
.text ol, .text ul { padding-left: 22px; }
.text table { border-collapse: collapse; width: 100%; font-size: 14px; }
.text th, .text td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.text th { font-weight: 600; color: var(--tinte); }
.entwurf { background: var(--orange-tint); color: #8A4A12; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 20px; }

footer { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--linie);
         font-size: 13.5px; color: var(--grau); display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--grau); }

@media (max-width: 640px) {
  h1 { font-size: 27px; }
  .schritte { grid-template-columns: 1fr; }
  .beispiel { grid-template-columns: 1fr; }
  .kopf nav a { margin-left: 12px; }
  .karte { padding: 16px; }
}
