/* Helfio – Uber-Ästhetik (schwarz/weiß) + iOS-Designsprache:
   Liquid-Glass-Bars mit Blur, schwebende Tab-Bar, große Titel,
   weiche Radien, Grouped Lists, federnde Tap-Animationen */
:root {
  --ink: #000000;
  --ink-2: #3c3c43;           /* iOS label secondary */
  --ink-3: #6d6d72;           /* gedecktes Grau, aber klar lesbar */
  --bg: #ffffff;
  --surface: #f2f2f7;         /* iOS systemGray6 */
  --surface-2: #e5e5ea;       /* iOS systemGray5 */
  --line: rgba(60, 60, 67, .12); /* iOS separator */
  --danger: #ff3b30;          /* iOS red */
  --danger-deep: #d70015;
  --success: #34c759;         /* iOS green */
  --success-deep: #177339;
  --success-soft: #e8f8ec;
  --amber: #b25000;
  --amber-soft: #fff3e0;
  --radius: 18px;             /* iOS continuous corners */
  --radius-sm: 12px;
  --glass: saturate(180%) blur(20px);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --brand: #1C4634;           /* Holm-Dunkelgrün */
  --brand-soft: #E7F0EB;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Barrierefreiheit: sichtbarer Tastatur-Fokus (WCAG 2.4.7) und Sprung-Link */
:focus-visible { outline: 3px solid #4A9C77; outline-offset: 2px; border-radius: 6px; }
.topbar :focus-visible, .tabbar :focus-visible { outline-color: #A5DCC1; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--brand); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 12px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5rem; letter-spacing: -.028em; }
h1 { font-size: 2.2rem; font-weight: 800; }   /* iOS Large Title, Apple-Tracking */
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: .35rem 0; }

/* Sanfter View-Übergang (iOS-Feeling) */
.app > * { animation: viewIn .32s var(--spring); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Topbar: Holm-Gruen als Liquid Glass (Markenfarbe auf jedem Geraet) */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(28, 70, 52, .9); /* echtes Holm-Grün #1C4634 */
  -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
  border-bottom: .5px solid rgba(255,255,255,.14);
}
.topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; padding-top: calc(.75rem + env(safe-area-inset-top)); }
.logo { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.logo { display: inline-flex; align-items: center; gap: .45em; }
.logo-mark { height: 1.15em; width: auto; }
.topnav { display: flex; gap: .15rem; align-items: center; }
/* Handy: Textlinks aus der Topbar ausblenden – die Tab-Bar unten übernimmt (iOS-typisch) */
@media (max-width: 799px) { .topnav .hide-mobile { display: none; } }
.topnav a { padding: .45rem .85rem; border-radius: 999px; color: rgba(255,255,255,.88); font-weight: 590; font-size: .91rem; letter-spacing: -.01em; transition: background .18s var(--spring), color .18s; }
.topnav a:hover { background: rgba(255,255,255,.14); }
.topnav a.active { background: rgba(143,208,176,.18); color: #A5DCC1; }
.topnav .btn { margin-left: .4rem; }
.topnav a.btn-light { color: #000; }
.topnav a.btn-light:hover { background: rgba(255,255,255,.85); color: #000; }
.badge-dot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; margin-left: 4px; }

/* Layout */
.app { max-width: 1100px; margin: 0 auto; padding: 1.4rem 1rem 6.5rem; }
@media (min-width: 800px) { .app { padding-bottom: 3rem; } }
/* Seite nie kürzer als der Bildschirm: verhindert auf iOS (Home-Bildschirm-App)
   das „Zurückklemmen“ der Scrollposition beim Seitenwechsel – kein Wackeln,
   keine hüpfende Tab-Bar. dvh = dynamische Viewport-Höhe. */
.app { min-height: calc(100vh - 120px); }
@supports (height: 100dvh) { .app { min-height: calc(100dvh - 120px); } }
.grid { display: grid; gap: .8rem; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* Karten: iOS Grouped-Inset-Optik */
.card { background: var(--surface); border: none; border-radius: var(--radius); padding: 1.15rem 1.2rem; }
.card > h3:first-child { margin-bottom: .6rem; }
a.card { color: inherit; display: block; transition: transform .25s var(--spring), background .18s; }
a.card:hover { background: var(--surface-2); }
a.card:active { transform: scale(.975); }
.card.card-white { background: #fff; border: .5px solid var(--line); }
.cat-card { text-align: center; padding: 1.3rem .8rem; }
.cat-card .icon { font-size: 2rem; display: block; margin-bottom: .4rem; }
.cat-card .icon svg { width: 34px; height: 34px; color: inherit; }
/* Dezente iOS-Systemfarben für die Kategorien */
.cat-color { display: inline-flex; }
.cat-ico-garten { color: #34c759; }      /* iOS green */
.cat-ico-haus { color: #ff9500; }        /* iOS orange */
.cat-ico-soziales { color: #ff2d55; }    /* iOS pink */
.cat-ico-transport { color: #007aff; }   /* iOS blue */
.cat-ico-sonstiges { color: #af52de; }   /* iOS purple */
.chip svg { width: 15px; height: 15px; vertical-align: -2.5px; margin-right: 2px; }
.chip.active svg { color: #fff; }
.nav-icon { display: inline-flex; align-items: center; }
.nav-icon svg { width: 20px; height: 20px; }
.cat-card small { color: var(--ink-3); display: block; font-size: .78rem; }

/* Landing (ausgeloggt) */
/* Landing: bewaehrtes Layout, nur Apple-Typo-Feinschliff */
.landing { background: #000; color: #fff; border-radius: 24px; padding: clamp(2.5rem, 7vw, 5rem) clamp(1.4rem, 5vw, 4rem); min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.landing h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 3.8rem); letter-spacing: -.035em; max-width: 22ch; }
.landing p { color: rgba(255,255,255,.75); max-width: 46ch; font-size: 1.08rem; }
.landing .actions { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.landing-features { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 3rem; }
/* Animierte Buehne im Hero: Strichmaennchen bei Holm-Einsaetzen */
.landing-flex { display: flex; gap: 2.4rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.landing-copy { flex: 1 1 300px; min-width: 0; }
.hero-anim { position: relative; flex: 0 1 330px; height: 200px; margin-inline: auto; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
.hero-scene.on { opacity: 1; }
.hero-anim-label { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center;
  color: rgba(255,255,255,.55); font-size: .82rem; font-weight: 500; }
.hero-scene g, .hero-scene path, .hero-scene circle { transform-box: view-box; }
.an-mow { animation: anMow 2.8s ease-in-out infinite alternate; }
@keyframes anMow { from { transform: translateX(-16px); } to { transform: translateX(16px); } }
.an-hammer { transform-origin: 140px 80px; animation: anHammer .8s ease-in infinite alternate; }
@keyframes anHammer { from { transform: rotate(10deg); } to { transform: rotate(-38deg); } }
.an-hit { animation: anHit 1.6s linear infinite; opacity: 0; }
@keyframes anHit { 0%, 88% { opacity: 0; } 93% { opacity: 1; } 100% { opacity: 0; } }
.an-walk { animation: anMow 3.4s ease-in-out infinite alternate; }
.an-bob { animation: anBob .65s ease-in-out infinite alternate; }
@keyframes anBob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.an-bag { transform-origin: 148px 92px; animation: anBag 1.4s ease-in-out infinite alternate; }
@keyframes anBag { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
.an-heart { transform-origin: 160px 40px; animation: anHeart 1.1s ease-in-out infinite alternate; }
@keyframes anHeart { from { transform: scale(1); opacity: .85; } to { transform: scale(1.25); opacity: 1; } }
.an-sweep { transform-origin: 150px 78px; animation: anSweep .9s ease-in-out infinite alternate; }
@keyframes anSweep { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.an-dust { animation: anDust 1.8s linear infinite; }
.an-dust.d2 { animation-delay: .5s; }
.an-dust.d3 { animation-delay: 1s; }
@keyframes anDust { 0% { opacity: 0; } 30% { opacity: 1; } 70% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-scene * { animation: none !important; } }

.landing-features div { border-top: .5px solid rgba(255,255,255,.22); padding-top: .8rem; color: rgba(255,255,255,.72); font-size: .9rem; }
.landing-features strong { color: #fff; display: block; margin-bottom: .2rem; }

/* "Was mit Holm möglich ist": zwei ruhige Spalten für Kunden & Anbieter */
.landing-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2rem 3rem; margin-top: 3rem; width: 100%; }
.landing-more h3 { color: #9FD8BB; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.lm-item { display: flex; gap: .85rem; align-items: flex-start; padding: .55rem 0; }
.lm-item svg { width: 22px; height: 22px; flex-shrink: 0; color: #8FD0B0; margin-top: .15rem; }
.lm-item strong { color: #fff; display: block; font-size: .95rem; }
.lm-item small { color: rgba(255,255,255,.65); font-size: .84rem; line-height: 1.45; }

/* Eingeloggt: dezenter Info-Streifen "So hilft dir Holm" */
.benefit-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin: 2.2rem 0 .5rem; }
.benefit-item { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border-radius: var(--radius-sm); padding: .85rem .95rem; }
.benefit-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); margin-top: .1rem; }
.benefit-item strong { display: block; font-size: .88rem; }
.benefit-item small { color: var(--ink-3); font-size: .78rem; line-height: 1.4; }

/* Hero (eingeloggt): bewaehrtes Layout, nur Apple-Typo-Feinschliff */
.hero { padding: 1.1rem 0 1.9rem; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); letter-spacing: -.032em; }
.hero p { color: var(--ink-2); max-width: 40rem; }
.searchbar { display: flex; gap: .5rem; margin-top: 1rem; max-width: 34rem; }
.searchbar input { flex: 1; border: none; background: var(--surface); border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: 1.02rem; }
.hero-actions { margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* Buttons: iOS-Pille trifft Uber-Schwarz */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  background: #000; color: #fff; font-weight: 600; font-size: .95rem; font-family: inherit;
  padding: .78rem 1.5rem; border-radius: 999px; /* Apple-Pille */
  transition: transform .25s var(--spring), background .18s, opacity .18s; }
.btn:hover { background: #222; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-ghost { background: var(--surface); color: #000; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: rgba(255,255,255,.85); }
.btn-outline-light { background: rgba(255,255,255,.12); color: #fff; border: .5px solid rgba(255,255,255,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-outline-light:hover { background: rgba(255,255,255,.22); }
.btn-danger { background: transparent; color: var(--danger-deep); }
.btn-danger:hover { background: rgba(255, 59, 48, .1); }
.btn-sm { padding: .48rem 1rem; font-size: .86rem; border-radius: 999px; }
.btn-block { width: 100%; }

/* Formulare: iOS-Eingabefelder */
label { display: block; font-weight: 600; font-size: .86rem; margin: .9rem 0 .3rem; color: var(--ink-2); }
input, select, textarea {
  width: 100%; padding: .78rem .95rem; border: none; border-radius: var(--radius-sm);
  font-size: 1.02rem; font-family: inherit; background: var(--surface); color: var(--ink);
  transition: box-shadow .18s;
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%238e8e93' d='M8 11L2.5 5.5l1-1L8 9l4.5-4.5 1 1z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3.5px rgba(28,70,52,.3); }
/* Häkchen-Kästchen: natives Aussehen wiederherstellen (wird sonst durch appearance:none unsichtbar) */
input[type="checkbox"] {
  appearance: auto; -webkit-appearance: checkbox;
  width: 19px; height: 19px; min-width: 19px; padding: 0;
  accent-color: var(--brand); background: none; border-radius: 5px;
  cursor: pointer;
}
input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(28,70,52,.25); }
textarea { min-height: 110px; resize: vertical; }
.form-narrow { max-width: 30rem; margin: 0 auto; }
.form-narrow.card { padding: 1.6rem 1.4rem; }
.form-narrow.card input, .form-narrow.card select, .form-narrow.card textarea,
.card form input, .card form select, .card form textarea { background: #fff; border: .5px solid var(--line); }
.hint { color: var(--ink-3); font-size: .82rem; font-weight: 400; }
.field-row { display: flex; gap: .7rem; } .field-row > * { flex: 1; }
@media (max-width: 640px) {
  .field-row { flex-wrap: wrap; }
  .field-row > * { flex: 1 1 45%; min-width: 9rem; }
  .field-row select { flex-basis: 45% !important; }
  .field-row .btn { flex: 1 1 100%; }
}

/* Chips: iOS-Segmente */
.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin: .7rem 0; }
.chip { padding: .45rem 1rem; border-radius: 999px; background: var(--surface); border: none; font-size: .87rem; font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit;
  transition: transform .25s var(--spring), background .18s, color .18s; }
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(.94); }
.chip.active { background: var(--brand); color: #fff; }

/* Meta / Pills */
.meta { color: var(--ink-3); font-size: .84rem; }
.price { font-weight: 750; font-size: 1.05rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; color: var(--ink-3); }
.stars { color: var(--ink); font-size: .9rem; font-weight: 700; }
.pill { display: inline-block; padding: .2rem .68rem; border-radius: 999px; font-size: .75rem; font-weight: 650; }
.pill-green { background: var(--success-soft); color: var(--success-deep); }
.pill-gray { background: var(--surface-2); color: var(--ink-2); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-red { background: rgba(255, 59, 48, .12); color: var(--danger-deep); }
.pill-blue { background: rgba(0, 122, 255, .12); color: #0062cc; }
.pill-topstar { background: var(--success-soft); color: var(--success-deep); }

/* Orts-Vorschläge & Foto-Auswahl */
.suggest { position: absolute; left: 0; right: 0; z-index: 20; background: #fff; border: .5px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden; margin-top: 4px; }
.suggest-item { display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: .65rem .9rem; font-size: .95rem; font-family: inherit; }
.suggest-item:hover { background: var(--surface); }

/* Anbieter-Karten: kompakte Statistik-Zeile + Stichwort-Chips (Profi-Look) */
.pcard-stats { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  margin-top: .65rem; padding-top: .6rem; border-top: .5px solid var(--line); }
.pcard-stats .pstat { display: inline-flex; align-items: baseline; gap: .25rem; white-space: nowrap; }
.pcard-stats .pstat strong { font-size: .88rem; letter-spacing: -.01em; }
.pcard-stats .pstat small { color: var(--ink-3); font-size: .74rem; }
.pcard-stats .pstat-sep { width: 1px; height: 14px; background: var(--line); flex: 0 0 1px; }
.pcard-kws { margin: .45rem 0 0; }
/* Live-Status: Anbieter ist gerade in der App aktiv */
.pdot { color: var(--success-deep); font-weight: 650; font-size: .8rem; white-space: nowrap; }
[data-theme="dark"] .pdot { color: var(--success); }
.pcard-kws .chip { font-size: .74rem; padding: .18rem .6rem; pointer-events: none; background: var(--brand-soft); color: var(--brand); border: none; }
[data-theme="dark"] .pcard-kws .chip { background: rgba(143,208,176,.14); color: #8FD0B0; }
.photo-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: #000; color: #fff; font-size: .65rem; cursor: pointer; line-height: 1; }

/* Buchungsfotos & deaktivierte Tages-Chips */
.booking-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; display: block; }
.chip.disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* Fotos in Karten & Detailseiten */
.card-img { display: block; width: calc(100% + 2.2rem); margin: -1.1rem -1.1rem .8rem; height: 150px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.detail-img { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); }
.review-reply { background: #fff; border-left: 3px solid var(--ink); border-radius: 8px; padding: .5rem .8rem; margin-top: .4rem; font-size: .92rem; }

/* Favoriten-Herz */
.service-card { position: relative; }
.fav-btn { position: absolute; top: .7rem; right: .7rem; border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 1.15rem; line-height: 1; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s var(--spring), color .15s; }
.fav-btn:active { transform: scale(.82); }
.fav-btn.active { color: var(--danger); }

/* Anbieter-Infos (Vertrauen) */
.info-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.info-item { display: flex; gap: .65rem; align-items: flex-start; background: var(--surface); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.info-item > span { font-size: 1.25rem; line-height: 1.3; }
.info-item strong { font-size: .88rem; }

/* Tarife */
.plan-card.current { outline: 2px solid #000; }
.usage-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: .5rem 0; }
.usage-bar div { height: 100%; border-radius: 999px; background: var(--brand); transition: width .4s var(--spring); }

.row-split { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #000; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0;
  overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.provider-row { display: flex; gap: .7rem; align-items: center; margin: .5rem 0; }

/* Tabs: iOS Segmented Control */
.tabs { display: inline-flex; gap: 2px; background: var(--surface); border-radius: 12px; padding: 3px; margin: .3rem 0 1.2rem; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: .5rem 1rem; font-weight: 600; font-size: .88rem; color: var(--ink-2); cursor: pointer; border-radius: 9px; white-space: nowrap; font-family: inherit;
  transition: background .18s, color .18s, box-shadow .18s; }
.tabs button.active { color: #000; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.06); }

/* Schwebende Tab-Bar (Liquid Glass, wie iOS 26) */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 30; display: flex; gap: 0;
  background: rgba(28, 70, 52, .92); /* echtes Holm-Grün #1C4634, in beiden Modi */
  -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
  border: .5px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: .22rem .3rem;
  box-shadow: 0 10px 36px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.18);
  width: max-content; max-width: calc(100vw - 1.5rem);
  will-change: transform; /* ruhigeres Verhalten beim Scrollen (eigene GPU-Ebene) */
  transition: opacity .15s, visibility .15s;
}
/* Tastatur offen: Leiste ausblenden statt ueber der Tastatur zu schweben */
body.kb-open .tabbar { opacity: 0; visibility: hidden; pointer-events: none; }
.tabbar a { flex: 1; text-align: center; padding: .3rem .7rem .34rem; font-size: .59rem; font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.64); border-radius: 999px; transition: background .18s, color .18s, transform .25s var(--spring); min-width: 56px; }
.tabbar a:active { transform: scale(.92); }
.tabbar a .ico { display: block; line-height: 1; margin-bottom: 1px; }
.tabbar a .ico svg { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
/* Aktiver Tab: gefülltes Symbol + Farbton, wie bei nativen iOS-Apps */
.tabbar .i-fill { display: none; }
.tabbar a.active .i-line { display: none; }
.tabbar a.active .i-fill { display: block; }
.tabbar a.active { color: #8FD0B0; background: rgba(143,208,176,.13); }
.tabbar a.active .i-fill svg[stroke] { stroke-width: 2.3; }
/* Mittel-Knopf: Schnell-Auftrag (erhabener gruener Kreis, iOS-typisch) */
.tabbar a.tab-cta { color: rgba(255,255,255,.85); font-weight: 600; }
.tabbar .cta-circle { display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; margin: -16px auto 2px;
  background: #8FD0B0; color: #0B2418;
  box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 0 3px rgba(28,70,52,.9); }
.tabbar .cta-circle svg { width: 22px; height: 22px; }
.tabbar a.tab-cta:active .cta-circle { transform: scale(.94); }
.tabbar a.tab-cta.active { background: none; color: #8FD0B0; }
.tabbar:empty { display: none; }
@media (min-width: 800px) { .tabbar { display: none; } }

/* Kleine Symbole im Fließtext (Kalender, Ort …) */
.ico-inline { display: inline-block; vertical-align: -2px; line-height: 0; }
.ico-inline svg { width: 13px; height: 13px; }
h1 .cat-color svg { width: 30px; height: 30px; vertical-align: -4px; }
.btn .ico-inline svg { width: 15px; height: 15px; }

/* Firmen & Anbieter in der Suche: seitlich wischbare Reihe */
.provider-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 290px);
  gap: .7rem; overflow-x: auto; padding: 2px 2px .5rem; margin: 0 -2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.provider-strip::-webkit-scrollbar { display: none; }
.provider-strip > a { scroll-snap-align: start; }
.provider-hit { border: .5px solid var(--line); }
.provider-cats { margin-top: .55rem; font-size: .78rem; }
.provider-cta { display: block; margin-top: .45rem; font-weight: 650; font-size: .86rem; color: var(--brand); }

/* Nachrichten: iMessage-Blasen */
.msg-thread { display: flex; flex-direction: column; gap: .35rem; padding: .6rem 0; }
.msg { max-width: 78%; padding: .58rem .95rem; border-radius: 20px; font-size: .98rem; animation: viewIn .3s var(--spring); }
.msg.mine { align-self: flex-end; background: #000; color: #fff; border-bottom-right-radius: 6px; }
.msg.theirs { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.msg time { display: block; font-size: .68rem; opacity: .6; margin-top: 2px; }
.msg-input { display: flex; gap: .5rem; position: sticky; bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); padding: .5rem 0;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* Ohne Tab-Bar (offene Unterhaltung) sitzt das Eingabefeld direkt am unteren Rand */
body.thread-view .msg-input { bottom: calc(.3rem + env(safe-area-inset-bottom, 0px)); }
[data-theme="dark"] .msg-input { background: rgba(0,0,0,.75); }
.msg-input input { border-radius: 999px; }
@media (min-width: 800px) { .msg-input { bottom: 0; } }

/* Statistiken (Admin) */
.stat-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { background: var(--surface); border-radius: var(--radius); padding: 1rem; }
.stat .value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--ink-3); font-size: .8rem; font-weight: 600; }

/* Listen: iOS Grouped List mit Chevron-Gefühl */
.list-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: .5px solid var(--line); font-size: .93rem; }
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }

/* Sonstiges */
.empty { text-align: center; color: var(--ink-3); padding: 2.5rem 1rem; }
.empty .icon { font-size: 2.4rem; display: block; margin-bottom: .5rem; filter: grayscale(1); opacity: .6; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 2.4rem 0 1rem; }
.section-title h2 { font-size: 1.5rem; letter-spacing: -.026em; }
.section-title a { color: var(--brand); font-weight: 650; }
/* Links in Hinweisen gruen – aber niemals die Schrift von Buttons umfaerben */
.hint a:not(.btn), .meta a:not(.btn), .notice a:not(.btn), .empty a:not(.btn) { color: var(--brand); font-weight: 650; }
.section-title h2 { margin: 0; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 6.2rem; z-index: 100;
  background: rgba(20,20,20,.82); color: #fff;
  -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
  padding: .8rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.25); max-width: 90vw;
  animation: toastIn .35s var(--spring);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px) scale(.92); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.toast.error { background: rgba(215, 0, 21, .88); }
@media (min-width: 800px) { .toast { bottom: 2rem; } }
.notice { background: var(--surface); color: var(--ink-2); padding: .82rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; margin: .8rem 0; line-height: 1.5; }
.divider { border: 0; border-top: .5px solid var(--line); margin: 1rem 0; }
.review { border-top: .5px solid var(--line); padding: .7rem 0; }
/* Shimmer-Skeleton wie bei den Großen: schimmernde Platzhalter statt Lade-Text */
.skeleton {
  position: relative; overflow: hidden; color: transparent; user-select: none;
  background: var(--surface); border-radius: var(--radius);
  min-height: 110px; padding: 3rem 0;
}
.skeleton::before {
  content: ''; position: absolute; left: 1.1rem; right: 40%; top: 1.1rem; height: 14px;
  border-radius: 7px; background: var(--surface-2);
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  animation: shimmer 1.3s infinite;
  transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }
[data-theme="dark"] .skeleton::after { background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%); }

/* Chat-Bilder */
.msg-img { display: block; max-width: min(240px, 70vw); max-height: 240px; border-radius: 12px; margin-bottom: .25rem; object-fit: cover; }

/* Arbeitsproben-Galerie auf dem Profil */
.gallery { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
.gallery-item { position: relative; flex: 0 0 auto; }
.gallery-item img { width: 150px; height: 110px; object-fit: cover; border-radius: 12px; display: block; }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .5rem .3rem; border-radius: 0 0 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .7rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Freunde einladen: gleiche Design-Sprache wie die Holm-E-Mails
   (grüner Marken-Kopf, weiße Inhaltskarte darunter) */
.invite-hero {
  background: linear-gradient(160deg, #1C4634, #153126);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.6rem 1.4rem 1.5rem; text-align: center; color: #fff;
}
.invite-hero h1 { color: #fff; font-size: 1.55rem; margin: 0; letter-spacing: -.02em; }
.invite-hero p { color: rgba(255,255,255,.78); margin: .45rem auto 0; max-width: 30ch; font-size: .95rem; }
.invite-brand { text-align: left; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.invite-brand span { font-weight: 500; font-size: .72rem; color: #9FBFAE; margin-left: .5rem; letter-spacing: 0; }
.invite-count { display: inline-block; margin-top: .9rem; padding: .3rem .9rem; border-radius: 999px;
  background: rgba(143,208,176,.18); color: #A5DCC1; font-size: .82rem; font-weight: 650; }
.invite-card { border-radius: 0 0 var(--radius) var(--radius); border-top: none; }
.invite-link { display: block; width: 100%; text-align: left; cursor: pointer; border: 1.5px dashed var(--brand);
  background: var(--brand-soft); color: var(--brand); font-weight: 650; font-size: .88rem;
  border-radius: 12px; padding: .7rem .9rem; word-break: break-all; }
.invite-link span { float: right; font-size: 1rem; }
[data-theme="dark"] .invite-link { background: rgba(143,208,176,.1); color: #8FD0B0; border-color: #8FD0B0; }
.invite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
.invite-preview { background: var(--surface); border-radius: 12px 12px 12px 4px; padding: .7rem .9rem;
  font-size: .86rem; line-height: 1.5; }

/* Lade-Spinner in Buttons: zeigt sofort „es passiert etwas“ (z. B. Stripe öffnen) */
.btn .btn-spin { width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: ptrSpin .6s linear infinite; flex: 0 0 auto; }
.btn-ghost .btn-spin, .btn-light .btn-spin { border-color: rgba(0,0,0,.18); border-top-color: #000; }
[data-theme="dark"] .btn .btn-spin { border-color: rgba(0,0,0,.25); border-top-color: #000; }
[data-theme="dark"] .btn-ghost .btn-spin { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
.btn:disabled.btn-busy { opacity: .85; cursor: progress; }

/* Pull-to-Refresh (App-Modus): schwebender Spinner wie bei nativen iOS-Apps */
/* Ruheposition: IMMER komplett über dem Bildschirmrand versteckt (auch mit Notch);
   die sichtbare Position beim Ziehen berechnet das Skript inkl. Safe-Area. */
#ptr { position: fixed; top: -46px; left: 50%; margin-left: -19px;
  z-index: 500; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 1px 4px rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ptr-spinner { width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--surface-2); border-top-color: var(--brand);
  transition: transform .2s; }
#ptr.ready .ptr-spinner { transform: rotate(200deg); }
#ptr.spin .ptr-spinner { animation: ptrSpin .65s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
[data-theme="dark"] #ptr { background: var(--surface-2); }
[data-theme="dark"] .ptr-spinner { border-color: #3a3a3c; border-top-color: var(--brand); }

/* Sterne-Verteilung (Bewertungs-Balken) */
.rating-bar-row { display: flex; align-items: center; gap: .5rem; margin: .22rem 0; font-size: .8rem; }
.rating-bar-row > span:first-child { flex: 0 0 2rem; font-weight: 650; }
.rating-bar-row > span:last-child { flex: 0 0 1.6rem; text-align: right; }
.rating-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rating-bar > div { height: 100%; border-radius: 999px; background: #f5a623; }
.back { display: inline-block; margin-bottom: .8rem; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.back:hover { color: #000; }
.summary-line { display: flex; justify-content: space-between; padding: .3rem 0; font-variant-numeric: tabular-nums; }
.summary-total { font-weight: 750; border-top: .5px solid var(--line); margin-top: .4rem; padding-top: .6rem; }

/* Footer, Mitteilungen, Rechtstexte */
.footer { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 6.5rem; text-align: center; font-size: .82rem; color: var(--ink-3); }
@media (min-width: 800px) { .footer { padding-bottom: 2rem; } }
.footer a { color: var(--ink-2); font-weight: 600; }
.footer a:hover { color: var(--brand); }
.note-unread { border-left: 3px solid var(--danger); }
.note-badge .badge-dot { position: relative; top: -6px; margin-left: 0; }
.legal h3 { margin-top: 1.3rem; }
.legal p { font-size: .93rem; color: var(--ink-2); }

/* Eigene Dialoge (statt Browser-Popups) */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 1.2rem; animation: modalFade .18s ease; }
.modal-backdrop.closing { opacity: 0; transition: opacity .15s; }
.modal { background: #fff; border-radius: 18px; padding: 1.4rem; max-width: 22rem; width: 100%;
  max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: modalPop .22s var(--spring); }
.modal h3 { margin-bottom: .35rem; }
.modal p { color: var(--ink-2); font-size: .95rem; }
.modal-input { margin-top: .6rem; }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; }
.modal-danger { background: var(--danger-deep); }
.modal-danger:hover { background: #a30010; }
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalPop { from { opacity: 0; transform: scale(.92) translateY(8px); } }

/* Balkendiagramm (Anbieter-Statistik) */
.bar-chart { display: flex; align-items: flex-end; gap: .7rem; padding-top: 1.6rem; }
.bar-col { flex: 1; text-align: center; }
.bar { background: var(--brand); border-radius: 6px 6px 3px 3px; margin: 0 auto; max-width: 44px; transition: height .4s var(--spring); }
.bar-label { font-size: .72rem; color: var(--ink-3); display: block; margin-top: .3rem; }
.bar-value { font-size: .68rem; color: var(--ink-2); font-weight: 600; display: block; margin-bottom: .2rem; min-height: 1em; }

/* Willkommens-Tipps bei der ersten Nutzung */
.welcome-rows { display: flex; flex-direction: column; gap: .2rem; margin-top: .8rem; }
.welcome-row { display: flex; gap: .8rem; align-items: flex-start; padding: .65rem 0; border-bottom: .5px solid var(--line); }
.welcome-row:last-child { border-bottom: none; }
.welcome-row .w-ico { font-size: 1.45rem; line-height: 1.2; flex-shrink: 0; color: var(--brand); }
.welcome-row .w-ico svg { width: 24px; height: 24px; }
.welcome-row strong { display: block; font-size: .95rem; }
.welcome-row small { color: var(--ink-2); font-size: .84rem; line-height: 1.4; }

/* Kundenservice: aufgeräumte Chat-Karte */
.support-card { padding: .9rem; display: flex; flex-direction: column; }
.support-thread { min-height: 300px; max-height: 55vh; overflow-y: auto; padding: .4rem .3rem; }
.support-empty { text-align: center; color: var(--ink-2); margin: auto; padding: 2rem 1rem; }
.support-empty p { margin: .2rem 0; }
.support-input { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-top: .5px solid var(--line); padding-top: .7rem; margin-top: .4rem; }
[data-theme="dark"] .support-card { background: var(--surface); }

/* Zwei-Wege-Karten (Startseite) */
.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: .6rem 0 1.4rem; }
@media (max-width: 640px) { .path-cards { grid-template-columns: 1fr; } }
.path-card { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem 1.2rem; }
.path-card .path-ico { font-size: 1.7rem; line-height: 1; margin-bottom: .3rem; color: var(--brand); }
.path-card .path-ico svg { width: 27px; height: 27px; }
.path-card-accent .path-ico { color: #fff; }
.path-card strong { font-size: 1.08rem; letter-spacing: -.01em; }
.path-card small { color: var(--ink-2); font-size: .88rem; line-height: 1.4; }
.path-card .path-go { margin-top: .55rem; font-weight: 700; font-size: .9rem; }
.path-card-accent, a.card.path-card-accent { background: var(--brand); }
a.card.path-card-accent:hover, .path-card-accent:hover { background: #245842; }
.path-card-accent strong, .path-card-accent .path-go { color: #fff; }
.path-card-accent small { color: rgba(255,255,255,.75); }
[data-theme="dark"] .path-card-accent, [data-theme="dark"] a.card.path-card-accent { background: #245842; }
[data-theme="dark"] a.card.path-card-accent:hover { background: #2b6a4f; }
[data-theme="dark"] .path-card-accent strong, [data-theme="dark"] .path-card-accent .path-go { color: #fff; }
[data-theme="dark"] .path-card-accent small { color: rgba(255,255,255,.75); }

/* Auffälliges Ausschreiben-Banner (Aufträge-Seite) */
.cta-banner, a.card.cta-banner { background: var(--brand); display: flex; flex-direction: column; gap: .9rem;
  padding: 1.4rem 1.3rem; margin: .5rem 0 .4rem; }
a.card.cta-banner:hover, .cta-banner:hover { background: #245842; }
.cta-banner .cta-text strong { display: block; color: #fff; font-size: 1.25rem; letter-spacing: -.015em; margin-bottom: .3rem; }
.cta-banner .cta-text span { color: rgba(255,255,255,.88); font-size: .95rem; line-height: 1.5; }
.cta-banner .cta-btn { align-self: flex-start; font-weight: 700; }
@media (min-width: 640px) {
  .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.2rem; }
  .cta-banner .cta-btn { flex-shrink: 0; }
}
[data-theme="dark"] .cta-banner { background: #245842; }
[data-theme="dark"] .cta-banner:hover { background: #2b6a4f; }

/* Ablauf-Leiste (1 → 2 → 3) */
.steps-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; color: var(--ink-2); font-size: .85rem; margin: -0.5rem 0 1.6rem; }
.steps-strip b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; margin-right: .35rem; }
.steps-strip .steps-arrow { color: var(--ink-3); }

/* ---------- Dark Mode (iOS-Farben) ---------- */
html[data-theme="dark"] {
  --ink: #ffffff;
  --ink-2: #d1d1d6;
  --ink-3: #8e8e93;
  --bg: #000000;
  --surface: #1c1c1e;          /* iOS systemGray6 dark */
  --surface-2: #2c2c2e;        /* iOS systemGray5 dark */
  --line: rgba(84, 84, 88, .55);
  --success-soft: #12351d;
  --amber: #ffb340;
  --amber-soft: #3a2a12;
  --brand: #7FB89D;           /* helleres Grün für dunklen Grund */
  --brand-soft: #16281f;
  color-scheme: dark;
}
[data-theme="dark"] .btn { background: #fff; color: #000; }
[data-theme="dark"] .btn:hover { background: #e5e5ea; }
[data-theme="dark"] .btn-ghost { background: var(--surface); color: #fff; }
[data-theme="dark"] .btn-ghost:hover { background: var(--surface-2); }
[data-theme="dark"] .btn-danger { background: transparent; color: var(--danger); }
[data-theme="dark"] .chip.active { background: var(--brand); color: #082116; }
[data-theme="dark"] .chip.active svg { color: #082116; }
[data-theme="dark"] .tabs button.active { background: #3a3a3c; color: #fff; box-shadow: none; }
[data-theme="dark"] .card.card-white { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .form-narrow.card input, [data-theme="dark"] .form-narrow.card select, [data-theme="dark"] .form-narrow.card textarea,
[data-theme="dark"] .card form input, [data-theme="dark"] .card form select, [data-theme="dark"] .card form textarea { background: var(--surface-2); border-color: var(--line); }
[data-theme="dark"] input:focus, [data-theme="dark"] select:focus, [data-theme="dark"] textarea:focus { box-shadow: 0 0 0 3.5px rgba(127,184,157,.4); }
[data-theme="dark"] .suggest { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .review-reply { background: var(--surface); border-left-color: #fff; }
[data-theme="dark"] .modal { background: var(--surface); }
[data-theme="dark"] .msg.mine { background: #fff; color: #000; }
[data-theme="dark"] .avatar { background: #fff; color: #000; }
[data-theme="dark"] .bar { background: var(--brand); }
[data-theme="dark"] .pill-blue { background: rgba(10, 132, 255, .22); color: #6cb2ff; }
[data-theme="dark"] .pill-green, [data-theme="dark"] .pill-topstar { color: #4cd964; }
/* Dunkelmodus-Kontrastfixes: sonst unsichtbar bzw. schwer lesbar */
[data-theme="dark"] .plan-card.current { outline-color: #fff; }
[data-theme="dark"] .back:hover { color: #fff; }
[data-theme="dark"] .steps-strip b { color: #0c1f16; }
[data-theme="dark"] .fav-btn { background: rgba(28,28,30,.78); }

/* ---------- Konto-Übersicht (Uber-Stil) ---------- */
.acct-head { display: flex; gap: 1rem; align-items: center; margin: .4rem 0 1.1rem; }
.acct-head h1 { margin: 0 0 .15rem; }
.acct-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0 0 1rem; max-width: 34rem; }
.acct-tile { display: block; background: var(--surface); border-radius: var(--radius); padding: .95rem .5rem .8rem;
  text-align: center; font-weight: 600; font-size: .84rem; color: var(--ink);
  transition: transform .25s var(--spring), background .18s; }
.acct-tile:hover { background: var(--surface-2); }
.acct-tile:active { transform: scale(.96); }
.acct-tile svg { width: 24px; height: 24px; display: block; margin: 0 auto .4rem; color: var(--brand); }
.acct-list { max-width: 34rem; padding: .35rem 1.2rem; }
.acct-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  padding: .95rem 0; border-bottom: .5px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .96rem; }
.acct-row:last-child { border-bottom: none; }
.acct-row .sub { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-3); margin-top: .1rem; }
.acct-row .chev { color: var(--ink-3); font-size: 1.2rem; font-weight: 400; }
.acct-row.danger { color: var(--danger-deep); }
[data-theme="dark"] .acct-row.danger { color: var(--danger); }

/* ---------- Einstellungen ---------- */
.seg { display: flex; gap: 2px; background: var(--surface-2); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: .55rem .6rem; font-weight: 600; font-size: .88rem;
  color: var(--ink-2); cursor: pointer; border-radius: 9px; font-family: inherit; transition: background .18s, color .18s; }
.seg button.active { background: var(--bg); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: .5px solid var(--line); }
.setting-row:last-child { border-bottom: none; }
.setting-row .grow { flex: 1; min-width: 0; }
.setting-row h4 { margin: 0; font-size: .97rem; }
.setting-row .meta { font-size: .8rem; }
/* iOS-Schalter */
.switch { position: relative; width: 51px; height: 31px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch .knob { position: absolute; inset: 0; background: var(--surface-2); border-radius: 999px; transition: background .22s; }
.switch .knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .22s var(--spring); }
.switch input:checked + .knob { background: var(--brand); }
.switch input:checked + .knob::after { transform: translateX(20px); }

/* ---------- Startbildschirm (Logo-Animation, ~2 s) ---------- */
/* Überstand oben/unten: deckt auch die Bereiche ab, die iOS beim Start kurz
   freigibt (dynamische Viewport-Höhe) – kein Flackern am Bildrand. */
#splash { position: fixed; left: 0; right: 0; top: -80px; bottom: -140px; z-index: 1000; background: #1C4634;
  padding-top: 80px; padding-bottom: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .45s ease; }
#splash.done { opacity: 0; pointer-events: none; }
.splash-logo { width: min(46vw, 230px); height: auto; overflow: visible; }
.splash-logo g { transform-box: view-box; }
/* Kunde gleitet von rechts herein, Bauarbeiter von links */
.sp-customer { animation: spInR .55s var(--spring) .15s backwards, spHop .35s ease-in-out 1.35s; }
.sp-worker { animation: spInL .55s var(--spring) .15s backwards, spHop .35s ease-in-out 1.3s; }
/* Der Helm fällt mit kleinem Hüpfer auf den Kopf */
.sp-helmet { animation: spDrop .5s cubic-bezier(.34,1.56,.64,1) .75s backwards; }
@keyframes spInL { from { transform: translateX(-160px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spInR { from { transform: translateX(160px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spDrop { from { transform: translateY(-170px); opacity: 0; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes spHop { 0%,100% { } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { #splash * { animation: none !important; } }

/* ---------- Erste-Schritte-Tour (Spotlight auf die Navigation) ---------- */
.tour { position: fixed; inset: 0; z-index: 300; }
.tour-spot { position: fixed; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.55), 0 0 0 3px rgba(143,208,176,.9);
  transition: all .3s var(--spring); }
.tour-bubble { position: fixed; background: #fff; color: #000; border-radius: 18px;
  padding: 1rem 1.1rem .9rem; box-shadow: 0 18px 50px rgba(0,0,0,.35);
  animation: modalPop .25s var(--spring); }
.tour-bubble strong { font-size: 1.02rem; letter-spacing: -.015em; }
.tour-bubble p { margin: .3rem 0 .7rem; font-size: .89rem; color: var(--ink-2); line-height: 1.45; }
.tour-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.tour-dots { display: inline-flex; gap: 5px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-2); }
.tour-dots i.on { background: var(--brand); }
[data-theme="dark"] .tour-bubble { background: var(--surface); color: #fff; }
[data-theme="dark"] .tour-dots i { background: #3a3a3c; }

/* Reduzierte Bewegung respektieren (iOS-Standard) */
@media (prefers-reduced-motion: reduce) {
  *, .app > *, .msg, .toast { animation: none !important; transition: none !important; }
}
