/* 18.65 Öffentliche Formularseiten („Canvas“ zum Einbetten per Iframe) im Archos-/Website-Design – wie die Startseite von Archos
   (design_teamnoah.css) und www.team-noah.de: Gitterpapier-Grund, Archivo für Überschriften, Lora kursiv für Zahlen,
   Source Sans 3 für Text. 19.19 Design 34f12b (docs/DESIGN.md, wie das Bestellformular Variante A): Navy #05173D, Felder,
   Ablageflächen und Preis-Kasten in Porzellan #EEEBE3 (Preis-Kasten mit Gitterlinien), Akzent Sand dunkel #796B44, Sand #E0CCA6,
   Stahlblau #3D6189 für ruhige Linien; Absende-Knopf Porzellan mit Navy-Schrift, Sand-Rand und Schatten.
   Aufbau, Felder und Bedingungen bleiben wie in Odoo (canvas.html, form_public.js, price_calc.js) – hier nur das Aussehen.
   Schriften lokal (static/fonts/design + website, SIL OFL 1.1) – nichts wird von Google geladen. Nur helles Design. */
@font-face { font-family: "TN Archivo"; src: url("../fonts/design/archivo-latin-var.woff2") format("woff2"); font-weight: 100 900;
  font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "TN Lora"; src: url("../fonts/design/lora-italic-var.ttf") format("truetype"); font-style: italic;
  font-weight: 400 700; font-display: swap; }
@font-face { font-family: "TN Source"; src: url("../fonts/website/source-sans-3-latin-var.woff2") format("woff2"); font-weight: 200 900;
  font-display: swap; }

:root {
  color-scheme: light;
  --navy: #05173D;
  --navy-2: #102035;
  --petrol: #796B44;
  --tief: #4F7196;
  --himmel: #E0CCA6;
  --stahl: #3D6189;
  --porzellan: #EEEBE3;
  --knopfrand: #C7BEA4;
  --platzhalter: #6E6857;
  --text: #05173D;
  --muted: #56677D;
  --linie: #E6E1D6;
  --linie-2: #D9D2C0;
  --gitter: #F1EEE7;
  --hauch: #F4F2EC;
  --weiss: #FFFFFF;
  --fehler: #B42318;
  --fehler-grund: #FDECEC;
  --ok: #1C7A4A;
  --tnc-gap: 22px;
  --tnc-lgap: 7px;
  --tnc-logo: 120px;
  --kopf: "TN Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --zahl: "TN Lora", Georgia, serif;
  --body: "TN Source", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --schraffur: repeating-linear-gradient(135deg, #EEEBE3 0 12px, #D9D2C0 12px 13px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--weiss); -webkit-text-size-adjust: 100%; }
body.tnc { margin: 0; color: var(--text); font: 400 16px/1.55 var(--body);
  background-color: var(--weiss);
  background-image: linear-gradient(var(--gitter) 1px, transparent 1px), linear-gradient(90deg, var(--gitter) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px; }
.tnc [hidden] { display: none !important; }
.tnc a { color: var(--petrol); text-decoration: underline; text-underline-offset: 2px; }
.tnc a:hover { color: var(--navy); }

/* ---------------------------------------------------------------- Kopf und Blatt */
.tnc-wrap { max-width: 780px; margin: 0 auto; padding: 36px 24px 72px; }
.tnc-previewbar { background: var(--navy); color: var(--weiss); text-align: center; font-size: 14px; padding: 8px 12px; }
.tnc-logo { display: block; width: min(var(--tnc-logo), 110px); height: auto; margin: 0 auto 14px; }
.tnc-title { margin: 0 0 26px; text-align: center; font: 400 clamp(1.85rem, 4.6vw, 2.6rem)/1.08 var(--kopf); letter-spacing: -.035em;
  color: var(--navy); text-wrap: balance; }
.tnc-title::after { content: "Team Noah · Ingenieurbüro"; display: block; margin-top: 8px; font: italic 400 1.05rem/1.3 var(--zahl);
  letter-spacing: -.01em; color: var(--petrol); }
.tnc-form, .tnc-done { background: var(--weiss); border: 1px solid var(--linie); border-radius: 18px; padding: 34px 38px 38px;
  box-shadow: 0 0 0 5px var(--hauch), 0 0 0 6px var(--linie), 0 18px 42px rgba(5, 23, 61, .07); }

/* ---------------------------------------------------------------- Felder */
.tnc-rows { display: flex; flex-direction: column; }
.tnc-field { margin: 0 0 var(--tnc-gap); min-width: 0; }
.tnc-field.tnc-gap-after { margin-bottom: calc(var(--tnc-gap) + 14px); padding-bottom: calc(var(--tnc-gap) - 2px);
  border-bottom: 1px solid var(--linie); }
/* Folgefragen (erscheinen erst nach einer Auswahl): schraffierter Streifen mit Petrol-Linie wie die Maßketten der Website */
.tnc-field[data-show-field] { position: relative; padding: 12px 14px 14px 18px; border-radius: 12px; background: #F7F5F0;
  border: 1px solid var(--linie-2); }
.tnc-field[data-show-field]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--stahl), #C3D5E8); }
.tnc-label { display: block; margin: 0 0 var(--tnc-lgap); font: 600 15.5px/1.4 var(--body); color: var(--navy); }
.tnc-star { color: var(--petrol); font-weight: 700; margin-left: 2px; }
.tnc-h2 { margin: 18px 0 4px; font: 400 1.35rem/1.15 var(--kopf); letter-spacing: -.02em; color: var(--navy); }
.tnc-paragraph { font-size: 15px; }
.tnc-paragraph p { margin: 0 0 10px; }

.tnc-input { display: block; width: 100%; min-height: 48px; padding: 11px 15px; font: 400 16px/1.4 var(--body); color: var(--navy);
  background: var(--porzellan); border: 1px solid var(--linie-2); border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
.tnc-input::placeholder { color: var(--platzhalter); opacity: 1; }
.tnc-input:hover { background-color: #F5F3EE; border-color: var(--knopfrand); }
.tnc-input:focus, .tnc-file:focus-within, .tnc-box:focus-visible { background-color: var(--weiss); border-color: var(--knopfrand); box-shadow: 0 0 0 4px rgba(224, 204, 166, .45); }
.tnc-textarea { min-height: 104px; resize: vertical; }
.tnc-select:focus { background-color: var(--weiss); }
.tnc-select { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background: var(--porzellan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2305173D' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center / 14px 14px; }
.tnc-group { display: flex; }
.tnc-group .tnc-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tnc-addon { display: inline-flex; align-items: center; justify-content: center; width: 48px; flex: 0 0 48px; color: var(--petrol);
  background: var(--hauch); border: 1px solid var(--linie-2); border-left: 0; border-radius: 0 10px 10px 0; }
.tnc-help { margin-top: 7px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tnc-err { margin-top: 6px; font-size: 14px; color: var(--fehler); }
.tnc-field.invalid .tnc-input, .tnc-field.o_has_error .tnc-input, .tnc-field.invalid .tnc-file { border-color: var(--fehler); }
.tnc-alert { margin: 0 0 24px; padding: 14px 16px; background: var(--fehler-grund); color: var(--fehler); font-size: 15px; border-radius: 12px; }

/* Dateien: schraffierte Ablagefläche */
.tnc-file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px;
  background: var(--schraffur); border: 1.5px dashed var(--knopfrand); border-radius: 12px; font-size: 15px; }
.tnc-file:hover { border-color: var(--stahl); }
.tnc-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tnc-file-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; background: var(--porzellan); color: var(--navy);
  border: 1px solid var(--knopfrand); box-shadow: 0 8px 18px -12px rgba(16, 32, 53, .45); border-radius: 99px; white-space: nowrap; font: 600 12px var(--kopf); letter-spacing: .08em; text-transform: uppercase; }
.tnc-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--platzhalter); }

/* Auswahl (Radio / Mehrfachauswahl) als Karten */
.tnc-options { display: flex; flex-direction: column; gap: 8px; }
.tnc-options-h { flex-direction: row; flex-wrap: wrap; }
.tnc-opt { display: flex; align-items: flex-start; gap: 11px; padding: 11px 14px; font-size: 15.5px; line-height: 1.45; cursor: pointer;
  background: var(--weiss); border: 1px solid var(--linie-2); border-radius: 10px; color: var(--navy); }
.tnc-options-h .tnc-opt { flex: 1 1 150px; }
.tnc-opt:hover { border-color: var(--knopfrand); }
.tnc-opt:has(input:checked) { border-color: var(--knopfrand); background: var(--porzellan); box-shadow: 0 0 0 3px rgba(224, 204, 166, .35); }
.tnc-opt input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--petrol); }
.tnc-opt-single { padding: 0; border: 0; background: none; box-shadow: none !important; }

/* Erklärung zur Förderrichtlinie (BzA/BnD) */
.tnc-box-title { margin: 14px 0 10px; font: 400 1.35rem/1.15 var(--kopf); letter-spacing: -.02em; color: var(--navy); }
.tnc-box { max-height: 230px; overflow-y: auto; padding: 16px 18px; background: var(--hauch); border: 1px solid var(--linie);
  border-radius: 12px; font-size: 14.5px; line-height: 1.6; color: var(--text); outline: none; }
.tnc-box p { margin: 0 0 12px; }
.tnc-box ul { margin: 0 0 12px; padding-left: 20px; }
.tnc-consent { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 12px; margin: 16px 0 0; cursor: pointer; }
.tnc-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--petrol); }
.tnc-consent span { font-weight: 600; font-size: 15.5px; color: var(--navy); }

/* Preis (live berechnet) – 19.19: Porzellan-Kasten mit dem typischen Raster (wie Bestellformular Variante A, 34f12b) */
.tnc-price { margin: 34px 0 8px; padding: 20px 24px 18px; border-radius: 18px; color: var(--navy); border: 1px solid var(--linie-2);
  background: linear-gradient(rgba(199, 190, 164, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(199, 190, 164, .45) 1px, transparent 1px), var(--porzellan);
  background-size: 32px 32px, 32px 32px, auto; box-shadow: 0 18px 36px -24px rgba(60, 45, 30, .38); }
.tnc-price-title { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--linie-2); color: var(--navy);
  font: 600 16px/1.3 var(--kopf); letter-spacing: -.01em; }
.tnc-price-total { margin: 10px 0 6px; color: #70623F; font: italic 400 clamp(2.1rem, 6vw, 2.9rem)/1.05 var(--zahl);
  font-variant-numeric: tabular-nums; }
.tnc-price-pos { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--linie-2); font-size: 15px;
  color: var(--navy); line-height: 1.6; }
.tnc-price-pos .pc-minus { color: var(--petrol); font-weight: 600; }
/* 19.20: Förderhinweis in Förder-Orange (#B23A0A: 5,0 : 1 auf Porzellan) – nur Anzeige, wie ein Rabatt */
.tnc-price-pos .pc-foerder { color: #B23A0A; font-weight: 600; }
.tnc-price-pos .pc-foerder-hinweis { font-size: .82em; opacity: .85; }
.tnc-price-pos .pc-error { color: var(--fehler); }
.tnc-price-note { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.tnc-price-mitte { text-align: center; }
.tnc-price-mitte .tnc-price-pos { display: none !important; }

/* Rechtstexte unter dem Formular */
.tnc-agb { margin: 20px 0 0; color: var(--muted); }
.tnc-agb-lang { font-size: 12px; line-height: 1.6; }
.tnc-agb-lang p { margin: 0 0 10px; }
.tnc-agb-kurz { margin-top: 26px; font-size: 13px; line-height: 1.55; }

/* Absenden – 19.19: Porzellan-Pille mit Navy-Schrift, Sand-Rand und Schatten, Pfeilkreis Navy mit Sand-Pfeil (34f12b) */
.tnc-submit { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 16px; margin-top: 28px; }
.tnc-result { font-size: 14px; }
.tnc-result .text-danger { color: var(--fehler); }
.tnc-result .text-success { color: var(--ok); }
.tnc-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 6px 6px 24px; color: var(--navy);
  background: var(--porzellan); border: 1px solid var(--knopfrand); box-shadow: 0 12px 26px -12px rgba(16, 32, 53, .5); border-radius: 99px; cursor: pointer; -webkit-appearance: none;
  font: 600 13.5px/1 var(--kopf); letter-spacing: .08em; text-transform: uppercase; transition: background .15s; }
.tnc-btn::after { content: "›"; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy);
  color: var(--himmel); font: 700 22px/1 var(--body); letter-spacing: 0; }
.tnc-btn:hover { background: #E4DFD3; }
.tnc-btn:focus-visible { outline: 2px solid var(--stahl); outline-offset: 3px; }
.tnc-btn[disabled] { opacity: .6; cursor: default; }
.tnc-form.o-sending { opacity: .75; }
.tnf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Danke-Seite */
.tnc-done { text-align: center; }
.tnc-done p { margin: 0 auto 8px; max-width: 520px; font-size: 16px; }
.tnc-done .tnc-done-sub { color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { .tnc-input, .tnc-btn { transition: none; } }

/* Handy: 16 px Rand, Karte schlanker, Knopf über volle Breite */
@media (max-width: 720px) {
  .tnc-wrap { padding: 22px 16px 44px; }
  .tnc-form, .tnc-done { padding: 22px 16px 26px; border-radius: 14px; box-shadow: 0 0 0 4px var(--hauch), 0 0 0 5px var(--linie); }
  .tnc-logo { width: min(var(--tnc-logo), 92px); }
  .tnc-field[data-show-field] { padding: 10px 10px 12px 14px; }
  .tnc-submit { justify-content: stretch; }
  .tnc-btn { width: 100%; justify-content: space-between; }
}

/* Persönliche Bestellseite aus der Akquise (?fuer=…): Begrüßung, Erklärvideo, Telefon */
.tnc-fuer { margin: 0 0 28px; padding: 20px 22px; background: var(--weiss); border: 1px solid var(--linie); border-left: 3px solid var(--stahl); border-radius: 10px; }
.tnc-fuer p { margin: 0 0 12px; }
.tnc-fuer-hallo { font: 500 1.15rem/1.3 var(--kopf); color: var(--navy); }
.tnc-fuer-gruss { margin-bottom: 0 !important; font: italic 400 1.05rem/1.4 var(--zahl); color: var(--petrol); }
.tnc-video { margin: 4px 0 16px; }
.tnc-video-btn { display: block; width: 100%; padding: 26px 16px; border: 1px solid var(--linie-2); border-radius: 10px; background: var(--hauch); color: var(--navy); font: 500 1rem/1.3 var(--kopf); cursor: pointer; }
.tnc-video-btn:hover, .tnc-video-btn:focus-visible { border-color: var(--petrol); color: var(--petrol); }
.tnc-video-hinweis { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.tnc-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: var(--navy); }
