/* Servicekalkulation – Farben aus den MSW-Design-Tokens */
@font-face { font-family: 'Source Sans 3'; font-weight: 400; src: url(/fonts/source-sans-3-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; src: url(/fonts/source-sans-3-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; src: url(/fonts/source-sans-3-latin-700-normal.woff2) format('woff2'); }
:root { --ink: #0d0d0d; --grau: #666; --linie: #dcd9d0; --akzent: #f09625; --akzent-text: #95560a; --warm: #f9f8f5; --warm2: #f3f1eb; --gruen: #518f55; --rot: #e22f2f; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 'Source Sans 3', Arial, sans-serif; color: var(--ink); background: var(--warm); }
header { display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: #fff; border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 5; }
header img { height: 38px; }
header h1 { font-size: 19px; margin: 0; font-weight: 700; }
header nav { display: flex; gap: 4px; margin-left: 12px; }
header nav a { padding: 6px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
header nav a.aktiv, header nav a:hover { background: var(--warm2); }
header .ich { margin-left: auto; color: var(--grau); font-size: 14px; }
header button { font-size: 14px; }
main { max-width: 1280px; margin: 0 auto; padding: 22px; }
.spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 980px) { .spalten { grid-template-columns: 1fr; } }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.karte h2 { font-size: 17px; margin: 0 0 12px; border-left: 3px solid var(--akzent); padding-left: 10px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--grau); margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #c9c5ba; border-radius: 6px; background: #fff; }
textarea { min-height: 60px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl button { flex: 1 1 auto; background: var(--warm); border: 1px solid #c9c5ba; color: var(--ink); font-weight: 600; }
.wahl button.an { background: var(--ink); color: #fff; border-color: var(--ink); }
button { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
button.zweit { background: #fff; color: var(--ink); }
button.klein { padding: 4px 10px; font-size: 14px; }
button:disabled { opacity: .45; cursor: default; }
.knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; }
.check input { width: auto; }
details { margin-top: 14px; border-top: 1px solid var(--linie); padding-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
.station { display: flex; gap: 6px; align-items: center; }
.station input { flex: 1; }
.preise { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preis { border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; background: var(--warm); }
.preis .name { font-weight: 700; font-size: 14px; color: var(--grau); text-transform: uppercase; letter-spacing: .04em; }
.preis .betrag { font-size: 30px; font-weight: 700; margin: 2px 0; }
.preis .klein { font-size: 13px; color: var(--grau); }
.preis.flex { border-left: 4px solid var(--akzent); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { color: var(--grau); font-weight: 600; font-size: 13px; }
td.z, th.z { text-align: right; white-space: nowrap; }
tr.summe td { font-weight: 700; }
.hinweis { font-size: 14px; color: var(--grau); }
.fehler { color: #fff; background: var(--rot); padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
.ok { color: #fff; background: var(--gruen); padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
.leer { color: var(--grau); padding: 30px 0; text-align: center; }
.marke { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: var(--warm2); color: var(--akzent-text); }
.ueberschrieben { background: #fff4e3; }
.vorschlaege { position: absolute; z-index: 10; background: #fff; border: 1px solid var(--linie); border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.08); margin-top: 2px; max-height: 260px; overflow: auto; }
.vorschlaege div { padding: 7px 10px; cursor: pointer; font-size: 14px; }
.vorschlaege div:hover, .vorschlaege div.sel { background: var(--warm2); }
.anmelden { max-width: 420px; margin: 12vh auto; text-align: center; }
.verborgen { display: none !important; }
a { color: #0563c1; }

/* Kopfleiste je Seite, Übersicht */
.leiste { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.leiste h2 { margin: 0; font-size: 22px; }
.leiste .platz { flex: 1; }
.zurueck { font-weight: 600; text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--linie); }
.zurueck:hover { background: var(--warm2); }
a.knopf { display: inline-block; font-weight: 600; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; }
a.knopf.zweit { background: #fff; color: var(--ink); }
a.knopf.klein, .wahl.klein button { padding: 4px 10px; font-size: 14px; }
.wahl.klein { flex-wrap: nowrap; }
.wahl.klein button { flex: 0 0 auto; }
table.uebersicht tbody tr { cursor: pointer; }
table.uebersicht tbody tr:hover { background: var(--warm); }
table.uebersicht td { padding: 10px 6px; }
table.uebersicht td.nr { font-weight: 600; white-space: nowrap; }
table.uebersicht td.aktionen { white-space: nowrap; text-align: right; }
table.uebersicht td.aktionen > * { margin-left: 4px; }
@media (max-width: 760px) { table.uebersicht th:nth-child(5), table.uebersicht td:nth-child(5), table.uebersicht th:nth-child(6), table.uebersicht td:nth-child(6) { display: none; } }

/* Auswahlfenster Pipedrive-Deals: breit, damit Titel und Adressen lesbar bleiben */
.dealzeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dealzeile a { font-weight: 600; }
.fenster { position: fixed; inset: 0; background: rgba(13,13,13,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 2vw; }
.fensterinhalt { background: #fff; border-radius: 12px; width: min(1240px, 96vw); max-height: 92vh; display: flex; flex-direction: column; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dealliste { overflow: auto; margin-top: 12px; }
.dealliste table { min-width: 860px; }
.dealliste tbody tr { cursor: pointer; }
.dealliste tbody tr:hover { background: var(--warm); }
.dealliste td { padding: 9px 6px; }
.dealliste td.titel { width: 34%; }
.dealliste td.adr { width: 28%; }
.dealliste td.nr, .dealliste td.dt { white-space: nowrap; }
body.fenster-offen { overflow: hidden; }
