/* Kalender und Kasse: Ergänzungen zu app.css */

/* Kalender: antippbare Zeiten im Raster */
.zelle { position: absolute; left: 0; right: 0; z-index: 0; display: block; padding: 0; border: 0; background: transparent; cursor: pointer; }
.zelle:hover, .zelle:focus-visible { background: color-mix(in srgb, var(--gold) 22%, transparent); outline: none; }
.zelle.vergangen { background: rgba(17, 16, 14, 0.045); cursor: default; pointer-events: none; }
.mit-bahnen .bahn .zelle { left: 0; right: 0; }

/* Kalender, Monat: die Fläche des Tages trägt einen Termin ein, die Zahl öffnet den Tagesplan */
.mtag { position: relative; }
.mtag-neu { position: absolute; inset: 0; z-index: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.mtag-neu:hover, .mtag-neu:focus-visible { background: color-mix(in srgb, var(--gold) 18%, transparent); outline: none; }
.mtag-zahl { position: relative; z-index: 1; margin: -4px -8px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.mtag-zahl:hover { text-decoration: underline; }
.mtag .leise, .mtag .fuell { pointer-events: none; }

/* Kasse */
.leistungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.leistung { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 84px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 16px; background: var(--karte); text-align: left; font-size: 17px; font-weight: 600; line-height: 1.2; }
.leistung .leise { font-size: 16px; font-weight: 400; }
.leistung:hover, .leistung:focus-visible { border-color: var(--gold); outline: none; }
.kasse-zahlen { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.kasse-leer { margin: 0; padding: 18px 0 6px; text-align: center; }
.kasse-abschnitt { margin: 4px 0 0; font-weight: 600; }

/* Leistungen: Preislisten-Import (preisliste.js). Am Handy ist jede Zeile eine Karte, ab 900 Pixel eine Tabellenzeile. */
.pl-import { display: flex; flex-direction: column; gap: 12px; }
.pl-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.pl-lese { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.pl-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: pl-puls 1.2s ease-in-out infinite; }
@keyframes pl-puls { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pl-punkt { animation: none; } }
.pl-leistung { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie); }
.pl-rechts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pl-steuer { min-height: 36px; padding: 0 10px; border: 1px solid var(--linie); border-radius: 999px; }
.pl-steuer[aria-pressed="true"] { font-weight: 600; }
.pl-tabelle { display: flex; flex-direction: column; gap: 10px; }
.pl-zeile { display: grid; grid-template-columns: 44px 1fr 1fr; grid-template-areas: "haken name name" ". art dauer" ". preis status" ". grund grund"; gap: 8px 10px; align-items: end; padding: 12px; border: 1px solid var(--linie); border-radius: 16px; }
.pl-zeile.unsicher { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.pl-zeile.vorhanden { opacity: 0.7; }
.pl-haken { grid-area: haken; display: grid; place-items: center; min-height: 48px; }
.pl-haken input { width: 24px; height: 24px; accent-color: var(--tinte); }
.pl-feld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pl-feld .leise { font-size: 14px; }
.pl-feld .feld { padding: 10px 12px; font-size: 17px; }
.pl-name { grid-area: name; }
/* Feste Klassen statt nth-of-type: der Haken ist auch ein label und verschob jedes Feld um eine Spalte (Durchlauf 04.11.). */
.pl-art { grid-area: art; }
.pl-dauer { grid-area: dauer; }
.pl-preis { grid-area: preis; }
.pl-feld select.feld { font: inherit; font-size: 17px; }
.pl-status { grid-area: status; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-height: 24px; }
.pl-grund { grid-area: grund; margin: 0; font-size: 15px; font-style: italic; }
.pl-alt { font-size: 14px; }
.pl-pille { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--linie); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pl-pille.neu, .pl-pille.angelegt { border-color: var(--gruen); color: var(--gruen); }
.pl-pille.geaendert, .pl-pille.aktualisiert, .pl-pille.teilweise { border-color: var(--gold); color: var(--text); }
.pl-pille.ungueltig, .pl-pille.fehler { border-color: #8A2F22; color: #8A2F22; }
.pl-ergebnis { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--linie); }
.pl-ergebnis .pl-grund { width: 100%; }
.pl-aktionen { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.pl-aktionen .knopf { flex: 1 1 180px; }
@media (min-width: 900px) {
  .pl-zeile { grid-template-columns: 44px minmax(180px, 3fr) 130px 110px 120px 120px; grid-template-areas: "haken name art dauer preis status" ". grund grund grund grund grund"; }
}

/* Einrichtung in Etappen (einrichtung.js): Liste, Band auf Heute, Etappen, Codes der Rufumleitung */
.ein-seite { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.ein-kopf { display: flex; flex-direction: column; gap: 10px; }
.ein-balken { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--tinte) 12%, transparent); overflow: hidden; }
.ein-balken i { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.ein-liste { display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 6px; }
.ein-zeile { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 0; border: 0; border-top: 1px solid var(--linie); background: none; text-align: left; font-size: 19px; }
.ein-zeile:first-child { border-top: 0; }
.ein-zeile:hover, .ein-zeile:focus-visible { outline: none; background: color-mix(in srgb, var(--gold) 12%, transparent); }
.ein-nr { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--tinte); border-radius: 50%; font-size: 16px; font-weight: 600; }
.ein-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ein-text .leise { font-size: 15px; font-weight: 400; }
.ein-pille { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--linie); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ein-pille.fertig { border-color: var(--gruen); color: var(--gruen); }
.ein-pille.spaeter { border-color: var(--gold); color: var(--text); }
/* Nummer mit Länderauswahl: Auswahl schmal links, Nummer füllt den Rest */
.nummer-zeile { display: flex; gap: 8px; }
/* Geschlossen zeigt die Auswahl nur „DE +49“; das echte <select> liegt unsichtbar darüber und öffnet die Liste mit Ländernamen */
.nummer-zeile .nummer-land { position: relative; flex: none; width: auto; display: flex; align-items: center; gap: 6px; padding-right: 12px; white-space: nowrap; }
.nummer-land::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.nummer-land-wahl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font: inherit; font-size: 16px; cursor: pointer; }
.nummer-land:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.nummer-zeile input.feld { flex: 1 1 0; min-width: 0; }
.nummer-hinweis { display: block; font-size: 14px; margin: 0 0 2px; }
.ein-block { display: flex; gap: 14px; align-items: flex-start; }
.ein-block-inhalt { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.ein-block-wartet { opacity: .6; }
.ein-personen { display: flex; flex-direction: column; gap: 6px; }
.ein-person { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; }
.ein-leiste { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.ein-schritte { display: flex; flex-wrap: wrap; gap: 8px; }
.ein-naechster { white-space: nowrap; }
.ein-fuss { display: flex; gap: 10px; flex-wrap: wrap; }
.ein-fuss .knopf { flex: 1 1 180px; }
.ein-einstieg { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 24px; }
.ein-einstieg h2 { margin: 0; font-size: 26px; }
.ein-einstieg p { margin: 0; font-size: 18px; }
.ein-band { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 22px; }
.ein-band-text { flex: 1; min-height: 48px; border: 0; background: none; text-align: left; font-size: 18px; color: inherit; }
.ein-weiter { color: var(--bronze); text-decoration: underline; text-underline-offset: 5px; margin-left: 4px; }
.ein-kreuz { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; color: inherit; }
.ein-kreuz:hover, .ein-kreuz:focus-visible { outline: none; background: color-mix(in srgb, var(--tinte) 10%, transparent); }
.ein-punkte ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ein-punkt { display: flex; align-items: center; gap: 10px; }
.ein-haken { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--linie); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.ein-punkt.ok .ein-haken { border-color: var(--gruen); background: var(--gruen); color: var(--karte-voll); }
.ein-punkt.offen { opacity: 0.8; }
.ein-codes { display: flex; flex-direction: column; gap: 10px; }
.ein-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--linie); border-radius: 14px; }
.ein-code-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ein-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; word-break: break-all; }
.ein-block { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ein-logo { max-width: 200px; max-height: 120px; object-fit: contain; border-radius: 12px; background: #fff; padding: 8px; }
.ein-wahl { display: flex; flex-direction: column; gap: 10px; }
.ein-wahl .knopf { height: auto; padding: 12px 16px; text-align: left; }
textarea.feld { min-height: 110px; font: inherit; resize: vertical; }

/* Etappe Website (website.js): Stilrichtung als Auswahlknöpfe (.chip aus app.css), Fotoraster, Hinweis auf Lücken */
.web-stile { display: flex; flex-wrap: wrap; gap: 10px; }
.web-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.web-foto { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--tinte) 8%, transparent); }
.web-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.web-foto-weg { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; font-size: 26px; line-height: 1; text-shadow: 0 0 4px rgba(0, 0, 0, 0.8); }
.web-person { display: flex; align-items: center; gap: 14px; }
.web-person .web-foto { width: 64px; flex: none; }
.web-person .knopf { margin-left: auto; }
.web-luecken { border-left: 4px solid var(--gold); }
.web-luecken ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* Guthaben (guthaben.js): Hinweis oben auf Heute, gelb bei knapp, rot bei leer; Karte unter Einstellungen. */
.gh-band { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-left: 6px solid #B8860B; background: #FBF1D9; color: var(--tinte); }
.gh-band.gh-leer { border-left-color: #A3361F; background: #F8E1DA; }
.gh-band-text { flex: 1 1 260px; font-size: 18px; line-height: 1.4; }
.gh-band .knopf { flex: none; }
.gh-zahl { margin: 0; font-size: 24px; line-height: 1.3; color: var(--tinte); }
.gh-zahl strong { font-size: 40px; }
.gh-betrag { margin: 0; font-size: 18px; color: var(--text); }
.gh-betrag strong { color: var(--tinte); }
.gh-oder { margin: 0; font-size: 20px; color: var(--tinte); }
.gh-oder strong { font-size: 28px; }
.gh-paar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; color: var(--tinte); }
.gh-wert { display: flex; flex-direction: column; line-height: 1.15; }
.gh-wert strong { font-size: 40px; }
.gh-wert span { font-size: 18px; }
.gh-oder-wort { font-size: 18px; color: var(--text); }
.gh-inklusive-titel { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid rgba(17, 16, 14, 0.12); }
.gh-stern { margin: 0; font-size: 15px; }
.gh-inklusive strong { font-size: inherit; font-weight: 700; }
.gh-inklusive { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.gh-zahl.gh-leer { color: #8A2F22; font-weight: 600; }
.gh-karte.gh-knapp { border-left: 6px solid #B8860B; }
.gh-karte.gh-leer { border-left: 6px solid #A3361F; }
.gh-karte .knopf, .gh-karte + .flaeche .knopf { align-self: flex-start; }
html[data-look="glas"] .gh-band { background: rgba(184, 134, 11, 0.18); color: #EFE5DA; }
html[data-look="glas"] .gh-band.gh-leer { background: rgba(196, 78, 52, 0.22); }
html[data-look="glas"] .gh-zahl, html[data-look="glas"] .gh-oder, html[data-look="glas"] .gh-paar, html[data-look="glas"] .gh-betrag strong { color: #EFE5DA; }
html[data-look="glas"] .gh-zahl.gh-leer { color: #F0A08C; }
html[data-look="glas"] .gh-oder-wort { color: rgba(239, 229, 218, 0.7); }
html[data-look="glas"] .gh-inklusive-titel { border-top-color: rgba(239, 229, 218, 0.18); }

/* Feiertag: Band oben im Kalender wie ein Ganztags-Eintrag (Gold, Kante Bronze), im Monat eine goldene Oberkante am Tag. */
.feiertag-band { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 12px; border-left: 4px solid var(--bronze); background: #E6CCA6; color: #11100E; }
.feiertag-band p { margin: 0; }
.mtag.feiertag { border-top: 4px solid #E6CCA6; }

/* WhatsApp-Werbung: dieselben Flächen wie die Studio-App, auch auf schmalen Geräten. */
.wa-block { display:flex; flex-direction:column; gap:14px; min-width:0; }
.wa-block p, .wa-block blockquote { margin:0; }
.wa-block .feld { max-width:100%; box-sizing:border-box; }
.wa-vorschau { white-space:pre-wrap; overflow-wrap:anywhere; padding:16px; border:1px solid var(--linie, #b7ada3); border-radius:14px; }
.wa-empfaenger { display:flex; align-items:center; gap:12px; min-height:48px; padding:8px 0; overflow-wrap:anywhere; }
.wa-empfaenger input { width:22px; height:22px; flex-shrink:0; accent-color:var(--tinte); }
.wa-block .aktionen { display:flex; flex-wrap:wrap; }
.wa-block .aktionen .knopf { flex:0 1 auto; padding:0 22px; overflow:visible; }
.wa-block button { min-height:44px; }
.wa-links { align-self:flex-start; }
.textknopf.wa-links { padding:0; }
.wa-gruppen { display:flex; flex-wrap:wrap; gap:10px; }
@media(max-width:600px) { .wa-block .titelzeile { flex-wrap:wrap; gap:12px; } .wa-block h1 { font-size:36px; } .wa-block .aktionen .knopf { flex:1 1 auto; } }

/* Mobile App einrichten (handy.js) */
.handy-knopf { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 12px; background: none; color: var(--tinte); font-size: 18px; text-align: left; }
.handy-knopf[aria-current="page"] { border-color: var(--bronze); }
html[data-look="glas"] .handy-knopf { color: #EFE5DA; border-color: rgba(239, 229, 218, 0.35); }
.hy-band { display: flex; align-items: center; padding: 6px 22px; }
.hy-band-text { flex: 1; min-height: 48px; border: 0; background: none; text-align: left; font-size: 18px; color: inherit; }
.hy-weiter { color: var(--bronze); font-weight: 600; }
.hy-karte { display: flex; flex-direction: column; gap: 14px; }
.hy-kopf { display: flex; align-items: center; gap: 12px; }
.hy-kopf h2 { margin: 0; flex: 1; }
.hy-schritte { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 19px; line-height: 1.4; }
.hy-sym { vertical-align: -5px; color: var(--bronze); }
.hy-leiste { width: 100%; max-width: 320px; color: var(--tinte); }
.hy-qr { width: 100%; max-width: 280px; padding: 14px; background: var(--karte-voll); border: 1px solid var(--linie); border-radius: 16px; }
.hy-qr .qr { display: block; width: 100%; height: auto; }
