@font-face { font-family: "Inter"; src: url("/static/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --papier: #F4F2EE; --flaeche: #FFFFFF; --tinte: #17202A; --leise: #67717B; --linie: #E3DFD8;
  --akzent: #2F5BEA; --akzent-hell: #E8EEFF; --warm: #C2621F; --gut: #1F8A55; --grau: #8C949B; --rot: #B42318;
  --radius: 12px; --schatten: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -22px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 400 1rem/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size-adjust: from-font; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .9rem; }
h3 { font-size: 1.02rem; font-weight: 650; }
.leise { color: var(--leise); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
.rahmen { width: min(100% - 2rem, 78rem); margin-inline: auto; }

/* Marke */
.marke { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; letter-spacing: -.01em; font-size: 1.05rem; }
.marke-zeichen { width: 1.6rem; height: 1.6rem; border-radius: 7px; background: linear-gradient(135deg, var(--akzent), #7A4BEA);
  clip-path: polygon(50% 8%, 96% 52%, 96% 96%, 4% 96%, 4% 52%); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; padding: .55rem 1.05rem;
  border-radius: 9px; border: 1.5px solid var(--akzent); background: var(--akzent); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s; white-space: nowrap; }
.knopf:hover { background: #2549c4; }
.knopf:active { transform: translateY(1px); }
.knopf--leise { background: var(--flaeche); color: var(--tinte); border-color: var(--linie); }
.knopf--leise:hover { background: #f7f6f3; }
.knopf--voll { width: 100%; min-height: 3.1rem; }
.klein { min-height: 2.4rem; padding: .4rem .8rem; font-size: .92rem; }

/* Kopfleiste */
.leiste { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--papier) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie); }
.leiste-innen { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; }
.kopf { padding: 2rem 0 1.25rem; }
.block { margin-top: 2.25rem; }

/* Login */
.login-seite { background: radial-gradient(60rem 40rem at 20% 0%, #e7ecff 0%, transparent 60%), var(--papier); }
.login { min-height: 100svh; display: grid; place-items: center; padding: 1rem; }
.login-karte { width: min(100%, 25rem); background: var(--flaeche); border-radius: 18px; padding: 2.25rem 1.75rem 2rem; box-shadow: var(--schatten);
  display: grid; gap: .6rem; }
.login-karte h1 { font-size: 1.7rem; margin-top: 1.2rem; }
.login-form { display: grid; gap: .55rem; margin-top: 1rem; }
.login-form label { font-weight: 600; font-size: .92rem; }
.login-form input + label { margin-top: .5rem; }
input, textarea { font: inherit; font-size: 1rem; color: var(--tinte); width: 100%; padding: .75rem .9rem; border-radius: 9px;
  border: 1.5px solid #cfcac2; background: #fff; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--akzent-hell); border-color: var(--akzent); }
.fehler { color: var(--rot); font-size: .92rem; margin: .1rem 0 .3rem; }
.login-form .knopf { margin-top: .6rem; }

/* Zahlen */
.zahlen { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.zahl { background: var(--flaeche); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--schatten); display: grid; gap: .1rem; }
.zahl b { font-size: 1.9rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.zahl span { color: var(--leise); font-size: .9rem; }
.zahl--warm b { color: var(--warm); } .zahl--gut b { color: var(--gut); } .zahl--grau b { color: var(--grau); }

/* Heute zu tun */
.aufgaben { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.aufgabe { display: flex; align-items: center; gap: .85rem; background: var(--flaeche); border-radius: var(--radius); padding: .7rem .8rem .7rem 1rem;
  box-shadow: var(--schatten); border-left: 4px solid var(--linie); }
.aufgabe-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #f1efeb; flex: none; }
.aufgabe-text { display: grid; flex: 1; min-width: 0; text-decoration: none; line-height: 1.35; }
.aufgabe-text span { color: var(--leise); font-size: .92rem; }
.aufgabe--glocke { border-left-color: var(--akzent); } .aufgabe--glocke .aufgabe-icon { background: var(--akzent-hell); color: var(--akzent); }
.aufgabe--frist { border-left-color: var(--warm); } .aufgabe--frist .aufgabe-icon { background: #fbebdd; color: var(--warm); }
.aufgabe--interesse { border-left-color: var(--gut); } .aufgabe--interesse .aufgabe-icon { background: #e1f3e9; color: var(--gut); }
.aufgabe--warnung { border-left-color: var(--rot); } .aufgabe--warnung .aufgabe-icon { background: #fde8e6; color: var(--rot); }
.leer { background: var(--flaeche); border-radius: var(--radius); padding: 1.25rem; color: var(--leise); box-shadow: var(--schatten); }
.nur-gross { display: none; }
@media (min-width: 700px) { .nur-gross { display: inline; } }

/* Filter */
.filter { display: grid; gap: .8rem; margin-bottom: 1rem; }
.suche { position: relative; display: block; max-width: 28rem; }
.suche .ico { position: absolute; left: .85rem; top: 50%; translate: 0 -50%; color: var(--leise); }
.suche input { padding-left: 2.5rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.fchip { font: inherit; font-size: .9rem; font-weight: 600; padding: .45rem .85rem; border-radius: 99px; border: 1.5px solid var(--linie);
  background: var(--flaeche); cursor: pointer; color: var(--tinte); }
.fchip span { color: var(--leise); font-weight: 500; margin-left: .2rem; }
.fchip.aktiv { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.fchip.aktiv span { color: rgba(255,255,255,.7); }

/* Karten */
.karten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.karte { background: var(--flaeche); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column; }
.karte-bild { position: relative; display: block; aspect-ratio: 16 / 10; background: #ddd8cf; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.karte-bild .chip { position: absolute; left: .7rem; top: .7rem; }
.glocke { position: absolute; right: .7rem; top: .7rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--akzent); color: #fff; box-shadow: 0 0 0 4px rgba(47,91,234,.25); }
.karte-text { padding: .95rem 1rem 1.05rem; display: grid; gap: .3rem; }
.karte-text h3 a { text-decoration: none; }
.karte-text p { margin: 0; font-size: .9rem; }
.frist, .geoeffnet { display: flex; align-items: center; gap: .35rem; color: var(--leise); }
.frist--knapp { color: var(--warm); font-weight: 600; }
.geoeffnet { color: var(--akzent); }
.karte-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.sterne { color: #b7791f; font-weight: 600; white-space: nowrap; }

/* Status-Chips */
.chip { display: inline-block; padding: .22rem .62rem; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .01em;
  background: #eceae6; color: var(--tinte); }
.chip--vorschau { background: #fff; color: var(--tinte); box-shadow: 0 0 0 1px var(--linie); }
.chip--angesprochen { background: var(--akzent-hell); color: var(--akzent); }
.chip--interesse { background: #fbebdd; color: var(--warm); }
.chip--verkauft { background: #e1f3e9; color: var(--gut); }
.chip--abgelehnt, .chip--abgelaufen { background: #eceae6; color: var(--grau); }

/* Detail */
.detail-kopf { display: grid; gap: 1.25rem; padding-top: 1.75rem; align-items: center; }
.detail-bild { width: 100%; height: auto; max-width: 20rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: #ddd8cf; }
.detail-titel { display: grid; gap: .5rem; justify-items: start; }
@media (min-width: 760px) { .detail-kopf { grid-template-columns: 20rem 1fr; } }
.detail-raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.detail-raster .block { margin-top: 1.25rem; }
.kasten { background: var(--flaeche); border-radius: var(--radius); padding: 1.25rem 1.3rem; box-shadow: var(--schatten); }
.status-knoepfe { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .45rem; margin-top: .8rem; }
.status-knopf { width: 100%; font: inherit; font-weight: 600; font-size: .92rem; padding: .65rem .5rem; border-radius: 9px; cursor: pointer;
  border: 1.5px solid var(--linie); background: #faf9f7; color: var(--tinte); }
.status-knopf.aktiv { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.status-knopf--verkauft.aktiv { background: var(--gut); border-color: var(--gut); }
.status-knopf--interesse.aktiv { background: var(--warm); border-color: var(--warm); }
.frist-gross { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; margin: .2rem 0; }
.reihe { margin-top: .9rem; }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1rem; margin: 0; font-size: .95rem; }
.daten dt { color: var(--leise); }
.daten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.link-zeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
code { font-size: .85rem; background: #f3f1ed; padding: .2rem .4rem; border-radius: 6px; overflow-wrap: anywhere; }
@media (max-width: 520px) { .daten { grid-template-columns: 1fr; gap: .15rem; } .daten dd { margin-bottom: .6rem; } }
.notiz-form { display: grid; gap: .6rem; }
.notiz-form .knopf { justify-self: start; }
.hinweis { display: flex; gap: .6rem; align-items: center; padding: .85rem 1rem; border-radius: var(--radius); margin-top: 1.25rem; }
.hinweis--warnung { background: #fde8e6; color: var(--rot); }
.verlauf { list-style: none; margin: 0 0 3rem; padding: 0; background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); }
.verlauf li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; padding: .7rem 1.1rem; border-bottom: 1px solid #f0ede8; font-size: .95rem; }
.verlauf li:last-child { border-bottom: 0; }
.verlauf time { color: var(--leise); font-variant-numeric: tabular-nums; }
.verlauf-notiz span { font-weight: 550; }
.verlauf-geoeffnet span { color: var(--akzent); font-weight: 600; }
.verlauf-abgelehnt span, .verlauf-warnung span { color: var(--rot); }

/* Navigation */
.leiste-innen { gap: 1rem; }
.marke { text-decoration: none; }
.hauptnav { display: flex; gap: .25rem; margin-right: auto; margin-left: 1rem; }
.hauptnav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45rem .75rem; border-radius: 8px; color: var(--leise); }
.hauptnav a[aria-current="page"] { color: var(--tinte); background: var(--flaeche); box-shadow: 0 0 0 1px var(--linie); }
@media (max-width: 520px) { .marke { font-size: 0; gap: 0; } .hauptnav { margin-left: 0; } }

/* Hinweise */
.hinweis--info { background: var(--akzent-hell); color: #1f3c9c; }
.lead-banner { text-decoration: none; margin-top: 1.5rem; }
.lead-banner span { flex: 1; }

/* Lead-Suche */
select { font: inherit; font-size: 1rem; color: var(--tinte); width: 100%; padding: .7rem .9rem; border-radius: 9px;
  border: 1.5px solid #cfcac2; background: #fff; }
.suchform { display: grid; gap: .9rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }
.suchform .feld { display: grid; gap: .35rem; }
.suchform label { font-weight: 600; font-size: .9rem; }
.suchform .feld:nth-child(-n+2) { grid-column: span 2; }
@media (max-width: 420px) { .suchform .feld:nth-child(-n+2) { grid-column: auto; } }
.such-fuss { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between;
  padding-top: .9rem; border-top: 1px solid #f0ede8; }
.kosten { margin: 0; }
.knopf[disabled] { opacity: .55; cursor: progress; }
.suchen { list-style: none; margin: 0; padding: 0; background: var(--flaeche); border-radius: var(--radius); box-shadow: var(--schatten); }
.suchen li { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline; padding: .7rem 1.1rem; border-bottom: 1px solid #f0ede8; font-size: .95rem; }
.suchen li:last-child { border-bottom: 0; }
.suchen time { margin-left: auto; font-size: .85rem; }
.such-status { font-weight: 600; }
.such-status--laeuft { color: var(--akzent); } .such-status--fertig { color: var(--gut); } .such-status--fehler { color: var(--rot); }
.lead-liste { list-style: none; margin: 1rem 0 3rem; padding: 0; display: grid; gap: .5rem; }
.lead { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; justify-content: space-between; background: var(--flaeche);
  border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--schatten); }
.lead-text { display: grid; gap: .15rem; min-width: 0; flex: 1 1 18rem; font-size: .95rem; }
.lead-text b { font-size: 1.02rem; }
.lead-grund { color: var(--warm); font-size: .88rem; font-weight: 600; }
.lead-knoepfe { display: flex; gap: .4rem; flex-wrap: wrap; }
a.fchip { text-decoration: none; display: inline-block; }

/* Handy-Benachrichtigungen */
.push-kasten { margin-bottom: 3rem; }
.push-kasten h2 { display: flex; align-items: center; gap: .5rem; }
.push-anleitung { margin: .6rem 0 .4rem; padding-left: 1.3rem; display: grid; gap: .3rem; }

/* Hinweis unten (statt Browser-Popup) */
.toast { position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 50;
  background: var(--tinte); color: #fff; padding: .75rem 1.2rem; border-radius: 10px; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: no-preference) {
  .toast:not([hidden]) { animation: rein .25s ease-out; }
  @keyframes rein { from { opacity: 0; translate: -50% .6rem; } }
}
