/* Globale Komponenten
   Scroll-Progress, schwebende Navigation, Buttons, Footer, Sticky-CTA, FAB */

/* Scroll-Progress */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 130; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-deep), var(--orange-hover)); transform-origin: 0 50%; scale: 0 1; box-shadow: 0 0 12px var(--orange-glow); }

/* Navigation */
.site-nav {
  position: fixed;
  top: 16px; left: 50%;
  translate: -50% 0;
  z-index: 120;
  width: min(calc(100% - 32px), 1280px);
  transition: translate 450ms var(--ease-out), top 300ms var(--ease-out);
}
.site-nav.is-hidden { translate: -50% calc(-100% - 24px); }
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .6);
  color: var(--white);
}
/* Ab 1312px sind Navigationsleiste und Seitenraster gleich breit und liegen
   deckungsgleich. Dann bekommt die Leiste innen denselben Rand wie der
   Seiteninhalt, damit das Logo mit dem Text darunter fluchtet (12.11.).
   Darunter ist die Leiste um 16px eingerueckt, dort bleibt es beim Bestand. */
@media (min-width: 1312px) {
  .site-nav__inner { padding-left: var(--gutter); }
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 46px; width: auto; }
.site-nav__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; font-size: var(--fs-sm); font-weight: 600; }
.site-nav__links a { display: inline-flex; align-items: center; white-space: nowrap; padding: 10px 9px; border-radius: 999px; color: rgba(255, 255, 255, .82); transition: background-color var(--ui) var(--ease), color var(--ui) var(--ease); }
.site-nav__actions { display: flex; align-items: center; gap: 8px; }
.site-nav__links .nav-ext { display: inline-block; flex: none; width: 13px; height: 13px; margin-left: 5px; opacity: .6; }

/* Reiter „Referenzen“: orange hervorgehoben, damit er zwischen den anderen auffällt */
.site-nav__links a.nav-ref { color: var(--orange-hover); font-weight: 700; }
.site-nav__links a.nav-ref:hover { color: var(--white); background: var(--orange); }
.mobile-menu a.nav-ref { color: var(--orange-hover); font-weight: 700; }

/* Dropdown „Leistungen“ */
.nav-drop { position: static; }
.nav-drop__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 9px; border-radius: 999px; font: inherit; font-weight: 600; color: rgba(255, 255, 255, .82); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: background-color var(--ui) var(--ease), color var(--ui) var(--ease); }
.nav-drop__btn .icon { width: 14px; height: 14px; transition: rotate 300ms var(--ease-out); }
.nav-drop__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav-drop__btn[aria-expanded="true"] .icon { rotate: 180deg; }
.mega { position: absolute; left: 0; right: 0; top: calc(100% + 10px); display: grid; grid-template-columns: 1fr 280px; gap: 10px; padding: 10px; border-radius: 28px; background: rgba(28, 27, 26, .92); border: 1px solid var(--line-dark); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); color: var(--white); animation: megaIn 280ms var(--ease-out) both; }
.mega[hidden] { display: none; }
@keyframes megaIn { from { opacity: 0; translate: 0 -8px; } }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* Brücke, damit Hover nicht abreißt */
.mega__grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; padding: 0; }
.mega__item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; transition: background-color var(--ui) var(--ease); }
.mega__item:hover, .mega__item:focus-visible { background: rgba(255, 255, 255, .07); }
.mega__ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(232, 93, 12, .16); color: var(--orange); transition: background-color var(--ui) var(--ease), color var(--ui) var(--ease); }
.mega__item:hover .mega__ic { background: var(--orange); color: var(--white); }
.mega__ic .icon { width: 21px; height: 21px; }
.mega__item strong { display: block; font-size: 15px; color: var(--white); }
.mega__item span:last-child { font-size: 13px; color: var(--muted-dark); }
.mega__all { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 22px; border-radius: 20px; background: linear-gradient(150deg, #f0670f, var(--orange) 45%, var(--orange-deep)); }
.mega__all-k { font-size: 13px; color: rgba(255, 255, 255, .85); }
.mega__all strong { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; padding-right: 48px; }
.mega__all-go { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--orange); transition: translate var(--ui) var(--ease-out); }
.mega__all:hover .mega__all-go { translate: 4px 0; }

/* Mobile: Leistungen als aufklappbare Liste */
.mobile-menu__drop summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 30px; font-weight: 800; letter-spacing: -.03em; padding-block: 10px; border-bottom: 1px solid var(--line-dark); }
.mobile-menu__drop summary::-webkit-details-marker { display: none; }
.mobile-menu__drop summary .icon { width: 24px; height: 24px; color: var(--orange); transition: rotate 300ms var(--ease-out); }
.mobile-menu__drop[open] summary .icon { rotate: 180deg; }
.mobile-menu__sub { display: grid; padding: 6px 0 10px 4px; border-bottom: 1px solid var(--line-dark); }
.mobile-menu nav .mobile-menu__sub a { font-size: 17px; font-weight: 600; letter-spacing: 0; padding-block: 9px; border: 0; color: rgba(255, 255, 255, .82); }
.mobile-menu nav .mobile-menu__sub a:first-child { color: var(--orange); }


.burger { display: none; width: 48px; height: 48px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, .08); }
.burger span { position: absolute; left: 15px; right: 15px; top: 50%; height: 2px; border-radius: 2px; background: currentColor; transition: translate 250ms var(--ease-out), rotate 250ms var(--ease-out); }
.burger span:first-child { translate: 0 -4px; }
.burger span:last-child { translate: 0 4px; }
.burger[aria-expanded="true"] span:first-child { translate: 0 0; rotate: 45deg; }
.burger[aria-expanded="true"] span:last-child { translate: 0 0; rotate: -45deg; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--anthra);
  color: var(--white);
  padding: 110px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-size: 30px; font-weight: 800; letter-spacing: -.03em; padding-block: 12px; border-bottom: 1px solid var(--line-dark); }
.mobile-menu__cta { display: grid; gap: 10px; }
body.menu-open { overflow: hidden; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color var(--ui) var(--ease), color var(--ui) var(--ease), border-color var(--ui) var(--ease), box-shadow var(--ui) var(--ease), translate var(--ui) var(--ease-out), scale 160ms var(--ease-out);
}
.btn:active { scale: .97; }
.btn .icon { width: 18px; height: 18px; transition: translate var(--ui) var(--ease-out); }
.btn--orange { background: var(--orange); color: var(--white); box-shadow: var(--shadow-orange); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .28); color: var(--white); }
.btn--ghost-dark { border: 1.5px solid var(--line); color: var(--ink); background: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--sm { min-height: 48px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 64px; padding: 0 34px; font-size: var(--fs-md); }

.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-deep); transition: gap var(--ui) var(--ease-out); }
.tlink .icon { width: 18px; height: 18px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 96px 0 32px; font-size: var(--fs-sm); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 420px; translate: -50% 0; background: radial-gradient(closest-side, rgba(232, 93, 12, .22), transparent); pointer-events: none; }
.site-footer__top { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.site-footer .logo img { height: 58px; }
.site-footer__claim { margin-top: 24px; color: var(--white); font-weight: 700; font-size: var(--fs-lg); line-height: 1.35; max-width: 28ch; }
.site-footer__h { color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer address { font-style: normal; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { transition: color var(--ui) var(--ease); }
.site-footer__bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: var(--fs-xs); }
.footer-legal { display: flex; gap: 24px; }
/* Zugang zum internen Bereich. Bewusst unauffaellig. */
.footer-intern { opacity: .45; }
.footer-intern:hover, .footer-intern:focus-visible { opacity: 1; }

/* Sticky-CTA mobil + FAB */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100;
  display: none; gap: 8px; padding: 8px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  translate: 0 140%;
  transition: translate 450ms var(--ease-out);
}
.sticky-cta.is-visible { translate: 0 0; }
.sticky-cta a { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); }
.sticky-cta__tel { color: var(--white); padding: 0 18px; }
.sticky-cta__tel .icon { width: 18px; height: 18px; }
.sticky-cta__main { flex: 1; background: var(--orange); color: var(--white); }

.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--white);
  box-shadow: var(--shadow-orange);
  opacity: 0; scale: .8; pointer-events: none;
  transition: opacity 300ms var(--ease-out), scale 300ms var(--ease-out), background-color var(--ui) var(--ease);
}
.fab.is-visible { opacity: 1; scale: 1; pointer-events: auto; }
.fab .icon { width: 24px; height: 24px; }

/* Hover nur auf Geräten mit Maus */
@media (hover: hover) and (pointer: fine) {
  .site-nav__links a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
  .btn--orange:hover { background: var(--orange-hover); box-shadow: 0 18px 40px -12px var(--orange-glow); translate: 0 -2px; }
  .btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
  .btn--ghost-dark:hover { border-color: var(--ink); }
  .btn--dark:hover { background: var(--anthra-3); }
  .btn--white:hover { background: var(--orange-soft); }
  .btn:hover .icon { translate: 4px 0; }
  .tlink:hover { gap: 12px; }
  .site-footer a:hover { color: var(--white); }
  .fab:hover { background: var(--orange-hover); }
  .verband-link:hover { color: var(--white); }
  .verband-link:hover .icon { translate: 2px -2px; }
}

/* Responsive */
/* Telefonnummer erst ab sehr breiten Fenstern zeigen, sonst wird die Navigation mit sieben Punkten zu eng */
@media (max-width: 1680px) { .site-nav__actions .btn--ghost { display: none; } }
/* Sieben Punkte im Menue: unterhalb 1200 px etwas enger setzen, sonst wird es zu knapp */
@media (max-width: 1200px) { .site-nav__links a, .nav-drop__btn { padding-inline: 6px; } }
@media (max-width: 1080px) {
  .site-nav__links, .site-nav__actions .btn--ghost { display: none; }
  .site-nav__actions { margin-left: auto; }
  .burger { display: block; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-nav { top: 10px; width: calc(100% - 20px); }
  .site-nav__inner { height: 62px; padding-left: 16px; padding-right: 7px; }
  .site-nav__actions .btn--orange { display: none; }
  .logo img { height: 38px; }
  .sticky-cta { display: flex; }
  /* Nach oben: ueber die Sticky-Leiste gesetzt, damit beide nebeneinander Platz haben */
  .fab { right: 12px; bottom: 88px; width: 46px; height: 46px; }
  .fab .icon { width: 20px; height: 20px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 36px; }
  .site-footer__bottom { flex-direction: column; }
  .site-footer { padding-bottom: 110px; }
}

/* Zugehoerigkeit zum Einkaufsverband, auf jeder Seite im Fuss. */
.site-footer__verband { margin-top: 14px; font-size: 13px; color: var(--muted-dark); }
.site-footer__verband strong { color: var(--white); font-weight: 700; }
.verband-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--orange-hover); }
.verband-link .icon { width: 13px; height: 13px; transition: translate var(--ui) var(--ease); }


/* Einwilligungs-Banner, unten links */
.cbar {
  position: fixed; left: 20px; bottom: 20px; z-index: 140;
  width: min(560px, calc(100vw - 40px));
  display: grid; gap: 14px;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: 24px;
  background: var(--anthra-2, #2f2d2b);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  translate: 0 140%; opacity: 0;
  transition: translate 420ms var(--ease-out), opacity 320ms var(--ease-out);
}
.cbar.is-in { translate: 0 0; opacity: 1; }
.cbar[hidden] { display: none; }
.cbar__kopf { display: flex; align-items: center; gap: 11px; }
.cbar__ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(232, 93, 12, .16); color: var(--orange-hover); }
.cbar__ic .icon { width: 17px; height: 17px; }
.cbar__titel { font-weight: 800; font-size: 18px; letter-spacing: -.015em; }
.cbar__text { font-size: 14px; line-height: 1.6; color: var(--muted-dark); }
.cbar__link { color: var(--orange-hover); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cbar__more { display: grid; gap: 15px; padding: 16px 0; border-block: 1px solid var(--line-dark); }
.cbar__more[hidden] { display: none; }
.cbar__opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cbar__opt strong { display: block; font-size: 14.5px; }
.cbar__opt span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--muted-dark); }
.cbar__fix { flex: none; font-size: 12.5px; color: var(--muted-dark); padding-top: 3px; white-space: nowrap; }

.cbar__switch { flex: none; position: relative; display: inline-flex; cursor: pointer; }
.cbar__switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cbar__switch span[aria-hidden] { width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .16); transition: background-color var(--ui) var(--ease); }
.cbar__switch span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: translate var(--ui) var(--ease); }
.cbar__switch input:checked + span[aria-hidden] { background: var(--orange); }
.cbar__switch input:checked + span[aria-hidden]::after { translate: 20px 0; }
.cbar__switch input:focus-visible + span[aria-hidden] { outline: 2px solid var(--orange-hover); outline-offset: 3px; }

.cbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cbar__actions[hidden] { display: none; }
.cbar__actions .btn { min-height: 46px; }
.cbar__mehr { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 720px) {
  .cbar { left: 12px; right: 12px; bottom: 86px; width: auto; }
  .cbar__actions .btn { flex: 1 1 auto; }
  .cbar__mehr { flex: 1 1 100%; text-align: left; }
}
