/* ==========================================================================
   layout.css – Kopf, Navigation, Brotkrumen, Fußzeile, mobile Leiste
   ========================================================================== */

/* --- Kopf ----------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur), background var(--dur); }
.header.isScrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.35); }
.header__bar { display: flex; align-items: center; gap: var(--space-lg); min-height: 84px; }
.header__brand { display: flex; align-items: center; gap: 0.9rem; color: var(--heading); flex: none; }
.header__logo { width: auto; height: 38px; }
.header__names { display: flex; flex-direction: column; line-height: 1.15; }
.header__names strong { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.header__names small { font-size: var(--fs-xs); color: var(--muted); }
.header__nav { margin-left: auto; }
.header__list { display: flex; gap: 0.25rem; }
.header__link { position: relative; display: inline-block; padding: 0.6rem 0.9rem; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); border-radius: var(--radius-sm); transition: color var(--dur-fast), background var(--dur-fast); }
.header__link::after { content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-spring); border-radius: 2px; }
.header__link:hover, .header__link.isActive { color: var(--heading); }
.header__link:hover::after, .header__link.isActive::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 0.6rem; }
.header__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 700; color: var(--heading); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); white-space: nowrap; }
.header__phone .icon { color: var(--brand-deep); }
.header__phone:hover { background: var(--bg-alt); color: var(--heading); }
.header__burger { display: none; width: 46px; height: 46px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--heading); cursor: pointer; place-items: center; }
.header__burgerClose { display: none; }
.header__burger[aria-expanded="true"] .header__burgerOpen { display: none; }
.header__burger[aria-expanded="true"] .header__burgerClose { display: block; }
.header__mobileExtra { display: none; }
.header__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.header__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width 0.1s linear; }

@media (max-width: 1080px) {
  .header__names small { display: none; }
  .header__phone span { display: none; }
  .header__cta span { display: none; }
  .header__cta { padding: 0.7rem; }
}
@media (max-width: 920px) {
  .header__bar { min-height: 72px; }
  .header__burger { display: grid; }
  .header__cta { display: none; }
  .header__nav { position: fixed; inset: 72px 0 0 0; background: var(--bg); padding: var(--space-lg) var(--gutter) 7rem; overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity var(--dur), transform var(--dur) var(--ease-spring); z-index: var(--z-menu); margin: 0; }
  .header__nav.isOpen { opacity: 1; transform: none; pointer-events: auto; }
  .header__list { flex-direction: column; gap: 0; }
  .header__link { display: block; padding: 1rem 0.5rem; font-size: var(--fs-lg); border-bottom: 1px solid var(--line); border-radius: 0; }
  .header__link::after { display: none; }
  .header__mobileExtra { display: grid; gap: 0.75rem; margin-top: var(--space-xl); }
  .header__hours { display: flex; gap: 0.5rem; align-items: center; color: var(--muted); font-size: var(--fs-sm); justify-content: center; }
  body.menuOpen { overflow: hidden; }
}

/* --- Brotkrumen ------------------------------------------------------------- */
.crumbs { padding: var(--space-md) 0 0; font-size: var(--fs-xs); }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.35rem; color: var(--muted); }
.crumbs__item { display: inline-flex; align-items: center; gap: 0.35rem; }
.crumbs__item a { color: var(--muted); }
.crumbs__item a:hover { color: var(--brand-deep); }
.crumbs__sep { width: 0.9em; height: 0.9em; opacity: 0.6; }
.crumbs__item span[aria-current] { color: var(--ink); font-weight: 600; }

/* --- Hauptbereich ----------------------------------------------------------- */
.main { min-height: 60vh; }

/* --- Fußzeile --------------------------------------------------------------- */
.footer { background: var(--dark); color: #cfd8d3; margin-top: var(--section-y); position: relative; }
.footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.footer a { color: #fff; }
.footer a:hover { color: var(--brand-soft); }
.footer h3 { color: #fff; font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-md); }
.footer__cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-xl); align-items: center; padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__cta h2 { color: #fff; font-size: var(--fs-xl); margin-bottom: 0.5rem; }
.footer__ctaText p { color: #cfd8d3; }
.footer__ctaActions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: var(--space-xl); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.footer__logo { width: 150px; height: auto; margin-bottom: var(--space-md); filter: brightness(0) invert(1); opacity: 0.95; }
.footer__col p { font-size: var(--fs-sm); line-height: 1.7; }
.footer__social { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: var(--space-md); font-size: var(--fs-sm); }
.footer__links { display: grid; gap: 0.35rem; font-size: var(--fs-sm); }
.footer__areas { font-size: var(--fs-sm); line-height: 1.8; }
.footer__note { font-size: var(--fs-xs); color: #9fb0a7; }
.footer__legal { display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; padding: var(--space-lg) 0 calc(var(--space-lg) + 4rem); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--fs-xs); color: #9fb0a7; }
.footer__legal p { margin: 0; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .footer__cta { grid-template-columns: 1fr; } .footer__ctaActions { justify-content: flex-start; } .footer__grid { grid-template-columns: 1fr; } }

/* --- Mobile Aktionsleiste und Nach-oben ---------------------------------------- */
.mobileBar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 0.4rem max(0.5rem, env(safe-area-inset-left)) max(0.4rem, env(safe-area-inset-bottom)); grid-template-columns: repeat(4, 1fr); gap: 0.25rem; }
.mobileBar a { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.4rem 0.2rem; font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); border-radius: var(--radius-sm); }
.mobileBar a .icon { width: 1.4rem; height: 1.4rem; color: var(--brand-deep); }
.mobileBar a:active { background: var(--bg-alt); }
@media (max-width: 760px) { .mobileBar { display: grid; } .toast { bottom: 5rem; } }
.toTop { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity var(--dur), transform var(--dur) var(--ease-spring); z-index: var(--z-bar); box-shadow: var(--shadow-card); }
.toTop.isVisible { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 760px) { .toTop { bottom: 5.2rem; right: 0.9rem; } }
