/* Seiten für Außenstehende: Portal, Melde-, Status-, Auftrags- und Gewerbe-Link-Seiten (ToDo E, 09.11.2026).
   Eigene Datei nach app.css: nur Bausteine dieser Seiten, Farben/Radien ausschließlich über die Variablen aus app.css.
   Regeln: ein Hauptknopf (Orange), Tippflächen ab 44 px, Status als Klartext + Farbe, hell und dunkel. */

/* Kopf: Firmenlogo links, sonst Cordimo; Zurück-Link */
.einfach-kopf .kopf-firmenlogo { display: block; max-height: 40px; max-width: 180px; width: auto; height: auto; }
.ax-zurueck { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 6px; color: var(--brand); font-weight: 600; text-decoration: none; }
.ax-zurueck .i { width: 18px; height: 18px; transform: rotate(180deg); }
.ax-zurueck:hover { text-decoration: underline; }
.ax-sprung { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--karte); color: var(--brand); padding: 10px 14px; border-radius: var(--r-klein); }
.ax-sprung:focus { left: 8px; }
.ax-powered { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: .74rem; text-decoration: none; }
.ax-powered svg.logo-wort { height: 14px; }

/* Ein Hauptknopf: Orange wie in den Mails (Design-Check 08.11.), dunkle Schrift für Kontrast */
.einfach .btn, .einfach .gross-knopf, .einfach summary.btn { min-height: 44px; }
.einfach .btn-klein { min-height: 40px; }
.einfach input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .einfach select, .einfach textarea { min-height: 44px; font-size: 16px; }
.einfach :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.einfach .einfach-kopf .btn, .einfach .einfach-kopf .klein-select { min-height: 44px; }
/* Meldungen: ein Satz + ein Knopf */
.ax-meldung { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r); font-size: .93rem; margin: 0 0 14px; }
.ax-meldung > span { flex: 1; min-width: 12em; }
.ax-meldung .i { width: 20px; height: 20px; margin-top: 1px; }
.ax-fehler { background: var(--rot-hell); color: var(--rot); font-weight: 500; }
.ax-erfolg { background: var(--gruen-hell); color: var(--gruen); font-weight: 500; }
.ax-meldung-link { color: inherit; font-weight: 600; }
.ax-leer { text-align: center; padding: 32px 20px; background: var(--karte); border: 1px dashed var(--line-stark); border-radius: var(--r); display: grid; justify-items: center; gap: 6px; }
.ax-leer .i { width: 32px; height: 32px; color: var(--muted); }
.ax-leer b { color: var(--ink); }
.ax-leer p { margin: 0; color: var(--muted); max-width: 26em; font-size: .92rem; }
.ax-leer .btn { margin-top: 8px; }

/* Status als Klartext + Farbe */
.ax-status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-rund); background: var(--flaeche); color: var(--muted); white-space: nowrap; }
.ax-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ax-status.gruen { background: var(--gruen-hell); color: var(--gruen); }
.ax-status.orange { background: var(--akzent-hell); color: var(--orange-text); }
.ax-status.blau { background: var(--brand-hell); color: var(--brand); }
.ax-status.rot { background: var(--rot-hell); color: var(--rot); }

/* Fortschritt als Zeile statt Tabelle */
.ax-schritte { list-style: none; display: flex; gap: 0; padding: 0; margin: 4px 0 16px; counter-reset: s; }
.ax-schritte li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .8rem; color: var(--muted); position: relative; }
.ax-schritte li + li::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--line-stark); z-index: 0; }
.ax-schritte li.fertig + li::before, .ax-schritte li.fertig + li.jetzt::before { background: var(--gruen); }
.ax-punkt { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--karte); border: 2px solid var(--line-stark); font-weight: 700; color: var(--muted); }
.ax-punkt .i { width: 16px; height: 16px; }
.ax-schritte li.fertig .ax-punkt { background: var(--gruen-fuell); border-color: var(--gruen-fuell); color: var(--auf-farbe); }
.ax-schritte li.fertig .ax-punkt .i { color: var(--auf-farbe); }
.ax-schritte li.jetzt { color: var(--ink); font-weight: 600; }
.ax-schritte li.jetzt .ax-punkt { border-color: var(--brand); color: var(--brand); }

/* Formular in nummerierten Schritten (Meldeseite) */
.ax-schritt { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ax-schritt > legend { display: flex; align-items: center; gap: 10px; font: 600 1.02rem/1.3 InterDisplay, Inter, sans-serif; color: var(--ink); margin-bottom: 10px; padding: 0; }
.ax-schritt > legend .ax-nr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-hell); color: var(--brand); font-size: .9rem; flex: none; }

/* Notfall oben, ruhig aber sichtbar */
.ax-notfall { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--rot-hell); color: var(--ink); font-size: .9rem; margin: 0 0 16px; }
.ax-notfall .i { color: var(--rot); width: 22px; height: 22px; }
.ax-notfall a { color: var(--rot); font-weight: 700; white-space: nowrap; }

/* Portal: eine Karte je Haus mit „Was kann ich hier tun?“ */
.ax-haus { background: var(--karte); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.ax-haus-kopf { display: flex; gap: 12px; align-items: flex-start; }
.ax-haus-kopf img { max-height: 32px; max-width: 120px; width: auto; flex: none; margin-left: auto; }
.ax-haus-kopf h2 { font-size: 1.2rem; margin: 0 0 2px; }
.ax-haus-kopf p { margin: 0; color: var(--muted); font-size: .88rem; }
.ax-rolle { margin: 10px 0 0; font-size: .93rem; color: var(--text); }
.ax-aktionen-titel { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 16px 0 8px; }
.ax-aktionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ax-aktion { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 12px 14px; overflow-wrap: anywhere; hyphens: auto; border-radius: var(--r); border: 1px solid var(--line-stark); background: var(--karte); color: var(--ink); font-weight: 600; text-decoration: none; }
.ax-aktion .i { width: 22px; height: 22px; color: var(--brand); }
.ax-aktion small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.ax-aktion:hover { background: var(--flaeche); }
.ax-aktion.haupt { background: var(--petrol); border-color: var(--petrol); color: var(--auf-farbe); }
.ax-aktion.haupt .i, .ax-aktion.haupt small { color: var(--auf-farbe); }
.ax-aktion.haupt:hover { background: var(--brand-dunkel); border-color: var(--brand-dunkel); }
.ax-abschnitt { margin-top: 18px; }
.ax-abschnitt > h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 8px; }
.ax-abschnitt > h3 .ax-zahl { font-size: .74rem; background: var(--akzent); color: var(--auf-orange); padding: 1px 8px; border-radius: var(--r-rund); }
.ax-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ax-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--karte); color: inherit; text-decoration: none; }
a.ax-zeile:hover { background: var(--flaeche); }
.ax-zeile > span:first-child { min-width: 0; display: grid; gap: 2px; }
.ax-zeile b { color: var(--ink); overflow-wrap: anywhere; }
.ax-zeile small { color: var(--muted); }
.ax-zeile.grau { opacity: .62; }
.ax-karte { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; background: var(--karte); }
.ax-karte.dringend { border-color: var(--akzent); box-shadow: inset 4px 0 0 var(--akzent); }
.ax-karte p { margin: 0; }
.ax-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ax-mehr { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
.ax-mehr > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; font-weight: 600; color: var(--brand); }
.ax-mehr > summary::-webkit-details-marker { display: none; }
.ax-mehr > summary .i { width: 18px; height: 18px; transition: transform .15s; }
.ax-mehr[open] > summary .i { transform: rotate(180deg); }
.ax-mehr-inhalt { display: grid; gap: 16px; padding: 4px 0 6px; }
.ax-mehr-inhalt h4 { margin: 0 0 6px; font-size: .92rem; color: var(--ink); }
.ax-hinweis { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
.ax-recht { font-size: .84rem; padding: 10px 12px; border-radius: var(--r-klein); background: var(--flaeche); color: var(--text); margin: 0; }
.ax-fakten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; }
.ax-fakten dt { color: var(--muted); }
.ax-fakten dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.ax-titel { margin: 4px 0 16px; }
.ax-titel h1 { margin: 0 0 4px; }
.ax-titel p { margin: 0; color: var(--muted); }
.ax-band { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: var(--r); background: var(--brand-hell); color: var(--ink); text-decoration: none; margin: 0 0 16px; }
.ax-band span { flex: 1; }
.ax-band .i { color: var(--brand); }

/* Handy: alles einspaltig, Knöpfe volle Breite */
@media (max-width: 480px) {
  .ax-aktionen { grid-template-columns: 1fr; }
  .ax-knoepfe > .btn, .ax-knoepfe > form, .ax-knoepfe > form > .btn, .ax-knoepfe > details { flex: 1 1 100%; width: 100%; }
  .ax-fakten { grid-template-columns: 1fr; gap: 2px; }
  .ax-fakten dd { margin-bottom: 8px; }
  .ax-haus { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ax-mehr > summary .i { transition: none; } }
.ax-knoepfe-block { display: grid; gap: 10px; margin-top: 16px; }
.ax-knoepfe-block > .aufklapp { margin: 0; }
/* Ältere Seiten für Außenstehende: Fehler und Erfolg sehen aus wie .ax-meldung (E8) */
.einfach p.fehler { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--rot-hell); color: var(--rot); font-weight: 500; margin: 0 0 14px; }
.einfach .hinweis-band { border-radius: var(--r); }

/* Anmeldung (Sven 10.11.2026): Google und „Mit Passwort anmelden“ als zwei gleiche Knöpfe, Formular klappt auf,
   Nutzungsbedingungen als kurzer Satz am Ende der Karte */
.anmelde-wege { display: grid; gap: 10px; margin-top: 18px; }
.pw-anmeldung > summary { display: none; }
.anmelde-kurz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.anmelde-kurz > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px;
  padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--karte, #fff); color: var(--ink);
  font: inherit; font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.anmelde-kurz > *:hover, .anmelde-kurz > *:focus-visible { border-color: var(--brand); color: var(--brand); }
.anmelde-kurz > [aria-current="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-hell); }
.anmelde-kurz .i { width: 20px; height: 20px; }
.anmelde-kurz span { text-align: center; white-space: nowrap; }
@media (max-width: 420px) { .anmelde-kurz > * { font-size: .78rem; padding: 10px 4px; } .anmelde-wege .sso-knopf { font-size: .92rem; } }
.anmelde-kurz > [hidden] { display: none; }
.pw-anmeldung[open] { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.anmelde-recht { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.anmelde-recht a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.anmelde-recht a:hover, .anmelde-recht a:focus-visible { color: var(--brand); }
/* Meldung verfolgen per E-Mail (10.11.2026) und Hinweis für Vermieter */
.ms-folgen { margin: 14px 0; }
.ms-folgen-zeile { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-folgen-zeile input { flex: 1 1 200px; min-width: 0; }
.ms-vermieter { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Meldeseite: Vorauswahl „Worum geht es?“ (Sven 10.11.2026 20:42). Rest erscheint nach der Wahl; ohne :has() bleibt alles sichtbar */
.ax-wahl { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ax-wahl legend { font-weight: 700; font-size: 18px; margin-bottom: 10px; padding: 0; }
.ax-kachel { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--karte); cursor: pointer; min-height: 88px; }
.ax-kachel input { position: absolute; opacity: 0; pointer-events: none; }
.ax-kachel .i { width: 24px; height: 24px; color: var(--brand); }
.ax-kachel b { font-size: 15px; line-height: 1.25; }
.ax-kachel small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.ax-kachel:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.ax-kachel:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.ax-kachel.notfall { grid-column: 1 / -1; border-color: var(--rot); background: var(--rot-hell); }
.ax-kachel.notfall .i { color: var(--rot); }
.ax-kachel.notfall:has(input:checked) { border-color: var(--rot); box-shadow: 0 0 0 2px var(--rot) inset; }
.ax-notfall-box { display: none; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r); background: var(--rot-hell); color: var(--ink); }
.ax-notfall-box .i { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.formular:has(input[name="wahl"][value="notfall"]:checked) .ax-notfall-box { display: flex; }
.formular:has(.ax-wahl) .ax-rest { display: none; }
.formular:has(.ax-wahl input:checked) .ax-rest { display: block; }
.formular:has(input[name="wahl"][value="notfall"]:checked) .feld:has(#me-dring) { display: none; }
/* Meldeseite „Reinigung und Personal“ (Sven 12.11.2026): Teile je nach Kachel. Ohne :has() bleibt alles sichtbar. */
.ax-kachel.breit { grid-column: 1 / -1; min-height: 0; }
/* Gesamttest 12.11.2026: Felder unter den Kacheln mit demselben Abstand wie im übrigen Formular (vorher lagen Checkliste und Notiz direkt aneinander). */
.formular.ax-personal:has(.ax-wahl input:checked) .ax-rest { display: grid; gap: 14px; }
.ax-personal .ax-nur-fertig, .ax-personal .ax-nur-material, .ax-personal .ax-nur-gast, .ax-personal .ax-nur-schaden,
.ax-personal .ax-dringlich, .ax-personal .ax-text-frei { display: none; }
.ax-personal:has([name="wahl"][value="fertig"]:checked) .ax-nur-fertig,
.ax-personal:has([name="wahl"][value="material"]:checked) .ax-nur-material { display: block; }
.ax-personal:has([name="wahl"][value="gast"]:checked) .ax-nur-gast,
.ax-personal:has([name="wahl"][value="schaden"]:checked) .ax-nur-schaden { display: block; }
.ax-personal:has([name="wahl"][value="gast"]:checked) .ax-dringlich,
.ax-personal:has([name="wahl"][value="schaden"]:checked) .ax-dringlich { display: block; }
.ax-personal:has([name="wahl"][value="fertig"]:checked) .ax-text-pflicht,
.ax-personal:has([name="wahl"][value="material"]:checked) .ax-text-pflicht { display: none; }
.ax-personal:has([name="wahl"][value="fertig"]:checked) .ax-text-frei,
.ax-personal:has([name="wahl"][value="material"]:checked) .ax-text-frei { display: inline; }
@supports not selector(:has(*)) { .ax-personal .ax-nur-fertig, .ax-personal .ax-nur-material, .ax-personal .ax-dringlich { display: block; } }
/* Registrierung im Aufbau der Anmeldung (Sven 12.11.2026): nur die Karte mit dem Formular, große Siegel darunter */
.einfach-inhalt.reg { max-width: 540px; }
.reg-karte h1 { margin-bottom: 4px; }
.reg-karte > .leise { margin: 0 0 18px; }
.reg-karte .info-band { margin: 0 0 14px; }
.reg-karte .sso-hinweis { margin-top: 8px; }
.reg-oder { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .84rem; }
.reg-oder::before, .reg-oder::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.reg-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .reg-zwei { grid-template-columns: 1fr; } }
.feld .reg-hinweis, .reg-hinweis { font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.45; margin: 0; }
.reg-segment { border: 0; padding: 0; margin: 0; min-width: 0; }
.reg-segment > legend { padding: 0; margin-bottom: 5px; }
.reg-schalter { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--flaeche); border-radius: 999px; }
.reg-schalter.fest { grid-template-columns: 1fr; }
.reg-schalter label { position: relative; text-align: center; padding: 9px 10px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.reg-schalter input { position: absolute; opacity: 0; pointer-events: none; }
.reg-schalter label:has(input:checked) { background: var(--karte); color: var(--ink); box-shadow: 0 1px 3px rgba(14,26,43,.12); }
.reg-schalter label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.reg-gewerblich { display: none; margin-top: 4px; }
.reg-form:has(input[name="segment"][value="unternehmen"]:checked) .reg-gewerblich { display: grid; }
@supports not selector(:has(*)) { .reg-gewerblich { display: grid; } }
.reg-code > summary { cursor: pointer; color: var(--brand); font-size: .9rem; font-weight: 600; }
.reg-code[open] > summary { margin-bottom: 8px; }
.reg-siegel { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.reg-siegel li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.reg-siegel-ic { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); background: var(--karte); display: grid; place-items: center; }
.reg-siegel-ic .i { width: 26px; height: 26px; stroke-width: 2.2; }
.reg-siegel b { font-weight: 600; font-size: .92rem; color: var(--ink); }
.reg-siegel a { color: var(--brand); }
@media (max-width: 420px) { .reg-siegel { gap: 12px; font-size: .76rem; } .reg-siegel-ic { width: 46px; height: 46px; } .reg-siegel-ic .i { width: 22px; height: 22px; } .reg-siegel b { font-size: .84rem; } }
.reg-gewerblich .haken-feld, .reg-gewerblich .haken-feld span { font-weight: 400; }
