/* ==========================================================================
   chrome.css – Kopfzeile, Navigation (Burger), Fußbereich, Cookie-Hinweis
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 242, 236, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.header__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.header__progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--pine-500), var(--glacier-500) 60%, var(--alpenglow));
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 520; letter-spacing: -0.02em; }
.brand__name span { color: var(--glacier-600); font-style: italic; font-weight: 400; }
.on-dark .brand__name span { color: var(--glacier-300); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; display: flex; align-items: center; }
.nav-pages { gap: 4px; }
.nav-pages a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-weight: 560; font-size: .97rem; transition: background .2s, color .2s;
}
.nav-pages a:hover { background: rgba(36, 71, 58, 0.08); }
.nav-pages a[aria-current="page"] { background: var(--pine-800); color: var(--snow); }
.nav-sections { gap: 2px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.nav-sections a {
  display: block; padding: 6px 9px; text-decoration: none; border-radius: 8px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--granite-600);
  transition: color .2s, background .2s;
}
.nav-sections a:hover { color: var(--pine-700); background: rgba(36, 71, 58, 0.07); }
.nav-sections a.is-current { color: var(--pine-700); }
.nav-sections__label { display: none; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--white); position: relative;
}
.nav-toggle__lines, .nav-toggle__lines::before, .nav-toggle__lines::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__lines { top: 50%; margin-top: -1px; }
.nav-toggle__lines::before, .nav-toggle__lines::after { content: ''; left: 0; margin-left: 0; }
.nav-toggle__lines::before { top: -6px; }
.nav-toggle__lines::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 20px var(--gutter) 28px;
    background: var(--snow);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -30px rgba(22, 27, 30, .45);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .28s var(--ease), transform .35s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .nav-pages a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 420; padding: 8px 4px; border-radius: 8px; }
  .nav-pages a[aria-current="page"] { background: none; color: var(--pine-700); }
  .nav-pages a[aria-current="page"]::after { content: ' ▲'; font-size: .7em; color: var(--contour-text); }
  .nav-sections { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .nav-sections__label { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--contour-text); padding: 0 4px 6px; }
  .nav-sections a { font-size: .86rem; padding: 10px 4px; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--granite-950); color: rgba(244, 242, 236, 0.84); margin-top: 0; }
.site-footer .ridges { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: clamp(70px, 10vw, 150px); }
.ridges--foot .r1 .rock { fill: #3d4a50; } .ridges--foot .r1 .shade { fill: #323e43; } .ridges--foot .r1 .snow { fill: #c9d6db; }
.ridges--foot .r2 .rock { fill: var(--granite-950); } .ridges--foot .r2 .shade { fill: var(--granite-950); }
.footer__top { display: grid; gap: 44px; padding-block: 64px 40px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.25fr 2fr; gap: 64px; } }
.footer__brand p { max-width: 42ch; color: rgba(244, 242, 236, 0.7); font-size: .97rem; }
.footer__brand .brand { margin-bottom: 18px; color: var(--snow); }
.independence {
  margin-top: 22px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid rgba(159, 203, 216, 0.35); background: rgba(159, 203, 216, 0.07);
  font-size: .95rem; line-height: 1.55; color: var(--snow); max-width: 48ch;
}
.independence strong { color: var(--glacier-300); }
.sitemap { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.sitemap h2 {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--alpenglow); font-weight: 500; margin-bottom: 14px;
}
.sitemap ul { list-style: none; display: grid; gap: 4px; }
.sitemap a { text-decoration: none; display: inline-block; padding: 4px 0; color: rgba(244, 242, 236, 0.82); transition: color .2s; }
.sitemap a:hover { color: var(--glacier-300); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  padding-block: 22px 30px; border-top: 1px solid rgba(244, 242, 236, 0.12); font-size: .88rem; color: rgba(244, 242, 236, 0.6);
}
.legal { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; }
.legal span { color: rgba(244, 242, 236, 0.5); cursor: not-allowed; }
.linklike {
  background: none; border: 0; padding: 0; color: var(--glacier-300); text-decoration: underline; text-underline-offset: 4px; font-size: inherit;
}
.linklike:hover { color: var(--snow); }
.footer__coords { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; }

/* ---------- Cookie-Hinweis (als Kartenlegende) ---------- */
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: var(--shadow-2);
  padding: 22px 22px 20px;
  animation: cookie-in .6s var(--ease) both;
}
.cookie::before {
  content: ''; position: absolute; inset: 7px; border: 1px dashed rgba(169, 118, 74, 0.35); border-radius: 13px; pointer-events: none;
}
@media (min-width: 700px) { .cookie { left: 24px; bottom: 24px; } }
.cookie.is-leaving { animation: cookie-out .35s var(--ease) forwards; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes cookie-out { to { opacity: 0; transform: translateY(24px); } }
.cookie__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 480; margin: 0 0 6px; line-height: 1.2; }
.cookie p { font-size: .93rem; color: var(--ink-soft); line-height: 1.55; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; position: relative; }
.cookie__actions .btn { flex: 1 1 auto; }
.cookie__settings { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; position: relative; }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.switch-row__text { font-size: .9rem; line-height: 1.4; }
.switch-row__text strong { display: block; font-size: .95rem; }
.switch-row__text span { color: var(--ink-soft); }
.switch { position: relative; flex: none; width: 46px; height: 26px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch__track {
  position: absolute; inset: 0; border-radius: 999px; background: var(--granite-200); transition: background .25s;
}
.switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease);
}
.switch input:checked + .switch__track { background: var(--pine-500); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:disabled + .switch__track { opacity: .65; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--glacier-500); outline-offset: 2px; }
.cookie .eyebrow { font-size: .7rem; color: var(--contour-text); margin-bottom: 8px; }
.cookie .cookie__title { font-size: 1.3rem; color: var(--ink); }

/* Kontaktblock im Fußbereich (wie ein Standort-Eintrag auf der Karte) */
.contact-card {
  font-style: normal; margin-top: 18px; max-width: 48ch; padding: 16px 18px; border-radius: 12px;
  border: 1px dashed rgba(226, 154, 107, .45); background: rgba(244, 242, 236, .04); font-size: .95rem; line-height: 1.5;
}
.contact-card__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--alpenglow); margin: 0 0 10px; }
.contact-card__title::before { content: '▲ '; font-size: .8em; }
.contact-card__list { list-style: none; display: grid; gap: 6px; margin: 0 0 12px; }
.contact-card__list li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; }
.contact-card__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--granite-300); }
.contact-card a { color: var(--snow); text-decoration: underline; text-decoration-color: rgba(159, 203, 216, .5); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--glacier-300); }
.contact-card__resp { margin: 0; padding-top: 10px; border-top: 1px solid rgba(244, 242, 236, .12); color: rgba(244, 242, 236, .84); }
.contact-card__resp .contact-card__label { display: block; margin-bottom: 4px; letter-spacing: .04em; text-transform: none; font-size: .74rem; }
.footer__brand .contact-card { max-width: 42ch; font-size: .97rem; }
.footer__brand .contact-card .contact-card__title { font-size: .72rem; max-width: none; color: var(--alpenglow); }
.footer__brand .contact-card p { max-width: none; }
