/* ============================================================
   BERTHÉ — CONCEPT A "INSTITUT"
   Classic and institutional: strict grid, calm blue, generous
   white space, restrained typography. The visual language of an
   established educational institution.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
/* `clip` (not `hidden`) keeps the sticky nav working while the off-canvas
   mobile menu sits outside the viewport */
body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- scroll progress ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- top info bar ---------- */
.topbar {
  background: var(--accent-2); color: #fff;
  font-size: .8rem; letter-spacing: .01em;
}
[data-theme="nacht"] .topbar { background: var(--accent-3); color: var(--text); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; flex-wrap: wrap; }
.topbar a { color: inherit; }
.topbar__set { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__set span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; flex: none; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 120;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled { box-shadow: 0 6px 26px rgba(12,24,38,.10); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.nav__brand { display: inline-flex; align-items: center; text-decoration: none; }
.nav__brand img { height: 46px; width: auto; border-radius: 6px; }
[data-theme="nacht"] .nav__brand img { background: #fff; padding: 4px 6px; }
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 6px 0; position: relative; white-space: nowrap;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .28s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__links a.is-active { color: var(--accent); }
.nav__cta {
  background: var(--accent); color: var(--on-accent); padding: 11px 20px; border-radius: 8px;
  font-size: .87rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--accent-2); transform: translateY(-2px); text-decoration: none; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-2); cursor: pointer; padding: 0; place-items: center; color: var(--text);
}
.burger span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: .84rem; }
}
@media (max-width: 940px) {
  .burger { display: grid; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(330px, 84vw);
    background: var(--surface); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 96px 26px 26px; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
    box-shadow: -20px 0 60px rgba(12,24,38,.18); overflow-y: auto;
  }
  .nav.menu-open .nav__links { transform: none; }
  .nav__links a { font-size: 1rem; padding: 10px 0; width: 100%; }
  .nav__cta { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 8px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--accent-2); }
[data-theme="nacht"] .btn--light { background: var(--surface); color: var(--text); }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(64px, 8vw, 108px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 760px; margin: 0 0 clamp(34px, 4vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.section__title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: .005em;
}
.section__lead { color: var(--text-muted); font-size: 1.03rem; margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 8% 0%, var(--accent-3), transparent 70%),
    radial-gradient(ellipse 50% 50% at 100% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 62px); align-items: center;
}
.hero__eyebrow {
  display: inline-block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.08; margin: 0 0 20px; letter-spacing: .005em;
}
.hero__lead { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 30px; max-width: 54ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hero__badges li { display: flex; align-items: flex-start; gap: 11px; font-size: .92rem; color: var(--text-muted); }
.hero__badges svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }

.hero__media { position: relative; }
.hero__media img { width: 100%; height: clamp(340px, 44vw, 520px); object-fit: cover; border-radius: 16px; }
.hero__card {
  position: absolute; left: -22px; bottom: -26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
  box-shadow: 0 22px 50px rgba(12,24,38,.16); max-width: 290px;
}
.hero__card b { display: block; font-size: 1.6rem; color: var(--accent); font-weight: 700; line-height: 1.1; }
.hero__card span { font-size: .82rem; color: var(--text-muted); }

.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 58px; position: relative; z-index: 1; }
.hero__stats > div { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.hero__stats b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; line-height: 1.1; color: var(--accent); }
.hero__stats span { font-size: .84rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__card { left: 12px; bottom: -18px; }
  .hero__stats { grid-template-columns: 1fr; gap: 12px; margin-top: 46px; }
}

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; }
.trust__title { text-align: center; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 16px; }
.trust__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.trust__list li {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
  font-size: .85rem; font-weight: 500; color: var(--text); background: var(--surface);
}

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 62px); align-items: center; }
.about__media img { width: 100%; height: clamp(300px, 38vw, 460px); object-fit: cover; border-radius: 16px; }
.about__body p { color: var(--text-muted); margin: 0 0 16px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(36px, 4vw, 56px); }
.value {
  border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px;
  padding: 26px 24px; background: var(--surface);
  transition: transform .25s, box-shadow .25s;
}
.value:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(12,24,38,.12); }
.value h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.4rem; margin: 0 0 10px; }
.value p { margin: 0; color: var(--text-muted); font-size: .93rem; }

.pills { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-3); color: var(--text); border-radius: 999px;
  padding: 8px 16px; font-size: .85rem; font-weight: 500;
}
.pills li::before { content: '✓'; color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .value-grid { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.svc:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 52px rgba(12,24,38,.13); }
.svc__ico {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-3); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.svc__ico svg { width: 26px; height: 26px; }
.svc h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.5rem; margin: 0 0 10px; }
.svc > p { color: var(--text-muted); font-size: .93rem; margin: 0 0 20px; }
.svc ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 9px; }
.svc li { display: flex; gap: 10px; font-size: .9rem; align-items: flex-start; }
.svc li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .55em; flex: none; }
.svc--future { border-style: dashed; background: transparent; }
.svc--future .svc__ico { background: transparent; border: 1px dashed var(--line); }
.svc__tag {
  align-self: flex-start; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; font-weight: 700;
}
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- process timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; position: relative; }
.steps::before {
  content: ''; position: absolute; left: 0; right: 0; top: 27px; height: 2px;
  background: var(--line);
}
.step { position: relative; text-align: center; padding-top: 0; }
.step__n {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
  background: var(--surface); color: var(--accent); border: 2px solid var(--accent);
  position: relative; z-index: 1; transition: background .25s, color .25s, transform .25s;
}
.step:hover .step__n { background: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.step h3 { font-size: .97rem; margin: 0 0 7px; font-weight: 700; }
.step p { font-size: .82rem; color: var(--text-muted); margin: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 26px 14px; } .steps::before { display: none; } }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { display: block; left: 27px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .step { display: grid; grid-template-columns: 54px 1fr; gap: 18px; text-align: left; padding: 12px 0; align-items: start; }
  .step__n { margin: 0; }
  .step div { grid-column: 2; }
}

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px;
  transition: transform .25s, box-shadow .25s;
}
.why:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(12,24,38,.12); }
.why__ico { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-3); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.why__ico svg { width: 22px; height: 22px; }
.why h3 { font-size: 1rem; margin: 0 0 8px; font-weight: 700; }
.why p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.why--wide { grid-column: span 2; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr 1fr; } .why--wide { grid-column: span 2; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } .why--wide { grid-column: auto; } }

/* ---------- funding (AVGS) ---------- */
.fund { background: var(--accent-2); color: #fff; }
[data-theme="nacht"] .fund { background: var(--accent-3); color: var(--text); }
.fund .kicker { color: #fff; opacity: .85; }
[data-theme="nacht"] .fund .kicker { color: var(--accent); opacity: 1; }
.fund .section__lead { color: rgba(255,255,255,.82); }
[data-theme="nacht"] .fund .section__lead { color: var(--text-muted); }
.fund__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 46px; }
.fund__box { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 26px 24px; }
[data-theme="nacht"] .fund__box { background: var(--surface); border-color: var(--line); }
.fund__box h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.35rem; margin: 0 0 10px; }
.fund__box p { margin: 0; font-size: .93rem; color: rgba(255,255,255,.85); }
[data-theme="nacht"] .fund__box p { color: var(--text-muted); }

.fund-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fstep { text-align: center; padding: 26px 18px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); position: relative; }
[data-theme="nacht"] .fstep { background: var(--surface); border-color: var(--line); }
.fstep:not(:last-child)::after {
  content: '→'; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; opacity: .6; z-index: 1;
}
.fstep b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 14px; background: #fff; color: var(--accent-2); font-size: .95rem; }
[data-theme="nacht"] .fstep b { background: var(--accent); color: var(--on-accent); }
.fstep h3 { font-size: .95rem; margin: 0 0 7px; }
.fstep p { font-size: .82rem; margin: 0; color: rgba(255,255,255,.8); }
[data-theme="nacht"] .fstep p { color: var(--text-muted); }
.fund__note {
  margin: 40px auto 0; max-width: 760px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.fund__note p { margin: 0; font-size: 1rem; color: rgba(255,255,255,.9); }
[data-theme="nacht"] .fund__note p { color: var(--text-muted); }
@media (max-width: 900px) { .fund__grid { grid-template-columns: 1fr; } .fund-steps { grid-template-columns: 1fr 1fr; } .fstep:not(:last-child)::after { display: none; } }
@media (max-width: 560px) { .fund-steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq.open { border-color: var(--accent); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--text);
  padding: 20px 56px 20px 24px; position: relative;
}
.faq__q::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .3s;
}
.faq.open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.2,.8,.2,1); }
.faq__a p { margin: 0; padding: 0 24px 22px; color: var(--text-muted); font-size: .94rem; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column; transition: transform .28s, box-shadow .28s;
}
.post:hover { transform: translateY(-6px); box-shadow: 0 24px 52px rgba(12,24,38,.13); }
.post__img { height: 180px; overflow: hidden; background: var(--accent-3); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; gap: 12px; align-items: center; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.post__meta b { color: var(--accent); font-weight: 700; }
.post h3 { font-size: 1.08rem; margin: 0 0 10px; line-height: 1.4; }
.post p { font-size: .89rem; color: var(--text-muted); margin: 0 0 18px; flex: 1; }
.post__link { font-size: .87rem; font-weight: 600; color: var(--accent); display: inline-flex; gap: 7px; transition: gap .25s; }
.post:hover .post__link { gap: 13px; }
.news__foot { text-align: center; margin-top: 40px; }
@media (max-width: 950px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .94rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--text-muted); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { margin: 0; font-size: .9rem; padding: 12px 16px; border-radius: 8px; display: none; }
.form__msg.is-ok { display: block; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-2); border: 1px solid var(--accent); }
[data-theme="nacht"] .form__msg.is-ok { color: var(--accent); }
.form__msg.is-err { display: block; background: rgba(200,60,40,.10); color: #b3402c; border: 1px solid rgba(200,60,40,.35); }
.form__hint { font-size: .76rem; color: var(--text-muted); margin: 0; }

.info { display: grid; gap: 18px; }
.info__item { display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: start; }
.info__ico { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-3); color: var(--accent); display: grid; place-items: center; }
.info__ico svg { width: 21px; height: 21px; }
.info__item h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 3px 0 4px; font-weight: 700; }
.info__item p { margin: 0; font-size: .95rem; }
.map { margin-top: 26px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 260px; border: 0; display: block; filter: saturate(.85); }
.map__foot { padding: 12px 16px; font-size: .84rem; background: var(--surface); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .field--row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 76px) 0 0; }
.foot__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.foot__brand img { height: 54px; width: auto; border-radius: 6px; margin-bottom: 16px; }
[data-theme="nacht"] .foot__brand img { background: #fff; padding: 5px 7px; }
.foot__brand p { font-size: .88rem; color: var(--text-muted); margin: 0; max-width: 42ch; }
.foot h4 { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin: 6px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a, .foot address a { color: var(--text); text-decoration: none; font-size: .9rem; }
.foot ul a:hover, .foot address a:hover { color: var(--accent); }
.foot address { font-style: normal; font-size: .9rem; color: var(--text-muted); display: grid; gap: 8px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); background: var(--surface); transition: border-color .2s, color .2s, transform .2s; }
.social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.foot__bar {
  margin-top: clamp(38px, 5vw, 58px); border-top: 1px solid var(--line); padding: 20px 0 26px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-muted);
}
@media (max-width: 940px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__cols { grid-template-columns: 1fr; } }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%);
  width: min(880px, calc(100vw - 32px)); z-index: 500;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 26px 60px rgba(12,24,38,.24); padding: 22px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.cookie.show { transform: translate(-50%, 0); }
.cookie h3 { font-size: .95rem; margin: 0 0 6px; }
.cookie p { margin: 0; font-size: .84rem; color: var(--text-muted); }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 20px; font-size: .87rem; }
@media (max-width: 720px) { .cookie { grid-template-columns: 1fr; } }

/* ---------- map: Zwei-Klick consent card (loaded only on request) ---------- */
.map__consent {
  min-height: 260px; padding: 30px 26px; background: var(--bg-2);
  display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 10px; 
}
.map__pin { width: 34px; height: 34px; color: var(--accent); }
.map__consent h3 { margin: 0; font-size: 1rem; font-weight: 700;  }
.map__consent p { margin: 0; font-size: .85rem; color: var(--text-muted); max-width: 46ch; }
.map__consent .btn { margin-top: 8px; }
.map__remember { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; color: var(--text-muted); cursor: pointer; }
.map__remember input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.map__policy { font-size: .78rem; color: var(--text-muted); text-decoration: underline; }
.map__policy:hover { color: var(--accent); }
