/* MyKaution: Website, Mandatsseiten und Statusseite */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; 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; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; 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: "Nunito Sans"; src: url("/assets/fonts/nunito-sans-latin-opsz-normal.woff2") format("woff2-variations"); font-weight: 200 1000; font-display: swap; 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; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/nunito-sans-latin-ext-opsz-normal.woff2") format("woff2-variations"); font-weight: 200 1000; font-display: swap; 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; }

:root {
  --blue: #248edc;
  --blue-hover: #187fc2;
  --blue-light: #e8f5ff;
  --navy: #04324d;
  --ink: #101828;
  --muted: #344054;
  --muted-light: #526075;
  --border: #e2e7f0;
  --bg-soft: #eef1f8;
  --bg-pale: #f7f9fc;
  --white: #fff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --gutter: 20px;
  --wrap: 1120px;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
/* Typografie nach Legalano: Inter für H1/H2, Nunito Sans für alles andere. */
h1, h2, h3 { color: var(--navy); margin: 0 0 0.6em; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: clamp(1.8rem, 7.4vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.008em; }
h2 { font-size: clamp(1.8rem, 7.4vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.008em; }
h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; line-height: 1.5; letter-spacing: -0.006em; color: var(--ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { text-wrap: pretty; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: var(--radius-sm); }
:focus-visible { outline: 3px solid rgba(36, 142, 220, 0.45); outline-offset: 2px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted-light); font-size: 0.92rem; }
.strong { font-weight: 700; color: var(--ink); }
.rounded { border-radius: var(--radius-lg); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 13px 36px; border: 1px solid transparent; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 1.02rem; font-weight: 500; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--secondary { background: var(--white); color: var(--navy); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--blue-light); }
.btn--small { min-height: 41px; padding: 10px 20px; font-size: 0.875rem; font-weight: 600; }
.btn--block { width: 100%; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(6px); }
.site-header__row { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { display: inline-flex; flex: none; }
.logo img { width: 150px; height: auto; }
.nav-desktop { display: none; gap: 28px; margin-inline: auto; }
.nav-desktop a, .nav-link-strong { color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"], .nav-link-strong:hover { color: var(--blue); }
.site-header__actions { display: none; align-items: center; gap: 20px; }
.menu-toggle { margin-left: auto; display: inline-flex; padding: 8px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
.mobile-menu { border-top: 1px solid var(--border); background: var(--white); }
.mobile-menu__inner { display: grid; gap: 4px; padding-block: 12px 20px; }
.mobile-menu__inner a:not(.btn) { padding: 10px 0; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu__inner .btn { margin-top: 12px; }
@media (min-width: 1080px) {
  .nav-desktop, .site-header__actions { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* Abschnitte */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section--top-0 { padding-top: 0; }
.section--pale { background: var(--bg-pale); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.page-head { padding-block: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 40px); background: var(--bg-soft); }
.page-head h1 { margin-bottom: 0.35em; font-size: clamp(1.8rem, 7.4vw, 2.25rem); }
.page-head .lead { margin: 0; }
.page-head--center { text-align: center; padding-bottom: clamp(48px, 6vw, 80px); }
.page-head--center .lead { margin-inline: auto; }

/* Hero und Zweispalter: beide Spalten gleich hoch, gemeinsame Flucht */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero--soft { background: var(--bg-soft); }
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.split__text { display: flex; flex-direction: column; justify-content: center; }
.split__text > :last-child { margin-bottom: 0; }
.split__media { position: relative; min-height: 280px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--hero { grid-template-columns: 1.05fr 0.95fr; }
  .split--hero .split__media { min-height: 460px; }
  .split--reverse .split__media { order: 2; }
}
.lead { font-size: clamp(0.975rem, 2vw, 1.075rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
.hero h1 { max-width: 13em; font-size: clamp(1.8rem, 7.4vw, 3rem); font-weight: 600; line-height: 1.14; letter-spacing: -0.006em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions--center { justify-content: center; }
.hero__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: var(--muted-light); font-size: 0.92rem; }
.hero__note .icon { color: var(--blue); margin-top: 2px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: clamp(0.98rem, 2vw, 1.075rem); font-weight: 500; line-height: 1.5; }
.checks__mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--blue-light); color: var(--blue); }
.checks__mark .icon { width: 14px; height: 14px; stroke-width: 2.4; }

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 28px; text-align: center; box-shadow: 0 1px 3px rgba(4, 50, 77, 0.07); }
.step__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-light); color: var(--blue); margin-bottom: 16px; }
.step__icon .icon { width: 26px; height: 26px; }
.step__number { display: block; color: var(--muted-light); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin: 4px 0 8px; }
.step h3 { font-size: clamp(1.08rem, 2.2vw, 1.15rem); margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: clamp(0.9rem, 1.8vw, 0.92rem); line-height: 1.6; }
.center-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.hint { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-light); font-size: 0.84rem; }
.hint .icon { width: 16px; height: 16px; }
.info-box { margin-top: 40px; padding: 18px 22px; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius-md); color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.info-box strong { color: var(--ink); }
.link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 24px 0 0; }
.link-row--left { justify-content: flex-start; }
.link-row a { font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

/* Gründe */
.reasons { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 24px; }
.reasons li { display: flex; gap: 16px; }
.reasons__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: var(--radius-sm); background: var(--blue-light); color: var(--blue); }
.reasons h3 { margin-bottom: 4px; font-size: 0.98rem; color: var(--navy); }
.reasons p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.split > .split__text > h2 { font-size: clamp(1.85rem, 7.6vw, 2.25rem); }

/* Karten */
.cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; }
.card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 0.92rem; line-height: 1.6; }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--blue-light); color: var(--blue); margin-bottom: 14px; }

/* Aufruf mit Bild */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); box-shadow: var(--shadow); }
.cta-band__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.cta-band__content { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(40px, 6vw, 64px) var(--gutter); }
.cta-band h2 { color: var(--white); margin-bottom: 0.35em; font-size: clamp(1.58rem, 6.5vw, 2.15rem); line-height: 1.18; }
.cta-band p { color: rgba(241, 247, 255, 0.86); font-size: 1.05rem; margin-bottom: 24px; max-width: 34em; }

/* Rechtliches mit Akkordeon */
.legal-split { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .legal-split { grid-template-columns: 0.9fr 1.1fr; } }
.legal-split__text p { color: var(--muted); }
.sources-note { margin-top: 16px; color: var(--muted-light); font-size: 0.82rem; }

/* FAQ */
.faq-title { margin-bottom: 28px; font-size: 1.875rem; font-weight: 600; line-height: 1.5; letter-spacing: -0.006em; }
.faq { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--border); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 500; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--blue); transition: transform 0.2s; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__answer { padding: 7px 24px 22px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.faq__answer p:last-child { margin-bottom: 0; }

/* Ratgeber-Karten */
.post-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid:not(.post-grid--2) { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.post-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; }
.post-card__meta { color: var(--muted-light); font-size: 0.85rem; margin-bottom: 8px; }
.post-card h3 { font-size: 1.08rem; line-height: 1.4; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p:last-child { color: var(--muted); margin: 0; font-size: 0.92rem; line-height: 1.6; }

/* Text-Zweispalter, Tabellen, Listen */
.prose-grid { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .prose-grid { grid-template-columns: 1fr 1fr; } }
.prose-grid p, .prose-grid li { color: var(--muted); }
.prose-grid img { margin-top: 20px; }
.numbered { padding-left: 1.25em; display: grid; gap: 12px; margin: 0 0 1em; }
.list { padding-left: 1.15em; display: grid; gap: 8px; margin: 0 0 1em; }
.table-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; align-self: start; }
.cost-table { width: 100%; border-collapse: collapse; }
.cost-table caption { text-align: left; padding: 16px 20px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--border); }
.cost-table th, .cost-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.cost-table tr:last-child th, .cost-table tr:last-child td { border-bottom: 0; }
.cost-table th { width: 44%; font-weight: 700; color: var(--ink); }
.cost-table td { color: var(--muted); }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.portal-consent { display: flex; align-items: flex-start; gap: 12px; margin-block: 18px; font-size: 0.95rem; }
.portal-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
[data-fee-agreement] details { margin-block: 18px; }
[data-fee-agreement] summary { cursor: pointer; font-weight: 600; }
[data-fee-agreement] .counsel { overflow-wrap: anywhere; margin-top: 16px; }
.comparison-table { min-width: 620px; }
.comparison-table th, .comparison-table td { width: 36%; }
.comparison-table th:first-child { width: 28%; }
.comparison-table thead th { background: var(--bg-soft); }
.contact-line { display: flex; gap: 10px; align-items: center; }
.contact-line .icon { color: var(--blue); }

/* Rechtsprechung */
.case-list { display: grid; gap: 20px; }
@media (min-width: 900px) { .case-list { grid-template-columns: 1fr 1fr; } }
.case { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.case__meta { color: var(--muted-light); font-size: 0.86rem; font-weight: 600; }
.case p { color: var(--muted); }
.case__meaning { margin: 0; padding-top: 14px; border-top: 1px solid var(--border); }

/* Ratgeber-Beitrag */
.article__head { background: var(--bg-soft); padding-block: clamp(36px, 5vw, 64px); }
.article__head h1 { max-width: 20em; font-size: clamp(1.8rem, 7.4vw, 2.25rem); line-height: 1.3; }
.crumbs { display: flex; gap: 8px; font-size: 0.88rem; margin-bottom: 16px; color: var(--muted-light); }
.crumbs a { color: var(--muted-light); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.article__meta { margin: 0; color: var(--muted-light); font-size: 0.92rem; }
.article__layout { display: grid; gap: 40px; padding-block: clamp(36px, 5vw, 64px); }
@media (min-width: 1000px) { .article__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.article__main { min-width: 0; }
.article__main section { margin-top: 44px; }
.article__main h2 { font-size: clamp(1.4rem, 5vw, 1.6rem); line-height: 1.25; }
.article__main h3 { color: var(--navy); font-size: 1rem; font-weight: 650; }
.article__main p { color: var(--ink); font-size: 1.08rem; line-height: 1.7; }
.article__main li { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.article__image { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.article__image img { width: 100%; height: 100%; object-fit: cover; }
.answer { background: var(--blue-light); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 28px; }
.answer h2 { font-size: 1.15rem; margin-bottom: 8px; }
.answer p { margin: 0; color: var(--ink); }
.callout { background: var(--bg-pale); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--muted); }
.letter { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 28px; font-size: 0.98rem; box-shadow: var(--shadow); }
.letter p { color: var(--ink) !important; }
.letter p:last-child { margin-bottom: 0; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 44px; padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-pale); }
.inline-cta p { margin: 4px 0 0; }
.sources ul { padding-left: 1.15em; }
.article__aside { display: none; }
@media (min-width: 1000px) {
  .article__aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; align-self: start; }
}
.toc { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
.toc h2 { font-size: 1rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 0.92rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.aside-cta { border-radius: var(--radius-lg); padding: 22px; background: var(--navy); color: var(--white); }
.aside-cta p { color: rgba(255, 255, 255, 0.86); margin-bottom: 12px; }
.aside-cta strong { color: var(--white); }
.aside-cta .btn { width: 100%; background: var(--white); color: var(--navy); }

/* Rechtstexte */
.legal-text { max-width: 760px; }
.legal-text h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal-text p { color: var(--muted); }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 32px; font-size: 0.9rem; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; margin-bottom: 14px; color: var(--ink); }
.site-footer__grid > div > a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-footer__grid > div > a:hover { color: var(--blue); }
.site-footer__brand p { color: var(--muted); margin-top: 14px; }
.site-footer__contact { display: flex !important; gap: 8px; align-items: center; }
.site-footer__contact .icon { width: 16px; height: 16px; }
.site-footer__grid > div > p { color: var(--muted); }
.site-footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-light); font-size: 0.8rem; line-height: 1.6; }

/* Schwebender Knopf auf Mobilgeräten */
.float-cta { position: fixed; inset: auto 0 0; z-index: 30; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--border); }
@media (min-width: 900px) { .float-cta { display: none !important; } }

/* Mandatsseiten (wie die Legalano-Mandatierung: zentrierte Karte mit Fortschritt) */
.mandate { padding-block: clamp(40px, 6vw, 64px) clamp(56px, 7vw, 80px); }
.mandate__head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.mandate__head h1 { font-size: clamp(1.8rem, 7.4vw, 2.5rem); margin-bottom: 0.4em; }
.mandate__head p { color: var(--muted); font-size: 1.05rem; margin: 0; text-wrap: balance; }
.mandate__kicker { color: var(--blue) !important; font-weight: 800; font-size: 0.95rem !important; margin-bottom: 8px !important; }
.mandate__frame { width: min(608px, 100%); margin-inline: auto; }
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.progress__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.progress__label { font-weight: 700; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.mandate-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08); padding: clamp(24px, 5vw, 40px); }
.mandate-card--center { text-align: center; }
.mandate-card h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.mandate-card h2.mandate-card__title { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin-bottom: 10px; }
.mandate-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-light); color: var(--blue); margin-bottom: 16px; }
.mandate-card__text { color: var(--ink); text-align: left; }
.summary-box { display: flex; gap: 14px; align-items: center; text-align: left; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin: 20px 0; }
.summary-box__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--blue-light); color: var(--blue); }
.summary-box__label { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.summary-box__value { display: block; color: var(--ink); }
.mini-steps { list-style: none; padding: 0; margin: 0 auto 28px; display: grid; gap: 12px; text-align: left; max-width: 420px; }
.mini-steps li { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.mini-steps span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--blue-light); color: var(--navy); font-weight: 700; font-size: 0.82rem; }
.mandate-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(340px, 100%); min-height: 54px; margin: 0 auto; padding: 10px 20px; border: 0; border-radius: var(--radius-sm); background: var(--blue); color: var(--white); font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.mandate-btn:hover { background: var(--blue-hover); }
.mandate-btn small { font-size: 0.78rem; font-weight: 500; opacity: 0.9; }
.mandate-btn:disabled { opacity: 0.6; cursor: wait; }
.mandate-note { margin: 20px auto 0; max-width: 460px; color: var(--muted-light); font-size: 0.82rem; text-align: center; }
.mandate-divider { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.m-grid { display: grid; gap: 14px 16px; }
@media (min-width: 560px) { .m-grid { grid-template-columns: 1fr 1fr; } .m-grid .m-full { grid-column: 1 / -1; } }
.m-field { display: grid; gap: 6px; }
.m-field label { font-weight: 700; font-size: 0.86rem; color: var(--muted); }
.m-field input, .m-field select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; color: var(--ink); background: var(--white); }
.m-field input:focus, .m-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 142, 220, 0.14); }
.consent-list { display: grid; gap: 12px; }
.consent { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; cursor: pointer; font-size: 0.95rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--blue); }
.consent strong { color: var(--ink); }
.consent:has(input:checked) { border-color: rgba(36, 142, 220, 0.5); background: #fafcfe; }
.consent.is-invalid { border-color: #d92d20; }
.signature { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.signature canvas { display: block; width: 100%; height: 180px; touch-action: none; background: var(--white); cursor: crosshair; }
.signature__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-soft); font-size: 0.84rem; color: var(--muted); }
.signature__reset { display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.signature__reset .icon { width: 15px; height: 15px; }
.signature.is-invalid { border-color: #d92d20; }
.benefits { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 12px; max-width: 470px; font-size: 0.94rem; color: var(--muted); }
.benefits li { display: flex; gap: 10px; }
.benefits .icon { color: #12805c; margin-top: 3px; width: 18px; height: 18px; }
.benefits strong { color: var(--ink); }
.form-error { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: #fef3f2; color: #b42318; font-size: 0.92rem; }
.state-box { text-align: center; padding-block: 24px; }
.state-box p { color: var(--muted); }

/* Statusseite */
.portal-grid { display: grid; gap: 20px; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--blue-light); color: var(--navy); font-weight: 700; font-size: 0.9rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.timeline li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 0.94rem; color: var(--muted); }
.timeline li:last-child { border-bottom: 0; }
.counsel { white-space: pre-line; color: var(--ink); }
.file-input { display: block; width: 100%; padding: 14px; border: 1px dashed #c8ced8; border-radius: var(--radius-md); background: var(--bg-pale); font: inherit; }

/* ---------- Bewegung ---------- */

/* Hero: ruhiger Einstieg beim Laden, Bild gleitet von rechts herein (nur ab Tablet). */
@media (min-width: 768px) {
  .hero .split__text { animation: enter-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero .split__media { animation: enter-image 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
}
@keyframes enter-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes enter-image { from { opacity: 0; transform: translate3d(18px, 0, 0) scale(0.985); } }

/* Schwebende Karten über dem Hero-Bild. Sie bleiben innerhalb des Bildes, damit nichts über die Flucht ragt. */
.float-card { position: absolute; z-index: 1; opacity: 0; animation: card-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.float-card--top { top: 20px; left: 20px; animation-delay: 0.55s; }
.float-card--bottom { right: 20px; bottom: 20px; animation-delay: 0.72s; }
.float-card__inner { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border: 1px solid #d9e3ec; border-radius: 12px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 8px 22px rgba(4, 50, 77, 0.12); backdrop-filter: blur(8px); will-change: transform; }
.float-card--top .float-card__inner { animation: card-float 5.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.float-card--bottom .float-card__inner { animation: card-float 5.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) -1.6s infinite; }
.float-card__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border: 1px solid #c8dded; border-radius: 50%; background: var(--blue-light); color: var(--blue); }
.float-card__icon .icon { width: 18px; height: 18px; }
.float-card__text { display: grid; color: var(--navy); font-size: 0.86rem; font-weight: 700; line-height: 1.5; letter-spacing: -0.003em; white-space: nowrap; }
.float-card__text strong { font-weight: 800; }
@media (max-width: 479px) {
  .float-card--top { top: 12px; left: 12px; }
  .float-card--bottom { right: 12px; bottom: 12px; }
  .float-card__inner { gap: 6px; padding: 6px 9px 6px 6px; border-radius: 10px; }
  .float-card__icon { width: 28px; height: 28px; }
  .float-card__text { font-size: 0.72rem; }
}
@keyframes card-pop { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes card-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -7px, 0); } }

/* Abschnitte tauchen beim Scrollen auf, in beide Richtungen. Die Klasse setzt site.js. */
.reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal :is(.cards, .post-grid, .case-list, .faq, .reasons, .occ__list) > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible :is(.cards, .post-grid, .case-list, .faq, .reasons, .occ__list) > * { opacity: 1; transform: none; }
.reveal.is-visible :is(.cards, .post-grid, .case-list, .faq, .reasons, .occ__list) > :nth-child(2) { transition-delay: 0.1s; }
.reveal.is-visible :is(.cards, .post-grid, .case-list, .faq, .reasons, .occ__list) > :nth-child(3) { transition-delay: 0.2s; }
.reveal.is-visible :is(.cards, .post-grid, .case-list, .faq, .reasons, .occ__list) > :nth-child(4) { transition-delay: 0.3s; }
.reveal.is-visible :is(.cards, .post-grid, .case-list, .faq, .reasons, .occ__list) > :nth-child(n+5) { transition-delay: 0.4s; }

/* So funktioniert es: Karten erscheinen langsam nacheinander von links nach rechts,
   danach zeichnet sich das Symbol Strich für Strich und der Kreis pulsiert einmal. */
.steps .step { --turn: 0.15s; }
.steps .step:nth-child(2) { --turn: 1.4s; }
.steps .step:nth-child(3) { --turn: 2.65s; }
.reveal .steps .step { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.97); }
.reveal.is-visible .steps .step { animation: step-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--turn) both; }
.step__icon .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal:not(.is-visible) .step__icon { opacity: 0; transform: scale(0.72) translateY(8px); }
.reveal.is-visible .step__icon { animation: icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--turn) + 0.15s) both, icon-ring 0.6s ease-out calc(var(--turn) + 1.15s); }
.reveal.is-visible .step__icon .draw { animation: draw 0.42s ease-out calc(var(--turn) + 0.4s + var(--part) * 0.26s) forwards; }
.step { transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease, border-color 0.38s ease; }
.step:hover { transform: translateY(-2px); border-color: #bcd4ef; box-shadow: 0 12px 24px rgba(4, 50, 77, 0.1); }
.reveal .steps ~ :is(.center-actions, .info-box, .link-row) { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible .steps ~ :is(.center-actions, .info-box, .link-row) { opacity: 1; transform: none; transition-delay: 3.3s; }
@keyframes step-in { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes icon-pop { from { opacity: 0; transform: scale(0.72) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes icon-ring { 0% { box-shadow: 0 0 0 0 rgba(36, 142, 220, 0.45); } 100% { box-shadow: 0 0 0 9px rgba(36, 142, 220, 0); } }
/* Beim Hovern zeichnet sich das Symbol erneut (Klasse .again setzt site.js) */
.reveal.is-visible .step.again .step__icon { animation: icon-ring-again 0.6s ease-out 0.75s; }
.reveal.is-visible .step.again .step__icon .draw { animation: draw-again 0.42s ease-out calc(var(--part) * 0.2s) forwards; }
@keyframes draw-again { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes icon-ring-again { 0% { box-shadow: 0 0 0 0 rgba(36, 142, 220, 0.45); } 100% { box-shadow: 0 0 0 9px rgba(36, 142, 220, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero .split__text, .hero .split__media, .float-card, .float-card__inner { animation: none !important; opacity: 1; }
  .reveal, .reveal *, .reveal .steps .step, .reveal .step__icon { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .step__icon .draw { stroke-dashoffset: 0; }
}

/* Rechtsprechung: Sprungmarken und Gruppen */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.chip-nav a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--white); color: var(--navy); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.chip-nav a:hover { border-color: var(--blue); color: var(--blue); }
.case-group + .case-group { margin-top: clamp(48px, 6vw, 72px); }
.case-group > p { color: var(--muted); max-width: 46em; }
.case h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case p { font-size: 0.94rem; line-height: 1.6; }
.law-link { white-space: nowrap; }

/* Wann sich das Zurückfordern lohnt: nummerierte Übersicht statt Kartenraster */
.occ { display: grid; gap: 28px; }
@media (min-width: 1000px) { .occ { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: start; } .occ__intro { position: sticky; top: 110px; } }
.occ__intro h2 { margin-bottom: 16px; font-size: clamp(1.7rem, 3.4vw, 2.25rem); line-height: 1.25; }
.occ__intro p { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 0 0 26px; }
.occ__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.occ__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.occ__no { color: var(--blue); font: 600 15px/1.6 var(--font-display); font-variant-numeric: tabular-nums; }
.occ__item h3 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.006em; }
.occ__item p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.65; }
.occ__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.occ__link .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
.occ__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .occ__item { grid-template-columns: 1fr; padding: 22px 0; } .occ__no { margin-bottom: 4px; } }

/* Adressvorschläge (assets/js/adresse.js) */
.addr { position: relative; }
.addr-list { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #d6d9e0; border-radius: 10px; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); }
.addr-list li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.addr-list li strong { color: #172033; font-size: 0.82rem; font-weight: 600; }
.addr-list li span { color: #667085; font-size: 0.72rem; }
.addr-list li:hover, .addr-list li[aria-selected="true"] { background: #eef3ff; }

/* No public images: collapse image-only columns. */
.hero-media, .split-media, .split__media { display: none !important; }
.hero-grid, .hero-in, .split, .split--hero { grid-template-columns: minmax(0,1fr) !important; }
.logo, .brand { font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
