/* ObjektPlus CRM (17.11.2026). Marke wie die Website: Nacht, Indigo, Glasblau, Eis; Sofia Sans schmal. Ein Arbeitswerkzeug:
   ruhig, dicht, gut zu überfliegen. Immer hell (color-scheme: light only), eine Navy-Fläche (Leiste) mit Verlauf. */
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 400 900; font-display: swap; src: url("schrift/sofia-xcond-latin.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 300 700; font-display: swap; src: url("schrift/sofia-cond-latin.woff2") format("woff2"); }
:root {
  color-scheme: light only;
  --ink: #1B1F4B; --nacht: #14173A; --nacht2: #1E2358; --tief: #0C0E2A; --glas: #8C95EA; --glas-tief: #6F79DC; --glas-text: #4A52B8; --hauch: #E3E6FB;
  --eis: #F7F8FC; --eis2: #ECEEF7; --linie: #E2E4F0; --linie2: #CFD3E8; --grau: #5D628A; --weiss: #fff;
  --rot: #B3261E; --rot-hauch: #FBE9E7; --gruen: #1F6B45; --gruen-hauch: #E3F3EA; --gelb-hauch: #FFF3D6; --gelb-text: #7A5300;
  --schild: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif; --text: "Sofia Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --r-klein: 10px; --r: 16px; --r-gross: 22px; --schatten: 0 1px 2px rgba(27, 31, 75, .06), 0 8px 24px -12px rgba(27, 31, 75, .18);
  --aus: cubic-bezier(.23, 1, .32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; font: 400 18px/1.45 var(--text); color: var(--ink); background: linear-gradient(178deg, #FCFCFF 0%, var(--eis) 40%, var(--eis2) 100%) fixed; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--schild); font-weight: 800; text-transform: uppercase; line-height: 1; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); } h2 { font-size: 1.6rem; } h3 { font-size: 1.25rem; color: var(--glas-text); letter-spacing: .03em; }
p { margin: 0; } a { color: var(--glas-text); text-underline-offset: .16em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--glas-text); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lade { padding: 48px 24px; text-align: center; color: var(--grau); }
svg.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Knöpfe */
.k { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: .35em 1.1em .3em; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 800 1.15rem/1 var(--schild); text-transform: uppercase; letter-spacing: .03em; background: var(--glas); color: var(--ink); transition: transform 140ms var(--aus), background-color 160ms ease; white-space: nowrap; }
.k:active { transform: scale(.97); }
.k--hell { background: var(--weiss); box-shadow: inset 0 0 0 1px var(--linie2); }
.k--dunkel { background: var(--ink); color: #fff; }
.k--rot { background: var(--weiss); color: var(--rot); box-shadow: inset 0 0 0 1px #E7B8B3; }
.k--klein { min-height: 36px; font-size: 1rem; padding-inline: .85em; }
.k[disabled] { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .k:hover { background: #A3AAF0; } .k--hell:hover { background: var(--hauch); } .k--dunkel:hover { background: var(--nacht2); } .k--rot:hover { background: var(--rot-hauch); } }
.link { background: none; border: 0; padding: 0; color: var(--glas-text); text-decoration: underline; cursor: pointer; text-underline-offset: .16em; }

/* Felder */
label.f { display: grid; gap: 4px; font-size: .95rem; font-weight: 600; color: var(--grau); }
input.e, select.e, textarea.e { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--linie2); border-radius: var(--r-klein); background: #fff; font-size: 1.05rem; font-weight: 400; color: var(--ink); }
textarea.e { min-height: 220px; line-height: 1.5; resize: vertical; }
input.e:focus, select.e:focus, textarea.e:focus { outline: 2px solid var(--glas-text); outline-offset: 0; border-color: var(--glas-text); }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .raster3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 12px; }
.meldung { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-klein); background: var(--rot-hauch); color: var(--rot); font-weight: 600; }
.meldung--gut { background: var(--gruen-hauch); color: var(--gruen); } .meldung--info { background: var(--hauch); color: var(--ink); font-weight: 400; }

/* Anmeldung */
.tor { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: linear-gradient(150deg, var(--nacht2) 0%, var(--nacht) 55%, var(--tief) 100%); position: relative; overflow: hidden; }
.tor::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 88% -6%, rgba(140, 149, 234, .32), transparent 70%), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px; -webkit-mask: linear-gradient(180deg, #000, transparent 85%); mask: linear-gradient(180deg, #000, transparent 85%); }
.tor-karte { position: relative; width: min(420px, 100%); background: #fff; border-radius: var(--r-gross); padding: 32px 28px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); display: grid; gap: 16px; }
.tor-karte img { width: 180px; height: auto; background: var(--nacht); border-radius: 12px; padding: 12px 16px; }
.tor-karte p { color: var(--grau); }

/* Gerüst */
.haus { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.leiste { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px 16px; color: #fff;
  background: radial-gradient(90% 40% at 100% 0%, rgba(140, 149, 234, .28), transparent 70%), linear-gradient(168deg, var(--nacht2) 0%, var(--nacht) 52%, var(--tief) 100%); border-right: 3px solid var(--glas); }
.leiste-logo { display: block; padding: 4px 8px 18px; } .leiste-logo img { width: 164px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; color: rgba(255, 255, 255, .86); text-decoration: none; font: 700 1.3rem/1 var(--schild); text-transform: uppercase; letter-spacing: .04em; }
.nav[aria-current="page"] { background: rgba(140, 149, 234, .26); color: #fff; box-shadow: inset 3px 0 0 var(--glas); }
@media (hover: hover) and (pointer: fine) { .nav:hover { background: rgba(255, 255, 255, .08); color: #fff; } }
.nav .zahl { margin-left: auto; }
.leiste-fuss { margin-top: auto; display: grid; gap: 8px; font-size: .92rem; color: rgba(255, 255, 255, .7); padding: 0 8px; }
.leiste-fuss button { justify-self: start; color: rgba(255, 255, 255, .86); }
.zahl { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--glas); color: var(--ink); font: 800 .95rem/1 var(--schild); padding-top: 1px; }
.inhalt { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.kopfzeile p { color: var(--grau); margin-top: 6px; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-weight: 600; text-decoration: none; }

/* Karten und Listen */
.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten); }
.karte--p { padding: 20px; } .karte h3 { margin-bottom: 12px; }
.stapel { display: grid; gap: 16px; } .spalten { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kachel { background: #fff; border: 1px solid var(--linie); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); display: grid; gap: 2px; box-shadow: var(--schatten); }
.kachel b { font: 800 2.4rem/1 var(--schild); } .kachel span { color: var(--grau); font-size: .98rem; }
.kachel--an { background: linear-gradient(160deg, #A6AEF2, var(--glas)); border-color: transparent; } .kachel--an span { color: var(--ink); }
.liste { list-style: none; margin: 0; padding: 0; }
.zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--linie); text-decoration: none; color: var(--ink); }
.liste > li:first-child .zeile { border-top: 0; }
@media (hover: hover) and (pointer: fine) { .zeile:hover { background: var(--eis); } }
.zeile b { font-weight: 700; } .zeile .neben { color: var(--grau); font-size: .95rem; white-space: nowrap; } .zeile .unter { grid-column: 2 / -1; color: var(--grau); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .oben { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.punkt { width: 10px; height: 10px; border-radius: 50%; background: transparent; } .ist-neu .punkt { background: var(--glas-text); } .ist-neu .oben { font-weight: 700; }
.leer { padding: 22px 16px; color: var(--grau); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 2px; border-radius: 999px; background: var(--hauch); color: var(--ink); font: 700 .95rem/1.2 var(--schild); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.chip--neu { background: var(--glas); } .chip--angebot { background: var(--gelb-hauch); color: var(--gelb-text); } .chip--auftrag, .chip--erledigt { background: var(--gruen-hauch); color: var(--gruen); } .chip--abgesagt { background: var(--eis2); color: var(--grau); } .chip--warn { background: var(--rot-hauch); color: var(--rot); }
.reiter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.reiter button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie2); background: #fff; cursor: pointer; font: 700 1.05rem/1 var(--schild); text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; }
.reiter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.suche { max-width: 420px; }

/* Anfragen als Spalten */
.brett { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.spalte { background: rgba(236, 238, 247, .7); border: 1px solid var(--linie); border-radius: var(--r); padding: 10px; min-height: 140px; display: grid; gap: 8px; align-content: start; }
.spalte.ist-ziel { outline: 2px dashed var(--glas-text); outline-offset: -2px; background: var(--hauch); }
.spalte-kopf { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; font: 800 1.15rem/1 var(--schild); text-transform: uppercase; letter-spacing: .04em; }
.zettel { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); display: grid; gap: 3px; box-shadow: 0 1px 2px rgba(27, 31, 75, .06); cursor: grab; }
.zettel b { font-weight: 700; } .zettel span { color: var(--grau); font-size: .95rem; } .zettel .faellig { color: var(--rot); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .zettel:hover { border-color: var(--glas); } }

/* Stammdaten */
.daten { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.daten dt { color: var(--grau); font-size: .92rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding-top: 3px; } .daten dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.notiz { padding: 10px 12px; border-radius: var(--r-klein); background: var(--eis); border: 1px solid var(--linie); white-space: pre-wrap; overflow-wrap: anywhere; }
.notiz small { display: flex; justify-content: space-between; gap: 8px; color: var(--grau); margin-bottom: 2px; }

/* Mail */
.mail { border-top: 1px solid var(--linie); padding: 16px 20px; } .mail:first-child { border-top: 0; }
.mail-kopf { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.mail-kopf b { font-weight: 700; } .mail-kopf span { color: var(--grau); font-size: .95rem; }
.mail--aus { background: linear-gradient(90deg, rgba(227, 230, 251, .55), rgba(227, 230, 251, 0) 70%); box-shadow: inset 3px 0 0 var(--glas); }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; max-height: 520px; overflow: auto; }
.bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.bilder a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--linie); background: var(--eis2); }
.bilder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dateien { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.original { display: block; width: 100%; height: 520px; border: 1px solid var(--linie); border-radius: var(--r-klein); margin-top: 10px; background: #ECEEF7; }

/* Fenster (Antworten, Angebot, Bearbeiten) */
dialog.fenster { background: #fff; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-gross); box-shadow: 0 30px 80px rgba(12, 14, 42, .45); color: var(--ink); overflow: hidden; }
dialog.fenster::backdrop { background: rgba(12, 14, 42, .55); }
dialog.fenster[open] { display: flex; flex-direction: column; animation: fenster-auf 220ms var(--aus); }
@keyframes fenster-auf { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.fenster-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: linear-gradient(150deg, var(--nacht2), var(--nacht)); color: #fff; border-bottom: 3px solid var(--glas); }
.fenster-kopf h2 { font-size: 1.5rem; } .fenster-kopf button { background: none; border: 0; color: #fff; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 50%; }
.fenster-inhalt { padding: 18px 20px; overflow: auto; display: grid; gap: 14px; background: #fff; flex: 1; align-content: start; }
.fenster-fuss { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--linie); background: var(--eis); }
.vorlagen { display: flex; flex-wrap: wrap; gap: 6px; }
.vorlagen button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linie2); background: #fff; cursor: pointer; font-size: .98rem; font-weight: 600; }
.vorlagen button[aria-pressed="true"] { background: var(--glas); border-color: var(--glas); }
.vorlagen button.passt { border-color: var(--glas-text); }
.pos { display: grid; grid-template-columns: minmax(0, 3fr) 80px 100px 110px 44px; gap: 8px; align-items: end; }
.pos button { min-height: 44px; border-radius: 50%; border: 1px solid var(--linie2); background: #fff; cursor: pointer; display: grid; place-items: center; }
.summe { text-align: right; font-weight: 700; font-size: 1.15rem; }
.hinweis-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--schatten); animation: fenster-auf 220ms var(--aus); max-width: calc(100vw - 32px); }

/* Handy: Leiste unten */
@media (max-width: 860px) {
  .haus { grid-template-columns: 1fr; }
  .leiste { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 20; flex-direction: row; justify-content: space-around; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 3px solid var(--glas); }
  .leiste-logo, .leiste-fuss { display: none; }
  .nav { flex-direction: column; gap: 2px; min-height: 54px; padding: 6px 8px; font-size: .9rem; letter-spacing: .02em; position: relative; flex: 1; justify-content: center; }
  .nav[aria-current="page"] { box-shadow: inset 0 3px 0 var(--glas); }
  .hinweis-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .nav .zahl { position: absolute; top: 2px; right: calc(50% - 30px); min-width: 20px; height: 20px; font-size: .82rem; margin: 0; }
  .inhalt { padding: 20px 14px 110px; }
  .spalten { grid-template-columns: 1fr; } .raster2, .raster3 { grid-template-columns: 1fr; }
  .brett { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; } .spalte { min-height: 0; }
  .pos { grid-template-columns: 1fr 1fr 1fr 44px; } .pos > :first-child { grid-column: 1 / -1; }
  .zeile { padding-inline: 14px; } .mail { padding-inline: 14px; } .original { height: 420px; }
  dialog.fenster { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .mobil-kopf { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 14px; } .mobil-kopf img { width: 132px; height: auto; background: var(--nacht); border-radius: 10px; padding: 8px 12px; }
}
@media (min-width: 861px) { .mobil-kopf { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
