:root {
  --blau: #1f4e79;
  --hell: #f4f6f8;
  --rand: #d5dbe1;
  --text: #222;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: var(--blau);
}

header a { color: #fff; text-decoration: none; }

.firma { font-weight: bold; font-size: 20px; }
.firma span { font-weight: normal; opacity: .8; font-size: 15px; margin-left: 6px; }

nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { padding: 8px 14px; border-radius: 4px; }
nav a:hover, nav a.aktiv { background: rgba(255, 255, 255, .18); }

main { max-width: 1000px; margin: 0 auto; padding: 24px; }

h1 { color: var(--blau); margin-top: 0; }

table { border-collapse: collapse; width: 100%; max-width: 600px; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--rand); text-align: left; }
th { background: var(--hell); }
.zahl { text-align: right; white-space: nowrap; }

.hinweis { color: #666; font-size: 14px; }

main:has(.preistabelle) { max-width: 1300px; }

/* Rückmeldungen nach dem Speichern / Importieren */
.lokalbalken { background: #c62828; color: #fff; font-weight: bold; text-align: center; padding: 6px 12px; }
.lokalbalken.zeichnenbalken { background: #2e7d32; }
.duschenbalken { background: #6a1b9a; }
.aufmassbalken { background: #1565c0; }
.vorgangbalken { background: #f9a825; color: #3e2700; }
.schiebetuerbalken { background: #e65100; }
@media print { .lokalbalken { display: none; } }
.meldung { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; }
.meldung.ok { background: #e3f4e5; border: 1px solid #9fd3a6; }
.meldung.fehler { background: #fde7e7; border: 1px solid #e8a3a3; }
.meldung.hinweis { background: #fff6dc; border: 1px solid #ecd58e; color: var(--text); font-size: 15px; }

.kasten { background: var(--hell); border: 1px solid var(--rand); border-radius: 6px; padding: 4px 16px 14px; margin-bottom: 20px; }
.kasten form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

button { background: var(--blau); color: #fff; border: 0; border-radius: 4px; padding: 8px 18px; font-size: 15px; cursor: pointer; }
button:hover { opacity: .9; }

/* Reiter innerhalb der Preisseite */
.reiter { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--blau); margin-bottom: 14px; }
.reiter a { padding: 8px 14px; text-decoration: none; color: var(--blau); border-radius: 4px 4px 0 0; }
.reiter a.aktiv { background: var(--blau); color: #fff; }

#suche { width: 100%; max-width: 500px; padding: 8px 10px; font-size: 16px; border: 1px solid var(--rand); border-radius: 4px; }

.preistabelle { max-width: none; font-size: 15px; }
.preistabelle th { position: sticky; top: 0; }
.preistabelle td { padding: 5px 10px; }
.preistabelle tbody tr:hover { background: #f0f5fa; }
.preistabelle a { color: var(--blau); }
.geaendert, tr.geaendert td { background: #fff3c4; }
.abweichung { background: #fde0e0; }

/* Formular zum Bearbeiten */
.formular { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.formular label { display: flex; flex-direction: column; gap: 4px; font-weight: bold; }
.formular input { font-size: 16px; padding: 8px 10px; border: 1px solid var(--rand); border-radius: 4px; font-weight: normal; }
.formular input.fehlerhaft { border-color: #c33; }
.fehlertext { color: #c33; font-weight: normal; font-size: 14px; }
.knoepfe { display: flex; gap: 16px; align-items: center; }

/* Kalkulation */
main:has(.zweispaltig) { max-width: 1200px; }
.zweispaltig { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .zweispaltig { grid-template-columns: 1fr; } }
.formular select { font-size: 15px; padding: 4px; border: 1px solid var(--rand); border-radius: 4px; font-weight: normal; }
.formular optgroup { font-style: normal; color: var(--blau); }
.formular option { color: var(--text); padding: 2px 4px; }
.nebeneinander { display: flex; gap: 12px; }
.nebeneinander label { flex: 1; min-width: 0; }
.nebeneinander input { width: 100%; }
fieldset { border: 1px solid var(--rand); border-radius: 4px; padding: 8px 12px; }
legend { font-weight: bold; padding: 0 4px; }
.formular label.auswahl { flex-direction: row; align-items: center; gap: 8px; font-weight: normal; }

.ergebnis h2 { margin-top: 0; color: var(--blau); }
.rechenweg { max-width: none; margin-bottom: 16px; }
.rechenweg td:first-child { font-weight: bold; white-space: nowrap; vertical-align: top; width: 130px; }
.rechenweg tr.summe td { border-top: 2px solid var(--text); font-weight: bold; font-size: 17px; }
.rechenweg.gesamt { max-width: 420px; margin-left: auto; }
.rechenweg tr.zwischensumme td { border-top: 1px solid #999; font-weight: bold; }
.rechenweg tr.abschnitt td { padding-top: 18px; font-weight: bold; color: var(--blau); border-bottom: 2px solid var(--blau); }

/* Kunden */
.suchleiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.suchleiste input[type=search] { flex: 1; min-width: 220px; max-width: 460px; padding: 8px 10px; font-size: 16px; border: 1px solid var(--rand); border-radius: 4px; }
.suchleiste select { padding: 7px; font-size: 15px; border: 1px solid var(--rand); border-radius: 4px; }
.abstand { flex: 1; }
a.knopf { background: var(--blau); color: #fff; padding: 8px 16px; border-radius: 4px; text-decoration: none; }
.kundentabelle tbody tr { cursor: pointer; }
.kundenformular { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
/* Zwei Spalten im Formular. Bei Rahmen (fieldset) liegt das Raster in einem Innenkasten „raster-innen“:
   ältere Safari-Versionen können kein Raster direkt im fieldset – Überschriften und Felder verrutschen sonst. */
.kundenformular div.raster, .kundenformular .raster-innen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.kundenformular fieldset.raster { display: block; min-width: 0; }
@media (max-width: 600px) { .kundenformular div.raster, .kundenformular .raster-innen { grid-template-columns: 1fr; } }
.kundenformular label { display: flex; flex-direction: column; gap: 4px; font-weight: bold; }
.kundenformular .breit { grid-column: 1 / -1; }
.kundenformular label.auswahl { flex-direction: row; align-items: center; gap: 8px; font-weight: normal; }
.kundenformular input, .kundenformular select, .kundenformular textarea { font-size: 16px; padding: 7px 9px; border: 1px solid var(--rand); border-radius: 4px; font-weight: normal; font-family: inherit; }
.kundenformular input.fehlerhaft { border-color: #c33; }
form.loeschen { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rand); }
button.gefahr { background: #fff; color: #c33; border: 1px solid #c33; }

/* Bearbeitung im Formular */
#bearbeitung { display: flex; flex-direction: column; gap: 8px; }
#bearbeitung[hidden], #nur-iso[hidden] { display: none; }
.kantenwahl { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.zwischentitel { font-weight: bold; margin-top: 10px; }
/* Eigene Faktoren je Scheibe */
.eigenfaktor { display: block; font-size: 13px; color: #8a5a00; }
.eigenfaktor.inline { display: inline; }
#eigenfaktoren .faktoralle { margin: 0; background: none; padding: 0; }
.faktoralle { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 10px 0; padding: 10px;
  background: #f4f6f9; border-radius: 4px; }
.faktoralle label { flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.faktorknopf { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 6px 0 12px; }
.faktoralle input.faktor, .positionstabelle input.faktor, .rechnerliste input.faktor { width: 5.5em; text-align: right;
  font-size: 15px; padding: 4px 6px; border: 1px solid var(--rand); border-radius: 4px; }
.positionstabelle input.faktor, .rechnerliste input.faktor { width: 4.5em; font-size: 14px; }
.rabatthand[hidden] { display: none; }
.rabattwahl { flex-direction: row !important; align-items: center; gap: 8px; margin: 6px 0; }
.rabattwahl select { width: auto; }
.rabatthinweis { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.rabatttabelle input[type=text] { width: 100%; padding: 4px 6px; }
.rabatttabelle td.zahl input { width: 5em; text-align: right; }
.rabatttabelle tr.neu td { background: #f4f6f9; }
.lackwahl { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.lackwahl .ralfeld { flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.lackwahl .ralfeld input { width: 8em; }
#ral_feld[hidden], #abkleben_feld[hidden], #lack_hinweis[hidden] { display: none; }
.bearbzeile { display: flex; gap: 6px; align-items: center; }
.bearbzeile select, .bearbzeile input { font-size: 14px; padding: 5px 6px; border: 1px solid var(--rand); border-radius: 4px; min-width: 0; }
.bearbzeile > select, .bearbzeile > input:first-child { flex: 1; }
.bearbzeile span { flex: 1; display: flex; }
.bearbzeile span select { flex: 1; }
.bearbzeile input.anzahl { width: 58px; flex: none; }
.bearbzeile input.preis { width: 80px; flex: none; }
button.klein { align-self: flex-start; padding: 4px 12px; font-size: 14px; background: #fff; color: var(--blau); border: 1px solid var(--blau); }
button.entfernen { padding: 2px 9px; background: #fff; color: #c33; border: 1px solid var(--rand); font-size: 16px; }

/* Newsletter */
.kundenformular .frage { background: var(--hell); padding: 8px 10px; border-radius: 4px; }
.fehlerrahmen { border-color: #c33; }
.kundentabelle .ja { color: #1d7a2e; font-weight: bold; }
.kundentabelle .offen { color: #c33; }

/* Gespeicherte Kalkulationen */
.status { padding: 2px 8px; border-radius: 10px; font-size: 13px; background: #e8edf3; white-space: nowrap; }
.status-angebot { background: #fff1c9; }
.status-erledigt { background: #dcefdf; }
.betont { font-weight: bold; }
.kalkkopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.kalkkopf h1 { margin-bottom: 4px; }
.untertitel { color: var(--text); font-weight: normal; font-size: 22px; margin-left: 8px; }
.notiz { background: #fffbe6; border-left: 3px solid #ecd58e; padding: 6px 10px; white-space: pre-line; }
.kopfknoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kopfknoepfe select { padding: 7px; font-size: 15px; border: 1px solid var(--rand); border-radius: 4px; }
a.knopf.hell { background: #fff; color: var(--blau); border: 1px solid var(--blau); }
.positionstabelle td { vertical-align: top; }
.pretext { white-space: pre-line; }
.postext .art { display: block; font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: .03em; }
.poswarnung { color: #b33; font-size: 13px; margin-top: 4px; white-space: normal; }
.vonhand { font-size: 12px; background: #fff1c9; padding: 0 5px; border-radius: 3px; cursor: help; }
.intern { color: #777; }
.aktionen { white-space: nowrap; }
.aktionen form { display: inline; }
.aktionen button, .aktionen a { background: #fff; color: var(--blau); border: 1px solid var(--rand); border-radius: 4px; padding: 2px 8px; font-size: 15px; text-decoration: none; cursor: pointer; }
.aktionen button:disabled { color: #ccc; cursor: default; }
.aktionen .rot { color: #c33; }
.hinzufuegen { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.summenblock { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.summenblock .rechenweg { margin: 0; }
.trefferliste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rand); border-radius: 4px; max-width: 520px; }
.trefferliste:empty { display: none; }
.trefferliste li { padding: 6px 10px; cursor: pointer; font-weight: normal; }
.trefferliste li:hover { background: #f0f5fa; }
#kunde_gewaehlt { font-weight: normal; }
.uebernehmen { display: flex; justify-content: flex-end; margin-top: 14px; }
.uebernehmen button { font-size: 17px; padding: 10px 22px; background: #1d7a2e; }
button.hellknopf { background: #fff; color: var(--blau); border: 1px solid var(--blau); }

/* Schalter EK anzeigen: normal nur Verkaufspreise */
body:not(.ek-an) .nur-ek { display: none; }
/* Felder für eigene Faktoren: nur mit „EK anzeigen“ UND „Faktoren ändern“ */
body:not(.ek-an) .nur-faktor, body:not(.faktor-an) .nur-faktor { display: none; }
body.ek-an .nur-vk { display: none; }
.ekschalter { display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 8px; cursor: pointer; }

/* Verkaufspreise je Glasart */
.vktabelle input.eingabe { width: 80px; text-align: right; font-size: 15px; padding: 4px 6px; border: 1px solid var(--rand); border-radius: 4px; }
.vktabelle tr.angepasst td { background: #eef5ff; }
.vktabelle tr.unter_standard .gilt { color: #b35c00; }
.vktabelle tr.wenig_ertrag .rohertrag { color: #c33; font-weight: bold; }
.vktabelle tr.fehlerzeile input { border-color: #c33; }
.vktabelle tr.bearbeitet td:first-child { box-shadow: inset 4px 0 0 #e0a800; }
.vktabelle.nur-angepasst tr.vkzeile:not(.angepasst) { display: none; }
.speicherleiste { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--rand); padding: 10px 0; display: flex; justify-content: flex-end; gap: 16px; align-items: center; }

/* Vorauswahl der Glasart im Rechner */
.glasbereich { display: flex; gap: 0; }
.glasbereich button { flex: 1; background: #fff; color: var(--blau); border: 1px solid var(--blau); border-radius: 0; padding: 9px 6px; font-size: 15px; }
.glasbereich button:first-child { border-radius: 4px 0 0 4px; }
.glasbereich button:last-child { border-radius: 0 4px 4px 0; }
.glasbereich button + button { border-left: 0; }
.glasbereich button.aktiv { background: var(--blau); color: #fff; font-weight: bold; }

/* Arbeitsleistungen */
.zweispaltig.arbeit { grid-template-columns: minmax(300px, 380px) 1fr; }
.mitEinheit { display: flex; align-items: center; gap: 6px; font-weight: normal; }
.mitEinheit input { flex: 1; text-align: right; }
.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kopfzeile h2 { margin: 0; }
.mindestzeit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* VK-Liste Bearbeitung */
.vkbtabelle input.eingabe { width: 72px; text-align: right; font-size: 14px; padding: 3px 5px; border: 1px solid var(--rand); border-radius: 4px; }
.vkbtabelle td.fix input { background: #eef5ff; border-color: var(--blau); font-weight: bold; }
.vkbtabelle td.bearbeitet { box-shadow: inset 0 -3px 0 #e0a800; }
.vkbtabelle.nur-fix tbody tr:not(.hatfix) { display: none; }

/* Bearbeitung / Sonstiges: großes Textfeld, Hinweis nur beim Überfahren mit der Maus */
.bearbzeile.zusatz { align-items: flex-start; }
.bearbzeile.zusatz textarea { flex: 1; min-width: 0; font-size: 15px; font-family: inherit; padding: 6px 8px;
  border: 1px solid var(--rand); border-radius: 4px; resize: vertical; }
#sonstiges legend .info { color: #888; font-weight: normal; cursor: help; }

/* Glasart: Eingabefeld mit Vorschlagsliste */
.glaswahl { position: relative; display: flex; }
.glaswahl #glasfeld { flex: 1; font-size: 16px; padding: 9px 10px; border: 1px solid var(--rand); border-radius: 4px 0 0 4px; font-weight: normal; }
.glaswahl #glaspfeil { border-radius: 0 4px 4px 0; background: #fff; color: var(--blau); border: 1px solid var(--rand); border-left: 0; padding: 0 12px; }
#glasliste { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: 320px; overflow-y: auto;
  margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--rand); border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15); font-weight: normal; }
#glasliste li { padding: 6px 10px; }
#glasliste li.gruppe { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--blau); background: var(--hell); padding: 4px 10px; position: sticky; top: 0; }
#glasliste li.vorschlag { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
#glasliste li.vorschlag .preis { color: #666; white-space: nowrap; }
#glasliste li.vorschlag:hover, #glasliste li.markiert { background: #e3edf7; }
#glasliste li.leer { color: #888; font-style: italic; }

/* Iso-Baukasten (Test) */
.isoaufbau label.szr { margin-left: 24px; border-left: 3px solid var(--rand); padding-left: 10px; }
.isotext { font-size: 20px; }

/* Kunde in der Kalkulation: Suche + Knopf „+“ */
.kundensuche { display: flex; gap: 6px; }
.kundensuche input { flex: 1; }
a.knopf.plus { font-size: 20px; font-weight: bold; padding: 4px 14px; line-height: 1.3; }
.kundensuche[hidden] { display: none; }
#isobaukasten { display: flex; flex-direction: column; gap: 8px; }
#isobaukasten[hidden], #glaseingabe[hidden] { display: none; }
#iso_aufbau { display: flex; flex-direction: column; gap: 6px; }

/* 2-fach / 3-fach als Umschaltknöpfe (wie ESG / Floatglas / Isolierglas) */
.typwahl { display: flex; }
.typwahl label { flex: 1 1 0; display: flex; margin: 0; font-weight: normal; }
.typwahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* Knöpfe immer gleich hoch, Text mittig – auch wenn einer zweizeilig ist */
.typwahl span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 7px 6px; font-size: 15px; cursor: pointer;
  border: 1px solid var(--blau); color: var(--blau); background: #fff; }
.typwahl label:first-child span { border-radius: 4px 0 0 4px; }
.typwahl label:last-child span { border-radius: 0 4px 4px 0; border-left: 0; }
.typwahl input:checked + span { background: var(--blau); color: #fff; font-weight: bold; }
.typwahl input:focus-visible + span { outline: 2px solid #e0a800; outline-offset: 1px; }

/* Modellscheiben: Formauswahl mit Bildern */
#formwahl { display: flex; flex-direction: column; gap: 8px; }
#modellwahl { display: flex; flex-direction: column; gap: 8px; }
#modellwahl[hidden], #modell_frei[hidden], #kanten_lfm_feld[hidden], #facette_lfm_feld[hidden], .kantenwahl[hidden],
#lbl_breite[hidden], #lbl_hoehe[hidden], .formgitter[hidden] { display: none; }
.modellknopf { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; color: var(--text);
  border: 1px solid var(--blau); padding: 6px 10px; font-size: 14px; font-weight: normal; }
.modellknopf img { width: 120px; height: auto; border: 1px solid var(--rand); }
.formgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px;
  max-height: 420px; overflow-y: auto; padding: 6px; border: 1px solid var(--rand); border-radius: 4px; background: var(--hell); }
.formkachel { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; background: #fff;
  color: var(--text); border: 2px solid transparent; border-radius: 4px; font-size: 12px; cursor: pointer; }
.formkachel img { width: 100%; height: auto; }
.formkachel:hover { border-color: #9cb8d6; }
.formkachel.aktiv { border-color: var(--blau); background: #e3edf7; }
.formkachel.frei .frei-symbol { font-size: 40px; color: var(--blau); line-height: 1.6; }
.modellmasse { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.modelltext { white-space: normal; }

/* Ladenpreisliste */
.ladenstufen { display: flex; flex-direction: column; gap: 16px; }
.ladentabelle { width: auto; }
.ladentabelle td:first-child { white-space: nowrap; padding-right: 20px; }
.ladentabelle th[colspan] { background: var(--blau); color: #fff; }
.ladenaufschlaege { flex-wrap: wrap; margin: 12px 0; }
.ladenaufschlaege label { display: flex; flex-direction: column; gap: 4px; font-weight: bold; font-size: 14px; }
.ladenaufschlaege input { width: 70px; text-align: right; padding: 5px; border: 1px solid var(--rand); border-radius: 4px; }
.ladenaufschlaege select { padding: 5px; }
.ladenform { margin-bottom: 30px; }
.ladentabelle input.eingabe { width: 72px; text-align: right; font-size: 14px; padding: 3px 5px; border: 1px solid var(--rand); border-radius: 4px; }
.typwahl.preisart.oben { margin-bottom: 4px; }
.typwahl.preisart.oben span { padding: 9px 6px; font-size: 16px; }

/* Anmeldung */
header .benutzer { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 14px; }
header .benutzer a { opacity: .9; }
header .benutzer .abmelden { border: 1px solid rgba(255,255,255,.5); border-radius: 4px; padding: 4px 10px; }
.personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; max-width: 900px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; background: #fff;
  color: var(--text); border: 2px solid var(--rand); border-radius: 8px; font-size: 16px; }
.person .kuerzel { width: 48px; height: 48px; border-radius: 50%; background: var(--blau); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: bold; }
.person.aktiv { border-color: var(--blau); background: #e3edf7; }
.person.ohnepin { opacity: .45; cursor: not-allowed; }
.pinfeld { margin-top: 20px; max-width: 260px; display: flex; flex-direction: column; gap: 10px; }
.pinfeld[hidden] { display: none; }
.pinfeld input { font-size: 28px; letter-spacing: 12px; text-align: center; padding: 8px; border: 2px solid var(--blau); border-radius: 6px; }
.tasten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.taste { font-size: 22px; padding: 14px 0; background: #fff; color: var(--text); border: 1px solid var(--rand); }
.taste:active { background: #e3edf7; }
.pinform { max-width: 320px; }
.warnung { color: #b45f00; font-weight: bold; }
button.zweitrangig { background: #fff; color: #c33; border: 1px solid #c33; }
tr.inaktiv td { color: #999; }
button:disabled { opacity: .35; cursor: not-allowed; }

/* Stationen */
.station { padding: 2px 8px; border-radius: 10px; font-size: 13px; background: #e8edf3; white-space: nowrap; }
.station.gross { font-size: 16px; padding: 4px 12px; font-weight: bold; }
.st-angebot { background: #fff1c9; }
.st-auftrag, .st-bestellt, .st-geliefert { background: #dbe8f7; }
.st-in_arbeit { background: #ffe0c2; }
.st-abholbereit { background: #d7f0d0; }
.st-erledigt, .st-berechnet { background: #e6dcf3; }
.st-bezahlt { background: #c9e8cf; }
.st-abgesagt { background: #eee; color: #888; text-decoration: line-through; }
.stationsleiste { background: var(--hell); border: 1px solid var(--rand); border-radius: 6px; padding: 10px 14px; margin: 14px 0 20px; }
.stationsleiste.abgesagt .stationsweg { opacity: .4; }
.stationsweg { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 10px; font-size: 13px; }
.stationsweg li { padding: 3px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--rand); color: #888; }
.stationsweg li.erledigt { color: var(--blau); border-color: #b9cbe0; }
.stationsweg li.erledigt::before { content: "✓ "; }
.stationsweg li.aktuell { background: var(--blau); color: #fff; border-color: var(--blau); font-weight: bold; }
.stationsknoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stationsknoepfe form { margin: 0; }
.stationsknoepfe select { padding: 7px; font-size: 14px; border: 1px solid var(--rand); border-radius: 4px; }
table.verlauf td { padding: 4px 12px 4px 0; font-size: 14px; border-bottom: 1px solid #eef1f4; }

/* Übersicht Aufträge (Tafel) */
.zaehler { display: flex; flex-wrap: wrap; gap: 6px; }
.zaehler a { text-decoration: none; color: var(--text); }
.tafel { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.spalte { flex: 1 0 150px; min-width: 150px; background: var(--hell); border: 1px solid var(--rand); border-radius: 6px; padding: 8px; }
.spalte h2 { font-size: 15px; margin: 0 0 8px; display: flex; justify-content: space-between; color: var(--blau); }
.spalte .anzahl { background: #fff; border-radius: 10px; padding: 0 8px; font-size: 13px; color: var(--text); }
.karte { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--rand);
  border-left: 4px solid var(--blau); border-radius: 4px; padding: 8px; margin-bottom: 8px;
  text-decoration: none; color: var(--text); font-size: 14px; }
.karte:hover { border-color: var(--blau); }
.karte .nr { font-size: 12px; color: #666; }
.karte .fuss { display: flex; justify-content: space-between; font-size: 12px; color: #666; margin-top: 4px; }
.karte.gelb, .karte-gelb-muster { background: #fff6cc; border-left-color: #e0a800; }
.karte-gelb-muster { padding: 0 6px; border-radius: 3px; border-left: 4px solid #e0a800; }
main:has(.tafel) { max-width: none; }

/* Auftrag */
.formular .zeile { display: flex; gap: 16px; flex-wrap: wrap; }
.formular textarea { font-size: 15px; padding: 8px 10px; border: 1px solid var(--rand); border-radius: 4px; font-weight: normal; font-family: inherit; }
#adressfeld[hidden] { display: none; }
.auftragskasten { border: 2px solid var(--blau); border-radius: 6px; padding: 10px 14px; margin: 0 0 20px; background: #fff; }
.auftragskasten h2 { margin: 0 0 6px; font-size: 18px; }
.auftragskasten .angaben { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0 0 10px; }
.auftragskasten .angaben dt { color: #666; }
.auftragskasten .angaben dd { margin: 0; white-space: pre-line; }
.auftragskasten .knoepfe { flex-wrap: wrap; gap: 10px; }
.auftragskasten form { margin: 0; }
.freigabe { font-weight: bold; padding: 3px 10px; border-radius: 10px; }
.freigabe.ja { background: #d7f0d0; color: #1d5e20; }
.freigabe.nein { background: #fde3d6; color: #8a3410; }
.termin-ueberfaellig { color: #b00020; font-weight: bold; }
.termin-bald { color: #b45f00; font-weight: bold; }
.karte .termin { font-size: 13px; }
.karte.t-ueberfaellig { border-left-color: #b00020; }
.karte.t-bald { border-left-color: #e07b00; }

/* Werkstatt */
.wkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.wkarten.gedimmt { opacity: .6; }
.wkarte { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--rand);
  border-left: 6px solid var(--blau); border-radius: 6px; padding: 12px; text-decoration: none; color: var(--text); font-size: 15px; }
.wkarte:hover { border-color: var(--blau); }
.wkarte .nr { font-weight: bold; color: var(--blau); }
.wkarte.t-ueberfaellig { border-left-color: #b00020; }
.wkarte.t-bald { border-left-color: #e07b00; }
.nacharbeit { color: #b00020; font-weight: bold; font-size: 14px; }
.laeuft { display: inline-block; background: #e0f3e2; color: #1d5e20; border-radius: 10px; padding: 2px 10px; font-size: 14px; font-weight: bold; }
.laeuft.alt { background: #fde3d6; color: #b00020; }
.werbistdu, .werkzeugleiste { background: var(--hell); border: 1px solid var(--rand); border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; }
.werbistdu h2, .werkzeugleiste h2 { font-size: 16px; margin: 0 0 8px; }
.personen.klein { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.personen.klein .person { padding: 8px; font-size: 14px; }
.personen.klein .kuerzel { width: 34px; height: 34px; font-size: 13px; }
#pinzeile { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-weight: bold; }
#pinzeile[hidden] { display: none; }
#pinzeile input { font-size: 22px; width: 5em; letter-spacing: 8px; text-align: center; padding: 4px; border: 2px solid var(--blau); border-radius: 4px; }
.werkzeugleiste .knoepfe { flex-wrap: wrap; gap: 10px; }
.werkzeugleiste form { margin: 0; display: flex; gap: 6px; align-items: center; }
.werkzeugleiste select { font-size: 16px; padding: 8px; border: 1px solid var(--rand); border-radius: 4px; }
.werkzeugleiste button { font-size: 18px; padding: 10px 20px; }
button.gruen { background: #2e7d32; }
button.rot { background: #b00020; }
.laufende { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.haken { display: flex; flex-wrap: wrap; gap: 8px; }
.haken form { margin: 0; }
.haken-knopf { display: inline-flex; flex-direction: column; align-items: flex-start; background: #fff; color: var(--text);
  border: 1px solid var(--rand); border-radius: 6px; padding: 8px 14px; font-size: 16px; }
.haken-knopf.an { background: #e0f3e2; border-color: #2e7d32; }
.haken-knopf small { font-size: 12px; color: #555; }
span.haken-knopf { opacity: .8; }
/* Positionen ohne Preise (wie Arbeitszettel) */
.zettelpos { width: 100%; border-collapse: collapse; background: #fff; }
.zettelpos th, .zettelpos td { padding: 8px; border-bottom: 1px solid var(--rand); vertical-align: top; text-align: left; }
.zettelpos .anz { font-size: 20px; font-weight: bold; text-align: center; }
.zettelpos .text { white-space: pre-line; font-size: 16px; }
.zettelpos .skizze img { max-width: 220px; max-height: 160px; }
.zettelpos .kasten { display: inline-block; width: 18px; height: 18px; border: 1.5px solid #111; }
.zettelpos .warn { color: #a22; font-size: 13px; }
.endkontrolle { border: 2px solid #2e7d32; background: #eef8ef; border-radius: 6px; padding: 10px 14px; margin: 0 0 14px; }
.endkontrolle h2 { margin: 0 0 4px; font-size: 18px; color: #1d5e20; }
.endkontrolle .knoepfe { flex-wrap: wrap; gap: 10px; }
.endkontrolle form { margin: 0; display: flex; gap: 6px; align-items: center; }
.endkontrolle input[type=text] { font-size: 15px; padding: 7px 10px; border: 1px solid var(--rand); border-radius: 4px; }
.auftragskasten .schritt { display: inline-block; margin-right: 12px; color: #888; }
.auftragskasten .schritt.an { color: #1d5e20; }
.zeittabelle tr.pruefen td { background: #fff1e6; }
.zeittabelle tr.summe td { font-weight: bold; border-top: 2px solid var(--text); }
.karte .kontrolle { background: #2e7d32; color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: bold; align-self: flex-start; }
.karte .laeuft { font-size: 12px; align-self: flex-start; }

/* Kunde benachrichtigen */
.benachrichtigen { border: 1px solid var(--rand); background: var(--hell); border-radius: 6px; padding: 10px 14px; margin: 0 0 20px; }
.benachrichtigen h2 { margin: 0 0 6px; font-size: 18px; }
.benachrichtigen .anlaesse { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.benachrichtigen .nachricht[hidden] { display: none; }
.benachrichtigen .knoepfe { flex-wrap: wrap; gap: 10px; }
.benachrichtigen form { margin: 0; display: inline; }
a.knopf.whatsapp { background: #1f8f4e; }
.knopf.aus { background: #e3e6ea; color: #888; padding: 8px 16px; border-radius: 4px; cursor: not-allowed; }
pre.vorschau { white-space: pre-wrap; background: #fff; border: 1px solid var(--rand); border-radius: 4px; padding: 8px 10px; font-family: inherit; font-size: 14px; }
.gemeldet { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.gemeldet li { margin: 3px 0; }
button.linkknopf { background: none; color: var(--blau); padding: 0 4px; font-size: 13px; text-decoration: underline; }
.breitformular { max-width: 760px; }
.breitformular fieldset { display: flex; flex-direction: column; gap: 10px; }
.platzhalter { margin: 0 0 14px; }
.platzhalter td { padding: 2px 12px 2px 0; border: 0; font-size: 14px; }
.karte .gemeldet-ja { font-size: 12px; color: #1d5e20; }
.karte .gemeldet-nein { font-size: 12px; font-weight: bold; color: #fff; background: #e07b00; border-radius: 10px; padding: 1px 8px; align-self: flex-start; }

/* Bestellungen */
.bstatus { padding: 2px 8px; border-radius: 10px; font-size: 13px; background: #fff1c9; white-space: nowrap; }
.bstatus.b-bestellt { background: #dbe8f7; }
.bstatus.b-geliefert { background: #c9e8cf; }
.bedarf .pretext, .preistabelle .pretext { white-space: pre-line; }
textarea.zeilentext { width: 100%; min-width: 320px; font-family: inherit; font-size: 14px; }
tr.geliefert td { background: #eef8ef; }
.bestellinfo { font-size: 12px; display: inline-block; margin-top: 3px; }
.bestellinfo.offen { color: #b45f00; }
.bestellinfo.da { color: #1d5e20; }
.bestellinfo.aenderung { color: #b00020; font-weight: bold; }
form.inline { display: inline; margin: 0; }
.zettelpos .material { color: #b00020; font-weight: bold; font-size: 14px; }

/* Nachkalkulation und Auswertung */
.nachkalkulation { border: 1px dashed #b9cbe0; border-radius: 6px; padding: 10px 14px; margin: 0 0 20px; background: #fbfcfe; }
.nachkalkulation h2 { margin: 0 0 8px; font-size: 18px; }
.nk-spalten { display: flex; flex-wrap: wrap; gap: 24px; }
.nk-spalten table { min-width: 320px; }
.nk-spalten th { background: none; font-size: 13px; color: #666; }
td.gut { color: #1d5e20; font-weight: bold; }
td.schlecht { color: #b00020; font-weight: bold; }
.kennzahlen { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 18px; }
.kennzahl { background: var(--hell); border: 1px solid var(--rand); border-radius: 6px; padding: 10px 16px; min-width: 170px; }
.kennzahl b { display: block; font-size: 22px; color: var(--blau); }
.kennzahl span { font-size: 13px; color: #666; }
tr.verlust td { background: #fde8e8; }
.jeauftrag { margin: 6px 0; }
.jeauftrag table { max-width: 600px; }

/* Angebote */
.astatus { padding: 2px 8px; border-radius: 10px; font-size: 13px; background: #e8edf3; white-space: nowrap; }
.astatus.a-nachfassen { background: #ffe9a8; font-weight: bold; }
.astatus.a-angenommen { background: #c9e8cf; }
.astatus.a-abgelehnt, .astatus.a-abgelaufen { background: #f3d6d6; }
.astatus.a-ersetzt { background: #eee; color: #888; }
tr.nachfassen td { background: #fff8dd; }
.angebotsaktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--hell);
  border: 1px solid var(--rand); border-radius: 6px; padding: 10px 14px; margin: 0 0 16px; }
.angebotsaktionen form { margin: 0; display: flex; gap: 6px; align-items: center; }
.angebotsaktionen input[type=text] { font-size: 14px; padding: 6px 8px; border: 1px solid var(--rand); border-radius: 4px; }
.angebotskasten { border: 1px solid var(--rand); border-radius: 6px; padding: 8px 14px; margin: 0 0 16px; }
.angebotskasten h2 { margin: 0 0 6px; font-size: 17px; }
.angebotskasten form { margin: 0; display: inline; }
tr.nichtsumme td { color: #777; background: #fafafa; }
tr.nichtsumme td strong { font-weight: normal; text-decoration: line-through; }
.angebotsart { display: inline-block; font-size: 12px; font-weight: bold; color: #8a5a00; background: #fff1c9; border-radius: 8px; padding: 0 6px; margin: 2px 0; }
.artwahl select { font-size: 12px; padding: 2px; max-width: 150px; }
.rabattform { margin-top: 8px; font-size: 14px; }
.rabattform form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.rabattform .zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rabattform input, .rabattform select { font-size: 14px; padding: 4px 6px; border: 1px solid var(--rand); border-radius: 4px; }
.annahme { align-items: flex-start !important; }
.annahme input { margin-top: 4px; }

/* Rechner-Liste */
.rechnerliste { margin-top: 24px; border-top: 3px solid var(--blau); padding-top: 8px; }
.rechnerliste h2 { color: var(--blau); }
.listenknoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.listenknoepfe form { margin: 0; display: flex; gap: 6px; align-items: center; }
.listenknoepfe select { font-size: 14px; padding: 6px; border: 1px solid var(--rand); border-radius: 4px; max-width: 360px; }
.listenhinweis { background: #e3edf7; border-radius: 4px; padding: 6px 10px; margin: 0 0 10px; font-weight: bold; }
.listenhinweis a { text-decoration: none; }
.rechenweg.einkauf { background: #f6f8fb; }
.rechenweg.einkauf td:first-child { width: 130px; }
.vergleich { border: 2px solid var(--blau); border-radius: 6px; padding: 8px 12px; margin: 12px 0 16px; }
.vergleich h3 { margin: 4px 0 8px; }
.vergleichtabelle th.aktuell { color: var(--blau); text-decoration: underline; }
.vergleichtabelle td.zahl, .vergleichtabelle th.zahl { width: 38%; }

/* ===== Duschenplaner ===== */
.duschplaner h2 { margin-top: 28px; }
.kacheln { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.kachel { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 170px; padding: 10px;
  border: 2px solid var(--rand); border-radius: 8px; cursor: pointer; font-weight: bold; text-align: center; }
.kachel:has(input:checked) { border-color: var(--blau); background: #eef4fa; }
.kachel input { position: absolute; opacity: 0; }
.kachel svg { width: 120px; height: 100px; }
.aufmass input { font-size: 18px; padding: 8px; }
.zeichnung svg { width: 100%; max-width: 760px; max-height: 520px; display: block; }
.scheibenreihe { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0; }
.scheibenreihe figure { margin: 0; flex: 1; min-width: 200px; max-width: 360px; }
.scheibenreihe figcaption { font-weight: bold; color: var(--blau); }
.scheibenreihe svg { width: 100%; max-height: 420px; }
table.summentabelle { width: auto; min-width: 300px; margin: 12px 0 0 auto; }
table.summentabelle td { padding: 4px 10px; }
table.summentabelle tr.fett td { font-weight: bold; border-top: 2px solid var(--text); }
table.summentabelle tr.intern td { color: #666; font-size: 14px; }
details.fugen { margin: 14px 0; }
details.fugen summary { cursor: pointer; color: var(--blau); }
.duschplaner .warnung { color: #a22; font-size: 14px; }
.meldung ul { margin: 6px 0 0; padding-left: 20px; }
form.serienfaktor { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 8px; }
table.summentabelle.rohertrag { margin-top: 18px; background: #f7f3fa; }
table.summentabelle.rohertrag th { padding: 4px 10px; font-size: 14px; }
.formeln { background: #f4f6f8; border: 1px solid var(--rand); border-radius: 6px; padding: 8px 14px; margin: 12px 0; }
.formeln ul { margin: 6px 0 0; padding-left: 20px; }
.duschplaner h3 { margin: 14px 0 4px; font-size: 16px; color: var(--blau); }

/* ===== Aufmaßskizze (Felder direkt in der Zeichnung) ===== */
.duschplaner .skizze { position: relative; width: 100%; max-width: 760px; aspect-ratio: 1000 / 1100; margin: 10px 0 20px;
  border: 1px solid var(--rand); border-radius: 8px; background: #fff; }
.duschplaner .skizze > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.duschplaner .skizze .mass { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column;
  align-items: center; gap: 1px; width: 112px; font-weight: normal; margin: 0; }
.duschplaner .skizze .mass[hidden], .duschplaner .skizze .skizze-ergebnis[hidden] { display: none; }
.duschplaner .skizze .mass span { font-size: 13px; font-weight: bold; color: #c33; background: rgba(255,255,255,.85); padding: 0 4px; border-radius: 3px; }
.duschplaner .skizze .mass input { width: 100%; font-size: 18px; padding: 6px 4px; text-align: center; border: 2px solid #c33;
  border-radius: 6px; background: #fffdf5; }
.duschplaner .skizze .mass input:focus { outline: 3px solid #f5b5b5; }
.duschplaner .skizze .mass small { font-size: 11px; color: #666; background: rgba(255,255,255,.85); text-align: center; line-height: 1.15; }
.duschplaner .skizze .skizze-ergebnis { position: absolute; transform: translate(-50%, -50%); background: rgba(31,78,121,.92); color: #fff;
  padding: 6px 10px; border-radius: 6px; font-size: 16px; text-align: center; white-space: nowrap; pointer-events: none; }
@media (max-width: 620px) {
  /* Handy: Felder unter der Zeichnung als Liste */
  .duschplaner .skizze { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
  .duschplaner .skizze > svg { position: static; grid-column: 1 / -1; height: auto; aspect-ratio: 1000 / 1100; }
  .duschplaner .skizze .mass, .duschplaner .skizze .skizze-ergebnis { position: static; transform: none; width: auto; }
}

/* ===== Dichtungen als Karten ===== */
.karten { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.duschplaner .karte { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 190px; padding: 8px 10px;
  border: 2px solid var(--rand); border-radius: 8px; cursor: pointer; text-align: center; font-weight: normal; }
.duschplaner .karte[hidden] { display: none; }
.duschplaner .karte:has(input:checked) { border-color: var(--blau); background: #eef4fa; box-shadow: 0 0 0 2px #cfe0f0; }
.duschplaner .karte input { position: absolute; opacity: 0; }
.duschplaner .karte svg { width: 110px; height: 64px; }
.duschplaner .karte b { font-size: 14px; }
.duschplaner .karte span { font-size: 13px; color: #444; }

/* ===== Varianten ===== */
.variante { border: 2px solid var(--blau); border-radius: 10px; padding: 6px 16px 16px; margin: 16px 0 22px; background: #fbfdff; }
.variante-kopf { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.variante-kopf h2 { margin: 8px 0; }
.variante h3 { margin: 14px 0 6px; font-size: 16px; color: var(--blau); }
.variante h4 { margin: 10px 0 4px; font-size: 14px; }
.kacheln.klein .kachel { width: 128px; padding: 6px; font-size: 13px; }
.kacheln.klein .kachel svg { width: 110px; height: 82px; }
.dichtgruppe[hidden], .variante [hidden] { display: none; }
.aufmass-zusatz { margin-top: 6px; }
.duschplaner [hidden] { display: none !important; }

/* ===== Eckduschen ===== */
.eckansicht { display: flex; flex-wrap: wrap; gap: 14px; }
.eckansicht figure { margin: 0; flex: 1; min-width: 240px; }
.eckansicht figcaption { font-weight: bold; color: var(--blau); }
.eckansicht svg { width: 100%; max-height: 420px; }
.kacheln.einbau .kachel small { font-weight: normal; color: #666; }
details.weitere { margin: 0 0 14px; }
details.weitere summary { cursor: pointer; color: var(--blau); margin-bottom: 8px; }
.kachel svg[viewBox="0 0 140 104"] { width: 140px; height: 104px; }

/* ===== Beschlag-Katalog ===== */
details.beschlaggruppe { margin: 6px 0; }
details.beschlaggruppe > summary { cursor: pointer; list-style: revert; }
details.beschlaggruppe > summary h2 { display: inline; font-size: 20px; }
ul.ausfuehrungen { margin: 0; padding-left: 16px; font-size: 14px; }
ul.ausfuehrungen li { margin-bottom: 4px; }

/* Dichtungskarten: echter Querschnitt (Muskat), bei Maus drauf vergrößert */
.duschplaner .karte img.querschnitt { width: 150px; height: 90px; object-fit: contain; background: #fff; border-radius: 4px;
  transition: transform .15s; position: relative; z-index: 1; }
.duschplaner .karte img.querschnitt:hover { transform: scale(2.4); z-index: 20; box-shadow: 0 4px 18px rgba(0,0,0,.25); }

/* Duschenplaner: Umschalter links/rechts über den Form-Kacheln; gespiegelte Kachelbilder */
.spiegel-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.spiegel-wahl .anschlag-titel { font-weight: bold; margin-right: 4px; }
.spiegel-knopf { position: relative; padding: 8px 14px; border: 2px solid #c9d3dc; border-radius: 8px;
  background: #fff; cursor: pointer; font-weight: bold; color: #1f4e79; }
.spiegel-knopf input { position: absolute; opacity: 0; }
.spiegel-knopf:has(input:checked) { border-color: var(--blau); background: #1f4e79; color: #fff; }
.spiegel-knopf:has(input:focus-visible) { outline: 2px solid var(--blau); outline-offset: 2px; }
.variante.gespiegelt .formwahl .kachel svg { transform: scaleX(-1); }
.variante.gespiegelt .formwahl .kachel svg text { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }

/* Vorgangs-Akte: Hinweis auf der Seite eines Aufmaßes, einer Kalkulation … (_vorgang_hinweis.html) */
.vg-hinweis { margin: 4px 0 10px; }
.vg-hinweis > a { display: inline-block; background: #e3eefa; border: 1px solid #b4cbe6; border-radius: 12px;
  padding: 3px 12px; color: #0c447c; text-decoration: none; }
.vg-hinweis summary { cursor: pointer; color: var(--blau); }
.vg-hinweis form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.vg-hinweis input[type=text] { width: 12em; }
.ze-kopf .vg-hinweis { margin: 0; }

/* Änderungsprotokoll (protokoll.py, _protokoll_tabelle.html) */
.prot-tabelle { width: 100%; max-width: 1100px; border-collapse: collapse; font-size: 14px; }
.prot-tabelle th, .prot-tabelle td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--rand); }
.prot-zeit { white-space: nowrap; color: #555; }
.prot-alt { color: #8e1c16; text-decoration: line-through; text-decoration-color: rgba(142, 28, 22, .4); }
.prot-neu { color: #1d5e20; font-weight: bold; }
.prot-liste { margin: 2px 0 0; padding-left: 18px; }
.prot-angelegt td:last-child b { color: #1d5e20; }
.prot-geloescht td:last-child b { color: #8e1c16; }
@media (max-width: 700px) {
  .prot-tabelle thead { display: none; }
  .prot-tabelle tr { display: block; border-bottom: 1px solid var(--rand); padding: 6px 0; }
  .prot-tabelle td { display: inline-block; border: none; padding: 2px 6px; }
  .prot-tabelle td:last-child { display: block; }
}
.prot-wahl { width: 28px; }
.prot-wahl input { width: 20px; height: 20px; }
.prot-loeschen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.prot-loeschen input[type=text] { flex: 1 1 280px; max-width: 480px; }
.prot-antrag { display: inline-block; margin-left: 6px; font-size: 12px; background: #fff6cc; color: #5c4400;
  border-radius: 10px; padding: 1px 8px; }
.prot-loeschung td:last-child b { color: #55636e; }
.prot-loeschung { background: #f5f6f7; }
.prot-antraege { border-color: #e0c56a; background: #fffbea; }
.prot-antrag-block { border-bottom: 1px solid var(--rand); padding: 8px 0; }

/* Baustein 4: Häkchen mit Text in einer Zeile (Bestellung „nur eintragen“) */
.formular label.haken-zeile { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.formular label.haken-zeile input { width: auto; margin: 0; }
/* Schiebetür-Rechner */
.zweispaltig.schiebetuer { grid-template-columns: minmax(300px, 520px) 1fr; }
.zweispaltig.schiebetuer .kundenformular h2 { margin: 10px 0 0; }
.glasmass { display: flex; flex-direction: column; gap: 2px; background: #e8f1fa; border: 1px solid #b7cde3;
            border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; }
.glasmass strong { font-size: 26px; color: var(--blau); }
.zweispaltig.schiebetuer [hidden] { display: none !important; }
.paketinfo { display: inline-block; font-size: 13px; color: #6a4b00; background: #fff3cd; border-radius: 3px; padding: 1px 6px; margin-left: 4px; }

/* Duschenplaner: Sonderdusche – Grundriss-Editor */
.gr-rahmen { border: 1px solid #c9d3dc; border-radius: 8px; padding: 10px; background: #fbfcfd; margin-bottom: 14px; }
.gr-leiste { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gr-leiste button.aktiv { background: #1f4e79; color: #fff; border-color: #1f4e79; }
.gr-zeichnung { width: 100%; max-height: 460px; touch-action: none; background: #fff; border: 1px solid #e1e6ea;
  border-radius: 6px; display: block; }
.gr-raster line { stroke: #eef1f4; }
.gr-wand { stroke: #b5b5b5; stroke-width: 60; stroke-linecap: square; cursor: pointer; }
.gr-wand.gewaehlt { stroke: #8c8c8c; }
.gr-fest { stroke: #1f4e79; stroke-width: 26; cursor: pointer; }
.gr-tuer { stroke: #e08a00; stroke-width: 26; cursor: pointer; }
.gr-strang.gewaehlt .gr-fest, .gr-strang.gewaehlt .gr-tuer { stroke-width: 40; }
.gr-bogen { fill: none; stroke: #e08a00; stroke-width: 6; stroke-dasharray: 18 12; }
.gr-frei { fill: #fff; stroke: #c33; stroke-width: 6; }
.gr-text { font-size: 46px; fill: #1f4e79; }
.gr-name { font-size: 50px; font-weight: bold; fill: #333; }
.gr-mass { font-size: 46px; fill: #666; }
.vorschau { opacity: 0.6; stroke-dasharray: 30 20; }
.gr-panel h4 { margin: 10px 0 6px; }
.gr-felder { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.gr-felder label, .gr-teil label { display: flex; flex-direction: column; font-size: 13px; gap: 2px; }
.gr-teil { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 6px 0; border-bottom: 1px dashed #dde3e8; }
.gr-teil input, .gr-felder input { width: 7em; }
.gr-hinweis { margin: 6px 0; }
.gr-wahl { display: inline-flex; border: 1px solid #c9d3dc; border-radius: 6px; overflow: hidden; }
.gr-wahl button { border: 0; border-radius: 0; background: #fff; color: #1f4e79; padding: 6px 10px; font-weight: bold;
  cursor: pointer; }
.gr-wahl button + button { border-left: 1px solid #c9d3dc; }
.gr-wahl button.aktiv { background: #1f4e79; color: #fff; }
.gr-aus { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; background: #fff4f4;
  padding: 4px 6px; border-radius: 6px; }
.gr-mehr { margin-top: 10px; }
.gr-mehr summary { cursor: pointer; color: #1f4e79; font-weight: bold; }
.gr-leiste button:disabled { opacity: 0.4; cursor: default; }
.gr-teil strong { align-self: center; }
.gr-reiter { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; border-bottom: 2px solid #1f4e79; }
.gr-reiter button { border: 1px solid #c9d3dc; border-bottom: 0; border-radius: 6px 6px 0 0; background: #eef3f7;
  color: #1f4e79; padding: 6px 12px; font-weight: bold; cursor: pointer; }
.gr-reiter button.aktiv { background: #1f4e79; color: #fff; }
.gr-ansicht { background: #fff; border: 1px solid #e1e6ea; border-radius: 6px; padding: 6px; }
.gr-ansicht svg { width: 100%; max-height: 520px; display: block; touch-action: manipulation; cursor: crosshair; }
.gr-weitere { margin: 0 0 6px 24px; font-size: 13px; }
.gr-weitere summary { cursor: pointer; color: #1f4e79; }
.gr-extra { background: #f7f9fb; padding: 4px 6px; border-radius: 6px; }
/* Dichtungen je Kante (intern) */
.dichtungen-kanten img.querschnitt { width: 110px; height: 60px; object-fit: contain; background: #fff; border-radius: 4px;
  transition: transform .15s; position: relative; }
.dichtungen-kanten img.querschnitt:hover { transform: scale(2.4); z-index: 20; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
