/* Ökopunkte-Werkzeug – ruhig, viel Luft, Systemschrift; hell und dunkel folgen dem Gerät. */
:root {
  --grund: #f6f5f1; --flaeche: #ffffff; --tinte: #1b1c19; --leise: #6d6f67; --linie: #e4e2da; --linie-stark: #cfcdc3;
  --gruen: #2f6b3c; --gruen-hell: #e4efe2; --gruen-tinte: #1f4d2a; --warm: #a8621a; --warm-hell: #f7ecd9; --blau: #2c5f8a; --blau-hell: #e3edf5;
  --b-verkauft: #9aa197; --b-reserviert: #c98a2b; --b-angeboten: #e3c77c; --b-frei: #3f8a4f;
  --radius: 14px; --schatten: 0 1px 2px rgba(27, 28, 25, .05), 0 6px 24px rgba(27, 28, 25, .05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #151613; --flaeche: #1e201c; --tinte: #ecebe5; --leise: #9a9c92; --linie: #2c2e29; --linie-stark: #3d403a;
    --gruen: #6fb57f; --gruen-hell: #223326; --gruen-tinte: #a8dbb3; --warm: #e0a55a; --warm-hell: #3a2d18; --blau: #86b6de; --blau-hell: #1d2c3a;
    --b-verkauft: #5b6058; --b-reserviert: #c98a2b; --b-angeboten: #8f7a3c; --b-frei: #5fae70; --schatten: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 16px/1.5 -apple-system, system-ui, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--gruen); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .3em; font-weight: 700; }
h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--leise); font-weight: 600; margin: 1.8em 0 .6em; }
h3 { font-size: 1rem; margin: 1.2em 0 .3em; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--linie-stark); background: var(--flaeche); border-radius: 10px; padding: .55em .95em; min-height: 44px; }
button:hover { border-color: var(--leise); }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 2px; }
.haupt { background: var(--gruen); color: #fff; border-color: var(--gruen); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: .55em 1.1em; min-height: 44px; }
@media (prefers-color-scheme: dark) { .haupt { color: #10140f; } }
.haupt:hover { filter: brightness(1.07); text-decoration: none; }
.still { border-color: transparent; background: none; color: var(--leise); }
input, select, textarea { border: 1px solid var(--linie-stark); background: var(--flaeche); border-radius: 10px; padding: .55em .7em; min-height: 44px; width: 100%; }
textarea { resize: vertical; line-height: 1.45; }
.leise { color: var(--leise); } .klein { font-size: .82rem; }
.faellig { color: var(--warm); font-weight: 600; }
kbd { font: inherit; font-size: .8em; border: 1px solid var(--linie-stark); border-radius: 5px; padding: 0 .35em; background: var(--flaeche); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 10px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--grund) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--linie); }
.marke { font-weight: 700; color: var(--tinte); display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.blatt { width: 20px; height: 20px; border-radius: 2px 60% 2px 60%; background: var(--gruen); display: inline-block; transform: rotate(-8deg); }
.blatt.gross { width: 44px; height: 44px; }
.reiter { display: flex; gap: 2px; flex: 1; }
.reiter a { color: var(--leise); padding: .45em .8em; border-radius: 9px; font-weight: 500; white-space: nowrap; }
.reiter a:hover { text-decoration: none; color: var(--tinte); }
.reiter a.an { color: var(--tinte); background: var(--flaeche); box-shadow: var(--schatten); }
.zahl { display: inline-block; margin-left: 6px; background: var(--gruen); color: #fff; border-radius: 99px; font-size: .72rem; padding: 0 .5em; font-weight: 700; }
.suche { width: min(300px, 30vw); }
.suche input { min-height: 38px; border-radius: 99px; padding-left: 1em; }

/* Seiten */
.seite { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 90px; }
.seite.schmal { max-width: 760px; }
.datum { color: var(--leise); margin: 0 0 .2em; }
.ruhe { font-size: 1.15rem; color: var(--warm); margin-bottom: 1.6em; }
.ruhe.gut { color: var(--gruen); }
.raster { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.spalte-breit h2:first-child { margin-top: 0; }
.spalte-schmal { display: grid; gap: 16px; }
.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: .6em; }
.titelzeile h1 { margin: 0; }
.hinweis { background: var(--warm-hell); border-radius: 10px; padding: .7em 1em; margin: 1em 0 0; font-size: .93rem; }
.leer { color: var(--leise); padding: 1.4em 0; } .leer.gross { font-size: 1.2rem; }
.gedaempft { opacity: .72; }

/* Listen */
.liste { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.liste .leer { padding: 1.4em 1.2em; margin: 0; }
.zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) auto; gap: 14px; align-items: center; padding: 13px 18px; color: inherit; border-bottom: 1px solid var(--linie); min-height: 60px; }
.zeile:last-child { border-bottom: 0; }
a.zeile:hover { background: color-mix(in srgb, var(--gruen-hell) 45%, transparent); text-decoration: none; }
.z-haupt { display: flex; flex-direction: column; min-width: 0; }
.z-haupt strong, .z-neben, .z-mitte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-neben { color: var(--leise); font-size: .84rem; }
.z-mitte { font-size: .93rem; }
.z-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .82rem; white-space: nowrap; }
.liste.eng .zeile { padding: 8px 14px; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; } .liste.eng .z-mitte { display: none; }
.stand { display: inline-block; font-size: .74rem; font-weight: 600; border-radius: 99px; padding: .12em .7em; background: var(--linie); color: var(--leise); white-space: nowrap; }
.s-angebot { background: var(--warm-hell); color: var(--warm); } .s-gespraech { background: var(--blau-hell); color: var(--blau); } .s-gewonnen { background: var(--gruen-hell); color: var(--gruen-tinte); }
.marke-antwort { color: var(--gruen-tinte); background: var(--gruen-hell); border-radius: 6px; padding: 0 .45em; font-weight: 600; font-size: .82rem; }
.stufe { font-size: .74rem; border: 1px solid var(--linie-stark); border-radius: 99px; padding: .05em .6em; color: var(--leise); }
.filter { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 .8em; }
.filter a { padding: .35em .85em; border-radius: 99px; color: var(--leise); border: 1px solid var(--linie); font-size: .9rem; background: var(--flaeche); }
.filter a.an { background: var(--tinte); color: var(--grund); border-color: var(--tinte); }
.filter a:hover { text-decoration: none; }

/* Kacheln */
.kachel { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); padding: 18px 20px; display: block; color: inherit; }
.kachel h3 { margin: 0 0 .7em; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--leise); }
.leadkachel { display: flex; gap: 16px; align-items: center; background: var(--gruen); color: #fff; }
@media (prefers-color-scheme: dark) { .leadkachel { color: #10140f; } }
.leadkachel:hover { text-decoration: none; filter: brightness(1.06); }
.k-zahl { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.k-text { display: flex; flex-direction: column; } .k-text span { font-size: .85rem; opacity: .85; }
.punktzeile { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; margin-bottom: 14px; }
.punktzeile .nr { font-weight: 700; color: var(--leise); }
.punktzeile .frei { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.punktzeile .leise { grid-column: 1 / -1; font-size: .82rem; }
.punktzeile .balken { grid-column: 1 / -1; margin-top: 6px; }
.balken { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; background: var(--linie); }
.balken span { min-width: 3px; }
.b-verkauft { background: var(--b-verkauft); } .b-reserviert { background: var(--b-reserviert); } .b-angeboten { background: var(--b-angeboten); } .b-frei { background: var(--b-frei); }
.legende { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--leise); margin: 6px 0 10px; align-items: center; }
.legende span { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: -9px; }
.reicht { display: grid; grid-template-columns: auto 1fr auto auto; gap: 6px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linie); }
.reicht label { font-size: .88rem; color: var(--leise); } .reicht select { width: auto; } .reicht input, .reicht select, .reicht button { min-height: 40px; }
.antwort { margin: 10px 0 4px; padding: .6em .8em; border-radius: 10px; font-size: .93rem; }
.antwort.ja { background: var(--gruen-hell); } .antwort.nein { background: var(--warm-hell); }
.flaechenwahl { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.flaechenwahl li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid var(--linie); font-variant-numeric: tabular-nums; }
.flaechenwahl em { color: var(--warm); font-style: normal; font-size: .8rem; }
.staende { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.staende a { display: flex; flex-direction: column; color: var(--leise); font-size: .78rem; } .staende strong { font-size: 1.35rem; color: var(--tinte); font-variant-numeric: tabular-nums; }

/* Akte: ein Bildschirm, links lesen, rechts eingeben */
.akte { max-width: 1280px; margin: 0 auto; padding: 16px clamp(16px, 3vw, 36px) 40px; }
.a-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; }
.zurueck { color: var(--leise); grid-column: 1 / -1; font-size: .9rem; }
.a-titel { grid-column: 1 / 3; min-width: 0; } .a-titel h1 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); } .a-titel p { margin: .2em 0 0; color: var(--leise); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.a-anruf { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.haupt.gross { font-size: 1.1rem; padding: .7em 2em; min-height: 52px; }
.a-wer { font-size: .88rem; color: var(--leise); text-align: right; } .a-wer strong { color: var(--tinte); }
.tel { font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-schritt { margin: 12px 0; padding: .6em 1em; border-radius: 10px; background: var(--flaeche); border-left: 4px solid var(--linie-stark); font-size: .95rem; }
.a-schritt.faellig { background: var(--warm-hell); border-left-color: var(--warm); color: var(--tinte); font-weight: 400; }
.a-schritt.ohne { color: var(--leise); }
.a-zonen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.zone { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); padding: 18px 22px; }
.zone h2:first-child { margin-top: 0; }
.aufhaenger { font-size: 1.08rem; line-height: 1.4; border-left: 3px solid var(--gruen); padding-left: .8em; }
.fakten { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; margin: 0; font-size: .95rem; }
.fakten dt { color: var(--leise); } .fakten dd { margin: 0; }
.stichpunkte { margin: .6em 0 0; padding-left: 1.1em; font-size: .93rem; }
.a-mehr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); }
.a-mehr button { min-height: 38px; font-size: .88rem; padding: .3em .8em; border-radius: 99px; }
.eingeben { display: flex; flex-direction: column; gap: 8px; }
.eingeben label, .feldname { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--leise); font-weight: 600; display: block; }
.eingeben textarea { min-height: 130px; flex: 1; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.knoepfe button.an { background: var(--tinte); color: var(--grund); border-color: var(--tinte); }
.ergebnisse { display: grid; grid-template-columns: repeat(3, 1fr); }
#wann input[type=date] { width: auto; }
.a-speichern { display: flex; gap: 8px; align-items: center; margin-top: 4px; } .a-speichern .haupt { flex: 1; }
.letztes { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--linie); font-size: .88rem; color: var(--leise); }

/* Schublade */
.schublade { position: fixed; inset: 0; z-index: 20; background: rgba(20, 21, 18, .38); display: flex; justify-content: flex-end; }
.schublade[hidden] { display: none; }
.schublade-innen { width: min(620px, 100%); height: 100%; overflow-y: auto; background: var(--grund); padding: 20px clamp(18px, 3vw, 30px) 60px; box-shadow: -10px 0 40px rgba(0, 0, 0, .18); }
.schublade-innen h2 { font-size: 1.5rem; text-transform: none; letter-spacing: -.01em; color: var(--tinte); margin: .4em 0 .8em; font-weight: 700; }
.schliessen { float: right; min-height: 38px; }
.eintrag { background: var(--flaeche); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.eintrag header, .eintrag summary { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.eintrag summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; } .eintrag summary strong { grid-column: 1 / -1; }
.eintrag time { color: var(--leise); font-size: .82rem; white-space: nowrap; }
.eintrag p { margin: .3em 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.mailtext { font-size: .9rem; }
.quellen { padding-left: 1.1em; overflow-wrap: anywhere; }
.formular { display: grid; gap: 10px; margin-top: 14px; }
.formular label { font-size: .82rem; color: var(--leise); display: grid; gap: 3px; }
.summe { font-weight: 600; min-height: 1.5em; margin: 0; }

/* Leads */
.lead { background: var(--flaeche); border-radius: 18px; box-shadow: var(--schatten); padding: clamp(18px, 3vw, 30px); margin-top: 12px; }
.lead header { display: flex; justify-content: space-between; font-size: .85rem; }
.branche { font-weight: 600; color: var(--gruen-tinte); background: var(--gruen-hell); border-radius: 99px; padding: .1em .8em; }
.lead h2 { font-size: 1.6rem; text-transform: none; letter-spacing: -.015em; color: var(--tinte); margin: .5em 0 .15em; font-weight: 700; line-height: 1.2; }
.l-projekt { font-size: 1.05rem; color: var(--leise); }
.kennwerte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 1.1em 0; }
.kennwerte div { background: var(--grund); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.kennwerte dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--leise); }
.kennwerte dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; font-size: .95rem; }
.kennwerte .stark { background: var(--gruen-hell); } .kennwerte .stark dd { color: var(--gruen-tinte); font-size: 1.1rem; }
.lead blockquote { margin: .8em 0; padding: .1em 0 .1em 1em; border-left: 3px solid var(--linie-stark); color: var(--leise); font-size: .92rem; }
.warum { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.warum .feldname { width: 100%; }
.warum .plus, .warum .minus { font-size: .8rem; border-radius: 99px; padding: .1em .7em; }
.warum .plus { background: var(--gruen-hell); color: var(--gruen-tinte); } .warum .minus { background: var(--warm-hell); color: var(--warm); }
.entscheidung { margin-top: 1.2em; padding: 1em 0 4px; border-top: 1px solid var(--linie); position: sticky; bottom: 0; background: var(--flaeche); }
.entscheidung .haupt { flex: 1.6; } .entscheidung button { flex: 1; min-height: 52px; }

/* Flächen */
.punkte-gross { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 1.2em 0 .6em; }
.riesig { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 0 0 .35em; font-variant-numeric: tabular-nums; }
.riesig span { font-size: 1rem; font-weight: 500; color: var(--leise); letter-spacing: 0; }
.flaechen { display: grid; gap: 8px; margin-top: 1.4em; }
.flaeche { background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); }
.flaeche summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 18px; cursor: pointer; list-style: none; align-items: baseline; }
.flaeche summary::-webkit-details-marker, .eintrag summary::-webkit-details-marker { display: none; }
.flaeche summary .balken { grid-column: 1 / -1; }
.f-name { display: flex; flex-direction: column; min-width: 0; } .f-name .leise { font-size: .84rem; }
.f-frei { font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; } .f-frei strong { font-size: 1.15rem; }
.f-innen { padding: 0 18px 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--leise); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--linie-stark); font-weight: 600; }
td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Meldung */
.meldung { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; background: var(--tinte); color: var(--grund); border-radius: 99px; padding: .6em 1.2em; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); font-size: .93rem; }
.meldung[hidden] { display: none; }
.meldung button { min-height: 32px; padding: .1em .8em; background: none; color: inherit; border-color: color-mix(in srgb, var(--grund) 45%, transparent); border-radius: 99px; }

/* Anmelden */
.anmelden { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.anmeldekarte { width: min(360px, 100%); display: grid; gap: 8px; text-align: center; }
.anmeldekarte h1 { margin: .4em 0 0; } .anmeldekarte label { text-align: left; font-size: .82rem; color: var(--leise); margin-top: 1em; }
.anmeldekarte .blatt { margin: 0 auto; } .anmeldekarte .fehler { color: var(--warm); margin: 0; }

/* Laptop: die Anruf-Seite passt ohne Scrollen auf ein 15-Zoll-MacBook */
@media (min-width: 1000px) and (min-height: 700px) {
  .akte { height: calc(100dvh - 66px); display: flex; flex-direction: column; padding-bottom: 16px; }
  .a-zonen { flex: 1; min-height: 0; align-items: stretch; }
  .zone { overflow-y: auto; }
  .a-kopf { grid-template-columns: auto minmax(0, 1fr) auto; } .zurueck { grid-column: 1; } .a-titel { grid-column: 2; }
}
/* Handy */
@media (max-width: 860px) {
  .kopf { flex-wrap: wrap; gap: 8px 12px; padding-bottom: 8px; }
  .suche { order: 2; width: auto; flex: 1; min-width: 0; }
  .reiter { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; } .reiter::-webkit-scrollbar { display: none; }
  .reiter a { min-height: 40px; display: flex; align-items: center; }
  .raster, .a-zonen { grid-template-columns: minmax(0, 1fr); }
  .zeile { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 12px 14px; }
  .z-mitte { grid-column: 1 / -1; grid-row: 2; color: var(--leise); font-size: .86rem; }
  .a-kopf { grid-template-columns: minmax(0, 1fr); } .a-titel { grid-column: 1; } .a-anruf { align-items: stretch; } .a-wer { text-align: left; }
  .kennwerte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entscheidung { flex-direction: column; align-items: stretch; } .entscheidung button { flex: none; }
  .ergebnisse { grid-template-columns: repeat(2, 1fr); }
  .reicht { grid-template-columns: 1fr auto auto; } .reicht label { grid-column: 1 / -1; }
  .flaeche summary { grid-template-columns: minmax(0, 1fr); } .f-frei { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) { .zeile, button, .reiter a { transition: background-color .12s, border-color .12s; } }
