/* ============================================================
   SENIORA HAMBURG – Stylesheet v4.0
   Senior-Dev rebuild: Multi-page, professional, 50+ optimiert
   ============================================================ */

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

:root {
  /* Brand – kräftiger als v3, gleiche Töne */
  --green:        #2D5C30;
  --green-mid:    #3D7040;
  --green-light:  #5E9962;
  --green-pale:   #C8DFC9;
  --green-xpale:  #EBF4EC;

  --sand:         #A07830;
  --sand-light:   #C49A50;
  --sand-pale:    #EDD9AA;
  --sand-xpale:   #FAF0DA;

  --dark:   #141A15;
  --mid:    #1E2E20;
  --muted:  #2E4030;
  --rule:   #C2D4C3;
  --cream:  #F5F2ED;
  --white:  #FFFFFF;

  /* Typography */
  --sans: 'Inter', 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;

  /* Scale */
  --nav-h: 68px;
  --max-w: 1160px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  /* Transitions */
  --t: 180ms ease;
}

/* ── Base ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ── Language ─────────────────────────────────────────────── */
.ru { display: none; }
body.lang-ru .de { display: none; }
body.lang-ru .ru { display: inline; }
body.lang-ru .ru-block { display: block; }
body.lang-ru .ru-flex { display: flex; }

/* ── Layout ───────────────────────────────────────────────── */
.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: 2rem; }
.wrap--narrow { max-width: 780px; margin-inline: auto; padding-inline: 2rem; }

.section { padding-block: 5rem; }
.section--sm { padding-block: 3rem; }
.section--lg { padding-block: 7rem; }

/* alternating background for sections */
.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-sand   { background: var(--sand-xpale); }
.bg-green  { background: var(--green); }
.bg-gpale  { background: var(--green-xpale); }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: 1000;
  background: rgba(248,245,240,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  height: var(--nav-h);
}

.nav__inner {
  max-width: var(--max-w); margin-inline: auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 2rem; gap: 1.5rem;
}

.nav__logo {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; flex-shrink: 0;
}

.nav__logo-img { height: 36px; width: auto; }

.nav__logo-text {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .01em;
}

.nav__logo-text span { color: var(--green); }

.nav__links {
  display: flex; align-items: center; gap: .125rem;
  list-style: none;
}

.nav__links a {
  display: flex; align-items: center;
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  border-radius: var(--r-sm);
  border-bottom: 2px solid transparent;
  transition: color var(--t), background var(--t), border-color var(--t);
  white-space: nowrap;
}

.nav__links a:hover { color: var(--green); background: var(--green-xpale); }
.nav__links a.is-active { color: var(--green); border-bottom-color: var(--green); background: transparent; }

.nav__right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* Language switch */
.lang-sw {
  display: flex;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 36px;
  padding: .25rem .625rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.lang-btn.is-active { background: var(--green); color: var(--white); }

/* CTA */
.nav__cta {
  display: inline-flex; align-items: center;
  padding: .5rem 1.25rem;
  background: var(--green);
  color: var(--white);
  font-size: .875rem; font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--t), transform var(--t);
  -webkit-tap-highlight-color: transparent;
  min-height: 40px;
}

.nav__cta:hover { background: var(--green-mid); transform: translateY(-1px); }

/* Burger */
.nav__burger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mob-menu {
  display: none; position: fixed; inset: 0;
  background: var(--cream); z-index: 999;
  padding: 5.5rem 2rem 2rem;
  flex-direction: column; gap: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}

.mob-menu.is-open { display: flex; }

.mob-menu__close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid); border-radius: var(--r-sm);
}

.mob-menu a {
  display: flex; align-items: center;
  padding: .875rem 0;
  font-size: 1.0625rem; font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  min-height: 52px;
  transition: color var(--t);
}

.mob-menu a:hover,
.mob-menu a.is-active { color: var(--green); }

/* Scroll offset */
:target { scroll-margin-block-start: calc(var(--nav-h) + 1.5rem); }

/* ── Typography ───────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); margin-bottom: .75rem;
}

.display {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em; color: var(--dark);
}

.display em { font-style: normal; color: var(--green); }

.headline {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -.01em; color: var(--dark);
  margin-bottom: 1rem;
}

.headline em { font-style: normal; color: var(--green); }

.subhead {
  font-size: 1.125rem; font-weight: 600;
  color: var(--dark); margin-bottom: .5rem;
}

.lead {
  font-size: 1.125rem; color: var(--muted); line-height: 1.8;
  max-width: 62ch;
}

.body { font-size: 1.0625rem; color: var(--muted); line-height: 1.8; font-weight: 400; }

/* Alle Fließtexte kräftiger */
p { color: var(--muted); }
.lead { color: var(--mid); }
.intro-block p { color: var(--mid); font-size: 1.0625rem; }
.feature-item p { color: var(--mid); }
.activity-card__body { color: var(--mid); }
.process__text { color: var(--mid); }
.faq__body p { color: var(--mid); }
.alert p { color: var(--mid); }
.body-text, .body-text-sm { color: var(--mid); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.875rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  text-decoration: none; border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--primary:hover { background: var(--green-mid); border-color: var(--green-mid); }

.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green-xpale); }

.btn--white { background: var(--white); color: var(--green); border-color: var(--white); }
.btn--white:hover { background: var(--green-xpale); border-color: var(--green-xpale); }

.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.9); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: transform var(--t), box-shadow var(--t);
}

.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.08); }
.card--green { background: var(--green-xpale); border-color: var(--green-pale); }
.card--sand { background: var(--sand-xpale); border-color: var(--sand-pale); }

/* ── Stat ─────────────────────────────────────────────────── */
.stat__num {
  display: block;
  font-family: var(--serif); font-size: 2.25rem; font-weight: 700;
  color: var(--green); line-height: 1;
}
.stat__label {
  display: block; font-size: .875rem; color: var(--muted);
  margin-top: .25rem; font-weight: 500;
}

/* ── Info row ─────────────────────────────────────────────── */
.info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.info-row:last-child { margin-bottom: 0; }

.info-row__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--green-xpale);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}

.info-row__icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.info-row__label { font-size: .8125rem; color: var(--muted); display: block; margin-bottom: .1rem; }
.info-row__value { font-size: .9375rem; color: var(--dark); font-weight: 500; }
.info-row__value a { color: var(--green); text-decoration: none; }

/* ── Divider ──────────────────────────────────────────────── */
hr.rule { border: none; border-top: 1px solid var(--rule); margin-block: 3rem; }

/* ── Pills / Tags ─────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center;
  padding: .3rem .875rem;
  font-size: .8125rem; font-weight: 600;
  border-radius: 999px;
}
.pill--green { background: var(--green-xpale); color: var(--green); }
.pill--sand { background: var(--sand-pale); color: var(--sand); }
.pill--white { background: rgba(255,255,255,.15); color: var(--white); }

/* Availability pulsing dot */
.avail {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 500; color: var(--green);
}
.avail::before {
  content: ''; width: 8px; height: 8px;
  will-change: opacity;
  background: var(--green); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ── FAQ (native details) ─────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: .5rem; }

details.faq__item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--t);
}

details.faq__item[open] { box-shadow: 0 4px 20px rgba(0,0,0,.06); border-color: var(--green-pale); }

details.faq__item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.25rem 1.5rem;
  font-size: 1.0625rem; font-weight: 600; color: var(--dark);
  cursor: pointer; min-height: 60px;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
  transition: color var(--t);
}

details.faq__item summary::-webkit-details-marker { display: none; }

details.faq__item summary::after {
  content: '';
  width: 20px; height: 20px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234A6E4C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform var(--t);
}

details.faq__item[open] summary::after { transform: rotate(180deg); }
details.faq__item summary:hover { color: var(--green); }

.faq__body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.faq__body p { font-size: 1rem; color: var(--muted); line-height: 1.8; }

/* ── Form ─────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__group { display: flex; flex-direction: column; gap: .375rem; }
.form__label { font-size: .875rem; font-weight: 600; color: var(--mid); }

.form__input, .form__select, .form__textarea {
  width: 100%;
  padding: .8125rem 1.125rem;
  font-family: var(--sans); font-size: 1rem;
  color: var(--dark); background: var(--white);
  border: 1.5px solid var(--rule); border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none; appearance: none;
}

.form__input:focus, .form__select:focus, .form__textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74,110,76,.12);
}

.form__textarea { height: 140px; resize: vertical; }

/* ── Map ──────────────────────────────────────────────────── */
.map {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--rule); height: 320px;
}
.map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Process steps ────────────────────────────────────────── */
.process { display: flex; flex-direction: column; gap: 0; }

.process__step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 1.5rem; padding-bottom: 2.5rem; position: relative;
}

.process__step:not(:last-child)::before {
  content: ''; position: absolute;
  left: 27px; top: 56px; bottom: 0;
  width: 2px; background: var(--rule);
}

.process__num {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--green); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  position: relative; z-index: 1;
}

.process__title { font-size: 1.125rem; font-weight: 700; color: var(--dark); margin-bottom: .375rem; margin-top: .875rem; }
.process__text { font-size: 1rem; color: var(--muted); line-height: 1.75; }

/* ── Grids ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* ── WG Card (compact, Haus Sasel page) ───────────────────── */
.wg-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: center;
  padding-block: 3rem;
  border-top: 1px solid var(--rule);
}

.wg-row:last-child { padding-bottom: 0; }

.wg-photo {
  border-radius: var(--r-xl); aspect-ratio: 16/11; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.wg-facts {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-block: 1rem 1.25rem;
}

.wg-fact {
  background: var(--green-xpale); border-radius: var(--r-md);
  padding: .625rem 1rem; text-align: center; flex: 1; min-width: 80px;
}

.wg-fact__num {
  display: block; font-family: var(--serif); font-size: 1.25rem;
  font-weight: 700; color: var(--green); line-height: 1;
}

.wg-fact__label { display: block; font-size: .75rem; color: var(--muted); margin-top: .2rem; font-weight: 500; }

/* Infobox on WG pages */
.infobox {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 1.75rem;
}

.infobox__title {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.infobox dl { display: flex; flex-direction: column; gap: .625rem; }
.infobox__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.infobox__row dt { color: var(--muted); }
.infobox__row dd { color: var(--dark); font-weight: 600; text-align: right; }

/* ── Cost tile ─────────────────────────────────────────────── */
.cost-tile {
  background: var(--green-xpale); border: 1px solid var(--green-pale);
  border-radius: var(--r-lg); padding: 1.75rem; text-align: center;
}
.cost-tile__num {
  display: block; font-family: var(--serif);
  font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1;
}
.cost-tile__label { display: block; font-size: .875rem; color: var(--muted); margin-top: .375rem; font-weight: 500; }

/* ── Alert / info box ─────────────────────────────────────── */
.alert {
  border-radius: var(--r-md); padding: 1.5rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.alert--green { background: var(--green); }
.alert--sand { background: var(--sand-xpale); border: 1px solid var(--sand-pale); }
.alert__icon { flex-shrink: 0; margin-top: .125rem; }
.alert__icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alert--sand .alert__icon svg { stroke: var(--sand); }
.alert h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .375rem; }
.alert--green h3, .alert--green p { color: var(--white); }
.alert--green p { color: rgba(255,255,255,.88); }
.alert--sand p { color: var(--muted); }
.alert p { font-size: .9375rem; line-height: 1.75; }

/* ── Comparison ───────────────────────────────────────────── */
.comp { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.comp__col { border-radius: var(--r-lg); padding: 1.75rem; }
.comp__col--good { background: var(--green-xpale); border: 1px solid var(--green-pale); }
.comp__col--bad  { background: var(--sand-xpale); border: 1px solid var(--sand-pale); }
.comp__title { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.comp__col--good .comp__title { color: var(--green); }
.comp__col--bad  .comp__title { color: var(--muted); }
.comp__list { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.comp__list li { display: flex; gap: .625rem; font-size: .9375rem; color: var(--muted); align-items: flex-start; line-height: 1.5; }
.comp__col--bad .comp__list li { color: var(--muted); opacity: .8; }

/* ── Hero (Wohnen & Leben) ────────────────────────────────── */
.hero {
  padding-block-start: calc(var(--nav-h) + 4rem);
  padding-block-end: 4rem;
  padding-inline: 2rem;
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.hero__label { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; display: block; }
.hero__title { font-family: var(--serif); font-size: clamp(2.375rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.hero__title em { color: var(--green); font-style: normal; }
.hero__body { font-size: 1.125rem; color: var(--muted); line-height: 1.8; margin-bottom: 2.5rem; }
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__media {
  border-radius: var(--r-xl);
  aspect-ratio: 4/5; max-height: 560px;
  overflow: hidden; position: relative;
}

.hero__photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--sand-pale), var(--green-xpale));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; color: var(--muted); font-style: italic; text-align: center; padding: 2rem;
}

.hero__stats {
  position: absolute; inset-inline: 1.5rem; inset-block-end: 1.5rem;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  padding: 1.125rem 1.5rem;
  display: flex; gap: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* ── Section intro text ───────────────────────────────────── */
.sec-intro { max-width: 640px; margin-bottom: 3.5rem; }

/* ── Activity list ────────────────────────────────────────── */
.activity-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.activity-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 1.75rem;
}
.activity-card__title { font-size: 1.0625rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.activity-card__body { font-size: .9375rem; color: var(--muted); line-height: 1.7; }

/* ── Page header (inner pages) ────────────────────────────── */
.page-header {
  padding-block-start: calc(var(--nav-h) + 3.5rem);
  padding-block-end: 3.5rem;
  background: var(--green);
}

.page-header__inner { max-width: var(--max-w); margin-inline: auto; padding-inline: 2rem; }
.page-header__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-light); margin-bottom: .875rem; display: block; }
.page-header__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); line-height: 1.15; letter-spacing: -.01em; }
.page-header__title em { font-style: italic; color: rgba(255,255,255,.75); }
.page-header__lead { font-size: 1.0625rem; color: rgba(255,255,255,.8); line-height: 1.8; margin-top: 1rem; max-width: 60ch; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--dark); padding-block: 3.5rem 2rem; padding-inline: 2rem; }
.footer__inner { max-width: var(--max-w); margin-inline: auto; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__logo-text { font-family: var(--serif); font-size: 1.375rem; font-weight: 700; color: var(--white); display: block; margin-bottom: .875rem; }
.footer__logo-text span { color: var(--green-light); }
.footer__tagline { font-size: .9375rem; color: rgba(255,255,255,.5); line-height: 1.8; }
.footer__contact { margin-top: 1.5rem; font-size: .9rem; line-height: 2; color: rgba(255,255,255,.45); }
.footer__contact a { color: rgba(255,255,255,.45); text-decoration: none; transition: color var(--t); }
.footer__contact a:hover { color: var(--white); }
.footer h4 { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer ul a { font-size: .9375rem; color: rgba(255,255,255,.55); text-decoration: none; display: block; min-height: 32px; line-height: 2; transition: color var(--t); }
.footer ul a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; color: rgba(255,255,255,.3); gap: 1rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links { gap: .0625rem; }
  .nav__links a { padding: .5rem .625rem; font-size: .8125rem; }
}

@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { grid-template-columns: 1fr; padding-block-start: calc(var(--nav-h) + 2.5rem); min-height: auto; }
  .hero__media { display: none; }
  .hero__title { font-size: 2.25rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }
  .wg-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .comp { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; gap: 1rem; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; }
  .section { padding-block: 3.5rem; }
  .wrap, .wrap--narrow { padding-inline: 1.25rem; }
  .page-header { padding-block-start: calc(var(--nav-h) + 2rem); padding-block-end: 2.5rem; }
  .page-header__inner { padding-inline: 1.25rem; }
  .process__step { grid-template-columns: 48px 1fr; gap: 1rem; }
  .process__step::before { left: 23px; }
  .process__num { width: 48px; height: 48px; font-size: 1.125rem; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.875rem; }
  .display { font-size: 2rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── Smartphone-Optimierungen (≤ 640px) ───────────────────── */
@media (max-width: 640px) {
  :root { --nav-h: 58px; }

  /* Nav */
  .nav__inner { padding-inline: 1rem; }
  .nav__logo-img { height: 40px !important; }

  /* Wrap */
  .wrap, .wrap--narrow { padding-inline: 1rem; }
  .page-header__inner { padding-inline: 1rem; }

  /* Sections */
  .section { padding-block: 2.5rem; }
  .section--sm { padding-block: 2rem; }
  .section--lg { padding-block: 3.5rem; }

  /* Typography */
  .headline { font-size: 1.5rem; }
  .page-header__title { font-size: 1.75rem; }
  .page-header__lead { font-size: 1rem; }
  .lead { font-size: 1rem; }
  body { font-size: 16px; }

  /* Buttons */
  .btn { padding: .6875rem 1.375rem; font-size: .9375rem; min-height: 48px; }

  /* Cards */
  .card { padding: 1.375rem; }

  /* Process */
  .process__step { grid-template-columns: 40px 1fr; gap: .75rem; }
  .process__step::before { left: 19px; }
  .process__num { width: 40px; height: 40px; font-size: 1rem; }
  .process__title { font-size: 1rem; margin-top: .625rem; }
  .process__text { font-size: .9375rem; }

  /* FAQ */
  details.faq__item summary { padding: 1rem 1.125rem; font-size: 1rem; min-height: 52px; }
  .faq__body { padding: 0 1.125rem 1.125rem; padding-top: .875rem; }

  /* Form */
  .form__input, .form__select, .form__textarea { font-size: 16px; } /* prevent iOS zoom */
  .form__textarea { height: 120px; }

  /* Footer */
  .footer { padding-block: 2.5rem 1.5rem; padding-inline: 1rem; }
  .footer__grid { gap: 1.5rem; }
  .footer__bottom { font-size: .75rem; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
  .comp { grid-template-columns: 1fr; }

  /* Info rows */
  .info-row__value { font-size: .875rem; }

  /* Stat numbers */
  .stat__num { font-size: 1.75rem; }

  /* Page header */
  .page-header { padding-block-start: calc(var(--nav-h) + 1.5rem); padding-block-end: 2rem; }

  /* sec-intro */
  .sec-intro { margin-bottom: 2rem; }

  /* Alert boxes */
  .alert { padding: 1.125rem; gap: 1rem; }

  /* Cost tile */
  .cost-tile { padding: 1.25rem; }
  .cost-tile__num { font-size: 1.625rem; }

  /* WG row */
  .wg-row { padding-block: 2rem; }
  .wg-photo { aspect-ratio: 16/10; }

  /* Map */
  .map { height: 240px; }

  /* Infobox */
  .infobox { padding: 1.25rem; }
  .infobox__row { font-size: .875rem; }
}

/* ── Accessibility ────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } html { scroll-behavior: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-sm { margin-top: 1rem; } .mt-md { margin-top: 1.5rem; } .mt-lg { margin-top: 2rem; } .mt-xl { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; } .mb-md { margin-bottom: 1.5rem; } .mb-lg { margin-bottom: 2rem; } .mb-xl { margin-bottom: 3rem; }
.gap-sm { gap: 1rem; } .gap-md { gap: 1.5rem; } .gap-lg { gap: 2rem; }

/* Keine Kursivschrift */
em, i, .display em, .headline em, .hero__title em,
.page-header__title em, .footer__logo-text,
[class*="headline"] em, [class*="display"] em {
  font-style: normal !important;
}

/* ── Logo größer ──────────────────────────────────────────── */
.nav__logo-img {
  height: 52px !important;
  width: auto;
}

/* ── Hero-Bild Platzhalter für Angehörige + Über uns ──────── */
.page-hero-img {
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-top: 2rem;
}
.page-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero-img--placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--green-xpale), var(--sand-xpale));
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9375rem;
}

/* ── Footer Logo Fix ──────────────────────────────────────── */
.footer__logo-img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  opacity: .75;
  filter: brightness(0) invert(1);
}

/* ── Touch targets ────────────────────────────────────────── */
a, button, [role="button"], summary {
  -webkit-tap-highlight-color: transparent;
}
/* Ensure tap targets are large enough on mobile */
@media (max-width: 640px) {
  .nav__links a, .mob-menu a { min-height: 48px; display: flex; align-items: center; }
  details.faq__item summary { min-height: 52px; }
  .btn { min-height: 52px; }
}

/* ── Bildgalerien Mobile ──────────────────────────────────── */
@media (max-width: 640px) {
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
/* img-gallery-mobile marker */
