/* Stil „Modern“ – wird zusätzlich zu portal.css geladen, wenn er unter Darstellung gewählt ist.
   Weiche Flächen mit Schatten, größere Rundungen, Pillen-Navigation, Verlauf im Kopfbereich.
   Alle Farben kommen weiter aus den geprüften Theme-Variablen (Farbschema, Kontrastprüfung); Text steht immer auf
   Weiß, dem geprüften Hintergrund-Ton oder der Primärfarbe. Bewegung nur ohne „prefers-reduced-motion“. */
.style-modern {
  --r: min(calc(var(--radius) * 2 + 8px), 22px);
  --r-sm: min(calc(var(--radius) + 6px), 14px);
  --tint-primary: color-mix(in srgb, var(--primary) 9%, #fff);
  --edge: color-mix(in srgb, var(--ink) 9%, transparent);
  --shadow-sm: 0 1px 2px rgb(16 24 32 / .06), 0 0 0 1px var(--edge);
  --shadow: 0 1px 2px rgb(16 24 32 / .05), 0 0 0 1px var(--edge), 0 12px 32px -14px rgb(16 24 32 / .22);
  --canvas: color-mix(in srgb, var(--mist) 45%, #fff);
}
html:has(body.style-modern) { scroll-padding-top: 6.5rem; }
.style-modern h1 { font-weight: 800; letter-spacing: -.03em; }
.style-modern h2 { letter-spacing: -.018em; }

/* Kopfbereich: bleibt beim Scrollen sichtbar (nur auf größeren Bildschirmen) */
.style-modern .site-head { border-bottom: 0; box-shadow: 0 1px 0 var(--edge), 0 6px 20px -16px rgb(16 24 32 / .35); }
@media (min-width: 48rem) {
  .style-modern .site-head { position: sticky; top: 0; z-index: 30; }
}
.style-modern .brand-mark { border-radius: var(--r-sm); }
.style-modern .main-nav ul { gap: .3rem; }
.style-modern .main-nav a { border-radius: 999px; padding: .5rem 1rem; }
.style-modern .main-nav a:hover { background: var(--mist); }
.style-modern .main-nav a[aria-current="page"] { background: var(--tint-primary); color: var(--primary-dark); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 999px; }
@media (max-width: 47.99rem) {
  .style-modern .main-nav a, .style-modern .main-nav a[aria-current="page"] { border-radius: var(--r-sm); }
}

/* Startseiten-Kopf mit Verlauf und weichen Lichtflächen */
/* Die Lichtflächen sind Teil des Hintergrunds (kein overflow:hidden), damit die Suchvorschläge über den Kopfbereich
   hinausragen dürfen. Sie dunkeln nur ab: weißer Text behält mindestens den geprüften Kontrast. */
.style-modern .hero {
  background:
    radial-gradient(circle 30rem at 100% 0%, rgb(0 0 0 / .16), transparent 70%),
    radial-gradient(circle 22rem at 0% 100%, rgb(0 0 0 / .12), transparent 70%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.style-modern .hero .search { position: relative; z-index: 10; }
.style-modern .search { border-radius: 999px; padding: .35rem; box-shadow: 0 0 0 6px rgb(255 255 255 / .14), 0 18px 40px -18px rgb(0 0 0 / .5); }
.style-modern .search input { border-radius: 999px 0 0 999px; padding-left: 1.3rem; }
.style-modern .search button { border-radius: 999px; padding: 0 1.4rem; }
.style-modern .search-inline { border: 0; box-shadow: var(--shadow); }
.style-modern .search-hero { background: linear-gradient(180deg, var(--canvas), #fff); border-bottom: 0; }
.style-modern .search-hero .search { box-shadow: var(--shadow), 0 0 0 2px var(--ink); }
.style-modern .suggest { border-radius: var(--r-sm); border: 0; box-shadow: var(--shadow); overflow: hidden; }
.style-modern .chips a { background: rgb(0 0 0 / .12); }

/* Flächen: Karten mit Schatten statt Linien */
.style-modern :is(.tile, .ocard, .box, .contact-card, .infocard, .empty, .feedback, .contact-band, .fees .fee-table, .preview-note) {
  border: 1px solid transparent; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.style-modern :is(.tile, .box, .contact-card, .infocard, .feedback, .fees .fee-table) { background: #fff; }
.style-modern .box-online { background: var(--online-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--online) 22%, transparent); }
.style-modern .contact-card, .style-modern .contact-band { background: var(--canvas); }
.style-modern .ocard { background: var(--online-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--online) 18%, transparent); }
.style-modern :is(.tile, .ocard):hover { box-shadow: var(--shadow); border-color: transparent; }
.style-modern .tile-ic { border-radius: 50%; background: var(--tint-primary); }
.style-modern .board { border-radius: var(--r); box-shadow: var(--shadow); }
.style-modern .pills a, .style-modern .toc a { background: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.style-modern .pills a:hover, .style-modern .toc a:hover { box-shadow: 0 0 0 2px var(--primary); color: var(--primary-dark); }
.style-modern .az a { border-radius: var(--r-sm); border-color: transparent; box-shadow: var(--shadow-sm); background: #fff; }
.style-modern .az a[aria-current="page"] { background: var(--ink); color: #fff; }
.style-modern .pager a, .style-modern .pager span { border-radius: 999px; }
.style-modern .dir-grid h2 { border-bottom: 0; padding-bottom: 0; }
.style-modern .dir-grid h2::after { content: ""; display: block; width: 2.5rem; height: 4px; margin-top: .55rem; border-radius: 4px; background: var(--primary); }

/* Schaltflächen */
.style-modern .btn { border-radius: 999px; padding-inline: 1.35rem; }
.style-modern .btn-online, .style-modern .action-band .btn-online { border-radius: var(--r-sm); box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--online) 80%, #000); }
.style-modern .btn-ghost { border-radius: 999px; }

/* Leistungsseite */
.style-modern .facts { border: 0; gap: .75rem; }
.style-modern .facts div { padding: .9rem 1rem; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.style-modern .facts div > .i { width: 2.2rem; height: 2.2rem; padding: .45rem; border-radius: 50%; background: var(--tint-primary); }
.style-modern .facts div:has(.yes) > .i { background: var(--online-bg); }
@media (max-width: 40rem) {
  .style-modern .facts div > .i { width: 1.6rem; height: 1.6rem; padding: .3rem; }
}
.style-modern .module + .module { border-top: 0; }
.style-modern .module > h2 { display: flex; align-items: center; gap: .6rem; }
.style-modern .module > h2::before { content: ""; flex: none; width: .35rem; align-self: stretch; min-height: 1.1em; border-radius: 4px; background: var(--primary); }
.style-modern .module.fees > h2::before { display: none; }
.style-modern .module table { border-radius: var(--r-sm); overflow: hidden; border-style: hidden; box-shadow: 0 0 0 1px var(--line); }
.style-modern .action-band { border-left: 0; border-radius: var(--r); box-shadow: 0 0 0 1px color-mix(in srgb, var(--online) 22%, transparent); }
.style-modern .steps > li::before { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 0 0 5px var(--tint-primary); }
.style-modern .acc { border: 0; margin: 0 0 .6rem; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.style-modern .acc:last-of-type { border-bottom: 0; }
.style-modern .acc > summary { padding: 1rem 1.15rem; border-radius: var(--r-sm); }
.style-modern .acc > summary:hover { background: var(--canvas); }
.style-modern .acc-body { padding: 0 1.15rem 1.1rem; }
.style-modern .fee-table thead th, .style-modern .fee-table tfoot th, .style-modern .fee-table tfoot td { background: var(--canvas); }
.style-modern .feedback { background: var(--canvas); }
.style-modern .fb-choice .btn { border-radius: 999px; }
.style-modern .results > li { padding: 1.1rem .75rem; border-radius: var(--r-sm); }
.style-modern .results > li:hover { background: var(--canvas); }
.style-modern .open-exception { border-radius: var(--r-sm); }

/* Fuß */
.style-modern .site-foot { margin-top: 4rem; background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 88%, #000)); }

/* Bewegung nur, wenn erwünscht */
@media (prefers-reduced-motion: no-preference) {
  .style-modern :is(.tile, .ocard, .pills a, .toc a, .btn, .az a) { transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease; }
  .style-modern :is(.tile, .ocard):hover { transform: translateY(-2px); }
}
/* Hoher Kontrast (Windows): Schatten sind dort unsichtbar – Ränder zeigen */
@media (forced-colors: active) {
  .style-modern :is(.tile, .ocard, .box, .contact-card, .infocard, .empty, .feedback, .facts div, .acc, .pills a, .toc a, .az a, .search) { border: 1px solid CanvasText; }
}
@media print {
  .style-modern .site-head { position: static; box-shadow: none; }
  .style-modern :is(.tile, .ocard, .box, .facts div, .acc) { box-shadow: none; border: 1px solid #999; }
  .style-modern .hero { background: none; color: #000; }
}
.style-modern .steps .module > h2::before, .style-modern .infocard h2::before { display: none; }
.style-modern .service-head h1.long { font-weight: 750; letter-spacing: -.02em; }
@media (max-width: 40rem) {
  .style-modern .facts { gap: .5rem; }
  .style-modern .facts div { padding: .7rem .75rem; }
  .style-modern .facts div > .i { display: none; }
}
