/* ============================================================
   Hoi An – Vietnamesisches Restaurant
   Design tokens
   ============================================================ */
:root {
  --color-primary: #2d4a3e;
  --color-primary-dark: #1f342b;
  --color-bg: #f9f5f0;
  --color-bg-alt: #f1ebe1;
  --color-accent: #c9a84c;
  --color-accent-dark: #a98a32;
  --color-text: #2a2a2a;
  --color-text-muted: #5a5a5a;
  --color-text-light: #f9f5f0;
  --color-border: rgba(45, 74, 62, 0.12);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 12px 40px rgba(31, 52, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 52, 43, 0.12);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 200ms;
  --t-med: 400ms;
  --t-slow: 700ms;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-primary);
}

p { margin: 0 0 1em; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section__lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--color-accent); }

.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
}
.h2--light { color: var(--color-text-light); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all var(--t-med) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn__icon {
  font-size: 1.05em;
  line-height: 1;
}

.btn--primary {
  background: var(--color-accent);
  color: #1a1a1a;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(201, 168, 76, 0.35);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              padding var(--t-med) var(--ease);
}
.nav.is-scrolled {
  background: rgba(249, 245, 240, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 var(--color-border);
  padding: 12px 0;
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
  color: #fff;
  transition: color var(--t-med) var(--ease);
}
.nav.is-scrolled .nav__logo { color: var(--color-primary); }

.nav__logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: height var(--t-med) var(--ease), filter var(--t-med) var(--ease);
}
.nav.is-scrolled .nav__logo-img { height: 44px; }

/* Über Hero: Logo weiß einfärben für Kontrast.
   Wenn helle Logo-Variante mal hochgeladen wird: filter-Regel entfernen. */
.nav:not(.is-scrolled) .nav__logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.nav__logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}
.nav__logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}

.nav__links { display: flex; gap: 20px; align-items: center; }

.nav__langs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.nav.is-scrolled .nav__langs {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

.nav__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.nav__lang:hover {
  transform: scale(1.1);
  border-color: var(--color-accent);
}
.nav__lang.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}

.nav__flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .nav__lang { width: 26px; height: 26px; }
  .nav__flag { width: 18px; height: 18px; }
  .nav__langs { gap: 2px; padding: 3px; }
}

.nav__link {
  position: relative;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 4px;
  transition: color var(--t-med) var(--ease);
}
.nav.is-scrolled .nav__link { color: var(--color-primary); }

.nav__link-sub {
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  opacity: 0.75;
  text-transform: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--color-primary-dark);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.42) saturate(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 55% at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%),
    linear-gradient(180deg, rgba(20, 32, 27, 0.55) 0%, rgba(20, 32, 27, 0.35) 50%, rgba(20, 32, 27, 0.85) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 900px;
}

.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  color: #fff;
  margin: 12px 0;
  letter-spacing: -0.01em;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(0, 0, 0, 0.45);
}

.hero__sub {
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.hero__sound {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.hero__sound:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.hero__sound-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.hero__sound-icon--on { display: none; }
.hero__sound.is-on .hero__sound-icon--off { display: none; }
.hero__sound.is-on .hero__sound-icon--on { display: block; color: var(--color-accent); }
.hero__sound.is-on { border-color: var(--color-accent); }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);    opacity: 0; }
  40%  { transform: translateY(0);    opacity: 1; }
  80%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   Philosophie
   ============================================================ */
.philosophie__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.philosophie__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--color-bg-alt);
}

.philosophie__text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--color-primary);
  border-left: 3px solid var(--color-accent);
  padding: 4px 0 4px 24px;
  margin: 0 0 28px;
}

@media (min-width: 900px) {
  .philosophie__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
  }
}

/* ============================================================
   Dishes / Speisekarte
   ============================================================ */
.dishes { background: var(--color-bg-alt); }

.dishes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.dish {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
}
.dish:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.dish__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.dish__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.dish:hover .dish__media img { transform: scale(1.05); }

.dish__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish__name {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.dish__desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  flex: 1;
}

.dish__price {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-accent-dark);
  font-weight: 600;
}

@media (min-width: 800px) {
  .dishes__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Menu PDF download (multi-language)
   ============================================================ */
.menu-pdf {
  margin-top: 72px;
  padding: 48px 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--color-border);
}

.menu-pdf__head { margin-bottom: 28px; }
.menu-pdf__head h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 4px;
}
.menu-pdf__head p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.menu-pdf__langs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.menu-pdf__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--color-bg-alt);
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  font-weight: 700;
  transition: all var(--t-med) var(--ease);
}
.menu-pdf__btn:hover {
  background: #fff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.menu-pdf__flag { font-size: 1.6rem; line-height: 1; }
.menu-pdf__lang { flex: 1; text-align: left; font-size: 1.05rem; }
.menu-pdf__hint {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  background: var(--color-accent);
  color: #1a1a1a;
  border-radius: 999px;
}

@media (min-width: 700px) {
  .menu-pdf__langs { grid-template-columns: repeat(3, 1fr); }
  .menu-pdf__lang { text-align: center; }
}

/* Sprach-Picker Pills */
.menu-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 36px;
  max-width: 720px;
}
.menu-langs__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--t-fast) var(--ease);
}
.menu-langs__pill:hover {
  background: #fff;
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.menu-langs__pill.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(45, 74, 62, 0.25);
}
.menu-langs__flag {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Tab-Panels */
.menu-panels { position: relative; }
.menu-panel { display: none; animation: panelIn 350ms var(--ease); }
.menu-panel.is-active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* PDF-Card (für Nicht-DE Sprachen) */
.menu-pdf-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 32px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--color-border);
}
.menu-pdf-card__icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
}
.menu-pdf-card h4 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 10px;
}
.menu-pdf-card p {
  color: var(--color-text-muted);
  margin: 0 0 28px;
}
.menu-pdf-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Outline-Button-Variante (dunkel auf hell) */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Speisekarte als Bild-Seiten */
.menu-pages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.menu-pages__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  box-shadow: var(--shadow);
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.menu-pages__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.menu-pages__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 800ms var(--ease);
}
.menu-pages__item:hover img { transform: scale(1.02); }

.menu-pages__label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  background: rgba(45, 74, 62, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

@media (min-width: 800px) {
  .menu-pages { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Lieferung (Wolt / Lieferando / Telefon)
   ============================================================ */
.delivery {
  background: var(--color-primary);
  color: var(--color-text-light);
}

.section__lead--light { color: rgba(255, 255, 255, 0.78); }

.delivery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.delivery__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  min-height: 220px;
  transition: transform var(--t-med) var(--ease),
              background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.delivery__card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
}

.delivery__brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.delivery__logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 8px;
}
.delivery__logo--wolt { height: 44px; }
.delivery__logo--lieferando { height: 38px; }

.delivery__card--wolt .delivery__brand { color: #00c2e8; }
.delivery__card--lieferando .delivery__brand { color: #ff8000; }
.delivery__card--phone .delivery__brand { color: var(--color-accent); }

.delivery__sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
  margin: 0 0 24px;
}

.delivery__cta {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: transform var(--t-fast) var(--ease);
}
.delivery__card:hover .delivery__cta { transform: translateX(4px); }

@media (min-width: 800px) { .delivery__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   Galerie
   ============================================================ */
.gallery { padding: 0; }

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }

@media (min-width: 800px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery__item { aspect-ratio: 3/2; }
}

/* ============================================================
   Anspruch
   ============================================================ */
.anspruch__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.anspruch__item {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.anspruch__item:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.anspruch__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.anspruch__item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.anspruch__item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

@media (min-width: 700px) { .anspruch__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .anspruch__grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   Team
   ============================================================ */
.team { background: var(--color-bg-alt); }

.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.team__member {
  margin: 0;
  text-align: center;
}

.team__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  background: #fff;
  border: 4px solid #fff;
}
.team__photo img { width: 100%; height: 100%; object-fit: cover; }

.team__member h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.team__member figcaption p {
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

@media (min-width: 800px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   Footer / Kontakt
   ============================================================ */
.footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 88px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.footer__address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 0 20px;
}

.footer__phone {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}
.footer__phone a {
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.footer__phone a:hover { border-color: var(--color-accent); }

.footer__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.footer__media img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__legal { display: flex; gap: 24px; }
.footer__legal a {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.footer__legal a:hover { border-color: var(--color-accent); }

@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 80px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Legal pages (impressum / dsgvo)
   ============================================================ */
.legal {
  padding: 160px 0 96px;
  min-height: 60vh;
}
.legal .container { max-width: 800px; }
.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.legal p, .legal li {
  color: var(--color-text-muted);
  line-height: 1.75;
}
.legal a { color: var(--color-accent-dark); border-bottom: 1px solid currentColor; }
.legal a:hover { color: var(--color-primary); }

/* On legal pages the nav has no hero behind it, so always show solid */
body.page-legal .nav {
  background: rgba(249, 245, 240, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 var(--color-border);
  padding: 12px 0;
}
body.page-legal .nav__logo,
body.page-legal .nav__link { color: var(--color-primary); }
