/* eeziframes · Einladungsseite eines Fensterbauers (Strang S4), gemeinsam für App (Kundenlink) und Betriebsbereich (Vorschau).
   Alles steht unter .ein und setzt seine Werte selbst, damit die Vorschau im Betriebsbereich genau so aussieht wie beim Kunden,
   unabhängig von app.css und portal.css. Schriftrollen der App: 40 · 24 · 17 · 15 · 13. Farben nur aus den Tokens; die Farbe des
   Betriebs erscheint nur in seinem Zeichen (Initiale), sein Logo auf einem weißen Feld, wenn es dunkel ist. */
.ein { display: flex; flex-direction: column; gap: 20px; color: var(--ink); font-family: var(--font); text-align: left }
.ein-start { padding: 18px 0 4px; margin: 0 }
.ein-start-in { display: flex; flex-direction: column; align-items: flex-start; min-width: 0 }
.ein-start-in p { max-width: none } /* gegen .hero p der App */

/* Absender: Zeichen des Betriebs, „Persönliche Anfrage von“, Name, für wen */
.ein-abs { display: flex; align-items: center; gap: 14px; min-width: 0; max-width: 100% }
.ein-abs-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.ein-abs-tx small { font-size: 13px; line-height: 1.3; font-weight: 700; color: var(--muted) }
.ein-abs-tx b { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere }
.ein-abs .ein-fuer { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--ink2); overflow-wrap: anywhere }
.ein-abs.mit-logo:not(.klein) { flex-direction: column; align-items: flex-start; gap: 14px } /* großes Logo über dem Namen */
.ein-abs.klein { gap: 12px }
.ein-abs.klein .ein-abs-tx b { font-size: 17px; letter-spacing: -.01em }
.ein-zeichen { flex: 0 0 auto; display: flex; align-items: center; justify-content: center }
.ein-zeichen.ini { width: 56px; height: 56px; border-radius: 16px; background: var(--ein-col, var(--cream)); color: var(--ein-auf, var(--on-primary)); font-size: 24px; font-weight: 800; letter-spacing: -.02em }
.ein-zeichen.ini.klein { width: 40px; height: 40px; border-radius: 12px; font-size: 17px }
.ein-zeichen.logo img { display: block; width: auto; height: auto; max-width: 200px; max-height: 48px }
.ein-zeichen.logo.hell { padding: 8px 12px; border-radius: 12px; background: #fff }
.ein-zeichen.logo.dunkel img { max-height: 56px }
.ein-zeichen.logo.klein img { max-width: 120px; max-height: 28px }
.ein-zeichen.logo.klein.hell { padding: 6px 9px; border-radius: 10px }

/* Kicker, Überschrift, Brief, Knöpfe */
.ein-start-in > .eyebrow { margin: 26px 0 0; font-size: 13px; line-height: 1.3 }
.ein-start-in > h1 { margin: 10px 0 0; font-size: 40px; line-height: 1.02; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; color: var(--ink) }
.ein-start-in > .ein-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; max-width: 40ch }
.ein-start-in > .okmark-l { margin: 18px 0 0 }
.ein-brief { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; max-width: 40ch }
.ein-brief .ein-gruss { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; overflow-wrap: anywhere; white-space: pre-line }
.ein-sign, .ein-ap { display: flex; align-items: center; gap: 12px; min-width: 0 }
.ein-sign > span, .ein-ap > span { display: flex; flex-direction: column; min-width: 0 }
.ein-sign b { font-size: 15px; line-height: 1.3; font-weight: 700 } .ein-sign small { font-size: 13px; line-height: 1.3; color: var(--muted) }
.ein-ap-foto { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface2) }
.ein-ap-foto.ini { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--ink) }
.ein-cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; margin-top: 22px }
.ein-cta .btn { width: 100%; padding: 0 22px }
.ein-start-in > .ein-zeit { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink2); max-width: 46ch }
.ein-start-in > .ein-zeit svg { flex: 0 0 auto; margin-top: 2px; color: var(--muted) }
@media (min-width: 600px) { .ein-cta { flex-direction: row; flex-wrap: wrap } .ein-cta .btn { width: auto; flex: 0 0 auto } }

/* Karten: Ablauf, was man braucht, danach, Daten, Kontakt */
.ein-karten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px }
.ein-karte { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 20px 18px; border-radius: var(--r3); background: var(--surface); box-shadow: var(--ring); min-width: 0 }
.ein-karte > .eyebrow { margin: 0 }
.ein-karte h2 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink) }
.ein-karte > p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink2) }
.ein-schritte { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px }
.ein-schritte li { display: flex; gap: 12px; align-items: flex-start }
.ein-schritte .n { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: var(--surface2); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums }
.ein-schritte b { display: block; font-size: 17px; line-height: 1.3; font-weight: 700 }
.ein-schritte p { margin: 2px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink2) }
.ein-schritte.klein { gap: 12px }
.ein-karte .ein-klein { font-size: 13px; line-height: 1.45; color: var(--muted) }
/* Wie genau planen: der Standard des Betriebs als Zitat mit Strich links (wie die Notizen im Aufmaß) */
.ein-karte .ein-std { margin: 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--line2); font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink); overflow-wrap: anywhere }
.ein-karte .chips { display: flex; flex-wrap: wrap; gap: 8px }
.ein-karte .chip { white-space: normal; text-align: left; min-height: 44px; padding: 8px 16px; font-size: 15px; line-height: 1.25 }
.ein-haken { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.ein-haken li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--ink2) }
.ein-haken li::before { content: ''; position: absolute; left: 4px; top: 3px; width: 7px; height: 12px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg) }
.ein-kontakt .ein-ap-foto { width: 56px; height: 56px }
.ein-kontakt .ein-ap-foto.ini { font-size: 17px }
.ein-kontakt .ein-ap b { font-size: 17px; line-height: 1.3; font-weight: 700 } .ein-kontakt .ein-ap small { font-size: 15px; line-height: 1.35; color: var(--ink2) }
.ein-kontakt .ein-nr { font-size: 15px; color: var(--ink2) }
.ein-mail { overflow-wrap: anywhere }
.ein-knoepfe { display: flex; flex-wrap: wrap; gap: 8px }
.ein-knoepfe .btn { flex: 0 0 auto; gap: 8px }
.ein-gilt { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted) }
.ein-gilt svg { flex: 0 0 auto }
@media (min-width: 600px) { .ein-karten { grid-template-columns: repeat(2, minmax(0, 1fr)) } .ein-karten .ein-so { grid-column: 1 / -1 } .ein-so .ein-schritte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px } }

/* Hinweis des Betriebs bei der Nachbesserung: wie die Klärungsliste, links ein Strich in Warnfarbe, keine Fläche */
.ein-hinweis { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 16px 18px 16px 21px; border-radius: var(--r3); background: var(--surface); box-shadow: var(--ring); overflow: hidden }
.ein-start-in > .ein-hinweis { margin-top: 18px; align-self: stretch }
.ein-hinweis::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--warn) }
.ein-hinweis .eyebrow { margin: 0; color: var(--warn) }
.ein-hinweis p { margin: 0; max-width: none; font-size: 17px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line }

/* eeziframes klein als Übermittler */
.ein-fuss { display: flex; flex-direction: column; gap: 6px; padding: 16px 2px 0; border-top: 1px solid var(--line) }
.ein-fuss p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted) }
.ein-durch { display: flex; align-items: center; gap: 8px; font-weight: 700 }
.ein-durch .wm { color: var(--ink2) }
.ein-fuss .ulink { color: var(--ink2); font-weight: 700 }

/* Vorschau im Betriebsbereich: dieselbe Seite, nichts ist bedienbar */
.ein.vorschau .btn, .ein.vorschau .ulink { pointer-events: none }
/* Im Telefonrahmen gilt immer die Telefon-Ansicht, auch wenn das Fenster des Betriebs breit ist (die Regeln ab 600 px messen das Fenster) */
.ein-telefon .ein-cta { flex-direction: column; flex-wrap: nowrap } .ein-telefon .ein-cta .btn { width: 100%; flex: 0 0 auto }
.ein-telefon .ein-karten { grid-template-columns: minmax(0, 1fr) } .ein-telefon .ein-so .ein-schritte { display: flex; gap: 14px }

/* ---------- Betriebsbereich: Einladungsseite gestalten (portal.js SCREENS.einladung), Karte in „Mein Betrieb“, Registrierung ----------
   Rollen des Betriebsbereichs (13 · 15 · 17 · 22); die Vorschau im Telefonrahmen ist die echte Seite mit den Rollen der App. */
.ein-bereich { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start }
@media (min-width: 1180px) { .ein-bereich { grid-template-columns: minmax(0, 1fr) 380px } .ein-vor-spalte { position: sticky; top: 84px } }
.ein-b-karte { display: flex; flex-direction: column; gap: 14px }
.ein-b-karte > .row.between { align-items: center }
.ein-b-karte .seg { min-width: 0 }
.ein-b-karte .f small, .ein-b-karte .f .km-s { font-size: 13px; line-height: 1.45; color: var(--muted) }
.ein-b-karte .row { display: flex; flex-wrap: wrap; gap: 8px }
.ein-logo-feld, .ein-ap-feld { display: flex; align-items: center; gap: 14px; flex-wrap: wrap }
.ein-logo-vor { min-height: 72px; min-width: 72px; padding: 8px; border-radius: var(--r2); background: var(--paper); box-shadow: var(--ring); display: flex; align-items: center; justify-content: center }
.ein-logo-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0 } .ein-logo-tx b { font-size: 15px } .ein-logo-tx small { font-size: 13px; color: var(--muted) }
.ein-logo-vor .ein-zeichen.ini { font-size: 22px } /* Rollen des Betriebsbereichs */
.ein-ap-foto.gross { width: 64px; height: 64px } .ein-ap-foto.gross.ini { font-size: 22px }
.ein-datei { position: relative; overflow: hidden; cursor: pointer }
.ein-datei input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0 }
.ein-datei:focus-within { outline: 2px solid var(--ink); outline-offset: 2px }
.ein-datei.laeuft { cursor: progress }
.ein-gruss-zeile { align-items: center; margin-top: 2px }
.ein-pilot { display: flex; gap: 8px; align-items: flex-start } .ein-pilot svg { flex: 0 0 auto; margin-top: 1px }
.ein-vor-spalte { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0 }
/* Telefonrahmen: die Seite in voller Größe, eigener Scrollbereich */
.ein-telefon { width: min(100%, 380px); padding: 9px; border-radius: 38px; background: var(--bezel, #3a3a3c); box-shadow: var(--lift) }
.ein-tel-kopf { height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 18px; border-radius: 30px 30px 0 0; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700 }
.ein-tel-inhalt { height: min(720px, 72vh); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 16px 24px; border-radius: 0 0 30px 30px; background: var(--paper); text-align: left }
.ein-tel-inhalt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }
.ein-telefon.kurz .ein-tel-inhalt { height: 460px }
.ein-reg-vor { display: flex; flex-direction: column; gap: 10px; align-items: flex-start }
.ein-b-karte .ein-abs { margin: 2px 0 }
.ein-anrede { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px }

/* ---------- Konfigurator-Instanz (eigene Domain eines Fensterbauers, docs/INSTANZEN.md) ----------
   Dieselbe Seite als Startansicht des Fensterplaners: über dem Kicker die Bildreihe des Betriebs (bis sechs Fotos, wischbar) bzw. das
   Startbild; unten die Kennzeichnung nach dem Paket (deutlich mit Zeichen und Link, dezent als Text, sonst nichts). */
.ein-start-in > .ein-bilder, .ein-start-in > .ein-bild { align-self: stretch; margin: 18px 0 0 }
.ein-start-in > .ein-abs + .ein-bilder, .ein-start-in > .ein-abs + .ein-bild { margin-top: 22px }
.ein-bilder { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r3) }
.ein-bilder::-webkit-scrollbar { display: none }
.ein-bilder.eins { grid-auto-columns: 100% }
.ein-bilder img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r3); background: var(--surface2); scroll-snap-align: start }
.ein-bild { position: relative; margin: 0; border-radius: var(--r3); overflow: hidden; background: var(--surface) }
.ein-bild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 42% }
.ein-bild::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--ground)); pointer-events: none }
.ein-start-in > .ein-bilder + .eyebrow, .ein-start-in > .ein-bild + .eyebrow { margin-top: 22px }
.ein-fuss.inst { border-top: 0; padding-top: 4px; align-items: center; text-align: center } /* mittig wie Impressum und Datenschutz darunter */
.ein-kz { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted) }
.ein-kz a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink2); font-weight: 700; text-decoration: none }
.ein-kz a:hover span { text-decoration: underline }
.ein-kz.dezent { font-size: 13px; font-weight: 600 } /* nichts unter 13 px (GESTALTUNG.md); dezent wird er durch --muted und den Platz im Fuß */
@media (min-width: 600px) { .ein-bilder { grid-auto-columns: calc(50% - 5px) } .ein-bilder.eins { grid-auto-columns: 100% } }
.ein-start-in > .ein-bilder:first-child, .ein-start-in > .ein-bild:first-child { margin-top: 0 }
