/* =====================================================================
   DeinHelfer24 – gemeinsames Design-System
   ===================================================================== */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1b2a47; --navy-deep: #121e38;
  --ink: #121a2c; --ink-soft: #5c6577; --ink-faint: #8a92a3;
  --paper: #ffffff; --paper-alt: #f6f7f9; --line: #e6e7eb; --line-strong: #d4d7de;
  --orange: #f2701c; --orange-deep: #c24a0a; --orange-hover: #dd5f0e; --orange-tint: #fdeee1;
  --green: #17884c; --green-tint: #e7f7ed;
  --red: #c8333f; --red-tint: #fdecee;
  --blue: #2f6fe0; --blue-tint: #e7effd;
  --amber: #a86a0a; --amber-tint: #fdf2e0;
  --radius: 14px; --radius-sm: 9px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 26, 44, .06);
  --shadow: 0 10px 28px -12px rgba(18, 26, 44, .28);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper-alt); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .wrap-flex { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.page { padding: 44px 0 100px; min-height: 60vh; }
.page-narrow { max-width: 460px; margin: 0 auto; padding: 0 24px; }
.page-mid { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; min-height: var(--header-h); gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; flex-shrink: 0; }
.logo .tag { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, var(--orange) 0%, var(--navy-deep) 100%); display: flex; align-items: center; justify-content: center; }
.logo .tag svg { width: 18px; height: 18px; }
.logo .brand { color: var(--navy); }
.logo .brand span { color: var(--orange); }
.nav-links { display: flex; gap: 4px; font-size: 14.5px; font-weight: 600; margin-left: 40px; }
.nav-links a { padding: 9px 16px; border-radius: 999px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { background: var(--paper-alt); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-link-icon { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 8px 4px; }
.nav-link-icon:hover { color: var(--ink); }
.nav-link-icon .icon { width: 16px; height: 16px; }
.nav-text-link { font-size: 14px; font-weight: 600; color: var(--ink); padding: 8px 4px; }
.nav-text-link:hover { color: var(--orange-deep); }
html[data-auth="in"] [data-out-only], html[data-auth="out"] [data-in-only] { display: none !important; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 20px; height: 20px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 10px 20px 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav button.linklike { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 13px 4px; font-size: 15.5px; font-weight: 600; color: var(--ink); border: 0; background: none; border-bottom: 1px solid var(--line); cursor: pointer; }
.mobile-nav a.active { color: var(--orange-deep); }

.user-wrap { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); padding: 6px 8px; border-radius: 10px; max-width: 220px; }
.user-btn:hover { background: var(--paper-alt); }
.user-btn .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.user-btn .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 70; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--paper-alt); }
.menu .icon { width: 16px; height: 16px; color: var(--ink-soft); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .menu-head { padding: 8px 12px 6px; font-size: 12.5px; color: var(--ink-soft); }

.bell { position: relative; border: 0; background: none; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; }
.bell:hover { background: var(--paper-alt); color: var(--ink); }
.bell .icon { width: 20px; height: 20px; }
.bell-badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
.notif-panel { width: 360px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.notif-head button { width: auto; padding: 4px 8px; font-size: 12.5px; color: var(--orange-deep); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--paper-alt); }
.notif-item.unread { background: #fffaf6; }
.notif-item .t { font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; }
.notif-item .t .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 6px; flex-shrink: 0; }
.notif-item .b { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.notif-item .w { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.notif-empty { padding: 28px 16px; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease, opacity .15s ease, color .15s ease; }
.btn .icon { width: 16px; height: 16px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-alt); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eef0f4; }
.btn-outline-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a82833; }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: #f0c4c8; }
.btn-danger-ghost:hover { background: var(--red-tint); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-ghost.loading::after, .btn-white.loading::after { border-color: rgba(18, 26, 44, .2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--orange-deep); font-weight: 600; }
.link:hover { text-decoration: underline; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--orange-deep); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Formulare ---------- */
.field { margin-bottom: 18px; }
.lbl { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.lbl .req { color: var(--orange-deep); }
.lbl .opt { font-weight: 500; color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px;
  background: #fff; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: #98a0af; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 112, 28, .18); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6577' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.input[readonly] { background: var(--paper-alt); color: var(--ink-soft); }
.has-error .input, .has-error .select, .has-error .textarea, .input.invalid { border-color: var(--red); }
.help { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.field-error { font-size: 13px; color: var(--red); margin-top: 6px; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.row-plz { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--ink-soft); padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { color: var(--ink); background: var(--paper-alt); }
.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: #e8a13a; }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #7bc67e; }
.pw-meter[data-score="4"] span { background: var(--green); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; cursor: pointer; }
.check a { color: var(--orange-deep); font-weight: 600; text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pill-check, .pill-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); transition: border-color .15s ease, background .15s ease, color .15s ease; user-select: none; }
.pill:hover { border-color: var(--ink-faint); }
.pill-check:checked + .pill, .pill-radio:checked + .pill { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-deep); }
.pill-check:focus-visible + .pill, .pill-radio:focus-visible + .pill { outline: 2px solid var(--orange); outline-offset: 2px; }
.pills.compact .pill { border-radius: 9px; padding: 10px 16px; }

/* ---------- Karten, Badges, Hinweise ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.card-sm { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-tint { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card + .card { margin-top: 20px; }
.section-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.page-head { text-align: center; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; margin-bottom: 8px; }
.page-head p { color: var(--ink-soft); font-size: 15.5px; }
.page-icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--ink); }
.page-icon .icon { width: 24px; height: 24px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.badge-blue { background: var(--blue-tint); color: #1f55b8; }
.badge-green { background: var(--green-tint); color: var(--green); }
.badge-orange { background: var(--orange-tint); color: var(--orange-deep); }
.badge-gray { background: #eef0f3; color: #5b6472; }
.badge-red { background: var(--red-tint); color: var(--red); }
.badge-amber { background: var(--amber-tint); color: var(--amber); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--orange-tint); color: var(--orange-deep); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; }
.chip-gray { background: #eef0f3; color: #4a5365; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; border: 1px solid; font-size: 14.5px; line-height: 1.5; }
.alert .icon { width: 18px; height: 18px; margin-top: 2px; }
.alert strong { font-weight: 700; }
.alert-info { background: var(--blue-tint); border-color: #c4d6f7; color: #173f87; }
.alert-success { background: var(--green-tint); border-color: #bfe6cf; color: #0f6b3a; }
.alert-warn { background: var(--amber-tint); border-color: #f0d9a8; color: #7a4d06; }
.alert-error { background: var(--red-tint); border-color: #f2c4c8; color: #9a2631; }
.alert-orange { background: var(--orange-tint); border-color: #f6cfae; color: #8a3507; }
.alert + .alert { margin-top: 12px; }

.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 60px 24px; text-align: center; background: #fff; }
.empty-state .icon { width: 40px; height: 40px; color: #c1c6d1; margin-bottom: 14px; }
.empty-state h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--ink-soft); max-width: 380px; margin: 0 auto; }
.empty-state .btn { margin-top: 18px; }

.skel { background: linear-gradient(90deg, #eceef2 25%, #f6f7f9 37%, #eceef2 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skel-row { height: 82px; margin-bottom: 12px; border-radius: 16px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin .8s linear infinite; }

.stars { display: inline-flex; gap: 1px; color: #f2b705; font-size: 15px; letter-spacing: 1px; line-height: 1; }
.stars .off { color: #d4d7de; }
.stars-input { display: inline-flex; gap: 4px; }
.stars-input button { border: 0; background: none; font-size: 34px; line-height: 1; color: #d4d7de; cursor: pointer; padding: 2px; transition: color .1s ease, transform .1s ease; }
.stars-input button.on { color: #f2b705; }
.stars-input button:hover { transform: scale(1.12); }

/* ---------- Tabs & Listen ---------- */
.tabs-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 999px; font-weight: 600; font-size: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; }
.tab-btn .icon { width: 15px; height: 15px; }
.tab-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.tab-btn[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-count { background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; min-width: 18px; text-align: center; line-height: 1.6; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-head h1 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.dash-head p { color: var(--ink-soft); margin-top: 6px; font-size: 15px; }

.req-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; transition: border-color .15s ease, box-shadow .15s ease; color: inherit; }
a.req-row:hover { border-color: var(--line-strong); box-shadow: 0 4px 14px -8px rgba(18, 26, 44, .2); }
.req-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.req-icon .icon { width: 21px; height: 21px; }
.req-main { flex: 1; min-width: 0; }
.req-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.req-title { font-size: 15.5px; font-weight: 700; }
.req-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); }
.req-meta span { display: inline-flex; align-items: center; gap: 6px; }
.req-meta .icon { width: 14px; height: 14px; }
.req-price { text-align: right; flex-shrink: 0; }
.req-price .lbl2 { display: block; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 2px; }
.req-price .amount { font-size: 15px; font-weight: 800; color: var(--orange-deep); white-space: nowrap; }
.req-arrow { color: var(--ink-faint); flex-shrink: 0; }
.req-arrow .icon { width: 18px; height: 18px; }
.new-dot { background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.stat { background: #fff; padding: 18px 20px; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat .l { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.stat.accent .v { color: var(--orange-deep); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-alt); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Dialog ---------- */
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px -20px rgba(18, 26, 44, .5); color: var(--ink); }
dialog.modal.wide { width: min(760px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(18, 26, 44, .55); backdrop-filter: blur(2px); }
.modal-body { padding: 28px; overflow-y: auto; max-height: calc(100vh - 40px); }
.modal-body h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.modal-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
dialog.lightbox { border: 0; background: transparent; padding: 0; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(8, 12, 22, .88); }
dialog.lightbox img { max-width: 94vw; max-height: 88vh; display: block; border-radius: 10px; }
dialog.lightbox .close { position: absolute; top: -44px; right: 0; color: #fff; background: rgba(255, 255, 255, .16); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 76px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; padding: 13px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: toast-in .25s ease; }
.toast.success { background: #0f6b3a; } .toast.error { background: #9a2631; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-alt); border-top: 1px solid var(--line); padding: 64px 0 0; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.foot-logo .tag { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--orange) 0%, var(--navy-deep) 100%); display: flex; align-items: center; justify-content: center; }
.foot-logo .tag svg { width: 16px; height: 16px; }
.foot-col .tagline { margin-top: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 280px; }
.foot-col h2 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 16px; letter-spacing: 0; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col ul a { font-size: 14px; color: var(--ink-soft); }
.foot-col ul a:hover { color: var(--ink); text-decoration: underline; }
.foot-contact li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); }
.foot-contact .icon { width: 15px; height: 15px; }
.foot-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.foot-legal a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal .dot { color: #c7cad2; }

/* ---------- Cookie-Hinweis ---------- */
.cc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: var(--navy); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); }
.cc-bar p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 680px; flex: 1; min-width: 240px; }
.cc-bar a { color: #ffb27d; font-weight: 600; text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cc-bar button { padding: 10px 18px; border-radius: 9px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.cc-bar button.primary { background: var(--orange); border-color: var(--orange); }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 330px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: min(680px, calc(100vh - 190px)); min-height: 440px; }
.conv-list { border-right: 1px solid var(--line); overflow-y: auto; }
.conv-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 14px 16px; cursor: pointer; }
.conv-item:hover { background: var(--paper-alt); }
.conv-item[aria-current="true"] { background: var(--orange-tint); }
.conv-item .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.conv-item .who { font-weight: 700; font-size: 14.5px; }
.conv-item .when { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.conv-item .what { font-size: 12.5px; color: var(--orange-deep); font-weight: 600; margin-top: 2px; }
.conv-item .prev { font-size: 13px; color: var(--ink-soft); margin-top: 3px; display: flex; justify-content: space-between; gap: 8px; }
.conv-item .prev span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.thread-head .who { font-weight: 800; }
.thread-head .sub { font-size: 13px; color: var(--ink-soft); }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--paper-alt); }
.bubble { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.bubble.theirs { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble.mine { background: var(--navy); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.bubble .time { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.day-sep { align-self: center; font-size: 12px; color: var(--ink-faint); font-weight: 600; margin: 8px 0 2px; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 10px; align-items: flex-end; background: #fff; }
.composer .textarea { min-height: 44px; max-height: 140px; padding: 10px 12px; flex: 1; }
.chat-note { font-size: 12.5px; color: var(--ink-soft); padding: 8px 14px; background: #fffaf6; border-top: 1px solid #f6e1cf; }
.chat-empty { margin: auto; text-align: center; color: var(--ink-soft); padding: 30px; }
.chat-back { display: none; }
.thread-inner { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.chat.single { grid-template-columns: 1fr; }
.embed-chat { height: 520px; min-height: 0; }

/* ---------- Anfrage-Detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; font-size: 14.5px; }
.kv dt { color: var(--ink-soft); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-grid button { border: 0; padding: 0; background: var(--paper-alt); border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.offer-card + .offer-card { margin-top: 12px; }
.offer-card.accepted { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.offer-card .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.offer-card .price { font-size: 24px; font-weight: 800; color: var(--orange-deep); letter-spacing: -0.02em; }
.offer-card .who { font-weight: 700; font-size: 15.5px; }
.offer-card .msg { margin-top: 10px; font-size: 14.5px; color: var(--ink); background: var(--paper-alt); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.offer-card .foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.contact-card { border: 1px solid #bfe6cf; background: var(--green-tint); border-radius: var(--radius); padding: 18px 20px; }
.contact-card h3 { font-size: 15px; font-weight: 800; color: #0f6b3a; margin-bottom: 10px; }
.contact-card .kv { grid-template-columns: 100px minmax(0, 1fr); font-size: 14px; }
.contact-card a { color: #0f6b3a; text-decoration: underline; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; font-size: 14px; color: var(--ink-soft); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 17px; bottom: -3px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done::before { background: var(--green); }
.timeline li.now::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 112, 28, .2); }

.steps-3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps-3 li { display: flex; gap: 14px; background: #fff; padding: 20px; }
.steps-3 .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-deep); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.steps-3 strong { font-size: 15px; }
.steps-3 p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }

/* ---------- Helfer-Bereich ---------- */
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; }
.filters .field { margin-bottom: 10px; }
button.pill { font-family: inherit; background: #fff; color: var(--ink); cursor: pointer; }
.pill.on, .pill[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-deep); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tag-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; }
.tag-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 112, 28, .18); }
.tag-input input { border: 0; outline: none; flex: 1; min-width: 90px; font: inherit; font-size: 14.5px; padding: 4px; background: transparent; color: var(--ink); }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--orange-tint); color: var(--orange-deep); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 4px 6px 4px 12px; }
.tag-chip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(221, 95, 14, .15); color: inherit; cursor: pointer; line-height: 1; font-size: 14px; padding: 0; }
.table th.num, .table td.num { text-align: right; white-space: nowrap; }
.danger-zone { border-color: #f1c5c5; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Wizard ---------- */
.stepper { display: flex; align-items: flex-start; margin: 34px 0 30px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step-item .circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; border: 1.5px solid var(--line-strong); color: var(--ink-soft); background: #fff; transition: all .2s ease; }
.step-item .step-label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.step-item.current .circle { background: var(--orange); border-color: var(--orange); color: #fff; }
.step-item.current .step-label { color: var(--ink); }
.step-item.done .circle { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-connector { flex: 1; height: 1.5px; background: var(--line-strong); margin-top: 15px; min-width: 14px; }
.step-connector.done { background: var(--navy); }
.cat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cat-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 22px 10px 18px; cursor: pointer; background: #fff; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.cat-card:hover { transform: translateY(-2px); border-color: #c9cbd2; }
.cat-card .badge-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cat-card .badge-ico .icon { width: 21px; height: 21px; }
.cat-card .name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cat-radio:checked + .cat-card { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); background: #fffaf6; }
.cat-radio:checked + .cat-card::after { content: ''; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cat-radio:focus-visible + .cat-card { outline: 2px solid var(--orange); outline-offset: 2px; }
.wizard-actions { display: flex; align-items: center; margin-top: 30px; gap: 14px; }
.wizard-actions .spacer { flex: 1; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; background: var(--paper-alt); }
.dropzone:hover, .dropzone.dragover { border-color: var(--orange); background: var(--orange-tint); }
.dropzone .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.dropzone .ico .icon { width: 22px; height: 22px; }
.dropzone .t { font-weight: 700; font-size: 14.5px; }
.dropzone .s { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-alt); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(18, 26, 44, .78); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.ki-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: var(--paper-alt); margin-top: 16px; }
.ki-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.ki-head .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.ki-head .ico .icon { width: 15px; height: 15px; }
.ki-fact { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ki-fact .k { color: var(--ink-soft); }
.ki-fact .v { font-weight: 600; text-align: right; }
.ki-price { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; background: #fff; border: 1.5px solid var(--orange); border-radius: 12px; padding: 14px 16px; }
.ki-price .amount { font-size: 21px; font-weight: 800; color: var(--orange-deep); }
.ki-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; line-height: 1.5; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.summary-row .k { color: var(--ink-soft); flex-shrink: 0; }
.summary-row .v { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-icon .icon { width: 34px; height: 34px; }
.auth-tabs { display: flex; gap: 6px; background: var(--paper-alt); padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Inhaltsseiten (Recht, FAQ) ---------- */
.prose h1 { font-size: clamp(26px, 3.6vw, 32px); font-weight: 800; margin-bottom: 8px; }
.prose .updated { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 30px; }
.prose h2 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; letter-spacing: -0.01em; }
.prose h3 { font-size: 15.5px; font-weight: 700; margin: 20px 0 8px; }
.prose p, .prose li { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose a { color: var(--orange-deep); font-weight: 600; text-decoration: underline; }
.prose strong { color: var(--ink); }
.prose .box { border: 1px solid var(--orange); background: var(--orange-tint); border-radius: 14px; padding: 16px 18px; margin: 24px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.prose .toc { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 24px; }
.prose .toc a { text-decoration: none; font-weight: 500; }
.tab-switch { display: flex; gap: 8px; margin-bottom: 22px; }
.tab-switch a { flex: 1; text-align: center; padding: 11px 16px; border-radius: 11px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.tab-switch a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.faq-group { margin-bottom: 34px; }
.faq-label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 12px; padding-left: 4px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 18px 20px; font-size: 15px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 18px; height: 18px; color: var(--ink-soft); transition: transform .2s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .a { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.faq-item .a a { color: var(--orange-deep); font-weight: 600; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid.side-first .detail-side { order: -1; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .steps-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right { gap: 8px; }
  .nav-right .hide-mobile { display: none !important; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 170px); }
  .chat .conv-list { display: block; }
  .chat.has-thread .conv-list { display: none; }
  .chat:not(.has-thread) .thread { display: none; }
  .chat-back { display: inline-flex; }
}
@media (max-width: 700px) {
  .req-row { flex-wrap: wrap; }
  .req-price { margin-left: 60px; text-align: left; }
  .row-2, .row-3, .row-plz { grid-template-columns: 1fr; }
  .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .filters { grid-template-columns: 1fr; gap: 0; }
  .composer .hide-mobile { display: none; }
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table.stack tr:last-child { border-bottom: 0; }
  .table.stack td { border: 0; padding: 5px 16px; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .table.stack td::before { content: attr(data-label); font-weight: 600; color: var(--ink-soft); text-align: left; flex: none; }
  .card { padding: 24px 18px; }
  .step-item .step-label { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .page { padding-top: 30px; }
  .logo { font-size: 17px; }
  .logo .tag { width: 32px; height: 32px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat .v { font-size: 22px; }
  .modal-body { padding: 22px 20px; }
  .cc-bar { padding: 14px 16px; }
  .cc-actions { width: 100%; } .cc-actions button { flex: 1; }
  .toasts { top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cc-bar, .toasts, .no-print, .tabs-row, .btn { display: none !important; }
  body { background: #fff; }
  .card, .card-sm { border: 1px solid #ccc; break-inside: avoid; }
  .page { padding: 0; }
  /* Beleg-Dialog: beim Drucken nur den geöffneten Dialog ausgeben */
  body:has(dialog.modal[open]) main { display: none !important; }
  dialog.modal[open] { position: static; display: block; box-shadow: none; border: 0; max-width: none; width: auto; margin: 0; padding: 0; }
  dialog.modal::backdrop { display: none; }
}

/* ---------- Admin ---------- */
.tier-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.tier-row .tier-del { margin-bottom: 18px; }
@media (max-width: 700px) { .tier-row { grid-template-columns: 1fr 1fr; } .tier-row .tier-del { grid-column: 1 / -1; margin-bottom: 18px; justify-self: start; } }
