/* PROJECT 100K – Assistent, Testkasse und Kundenportal. Ergänzt «Ruhiges Wasser» (portal/wasser.css): ruhig, gross, eindeutig. */
.app-band { background: #FFF3E0; color: #8A5300; font-size: 13px; text-align: center; padding: 7px 16px; }
.app-top-r { display: flex; align-items: center; gap: 10px; }
.app-link { font-size: 14.5px; color: var(--ink2); text-decoration: none; padding: 8px 10px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.app-link:hover { color: var(--ink); background: var(--teal-hell); }
.pt-steps.s6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } /* 6 Schritte seit dem Einstieg «Was möchten Sie erstellen?» */
.pt-steps button[disabled] { cursor: default; opacity: .55; }
.app-meldung { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.app-meldung:empty { display: none; }
.app-meldung.ok { background: var(--ok-bg); color: var(--ok); }
.app-meldung.fehler { background: var(--err-bg); color: var(--err); }
.app-meldung.info { background: var(--teal-hell); color: var(--ink); }
.app-sektion + .app-sektion { margin-top: 18px; }
.app-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.app-zeile .pt-field { flex: 1 1 240px; }
.pt-field select { width: 100%; min-height: 54px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--linie2); background: var(--weiss); color: var(--ink); font: 400 17px var(--ui); }
.pt-field small { color: var(--ink2); font-size: 13.5px; font-weight: 400; }
.pt-field .opt { color: var(--ink2); font-weight: 400; font-size: 13.5px; }
.pt-field input[aria-invalid="true"] { border-color: var(--err); }
.app-grid3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 16px 18px; }
.app-vorschlag-box { margin: 16px 0 6px; padding: 16px 18px; border-radius: 16px; background: var(--teal-hell); display: grid; gap: 8px; }
.app-vorschlag-box dl { display: grid; grid-template-columns: minmax(110px, 160px) 1fr auto; gap: 6px 12px; margin: 6px 0 0; align-items: center; font-size: 15px; }
.app-vorschlag-box dt { color: var(--ink2); } .app-vorschlag-box dd { margin: 0; overflow-wrap: anywhere; }
.app-vorschlag-box button { min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--teal); background: #fff; color: var(--teal); font-size: 13.5px; cursor: pointer; }
.app-bestaetigen { margin-top: 18px; }
/* Bilder */
.app-zonen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-zone { display: grid; gap: 10px; align-content: start; padding: 18px; border: 2px dashed var(--linie2); border-radius: 18px; background: var(--weiss); }
.app-zone.drag { border-color: var(--teal); background: var(--teal-hell); }
.app-zone h3 { font: 600 16px var(--ui); }
.app-zone p { font-size: 14px; color: var(--ink2); }
.app-bilder { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.app-bild { background: var(--weiss); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--linie); display: grid; }
.app-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--linie); display: block; }
.app-bild.logo img { object-fit: contain; padding: 14px; background: #F6F8F8; }
.app-bild div { padding: 10px 12px 12px; display: grid; gap: 4px; font-size: 13px; }
.app-bild b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-bild .h { color: var(--warn); }
.app-bild button { justify-self: start; min-height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--linie2); background: #fff; cursor: pointer; font-size: 12.5px; color: var(--ink2); }
.app-test { margin-top: 14px; font-size: 13.5px; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Gestaltung */
.app-stimmungen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 18px; }
.app-stimmung { position: relative; cursor: pointer; }
.app-stimmung input { position: absolute; opacity: 0; inset: 0; }
.app-stimmung span { display: grid; gap: 6px; padding: 16px; border-radius: 18px; border: 1.5px solid var(--linie2); background: var(--weiss); min-height: 100%; }
.app-stimmung i { height: 54px; border-radius: 12px; display: block; }
.app-stimmung b { font-size: 15.5px; } .app-stimmung small { font-size: 13.5px; color: var(--ink2); }
.app-stimmung input:checked + span { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,123,.16); }
.app-stimmung input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.app-warten { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 34px 10px; }
.app-warten .gef svg { width: 110px; height: 146px; }
.app-warten .pegel { transition: transform 1.2s ease; }
/* Vorschläge */
.app-entwuerfe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-entwurf { background: var(--weiss); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px rgba(13,42,48,.08), 0 0 0 1px rgba(13,42,48,.06); display: grid; grid-template-rows: auto 1fr; }
.app-entwurf.gewaehlt { box-shadow: 0 0 0 3px var(--teal), 0 18px 44px rgba(13,42,48,.12); }
.app-rahmen { position: relative; height: 380px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--linie); }
.app-rahmen iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 1600px; border: 0; transform-origin: 0 0; pointer-events: none; }
.app-rahmen.handy { display: grid; place-items: center; background: #EEF4F3; }
.app-rahmen.handy iframe { position: static; width: 390px; height: 760px; transform: scale(.46); transform-origin: 50% 50%; border-radius: 34px; box-shadow: 0 0 0 10px #0D2A30; margin: -205px; pointer-events: auto; }
.app-entwurf-text { padding: 16px 18px 18px; display: grid; gap: 10px; align-content: start; }
.app-entwurf-text h3 { font: 400 26px/1.1 var(--display); }
.app-entwurf-text p { font-size: 14.5px; color: var(--ink2); }
.app-geraete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.app-geraete button { min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--linie2); background: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.app-geraete .app-link { white-space: nowrap; font-size: 13px; padding: 6px 4px; }
.app-geraete button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Bestellung */
.app-bestell .k-h3 { font: 600 16px var(--ui); margin: 20px 0 8px; }
.app-bestell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.app-wahl { display: grid; gap: 10px; }
.app-wahl label { position: relative; cursor: pointer; }
.app-wahl input[type="radio"] { position: absolute; opacity: 0; inset: 0; }
.app-wahl span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--linie2); background: var(--weiss); }
.app-wahl span small { grid-column: 1 / -1; color: var(--ink2); font-size: 13.5px; }
.app-wahl input:checked + span { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,123,.16); }
.app-wahl input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.app-wahl input:disabled + span { opacity: .55; cursor: not-allowed; }
/* Überschrift erhält beim Schrittwechsel den Fokus (Screenreader) – ohne sichtbaren Rahmen, Tastaturfokus der Bedienelemente bleibt sichtbar */
[data-schritt] h1[tabindex="-1"]:focus { outline: none; }
/* Start: «Was möchten Sie erstellen?» – grosse, gut antippbare Karten */
.app-projektarten { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 18px; }
.app-projektarten span { min-height: 96px; align-content: start; padding: 18px 18px 16px; }
.app-projektarten span b:first-child { font-size: 17.5px; display: flex; gap: 10px; align-items: center; }
.app-projektarten span b:first-child i { font-style: normal; font-size: 22px; line-height: 1; }
.app-projektarten span small { font-size: 14.5px; line-height: 1.45; }
.app-modern { margin-top: 20px; padding: 18px; border-radius: 16px; background: var(--teal-hell, #E4F2F0); display: grid; gap: 12px; }
.app-modern .k-h3 { margin: 0; font: 600 17px var(--ui); }
.app-modern .pt-field input { background: #fff; }
.app-modern [data-modern-ohne] { justify-self: start; }
.app-import-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.app-import-schritte li { display: flex; gap: 10px; align-items: baseline; }
.app-import-schritte li::before { content: "○"; color: var(--ink2); width: 1.1em; flex: none; }
.app-import-schritte li.ok::before { content: "✓"; color: var(--teal); font-weight: 700; }
.app-import-schritte li.laeuft::before { content: "◌"; color: var(--teal); animation: drehen 1.2s linear infinite; display: inline-block; }
.app-import-schritte li.fehler::before { content: "!"; color: var(--err, #B3261E); font-weight: 700; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-import-schritte li.laeuft::before { animation: none; } }
.app-kurz { margin-top: 14px; padding: 16px; border-radius: 16px; background: #fff; border: 1.5px solid var(--teal); display: grid; gap: 12px; }
.app-kurz-liste { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 6px 14px; margin: 0; font-size: 16px; }
.app-kurz-liste dt { color: var(--ink2); } .app-kurz-liste dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.app-alle > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; margin-top: 12px; }
.app-alle > summary[hidden] { display: none; }
.app-bilder-kopf { grid-column: 1 / -1; list-style: none; font-size: 15px; color: var(--ink2); padding: 4px 0; }
.app-bild.kompakt div { gap: 6px; } .app-bild.kompakt b { font-size: 14px; font-weight: 500; }
.app-planb { margin-top: 6px; padding: 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--linie2); display: grid; gap: 10px; }
.app-planb .k-h3 { margin: 0; } .app-planb-schritte { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.45; }
.app-planb p { margin: 0; font-size: 15px; line-height: 1.5; }
.app-planb-text { display: grid; gap: 10px; } .app-planb-text > summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 6px 0; }
.app-planb-text[open] > summary { margin-bottom: 8px; } .app-planb-text > * + * { margin-top: 10px; }
.app-planb textarea { width: 100%; box-sizing: border-box; min-height: 150px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--linie2); font: 400 16px/1.5 var(--ui); }
.app-uebernommen { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FFF8EC; border: 1px solid #F0DDB8; font-size: 14.5px; color: #5A4310; }
.app-mehr { margin-top: 16px; border-top: 1px solid var(--linie2); padding-top: 10px; }
.app-mehr summary { cursor: pointer; font-weight: 600; padding: 6px 0; min-height: 32px; }
/* Domainassistent */
.app-domain .k-eintrag-kopf { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; justify-content: space-between; }
.app-fragen { margin: 12px 0; border: 1px solid var(--linie2); border-radius: 14px; padding: 10px 14px; background: #fff; }
.app-fragen summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.app-fragen dt { font-weight: 600; margin-top: 10px; } .app-fragen dd { margin: 4px 0 0; color: var(--ink2); line-height: 1.5; }
.app-dns { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 15px; table-layout: fixed; }
.app-dns th { text-align: left; width: 70px; color: var(--ink2); font-weight: 500; padding: 6px 8px 6px 0; vertical-align: top; }
.app-dns td { padding: 6px 0; overflow-wrap: anywhere; } .app-dns code { font: 500 14px ui-monospace, monospace; background: var(--teal-hell, #E4F2F0); padding: 2px 6px; border-radius: 6px; }
.app-dom-punkte { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; } .app-dom-punkte li.ok { color: var(--teal); } .app-dom-punkte small { color: var(--ink2); display: block; margin-left: 1.3em; }
.app-wunsch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.app-wunsch-chips button { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--linie2); background: #fff; font: 500 14.5px var(--ui); color: var(--ink); cursor: pointer; }
.app-wunsch-chips button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-hell, #E4F2F0); }
.app-summe { position: sticky; top: 96px; }
.app-summe dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 12px 0; font-size: 15.5px; }
.app-summe dt { color: var(--ink2); } .app-summe dd { margin: 0; text-align: right; font-weight: 600; }
.app-summe .gesamt { font: 400 34px/1 var(--display); color: var(--teal); }
.app-bed { font-size: 14px; color: var(--ink2); display: grid; gap: 8px; margin: 12px 0; }
.app-bed b { color: var(--ink); }
.app-bed ul { margin: 2px 0 0; padding-left: 18px; }
/* Testkasse */
.kasse { max-width: 560px; margin: 40px auto; padding: 0 16px 80px; }
.kasse-test { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: #FFF3E0; color: #8A5300; padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; }
.kasse-betrag { font: 400 54px/1 var(--display); margin: 10px 0 4px; }
.kasse .k-knoepfe { margin-top: 22px; display: grid; gap: 10px; }
/* Konto */
.app-konto { max-width: 520px; }
.app-wechsel { margin-top: 14px; font-size: 14.5px; color: var(--ink2); }
.app-wechsel button { background: none; border: 0; color: var(--teal); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
@media (max-width: 640px) {
  .db-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-right: -14px; scrollbar-width: none; }
  .db-tabs::-webkit-scrollbar { display: none; }
  .db-tabs button { flex: none; }
  .pt-proj span { display: none; }
  .pt-proj b { display: block; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 420px) {
  .pt-save > span { display: none; }
  .pt-save { padding: 8px; }
  .app-top-r { gap: 4px; }
  .app-link { padding: 6px 4px; font-size: 13px; }
  .pt-proj { min-width: 0; }
  .pt-proj b { max-width: 38vw; }
}
@media (max-width: 980px) { .app-entwuerfe { grid-template-columns: 1fr; } .app-rahmen { height: 340px; } .app-bestell { grid-template-columns: 1fr; } .app-summe { position: static; } }
@media (max-width: 760px) { .app-zonen, .app-stimmungen { grid-template-columns: 1fr; } .app-grid3 { grid-template-columns: 1fr; } .pt-steps.s6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; } .pt-steps.s6 button span { display: none; } .pt-steps.s6 button { justify-content: center; padding: 6px 2px; min-height: 44px; } .app-vorschlag-box dl { grid-template-columns: 1fr auto; } .app-vorschlag-box dt { grid-column: 1 / -1; } }

/* PWA: Hinweisleiste (Update, offline) und Installationshinweis */
.app-leiste { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center;
  width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: 14px; background: #0D2A30; color: #fff; font-size: 14.5px; box-shadow: 0 10px 30px rgba(4,18,26,.25); }
.app-leiste[hidden] { display: none; }
.app-leiste button { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 0; background: #3FD0C5; color: #04121A; font: 600 14px var(--ui, system-ui); cursor: pointer; }
.app-install { margin: 10px 0 0; font-size: 14px; color: var(--ink2); }
.app-install[hidden] { display: none; }
.sim-karte { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 18px; border-radius: 14px; background: linear-gradient(135deg, #0D2A30, #0E7C7B); color: #fff; font: 600 16px ui-monospace, monospace; }
.sim-karte span:last-child { font: 400 13px var(--ui, system-ui); opacity: .8; }
.opt { font-weight: 400; color: var(--ink2); font-size: .9em; }

.app-turnstile { margin-top: 14px; min-height: 65px; }
.app-turnstile[hidden] { display: none; }

/* Anmeldung mit Code (installierte App) */
.app-code { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--teal-hell, #E4F2F0); }
.app-code label { display: block; font-weight: 600; margin-bottom: 8px; }
.app-code-zeile { display: flex; gap: 10px; flex-wrap: wrap; }
/* min-width: 0 ist entscheidend: Ein Eingabefeld ist als Flex-Element sonst nie schmaler als seine eingebaute Breite
   (Platz für 20 Zeichen ≈ 375 px bei dieser Schrift) und ragte auf dem iPhone über den Bildschirm (Befund Simon 20.11.). */
.app-code-zeile input { flex: 1 1 9em; min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 52px; font: 600 22px/1 ui-monospace, monospace; letter-spacing: .15em; text-align: center; border-radius: 12px; border: 1px solid #9CCFC9; padding: 0 10px; background: #fff; color: var(--ink, #0D2A30); }
.app-code-zeile button { flex: 0 0 auto; min-height: 52px; }
@media (max-width: 359px) { .app-code-zeile button { flex: 1 1 100%; } }
.app-code[hidden] { display: none; }
