/* =========================================================
   AC Immobilien — Stylesheet
   Design-Anlehnung: bauwerk.de (minimalistisch, editorial)
   Schrift: Jost (lizenzfrei, OFL) — Tw Cent MT / Futura nahe
   ========================================================= */

/* ---------- Schrift: Jost via Google Fonts (OFL, lizenzfrei) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ---------- Design-Tokens ---------- */
:root {
  /* Firmenfarbe: helles Grau */
  --grey-50:  #f6f6f5;
  --grey-100: #ededec;
  --grey-200: #e2e2e0;
  --grey-300: #cfcfcc;
  --grey-400: #a8a8a4;
  --grey-500: #828280;
  --grey-600: #5e5e5c;
  --grey-700: #3f3f3e;
  --grey-800: #262625;
  --grey-900: #161615;

  --bg:          #ffffff;
  --bg-alt:      var(--grey-50);
  --surface:     var(--grey-100);
  --text:        var(--grey-900);
  --text-soft:   var(--grey-600);
  --line:        var(--grey-200);
  --accent:      var(--grey-800);

  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --font: 'Jost', 'Century Gothic', 'Futura', 'Trebuchet MS', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout-Helfer ---------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.section--alt { background: var(--bg-alt); }

/* Editorial-Überschrift im Bauwerk-Stil: klein, kleinbuchstaben, mit Punkt */
.kicker {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  margin-bottom: 2.5rem;
  color: var(--text);
}
.kicker::after { content: '.'; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

h1, h2, h3, h4 { font-weight: 400; line-height: 1.18; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p  { color: var(--text-soft); }
p + p { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background: var(--text); color: #fff; }
.btn--solid { background: var(--text); color: #fff; }
.btn--solid:hover { background: transparent; color: var(--text); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--text); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* link mit Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.link-arrow .arrow { transition: transform .35s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* AC-Immobilien-Logo */
.brand .logo-img {
  height: 34px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}
/* Transparenter Header über dunklem Hero: dunkles Logo invertieren -> weiß */
.site-header:not(.scrolled):not(.solid) .brand .logo-img {
  filter: invert(1) brightness(2);
}
/* Transparenter Header über dunklem Hero: Menü-Schrift hell */
.site-header:not(.scrolled):not(.solid) .nav-links a {
  color: #fff !important;
}
/* Wenn gescrollt/solid: Schrift dunkel (Standard) */
.site-header.scrolled .nav-links a,
.site-header.solid .nav-links a {
  color: var(--text);
}
.site-header:not(.scrolled):not(.solid) .nav-toggle span {
  background: #fff;
}
/* Login-/Master-Button im transparenten Zustand hell umrandet */
.site-header:not(.scrolled):not(.solid) .nav-login {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.site-header:not(.scrolled):not(.solid) .nav-login:hover {
  background: #fff;
  color: var(--text);
}
/* Footer-Logo liegt bereits als weiße Variante vor */
.footer-brand .logo-img { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding-block: 0.4rem;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 26px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 84px 0 auto 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .45s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
  }
  .nav-links a::after { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
/* Bild-Platzhalter */
.placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.022) 0 22px, transparent 22px 44px),
    linear-gradient(135deg, var(--grey-300), var(--grey-200) 55%, var(--grey-100));
  display: grid;
  place-items: center;
  color: var(--grey-500);
}
.placeholder__label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px dashed var(--grey-400);
  padding: 0.65rem 1.2rem;
  background: rgba(255,255,255,0.55);
  text-align: center;
}
.hero__media .placeholder { background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 26px, transparent 26px 52px),
    linear-gradient(135deg, var(--grey-600), var(--grey-500) 55%, var(--grey-400));
  color: rgba(255,255,255,0.85);
}
.hero__media .placeholder__label {
  border-color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.18);
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.25) 100%);
}
.hero__inner {
  padding-block: clamp(3rem, 18vh, 7rem);
  max-width: 880px;
}
.hero__inner .eyebrow { color: rgba(255,255,255,0.8); }
.hero h1 {
  font-weight: 300;
  margin-bottom: 1.6rem;
}
.hero p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 560px;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0));
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  40% { transform: scaleY(1); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Sub-Hero für Unterseiten */
.page-hero {
  padding-top: 180px;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-weight: 300; max-width: 16ch; }
.page-hero p { max-width: 60ch; margin-top: 1.4rem; font-size: 1.1rem; }
.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin-inline: 0.5rem; opacity: 0.5; }

/* =========================================================
   INTRO / TEXTBLOCK
   ========================================================= */
.intro-quote {
  max-width: 940px;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}
.intro-quote .lead-mark {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.6rem;
  font-weight: 500;
}

/* zweispaltiger Textblock */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media .ph-box { aspect-ratio: 4 / 3; }
.split__body p { font-size: 1.05rem; }
.split__body .kicker { margin-bottom: 1.6rem; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* generische Bild-Box */
.ph-box {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-box .placeholder { position: absolute; inset: 0; }
.ph-box > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   PROJEKT-GRID  (Startseite + Übersicht)
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
@media (max-width: 760px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  display: block;
  position: relative;
  background: var(--bg);
  transition: transform .5s var(--ease);
}
.project-card__media {
  position: relative;
  aspect-ratio: 3 / 2.2;
  overflow: hidden;
  background: var(--surface);
}
.project-card__media .placeholder {
  position: absolute; inset: 0;
  transition: transform 1.1s var(--ease);
}
.project-card:hover .project-card__media .placeholder { transform: scale(1.05); }
.project-card__status {
  position: absolute;
  top: 1.1rem; left: 1.1rem;
  display: flex; gap: 0.5rem;
  z-index: 2;
}
.tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.95);
  color: var(--text);
}
.tag--build { background: var(--grey-800); color: #fff; }
.tag--done  { background: #fff; color: var(--text); }
.project-card__body { padding-top: 1.4rem; }
.project-card__meta {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}
.project-card__title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.project-card__title .arrow { transition: transform .4s var(--ease); flex-shrink: 0; }
.project-card:hover .project-card__title .arrow { transform: translateX(6px); }
.project-card__desc { margin-top: 0.5rem; font-size: 0.95rem; }

/* =========================================================
   FAKTEN / KENNZAHLEN
   ========================================================= */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact {
  background: var(--bg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.section--alt .fact { background: var(--bg-alt); }
.fact__num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.fact__label {
  margin-top: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   LEISTUNGEN
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: background .4s var(--ease);
}
.service:hover { background: var(--bg-alt); }
.service__no {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: auto;
}
.service h3 { margin-bottom: 0.8rem; }
.service p { font-size: 0.96rem; }
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }

/* =========================================================
   ÜBER UNS / GESCHÄFTSFÜHRER
   ========================================================= */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }
.member__media {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.member__media .placeholder { position: absolute; inset: 0; }
.member__name { font-size: 1.4rem; font-weight: 400; }
.member__role {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}
.member__bio { font-size: 0.98rem; }
.member__contact {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.member__contact a:hover { color: var(--text); border-bottom: 1px solid; }

/* =========================================================
   PROJEKT-DETAIL
   ========================================================= */
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  aspect-ratio: 16 / 9;
}
.detail-gallery .ph-box:first-child { grid-row: span 2; }
@media (max-width: 720px) {
  .detail-gallery { grid-template-columns: 1fr 1fr; aspect-ratio: 3/2; }
  .detail-gallery .ph-box:first-child { grid-row: span 1; grid-column: span 2; }
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .detail-layout { grid-template-columns: 1fr; } }

.spec-list { border-top: 1px solid var(--line); }
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec-list dt { color: var(--text-soft); letter-spacing: 0.04em; }
.spec-list dd { font-weight: 400; text-align: right; }

.download-card {
  background: var(--grey-800);
  color: #fff;
  padding: clamp(1.8rem, 3vw, 2.4rem);
}
.download-card h3 { color: #fff; margin-bottom: 0.6rem; }
.download-card p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 1.5rem; }
.download-card .file-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 1rem;
}

.sticky-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 1.5rem; }

/* =========================================================
   KARTE
   ========================================================= */
#map {
  width: 100%;
  height: 540px;
  background: var(--surface);
  border: 1px solid var(--line);
  z-index: 1;
}
@media (max-width: 620px) { #map { height: 420px; } }
.map-legend {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.map-legend div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.legend-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--grey-400);
}
.legend-dot--done  { background: var(--grey-800); }
.legend-dot--build { background: var(--grey-400); }
.leaflet-popup-content-wrapper { border-radius: 0 !important; }
.leaflet-popup-content { font-family: var(--font) !important; }
.map-popup strong { font-weight: 500; font-size: 1rem; }
.map-popup span {
  display: block;
  font-size: 0.78rem;
  color: var(--grey-600);
  margin-top: 2px;
}
.map-popup a {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid;
}

/* =========================================================
   KONTAKT / CTA
   ========================================================= */
.cta-band {
  background: var(--grey-800);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; font-weight: 300; margin-bottom: 1.4rem; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 50ch; margin-inline: auto; margin-bottom: 2.2rem; }
.cta-band .phone {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-top: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dl { margin-top: 1.5rem; }
.contact-info dl div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}
.contact-info dd { font-size: 1.05rem; }

.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--grey-300);
  background: transparent;
  color: var(--text);
  transition: border-color .3s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-check {
  display: flex;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1.6rem;
  align-items: flex-start;
}
.form-check input { margin-top: 4px; flex-shrink: 0; }
.form-check a { border-bottom: 1px solid; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 1rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--grey-900);
  color: rgba(255,255,255,0.7);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 980px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { font-size: 0.92rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   RECHTSTEXTE (Impressum / Datenschutz)
   ========================================================= */
.legal { max-width: 820px; }
.legal h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.8rem; margin-bottom: 0.6rem; }
.legal p, .legal li { font-size: 0.96rem; color: var(--text-soft); }
.legal p { margin-top: 0.8rem; }
.legal ul { margin-top: 0.8rem; padding-left: 1.2rem; list-style: disc; }
.legal li { margin-bottom: 0.4rem; }
.legal a { border-bottom: 1px solid var(--grey-300); }
.legal a:hover { border-bottom-color: var(--text); color: var(--text); }
.legal strong { color: var(--text); font-weight: 500; }

/* =========================================================
   COOKIE-BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.08);
  transform: translateY(110%);
  transition: transform .55s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-block: 1.6rem;
}
@media (max-width: 760px) {
  .cookie-banner__inner { grid-template-columns: 1fr; gap: 1.2rem; }
}
.cookie-banner h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.cookie-banner p { font-size: 0.86rem; }
.cookie-banner p a { border-bottom: 1px solid var(--grey-400); }
.cookie-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.cookie-actions .btn { padding: 0.8rem 1.5rem; font-size: 0.72rem; white-space: nowrap; }

/* Cookie-Einstellungen Detailbereich */
.cookie-settings {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: none;
}
.cookie-settings.open { display: block; }
.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  align-items: flex-start;
}
.cookie-option small { color: var(--text-soft); display: block; margin-top: 2px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--grey-300);
  transition: background .3s var(--ease);
  cursor: pointer;
}
.switch .slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  transition: transform .3s var(--ease);
}
.switch input:checked + .slider { background: var(--grey-700); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: 0.55; cursor: not-allowed; }

/* =========================================================
   SCROLL-REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue::after { animation: none; }
}

/* Utility */
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.text-center { text-align: center; }
.maxw-prose { max-width: 65ch; }

/* =========================================================
   Bild-Lightbox (öffentliche Seiten)
   ========================================================= */
img[data-zoomable] { cursor: zoom-in; }

.ac-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.92);
  opacity: 0;
  transition: opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.ac-lightbox.is-open { display: flex; opacity: 1; }

.ac-lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #fff;
  user-select: none;
  transition: opacity .15s ease;
}

.ac-lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  border-radius: 50%;
}
.ac-lightbox__btn:hover { background: rgba(255,255,255,0.25); }
.ac-lightbox__btn--prev { left: 2vw; }
.ac-lightbox__btn--next { right: 2vw; }
.ac-lightbox__btn[disabled] { opacity: 0; pointer-events: none; }

.ac-lightbox__close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  border-radius: 50%;
}
.ac-lightbox__close:hover { background: rgba(255,255,255,0.25); }

.ac-lightbox__counter {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .ac-lightbox__btn { width: 44px; height: 44px; font-size: 1.4rem; }
  .ac-lightbox__btn--prev { left: 0.5rem; }
  .ac-lightbox__btn--next { right: 0.5rem; }
}
