/* Dr. med. Julia Lippmann – Website
   Praxisfarben, Apple-inspirierte Struktur */
:root {
  --coral: #ed706b;
  --coral-dark: #c9524d;
  --sand: #c7b9a4;
  --taupe: #897c70;
  --cream: #f4f0ec;
  --line: #e6e0d8;
  --text: #333333;
  --white: #ffffff;
  --nav-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 72px); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 16px; z-index: 200; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { width: min(980px, 100% - 48px); margin-inline: auto; }
.wrap-wide { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---------- Hauptnavigation mit Flyouts ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav-inner { width: min(1100px, 100% - 32px); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { width: auto; height: 38px; }
.nav-menu { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.nav-item { position: static; display: flex; align-items: center; }
.nav-item > a { display: flex; align-items: center; height: 100%; padding: 0 18px; font-size: 14px; color: var(--taupe); }
.nav-item > a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-item > a:hover { color: var(--text); text-decoration: none; }
.flyout { position: absolute; left: 0; right: 0; top: var(--nav-h); background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(51,51,51,.18); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-item:hover .flyout, .nav-item:focus-within .flyout { opacity: 1; visibility: visible; transform: none; }
.flyout-inner { width: min(1100px, 100% - 32px); margin-inline: auto; padding: 36px 0 44px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.flyout-col h3 { margin: 0 0 14px; font-size: 12px; font-weight: 500; color: var(--taupe); }
.flyout-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.flyout-main a { font-size: 24px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.flyout-sub a { font-size: 14px; color: var(--text); }
.flyout a:hover { color: var(--coral); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Bereichsnavigation (Pills) ---------- */
.section-nav { position: sticky; top: var(--nav-h); z-index: 90; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.section-nav-inner { width: min(1100px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 0; }
.section-nav-title { font-size: 15px; font-weight: 600; color: var(--taupe); white-space: nowrap; padding-right: 16px; border-right: 1px solid var(--line); }
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.pills::-webkit-scrollbar { display: none; }
.pills a { display: block; white-space: nowrap; font-size: 14px; color: var(--text); padding: 8px 16px; border-radius: 980px; transition: background .2s, color .2s; }
.pills a:hover { background: var(--cream); text-decoration: none; }
.pills a.active { background: var(--coral); color: var(--white); }

/* ---------- Buttons & Links ---------- */
.btn { display: inline-block; background: var(--coral); color: var(--white); font-size: 17px; padding: 12px 26px; border-radius: 980px; border: 0; cursor: pointer; font-family: inherit; transition: background .2s; }
.btn:hover { background: var(--coral-dark); text-decoration: none; color: var(--white); }
.btn-sm { font-size: 13px; padding: 7px 16px; font-weight: 500; }
.btn-light { background: var(--cream); color: var(--text); }
.btn-light:hover { background: var(--line); color: var(--text); }
.link-arrow { font-size: 19px; }
.link-arrow::after { content: " ›"; }

/* ---------- Typografie ---------- */
.eyebrow { margin: 0; font-size: 21px; font-weight: 600; color: var(--taupe); }
h1, h2, h3 { margin: 0; font-weight: 600; }
.display { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.05; letter-spacing: -0.02em; color: var(--sand); }
.headline { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.015em; color: var(--sand); }
.lead { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.38; margin: 0; }
.statement { font-size: clamp(24px, 3vw, 36px); line-height: 1.24; font-weight: 600; letter-spacing: -0.01em; color: var(--taupe); margin: 0; }
.statement strong { color: var(--text); font-weight: 600; }
.body-lg { font-size: 19px; line-height: 1.55; margin: 0; }
.muted { color: var(--taupe); }

/* ---------- Sektionen ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--taupe); color: var(--white); }
.section-dark .headline, .section-dark .display, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow, .section-dark .muted { color: var(--cream); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; margin-top: 12px; }
.hero { padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 72px); }
.hero .lead { max-width: 820px; }

/* Fotos */
.photo { border-radius: 24px; overflow: hidden; background: var(--cream); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.banner { height: clamp(320px, 46vw, 640px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split .photo { aspect-ratio: 4 / 5; }
.caption { margin: 12px 0 0; font-size: 13px; color: var(--taupe); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; }
.gallery figure { margin: 0; border-radius: 20px; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 13px; font-weight: 500; color: var(--white); background: rgba(51,51,51,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 5px 12px; border-radius: 980px; }
.g-a { grid-column: span 7; grid-row: span 3; }
.g-b { grid-column: span 5; grid-row: span 3; }
.g-c { grid-column: span 5; grid-row: span 3; }
.g-d { grid-column: span 7; grid-row: span 3; }

/* Kacheln */
.tiles { background: var(--cream); padding: 12px; display: grid; gap: 12px; }
.tile { min-height: 460px; padding: 64px clamp(28px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; background: var(--white); }
.tile p { max-width: 640px; }
.tile-dark { background: var(--taupe); color: var(--white); }
.tile-dark .headline, .tile-dark .eyebrow { color: var(--white); }
.tile-dark a { color: var(--white); }
.tile-coral { background: var(--coral); color: var(--white); }
.tile-coral .headline, .tile-coral .eyebrow, .tile-coral a { color: var(--white); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tiles.grid-2 { gap: 12px; }

/* Karten */
.card { background: var(--white); border-radius: 28px; padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; color: var(--sand); }
.card p { margin: 0; font-size: 17px; line-height: 1.55; }
.card .label { font-size: 14px; font-weight: 600; color: var(--taupe); }
.card-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.card-small { border-top: 3px solid var(--coral); border-radius: 0 0 24px 24px; }
.card-small h3 { font-size: 24px; color: var(--text); }
.price { font-size: 28px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: 14px; padding: 8px 14px; border-radius: 980px; background: var(--cream); }
.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }

/* Technikliste */
.spec { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.spec b { font-weight: 600; }
.spec span { color: var(--taupe); text-align: right; }

/* Preise */
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.price-row b { font-size: 24px; }
.note { margin-top: 20px; font-size: 14px; color: var(--taupe); }
.notice { background: var(--cream); border-radius: 18px; padding: 24px 32px; font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-weight: 400; font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p, .faq ul { margin: 12px 0 0; font-size: 17px; line-height: 1.55; }
.faq-group h3 { font-size: 28px; color: var(--taupe); margin-bottom: 8px; }

/* Formular */
.form { background: var(--white); border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: inherit; font-size: 17px; padding: 14px 16px; border: 1px solid var(--sand); border-radius: 12px; color: var(--text); background: var(--white); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(237,112,107,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input { margin-top: 3px; accent-color: var(--coral); }
.info-list { border-top: 1px solid var(--line); }
.info-list div { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.info-list span { font-size: 14px; font-weight: 600; color: var(--taupe); }

/* Rechtstexte */
.legal { padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 120px); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); color: var(--sand); letter-spacing: -0.015em; margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; color: var(--text); }
.legal h3 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; }
.legal-missing { border: 2px dashed var(--coral); border-radius: 18px; padding: 24px 28px; background: #fff7f6; }

/* ---------- Footer (weiß, zentriert) ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 44px; font-size: 14px; line-height: 1.6; color: var(--taupe); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer-logo { width: 280px; height: auto; margin-bottom: 8px; }
.footer-address { font-style: normal; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer-address strong { color: var(--text); font-weight: 600; }
.footer-line { display: flex; flex-wrap: wrap; justify-content: center; }
.footer-line > span + span::before { content: "·"; margin: 0 10px; color: var(--sand); }
.footer a { color: var(--taupe); }
.footer a:hover { color: var(--coral); }
.footer-copy { margin: 0; font-size: 13px; }
.footer-legal { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.footer-legal > * + *::before { content: "·"; margin: 0 10px; color: var(--sand); }
.footer-legal button { font: inherit; color: var(--taupe); background: none; border: 0; padding: 0; cursor: pointer; }
.footer-legal button:hover { color: var(--coral); }

/* ---------- Cookie-Einwilligung ---------- */
.cc { position: fixed; right: 24px; bottom: 24px; z-index: 1000; width: min(540px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--white); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.04); padding: 24px; color: #1d1d1d; font-size: 15px; line-height: 1.5; }
.cc[hidden] { display: none; }
.cc-head { display: grid; grid-template-columns: 48px 1fr 32px; align-items: center; gap: 12px; margin-bottom: 14px; }
.cc-head img { width: 44px; height: 44px; }
.cc-head h2 { font-size: 17px; font-weight: 600; text-align: center; margin: 0; color: #1d1d1d; }
.cc-close { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 24px; line-height: 1; color: #1d1d1d; }
.cc-text { margin: 0 0 14px; }
.cc-cat { background: #f6f6f6; border-radius: 6px; margin-bottom: 10px; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.cc-cat-head > span { font-weight: 600; font-size: 16px; }
.cc-cat-right { display: flex; align-items: center; gap: 14px; }
.cc-always { color: #2e8b21; font-size: 14px; }
.cc-toggle-desc { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cc-toggle-desc svg { transition: transform .2s; }
.cc-toggle-desc[aria-expanded="true"] svg { transform: rotate(180deg); }
.cc-desc { padding: 0 16px 16px; margin: 0; font-size: 14px; }
.cc-desc[hidden] { display: none; }
.cc-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; background: #cfcfcf; border-radius: 980px; transition: background .2s; }
.cc-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.cc-switch input:checked + span { background: var(--coral); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.cc-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cc-buttons button { font: inherit; font-size: 15px; padding: 12px 10px; border-radius: 6px; cursor: pointer; border: 1px solid #ebebeb; background: #f6f6f6; color: #1d1d1d; }
.cc-buttons .cc-accept { background: var(--coral); border-color: var(--coral); color: var(--white); }
.cc-buttons .cc-accept:hover { background: var(--coral-dark); }
.cc-links { display: flex; justify-content: center; gap: 16px; margin-top: 14px; font-size: 14px; }
.cc-links a { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-menu { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; height: auto; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; }
  .nav-menu.open { display: flex; }
  .nav-item { flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); }
  .nav-item > a { height: auto; padding: 16px 0 8px; font-size: 21px; color: var(--text); }
  .flyout { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; }
  .flyout-inner { width: 100%; padding: 0 0 14px; grid-template-columns: 1fr; gap: 0; }
  .flyout-col h3, .flyout-sub { display: none; }
  .flyout-main ul { gap: 4px; padding-left: 12px; }
  .flyout-main a { font-size: 16px; font-weight: 400; color: var(--taupe); padding: 6px 0; display: block; }
  .menu-btn { display: flex; }
  .section-nav-title { display: none; }
  .section-nav-inner { justify-content: flex-start; }
  .grid-2, .grid-3, .split { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .gallery { grid-auto-rows: 120px; }
  .g-a, .g-b, .g-c, .g-d { grid-column: span 12; grid-row: span 2; }
}
@media (max-width: 600px) {
  .cc { left: 0; right: 0; bottom: 0; width: auto; border-radius: 16px 16px 0 0; max-height: 90vh; }
  .cc-buttons { grid-template-columns: 1fr; }
}

/* Formular-Status */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-status { margin: 0; font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.ok { padding: 14px 18px; border-radius: 12px; background: #eaf6ea; color: #1f6b25; }
.form-status.err { padding: 14px 18px; border-radius: 12px; background: #fdeceb; color: #a63a35; }
.form button[disabled] { opacity: .6; cursor: default; }

/* Footer mobil */
@media (max-width: 600px) {
  .footer { padding: 36px 0 32px; }
  .footer-logo { width: 220px; }
  .footer-line { flex-direction: column; align-items: center; gap: 2px; }
  .footer-line > span + span::before { content: none; }
}

/* =========================================================
   Bewegung & Übergänge
   ========================================================= */
:root { --ease: cubic-bezier(.22, .61, .36, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Weicher Seitenwechsel (Chrome, Edge, Safari 18.2+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.nav { view-transition-name: nav; }
::view-transition-old(nav), ::view-transition-new(nav) { animation: none; }

/* Einstieg beim Laden: Hero erscheint gestaffelt */
.js .hero .center > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; }
.js .hero .center > *:nth-child(1) { animation-delay: .05s; }
.js .hero .center > *:nth-child(2) { animation-delay: .15s; }
.js .hero .center > *:nth-child(3) { animation-delay: .28s; }
.js .hero .center > *:nth-child(4) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Fotos: sanftes Aufziehen wie bei Apple */
.js .photo.reveal, .js .gallery figure.reveal { transform: translateY(28px) scale(.985); }
.js .photo.reveal img, .js .gallery figure.reveal img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.js .photo.reveal.in, .js .gallery figure.reveal.in { transform: none; }
.js .photo.reveal.in img, .js .gallery figure.reveal.in img { transform: scale(1); }

/* Galerie: leichtes Zoomen beim Überfahren */
@media (hover: hover) {
  .gallery figure img { transition: transform 1.2s var(--ease-out); }
  .gallery figure:hover img { transform: scale(1.04) !important; }
  .card { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(51,51,51,.25); }
  .link-arrow::after { display: inline-block; transition: transform .3s var(--ease-out); }
  .link-arrow:hover::after { transform: translateX(3px); }
}

/* Buttons */
.btn { transition: background .25s var(--ease), transform .25s var(--ease-out), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(237,112,107,.6); }
.btn:active { transform: translateY(0) scale(.98); }

/* Navigation: Schatten erst nach dem Scrollen */
.nav { transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.nav.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px -16px rgba(51,51,51,.2); }
.flyout { transition: opacity .28s var(--ease), transform .35s var(--ease-out), visibility .28s; }
.flyout-col li { opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .35s var(--ease-out); }
.nav-item:hover .flyout-col li, .nav-item:focus-within .flyout-col li { opacity: 1; transform: none; }
.flyout-col li:nth-child(2) { transition-delay: .03s; }
.flyout-col li:nth-child(3) { transition-delay: .06s; }
.flyout-col li:nth-child(4) { transition-delay: .09s; }
.flyout-col li:nth-child(5) { transition-delay: .12s; }

/* Pills */
.pills a { transition: background .3s var(--ease), color .3s var(--ease); }

/* FAQ: weiches Auf- und Zuklappen (moderne Browser) */
.faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .45s var(--ease-out), opacity .35s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
.faq summary { transition: color .2s var(--ease); }
.faq summary:hover { color: var(--coral); }
.faq summary::after { transition: transform .35s var(--ease-out); }

/* Cookie-Banner */
.cc { animation: cc-in .5s var(--ease-out) both; }
@keyframes cc-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.cc-desc { animation: fade .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.cc-buttons button { transition: background .2s var(--ease), border-color .2s var(--ease); }
.cc-buttons .cc-deny:hover, .cc-buttons .cc-save:hover { background: #ececec; }

/* Formular-Statusmeldung */
.form-status.ok, .form-status.err { animation: rise-sm .45s var(--ease-out) both; }
@keyframes rise-sm { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 960px) {
  .nav-menu.open { animation: menu-in .35s var(--ease-out) both; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
  .flyout-col li { opacity: 1; transform: none; }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal img, .js .hero .center > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .faq details::details-content { transition: none; }
}

/* Einleitungstext Startseite – mobil ruhiger */
@media (max-width: 600px) {
  .intro-statement { font-size: 21px; line-height: 1.42; letter-spacing: -0.005em; font-weight: 500; color: var(--text); }
  .intro-statement strong { font-weight: 700; }
  .intro-body { font-size: 16px; line-height: 1.6; }
  main > .section:has(.intro-statement) { padding: 64px 0; }
  main > .section .stack:has(.intro-statement) { gap: 18px; }
}

/* Logo in der Navigation */
@media (max-width: 1080px) and (min-width: 961px) { .nav-logo img { height: 32px; } .nav-item > a { padding: 0 12px; } }
.btn-sm { white-space: nowrap; }
@media (max-width: 600px) {
  .nav-inner { gap: 10px; }
  .nav-logo img { height: 30px; }
  .nav-actions { gap: 2px; }
  .nav-actions .btn-sm { padding: 7px 13px; }
  .menu-btn { width: 40px; margin-right: -8px; }
}
@media (max-width: 370px) {
  .nav-logo img { height: 25px; }
  .nav-actions .btn-sm { font-size: 12px; padding: 6px 11px; }
}

/* SEO-Überarbeitung: lange Überschriften sauber umbrechen, Berufsbezeichnung */
.display, .headline { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.role { margin: 10px 0 0; font-size: 19px; font-weight: 600; color: var(--taupe); }
.spec a { color: var(--coral); }
/* Sicherheitsnetz gegen seitliches Verrutschen auf dem Handy (bricht die fixierte Navigation nicht) */
body { overflow-x: clip; }
/* Lange URLs und E-Mail-Adressen in Rechtstexten umbrechen */
.legal p, .legal li, .legal a { overflow-wrap: anywhere; }
