/* MAITEC Service-Portal. Looks like OIDA (static/oida.css, light theme): Overpass, its tokens, top bar, cards, fields,
   buttons. Light only (user, 16.11.2026: "normies don't do darkmode"); color-scheme pins the browser's own controls too.
   fonts/overpass-variable-2.woff2 and logo_maitec_white.svg are copies of OIDA's (tests/test_portal_pool.py compares). */
@font-face {
   font-family: 'Overpass'; font-style: normal; font-weight: 100 900; font-display: swap;
   src: url('/static/fonts/overpass-variable-2.woff2') format('woff2');
}
:root {
   color-scheme: light;
   --bg: #f3f5f8; --surface: #fff; --surface-2: #f7f8fa; --text: #1f2933; --heading: #10202e; --muted: #56626d;
   --border: #e1e5eb; --border-strong: #cfd6de; --chip-bg: #eef1f5; --bar: #0a2841;
   --accent: #1d71b8; --accent-dark: #16568c; --accent-soft: #e8f1fa; --bad: #b42318;
   --shadow: 0 1px 2px rgba(10, 40, 65, 0.05); --radius: 14px; --radius-sm: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 'Overpass', system-ui, sans-serif; }
h1, h2, h3 { color: var(--heading); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
.top { background: var(--bar); height: 60px; padding: 0 16px; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { height: 20px; width: auto; display: block; }
.brand span { font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .14);
   text-transform: uppercase; }
.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 30px; font-weight: 800; margin: 8px 0 8px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 20px; }
.back { margin: 0; font-size: 14px; }
.choices { display: grid; gap: 12px; }
.choice-group + .choice-group { margin-top: 24px; }
.choice-group h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.choice { display: block; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
   box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.choice:hover, .choice:focus-visible { border-color: var(--accent); box-shadow: 0 10px 24px rgba(10, 40, 65, .10); color: var(--text); }
.choice strong { display: block; font-size: 18px; margin-bottom: 2px; color: var(--accent); }
.choice span { color: var(--muted); font-size: 14px; }
form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--heading); border: 0; padding: 0; margin: 0; min-width: 0; }
.wide { grid-column: 1 / -1; }
.field small { font-weight: 400; color: var(--muted); }
small.inline { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea {
   width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
   background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.radio, .check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 8px; font-weight: 400; font-size: 15px; padding: 3px 0; }
.check > span:not(.err) { flex: 1 1 0; min-width: 0; }   /* text + links as one piece that wraps (was 32 px sideways on a phone) */
.check > .err { flex-basis: 100%; padding-left: 26px; }
.check input, .radio input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.bad input, .bad select, .bad textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: 13px; font-weight: 600; }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.filebtn { display: inline-block; align-self: flex-start; padding: 9px 14px; border: 1px dashed var(--accent); border-radius: 8px;
   color: var(--accent); cursor: pointer; font-weight: 600; }
.filebtn input { display: none; }
.files { list-style: none; margin: 0; padding: 0; font-weight: 400; }
.files li { padding: 2px 0; overflow-wrap: anywhere; }
.files button { border: 0; background: none; color: var(--bad); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
button[type=submit], #pf-print { height: 42px; padding: 0 24px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: #fff;
   font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
button[type=submit]:hover, #pf-print:hover { background: var(--accent-dark); }
button[disabled] { opacity: .6; cursor: wait; }
.msg { color: var(--muted); }
.error { color: var(--bad); font-weight: 600; }
.done { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.done h2 { margin-top: 0; }
.ref { font-size: 34px; font-weight: 800; letter-spacing: .06em; margin: 4px 0 16px; font-family: ui-monospace, Consolas, monospace; }
/* the status word on the status page: a word, not a code (pre-flight 0.9.2, the look: it borrowed .ref's typewriter font) */
.st-status { font-size: 28px; font-weight: 800; margin: 4px 0 16px; color: var(--accent); }
.steps { padding-left: 20px; }
address { font-style: normal; font-weight: 600; margin: 4px 0 12px 20px; }
.small { font-size: 14px; color: var(--muted); }
.print-only { display: none; }
.foot { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
@media print {
   /* paper is always light, whatever the screen's scheme (a dark box came out black on black, 12.11.2026) */
   :root { --bg: #fff; --surface: #fff; --text: #000; --muted: #333; --border: #999; }
   .top, .foot, .back, #pf-print, .lead, .steps, .small, .done > p:first-of-type, .done h2 { display: none; }
   body { background: #fff; color: #000; }
   .done { border: 0; padding: 0; background: #fff; }
   .done::before { content: "Begleitschein – bitte der Ware beilegen"; display: block; font-weight: 700; font-size: 18px; }
   address { margin-left: 0; }
   address::before { content: "An: "; font-weight: 400; }
   .ref { font-size: 44px; }
   .print-only { display: block; margin-top: 0; }
   /* only the two copies on paper (the screen part above is left out) */
   .done > :not(.print-only) { display: none !important; }
   .done::before { content: none !important; }
   .copy { height: 132mm; overflow: hidden; padding: 4mm 0; box-sizing: border-box; }
   .copy + .copy { border-top: 1px dashed #000; }
   .copy-label { font-weight: 700; margin: 0 0 2mm; text-align: right; font-size: 11px; }
   .copy h3 { font-size: 16px; margin: 0 0 3mm; }
   .copy dl { font-size: 11px; }
   .copy-adr { font-size: 11px; margin: 2mm 0 0; }
   .copy-note { font-size: 10px; margin: 3mm 0 0; }
   .copy-sig { font-size: 10px; margin: 6mm 0 0; }
   .copy .barcode { display: block; width: 62mm; height: 12mm; margin: 0 0 3mm; fill: #000; }
   @page { size: A4; margin: 10mm; }
   .print-only dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
   .print-only dt { font-weight: 700; }
   .print-only dd { margin: 0; white-space: pre-line; }
}

/* Pool-Planer (/pool) */
.pp-measures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.pp-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0 12px; }
.pp-out { margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.pp-out h2 { margin: 0 0 12px; font-size: 22px; }
.pp-figures { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 16px; }
.pp-figures dt { color: var(--muted); }
.pp-figures dd { margin: 0; font-weight: 600; }
.pp-notes { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.pp-notes:empty { display: none; }
.pp-block h3 { font-size: 16px; margin: 18px 0 6px; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-table th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
   background: var(--surface-2); border-bottom: 1px solid var(--border-strong); padding: 6px; }
.pp-table td { border-bottom: 1px solid var(--border); padding: 5px 6px; vertical-align: top; overflow-wrap: anywhere; }
.pp-table .num { text-align: right; white-space: nowrap; }
.pp-table .art { white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--chip-bg); font-size: 11px; font-weight: 600; color: var(--muted); }
a.button { display: inline-flex; align-items: center; height: 42px; padding: 0 24px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
a.button:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 480px) { .pp-figures { grid-template-columns: 1fr; gap: 0; } .pp-figures dd { margin-bottom: 6px; } }
[hidden] { display: none !important; }

.kicker { margin: -4px 0 8px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.timeline { margin: 8px 0 12px; padding-left: 20px; }
.timeline li { margin: 4px 0; }
/* the status QR, top right of the customer's half; the fields run beside it (print only, .print-only) */
.print-qr { float: right; width: 30mm; margin: 0 0 2mm 4mm; text-align: center; }
.print-qr img { display: block; width: 26mm; height: 26mm; margin: 0 auto 1mm; }
.print-qr span { display: block; font-size: 8px; line-height: 1.2; }

/* Elysee's site: its logo on a white bar, its green (23.11.2026) */
.site-ely { --accent: #5d7f22; --accent-dark: #48631a; --accent-soft: #eef4e2; --bar: #fff; }
.site-ely .top { border-top: 5px solid var(--accent); border-bottom: 1px solid var(--border); height: 76px; }
.site-ely .brand, .site-ely .brand:hover { color: var(--accent-dark); }
.site-ely .brand img { height: 58px; }
.site-ely .brand span { background: var(--accent-soft); }

/* Anfrage Bewässerungsplanung (/formular/bewaesserung) */
.bew-lang { display: flex; justify-content: flex-end; gap: 6px; }
.bew-lang button { border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 4px 12px;
   min-height: 32px; font: inherit; font-size: 13px; cursor: pointer; }
.bew-lang button[aria-pressed=true] { background: var(--heading); border-color: var(--heading); color: #fff; }
#bf { background: none; border: 0; box-shadow: none; padding: 0; }
body:has(#bf:not([hidden])) .foot { padding-bottom: 110px; }   /* clear of the fixed bar */
.bew-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 16px; }
.bew-sec h2 { margin: 0 0 4px; font-size: 19px; color: var(--accent); }
.bew-sec h3 { margin: 20px 0 4px; font-size: 16px; }
.bew-sec > .small, #z_werk > .small { margin: 0 0 14px; }
.bew-sec > h2 + .fields { margin-top: 12px; }
.bew-sec .field > label { font-weight: 700; }
#zeichnen > .field { margin-top: 16px; }
.bew-unit { display: flex; align-items: center; gap: 8px; }
.bew-unit span { color: var(--muted); font-weight: 400; white-space: nowrap; }
.bew-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.bew-choice { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 12px; border: 1px solid var(--border-strong);
   border-radius: var(--radius-sm); font-weight: 400; font-size: 15px; color: var(--text); cursor: pointer; }
.bew-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.bew-choice input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.bad .bew-choice { border-color: var(--bad); }
.bew-under { font-size: 14px; color: var(--text); }
.bew-sec .field > label.bew-under { font-weight: 400; }
.bew-warn { color: #7a5600 !important; background: #fff3cd; border: 1px solid #e0a800; border-radius: 6px; padding: 4px 8px; }
.bew-tips { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.bew-file { margin: 8px 0 0; font-weight: 400; overflow-wrap: anywhere; }
.bew-file button { border: 0; background: none; color: var(--bad); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; }
.bew-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--border);
   box-shadow: 0 -2px 8px rgba(10, 40, 65, .06); padding: 10px 16px; }
.bew-bar-in { max-width: 728px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bew-bar .msg { flex: 1 1 0; min-width: 0; font-size: 14px; }
.bew-open { border: 0; background: none; padding: 8px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--bad); cursor: pointer;
   text-decoration: underline dotted; text-underline-offset: 3px; }
.bew-open.ok { color: #2e7d32; }
.z_drop { border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 22px 16px; text-align: center; color: var(--muted); background: var(--surface-2); font-weight: 400; }
.z_drop.ueber { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.bad .z_drop { border-color: var(--bad); }
.z_drop button, .z_leiste button, .z_zeile button, .f_karte button { min-height: 36px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent);
   border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.z_drop button { margin-left: 6px; font-weight: 600; }
.z_schritte { margin: 0 0 10px; padding-left: 20px; font-size: 14px; color: var(--muted); }
.z_schritte li.erledigt { color: #2e7d32; }
.z_leiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.z_leiste button[aria-pressed=true] { background: var(--accent); color: #fff; }
.z_leiste button.z_rot, .z_zeile button, .f_karte button { border-color: var(--border-strong); color: var(--muted); }
.z_leiste button.frage { border-color: var(--bad); background: var(--bad); color: #fff; }
.z_leiste select, .z_zeile select { width: auto; min-height: 36px; padding: 4px 10px; font-size: 14px; max-width: 100%; }
.z_trenner { flex: 1 1 12px; }
.z_info { min-height: 1.5em; font-size: 14px; font-weight: 600; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.z_info input[type=number] { width: 110px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 8px; font: inherit; }
.z_info button { border: 0; background: var(--accent); color: #fff; border-radius: 8px; padding: 7px 12px; font: inherit; cursor: pointer; }
.z_rahmen { border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: #e9ecef; touch-action: none; }
#z_cv { display: block; width: 100%; height: 520px; cursor: crosshair; touch-action: none; }
#z_liste { margin-top: 10px; }
.z_zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.z_zeile .chip { width: 16px; height: 16px; border-radius: 4px; flex: none; border: 1px solid rgba(0, 0, 0, .25); }
.z_zeile .chip.rund { border-radius: 50%; }
.z_zeile .m2 { margin-left: auto; font-weight: 600; white-space: nowrap; }
.z_zeile .warnung { color: #7a5600; background: #fff3cd; border: 1px solid #e0a800; border-radius: 6px; padding: 4px 8px; }
.z_summe { font-weight: 600; padding-top: 8px; font-size: 14px; }
.f_gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.f_karte { border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.f_karte img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 5px; background: #e9ecef; }
.f_karte input[type=text] { margin: 6px 0; min-height: 36px; padding: 4px 8px; font-size: 14px; }
@media (pointer: coarse) { .z_leiste button, .z_leiste select { min-height: 44px; font-size: 16px; } #z_cv { height: 68vh; } }
/* the hint above the plan keeps its place: one line turning into two moved the plan under the finger (23.11.2026) */
#z_info { min-height: 44px; }
@media (max-width: 600px) { #z_info { min-height: 66px; } }
@media (max-width: 600px) { .bew-sec { padding: 16px; } #z_cv { height: 380px; } .bew-bar button[type=submit] { flex: 1; } .bew-bar .msg:empty { display: none; } .bew-bar .msg { flex-basis: 100%; order: -1; } }
@media print { .bew-bar, .bew-lang { display: none; } }
/* the file for a partner's customers (tools/oem_html.py) */
.bew-name { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.k-leer { text-align: right; }
.k-leer button, #k-zurueck { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; }
.k-leer button.frage { color: var(--bad); font-weight: 700; }
#k-noch { height: 42px; padding: 0 24px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.nur-druck { display: none; }
