/* ============ Hauslot – Design-Tokens ============ */
:root {
  --ink: #0e1a1f;          /* Fließtext & Überschriften */
  --primary: #14284b;       /* Marineblau – Hauptfarbe: Navigation, Kopfbereiche, Flächen, Buttons */
  --primary-dark: #0c1a33;  /* Hover-Zustand */
  --primary-light: #e9eef6; /* dezente Hinterlegungen */
  --text: #17222a;
  --muted: #5d6a72;
  --bg: #ffffff;
  --bg-alt: var(--primary-light);
  --line: #d9e1ec;
  --accent: #c9a36b;       /* Messing / Sand */
  --accent-soft: #f1e7d6;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(14, 26, 31, .25);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent); }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; opacity: .8; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
  background: var(--primary); color: #fff; border: 1.5px solid var(--primary);
  cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:not(.btn--light):not(.btn--outline):not(.btn--outline-dark):not(.btn--accent):hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }
.btn--small { padding: .6em 1.2em; font-size: .9rem; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline:hover { border-color: #fff; }
.btn--outline-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline-dark:hover { border-color: var(--primary); }

/* ============ Foto-Platzhalter ============
   Später ersetzen durch: <img src="img/datei.jpg" alt="…" class="…"> */
.ph {
  position: relative; overflow: hidden;
  background-color: #dce4ef;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(14,26,31,.04) 14px 15px);
  border-radius: var(--radius);
}
.ph::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -70%);
  background: currentColor; opacity: .25; color: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M8 5l1.5-2h5L16 5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M8 5l1.5-2h5L16 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 30%);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  color: rgba(14,26,31,.45);
}
.ph--dark { background-color: #22406d; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.04) 14px 15px); }
.ph--dark::before { color: #fff; }
.ph--dark::after { color: rgba(255,255,255,.5); }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo__img { display: block; height: 54px; width: auto; }
.logo__img--light { display: none; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--text); opacity: .8; transition: opacity .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { font-weight: 700; }
.nav__portal {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5em 1em; border: 1.5px solid var(--line); border-radius: 999px; opacity: 1 !important;
}
.nav__portal:hover { border-color: var(--primary); }
.nav__portal svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Sprachumschalter: kleine Flagge der Zielsprache, ganz rechts im Kopfbereich */
.nav { margin-left: auto; }
.lang-switch {
  display: inline-flex; flex: none; margin-left: 1.25rem; border-radius: 3px; line-height: 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(14, 26, 31, .15); transition: transform .2s, box-shadow .2s;
}
.lang-switch__flag { display: block; width: 26px; height: 17px; border-radius: 3px; }
.lang-switch:hover { transform: scale(1.12); box-shadow: 0 0 0 1px rgba(14, 26, 31, .25), 0 4px 10px -4px rgba(14, 26, 31, .4); }

/* Dropdown „Standorte" */
.nav__dropdown { position: relative; display: flex; align-items: center; }
.nav__drop-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 0; padding: 0; cursor: pointer; line-height: inherit;
  font: inherit; font-weight: 500; font-size: .93rem; color: var(--text); opacity: .8;
}
.nav__drop-toggle:hover, .nav__dropdown.is-current .nav__drop-toggle { opacity: 1; }
.nav__dropdown.is-current .nav__drop-toggle { font-weight: 700; }
.nav__drop-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.nav__dropdown.is-open .nav__drop-toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 230px; padding-top: 14px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__menu-inner {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .5rem;
  box-shadow: var(--shadow);
}
.nav .nav__menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem .9rem; border-radius: 10px; color: var(--text) !important; opacity: 1;
}
.nav .nav__menu a:hover { background: var(--bg-alt); }
.nav__menu a small { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.nav__menu .nav__menu-all { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: .25rem; font-size: .88rem; color: var(--muted) !important; }
@media (hover: hover) and (min-width: 981px) {
  .nav__dropdown:hover .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.nav__dropdown.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* Stadtseiten */
.city-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.city-hero__photo { aspect-ratio: 4 / 3; }
.city-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.city-facts li { font-size: .88rem; padding: .45em 1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); }
.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.local-grid .tile h3 { margin-top: .5rem; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.person { display: flex; gap: 1.25rem; align-items: center; background: #fff; border-radius: var(--radius); padding: 1.5rem; }
.person__photo { flex: none; width: 96px; height: 96px; border-radius: 50%; }
.person__photo::after { display: none; }
.person__photo::before { width: 28px; height: 28px; transform: translate(-50%, -50%); }
.person h3 { margin-bottom: .15em; }
.person p { margin: 0; color: var(--muted); font-size: .92rem; }
.office { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.office dl { display: grid; grid-template-columns: 110px 1fr; gap: .6rem 1rem; margin: 0; }
.office dt { color: var(--muted); font-size: .9rem; }
.office dd { margin: 0; font-weight: 500; }
.office a { text-decoration: none; font-weight: 600; }
.map-ph { aspect-ratio: 21 / 6; min-height: 220px; margin-top: 1.25rem; }
.other-cities { display: flex; flex-wrap: wrap; gap: .75rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ============ Hero (Startseite) ============ */
.hero { background: var(--primary); color: #fff; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); }
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__visual { position: relative; }
.hero__photo { aspect-ratio: 4 / 4.6; }
.hero__card {
  position: absolute; left: -2rem; bottom: 2rem;
  display: flex; align-items: center; gap: 1rem; max-width: 260px;
  padding: 1.1rem 1.3rem; border-radius: 18px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: .9rem; line-height: 1.4;
}
.hero__card-num { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; }

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45em 1em; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  margin-bottom: 1.75rem;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,163,107,.25); }

.stats {
  list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 2rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stats strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.stats span { font-size: .88rem; opacity: .6; }

/* ============ Page-Hero (Unterseiten) ============ */
.page-hero { background: var(--primary); color: #fff; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); max-width: 14em; }
.page-hero .lead { margin: 0; }

/* Header auf dunklem Hero: transparent bis gescrollt */
.has-dark-hero .header:not(.is-scrolled):not(.is-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* über dem blauen Startbereich: helles Logo */
.has-dark-hero .header:not(.is-scrolled):not(.is-open) .logo__img--dark { display: none; }
.has-dark-hero .header:not(.is-scrolled):not(.is-open) .logo__img--light { display: block; }
.has-dark-hero .header:not(.is-scrolled):not(.is-open) .nav a:not(.btn) { color: #fff; }
.has-dark-hero .header:not(.is-scrolled):not(.is-open) .nav__drop-toggle { color: #fff; }
.has-dark-hero .header:not(.is-scrolled):not(.is-open) .nav__portal { border-color: rgba(255,255,255,.3); }
.has-dark-hero .header:not(.is-scrolled):not(.is-open) .nav .btn { background: #fff; color: var(--ink); border-color: #fff; }
.has-dark-hero .header:not(.is-scrolled):not(.is-open) .nav-toggle span { background: #fff; }
.has-dark-hero .header:not(.is-scrolled):not(.is-open) .lang-switch { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

/* ============ Sections ============ */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary); color: #fff; }
.section--dark .muted, .section--dark p { color: rgba(255,255,255,.7); }
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head > p:last-child { color: var(--muted); font-size: 1.1rem; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section__head--row > p { max-width: 380px; margin: 0; }
.section__head--row h2 { margin: 0; }

/* ============ Bento (Verwaltung) ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile {
  background: var(--bg-alt); border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .3s, box-shadow .3s;
}
.tile:not(.ph):hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile p { color: var(--muted); margin: 0; }
.tile--wide { grid-column: span 2; }
.tile--dark { background: var(--primary); color: #fff; }
.tile--dark p { color: rgba(255,255,255,.7); }
.tile--dark h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tile--accent { background: var(--accent-soft); }
.tile--photo { min-height: 280px; padding: 0; }
.tile--full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; }
.tile--full .tile__icon { margin: 0; flex: none; }
.tile--full h3 { margin-bottom: .2em; }
.tile__arrow {
  margin-left: auto; flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.2rem;
  transition: transform .2s;
}
.tile--full:hover .tile__arrow { transform: translateX(4px); }
.tile__tag { align-self: flex-start; font-size: .75rem; font-weight: 600; padding: .35em .9em; border-radius: 999px; background: rgba(255,255,255,.1); margin-bottom: auto; }
.tile--dark h3 { margin-top: 3rem; }
.tile__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: #fff; margin-bottom: 2.5rem;
}
.tile__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.checklist li { font-size: .88rem; padding: .45em 1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); }
.checklist--light li { border-color: var(--line); }

/* ============ Split (Makler) ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split__photo { aspect-ratio: 4 / 5; }
.services { display: grid; gap: 0; margin: 2rem 0 2.5rem; border-top: 1px solid var(--line); }
.service { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.service h3 { margin-bottom: .25em; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }
.service__num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--primary); color: var(--primary); font-weight: 700; font-size: .9rem;
}

/* ============ Kostenlose Immobilienbewertung ============ */
.valuation {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--primary); color: #fff; border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.valuation::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,163,107,.35), transparent 70%); pointer-events: none;
}
.valuation h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 1rem 0 .75rem; }
.valuation__text > p { color: rgba(255,255,255,.75); font-size: 1.08rem; max-width: 32em; }
.valuation__text strong { color: var(--accent); }
.badge {
  display: inline-block; padding: .4em 1em; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.valuation__steps { list-style: none; padding: 0; margin: 1.75rem 0 2.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.valuation__steps li { display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .95rem; }
.valuation__steps span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3); font-size: .8rem; font-weight: 700;
}
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); font-size: 1rem; padding: 1.05em 1.8em; }
.valuation__card {
  position: relative; background: #fff; color: var(--text); border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); transform: rotate(1.5deg);
}
.valuation__price { display: block; font-size: clamp(3.5rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.valuation__label { display: block; color: var(--muted); font-size: .92rem; margin: .5rem 0 1.25rem; }
.valuation__card ul { list-style: none; padding: 1.25rem 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: .65rem; }
.valuation__card li { display: flex; gap: .7rem; align-items: center; font-weight: 500; font-size: .95rem; }
.valuation__card li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a1f' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.service a { font-weight: 600; color: var(--ink); }
.tile__cta {
  align-self: flex-start; margin-top: 1.25rem; padding: .55em 1.1em; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none;
}

/* ============ Standorte mit Deutschlandkarte ============ */
#standorte { position: relative; overflow: hidden; }
.standorte-head {
  position: relative; z-index: 3; max-width: 470px; min-height: 500px;
  display: flex; flex-direction: column; justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 981px) { .standorte-head { margin-bottom: 7rem; } } /* Platz für das Ausblenden der Karte */
.standorte-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.standorte-head .muted { font-size: 1.1rem; }
.city-legend { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.city-legend a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55em 1.1em; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: border-color .2s, transform .2s;
}
.city-legend a:hover { border-color: var(--primary); transform: translateY(-2px); }
.city-legend__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,163,107,.25); }

/* Rahmen mit Innenabstand, damit der Schatten nicht von der Ausblend-Maske abgeschnitten wird */
.de-map-wrap {
  position: absolute; z-index: 2; padding: 80px; pointer-events: none;
  top: calc(clamp(1.5rem, 4vw, 3rem) - 80px); right: calc(max(16px, calc((100% - 1240px) / 2 + 40px)) - 80px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 62.0%, rgba(0,0,0,0.999) 63.6%, rgba(0,0,0,0.992) 65.1%, rgba(0,0,0,0.974) 66.7%, rgba(0,0,0,0.938) 68.3%, rgba(0,0,0,0.878) 69.8%, rgba(0,0,0,0.789) 71.4%, rgba(0,0,0,0.665) 72.9%, rgba(0,0,0,0.5) 74.5%, rgba(0,0,0,0.335) 76.1%, rgba(0,0,0,0.211) 77.6%, rgba(0,0,0,0.122) 79.2%, rgba(0,0,0,0.063) 80.8%, rgba(0,0,0,0.026) 82.3%, rgba(0,0,0,0.008) 83.9%, rgba(0,0,0,0.001) 85.4%, rgba(0,0,0,0) 87.0%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 62.0%, rgba(0,0,0,0.999) 63.6%, rgba(0,0,0,0.992) 65.1%, rgba(0,0,0,0.974) 66.7%, rgba(0,0,0,0.938) 68.3%, rgba(0,0,0,0.878) 69.8%, rgba(0,0,0,0.789) 71.4%, rgba(0,0,0,0.665) 72.9%, rgba(0,0,0,0.5) 74.5%, rgba(0,0,0,0.335) 76.1%, rgba(0,0,0,0.211) 77.6%, rgba(0,0,0,0.122) 79.2%, rgba(0,0,0,0.063) 80.8%, rgba(0,0,0,0.026) 82.3%, rgba(0,0,0,0.008) 83.9%, rgba(0,0,0,0.001) 85.4%, rgba(0,0,0,0) 87.0%);
}
.de-map {
  display: block; height: 700px; width: auto; overflow: visible;
  filter: drop-shadow(0 30px 40px rgba(14,26,31,.25));
}
/* Kontur in Flächenfarbe: keine Linien zwischen den Bundesländern, keine Nahtstellen */
.de-map__land { fill: url(#de-fill); stroke: url(#de-fill); stroke-width: 1.2; stroke-linejoin: round; }
/* Hervorgehobene Regionen: Mecklenburg-Vorpommern, Berlin, Oberfranken */
.de-map__region { fill: var(--accent); fill-opacity: .85; stroke: #e2c48f; stroke-opacity: 1; stroke-width: 1.2; stroke-linejoin: round; }

.de-pin { pointer-events: auto; cursor: pointer; }
.de-pin__glow { pointer-events: none; }
.de-pin__dot { fill: var(--accent); stroke: #fff; stroke-width: 3; transition: r .2s; }
.de-pin__core { fill: var(--ink); }
.de-pin__label rect { fill: #fff; filter: drop-shadow(0 6px 14px rgba(14,26,31,.25)); transition: fill .2s; }
.de-pin:hover .de-pin__label rect { fill: var(--accent); }
.de-pin__pulse {
  fill: var(--accent); opacity: .5; transform-box: fill-box; transform-origin: center;
  animation: pin-pulse 2.4s ease-out infinite; animation-delay: var(--delay, 0s);
}
@keyframes pin-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.6); opacity: 0; } }
.de-pin text { font-family: inherit; font-size: 18px; font-weight: 700; fill: var(--ink); }
.de-pin:hover .de-pin__dot { r: 14; }
@media (prefers-reduced-motion: reduce) {
  .de-pin__pulse { animation: none; }
}

/* ============ Standorte ============ */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.locations { position: relative; z-index: 3; }
.location { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.location:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.location__photo { aspect-ratio: 4 / 3; border-radius: 0; }
.location__body { padding: 1.5rem 1.75rem 1.75rem; }
.location__body h3 { font-size: 1.5rem; }
.location__body p { color: var(--muted); margin-bottom: .75rem; }
.location__body a { font-weight: 600; text-decoration: none; }
.location__body h3 a { font-weight: inherit; }
.location__more {
  display: block; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  color: var(--accent); font-size: .92rem;
}

/* ============ Über uns ============ */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__photo { aspect-ratio: 1; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.values strong { display: block; color: var(--accent); margin-bottom: .25rem; }
.values span { font-size: .9rem; opacity: .75; }

/* Über uns: Geschichte in Stationen */
.story { list-style: none; padding: 0; margin: 0; max-width: 940px; }
.story__item { display: grid; grid-template-columns: 190px 1fr; gap: clamp(1rem, 4vw, 3rem); padding: clamp(1.75rem, 3.5vw, 2.5rem) 0; border-top: 1px solid var(--line); }
.story__mark { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: .45rem; }
.story__item h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-bottom: .6em; }
.story__item p { color: var(--muted); }
.story__item .story__lesson { margin: 1.1rem 0 0; padding: .9rem 1.1rem; border-left: 3px solid var(--accent); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); font-weight: 600; }
.story__end { max-width: 940px; margin-top: 1rem; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--primary); }
.story__end p { margin: 0; color: #fff; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.5; }
@media (max-width: 640px) { .story__item { grid-template-columns: 1fr; gap: .5rem; } .story__mark { padding-top: 0; } }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.member__photo { aspect-ratio: 4 / 5; margin-bottom: 1rem; }
.member h3 { margin-bottom: .15em; }
.member p { color: var(--muted); font-size: .92rem; margin: 0; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.timeline li { background: #fff; border-radius: var(--radius); padding: 1.75rem; }
.timeline strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; margin-bottom: .5rem; }
.timeline p { color: var(--muted); margin: 0; }

/* ============ Blog ============ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post { text-decoration: none; color: inherit; display: block; }
.post[hidden] { display: none; }
/* zuletzt gelesener Beitrag – kurz markiert nach dem Zurückkommen */
.post .post__photo { outline: 3px solid transparent; outline-offset: 5px; transition: outline-color .6s, transform .35s; }
.post--last .post__photo { outline-color: var(--accent); }
.post__photo { aspect-ratio: 16 / 11; margin-bottom: 1.1rem; transition: transform .35s; }
.post:hover .post__photo { transform: scale(.98); }
.post__meta { font-size: .8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.post h3 { margin: .5rem 0 .4rem; font-size: 1.3rem; }
.post p { color: var(--muted); font-size: .95rem; margin: 0; }
.post--featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 4rem; }
.post--featured .post__photo { aspect-ratio: 16 / 10; margin: 0; }
.post--featured h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters button {
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text);
}
.filters button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.article { padding: clamp(3rem, 7vw, 5rem) 0; }
.article__photo { aspect-ratio: 16 / 8; margin-bottom: 3rem; }
.article__body { font-size: 1.08rem; }
.article__body h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.article__body p, .article__body li { color: #36434b; }
.back-link { display: inline-flex; gap: .4rem; font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; opacity: .8; }

/* ============ FAQ ============ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 6vw, 6rem); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: .9rem 0 0; }

/* ============ Kontakt ============ */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact__list { list-style: none; padding: 0; margin: 2rem 0; }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact__list span { color: var(--muted); font-size: .9rem; }
.contact__list a { font-weight: 600; text-decoration: none; }
.emergency {
  display: grid; gap: .2rem; padding: 1.4rem 1.5rem; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
}
.emergency span { font-size: .9rem; opacity: .7; }
.emergency a { color: var(--accent); font-weight: 700; font-size: 1.2rem; text-decoration: none; }

.form { background: var(--bg-alt); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: .97rem;
  padding: .85rem 1rem; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  background: #fff; color: var(--text); transition: border-color .2s;
  min-width: 0; width: 100%; /* lange Auswahl-Optionen dürfen das Formular nicht verbreitern */
}
.contact > *, .form__row > * { min-width: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form input:disabled { background: #eef2f8; cursor: not-allowed; }
.form .is-invalid { border-color: #c0392b; }
.form__check { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 400 !important; }
.form__check input { margin-top: .3rem; accent-color: var(--primary); }
.form__check a { font-weight: 600; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .9rem; }
.form__status.is-error { color: #c0392b; }
.form__status.is-ok { color: #1e7e4a; }

/* ============ Login-Karte (Portal-Seite + Startseite) ============
   Formular sendet per POST ans Portal; Ziel-Adresse setzt js/main.js (PORTAL_URL) */
.login-card {
  background: #fff; color: var(--text); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -24px rgba(0,0,0,.45);
}
.login-card h2, .login-card__title { font-size: 1.8rem; margin-bottom: .25em; }
.login-card__title { margin-bottom: 1.25rem; }
.login-card__sub { color: var(--muted); font-size: .93rem; margin-bottom: 1.5rem; }
.login-card__note { color: var(--muted); font-size: .88rem; margin: 1.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.login-card__note a { color: var(--primary); font-weight: 600; }
.login-form { display: grid; gap: 1rem; }
.login-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; }
.login-form input {
  font: inherit; font-weight: 400; font-size: .97rem; padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text);
  transition: border-color .2s;
}
.login-form input:focus { outline: none; border-color: var(--primary); }
.login-form__forgot { justify-self: end; margin-top: -.4rem; font-size: .85rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.login-form__forgot:hover { text-decoration: underline; }
.login-form .btn { width: 100%; justify-content: center; }

/* ============ Kundenportal-Seite ============ */
.pp-hero { padding-bottom: clamp(9rem, 18vw, 15rem); }
.pp-hero__inner { display: grid; grid-template-columns: 1.15fr minmax(320px, 420px); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.pp-hero h1 { max-width: 11em; }
.pp-facts { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.pp-facts strong { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.pp-facts span { font-size: .88rem; opacity: .7; }

/* Screenshot im Browserrahmen */
.browser { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3dae5; }
.browser__bar i { margin: 0 auto; padding: .15em 1.2em; border-radius: 999px; background: #fff; font-style: normal; font-size: .75rem; color: var(--muted); }
.browser img { width: 100%; height: auto; }
.pp-showcase { margin-top: calc(clamp(9rem, 18vw, 15rem) * -1 + 3rem); position: relative; }
.browser--hero { box-shadow: 0 40px 80px -30px rgba(14,26,31,.45), 0 0 0 1px var(--line); }

/* Bisher / Mit dem Portal */
.pp-compare { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); }
.pp-compare__col { padding: clamp(1.75rem, 4vw, 3rem); }
.pp-compare__col h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.pp-compare__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.pp-compare__col li { display: flex; gap: .8rem; align-items: flex-start; }
.pp-compare__col li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.pp-compare__col--old { background: #f3f5f9; color: var(--muted); }
.pp-compare__col--old h3 { color: var(--muted); }
.pp-compare__col--old li::before { background-color: #dfe5ee; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6a72' stroke-width='3'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.pp-compare__col--new { background: var(--primary); color: #fff; }
.pp-compare__col--new li::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a1f' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); }

/* Rollen */
.pp-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pp-role { background: #fff; border-radius: var(--radius); padding: 2rem; }
.pp-role .tile__icon { background: var(--primary-light); margin-bottom: 1.5rem; }
.pp-role h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.pp-role ul { list-style: none; padding: 0; margin: 0; }
.pp-role li { padding: .6rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

/* Einblicke: Reiter mit Screenshots (ohne JS: alle Bereiche untereinander) */
.pp-tabs__list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.pp-tabs__list button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .65em 1.3em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text);
  transition: border-color .2s, background .2s, color .2s;
}
.pp-tabs__list button:hover { border-color: var(--primary); }
.pp-tabs__list button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pp-tabs__panel { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pp-tabs__panel + .pp-tabs__panel { margin-top: 3rem; }
.js .pp-tabs__panel:not(.is-active) { display: none; }
.js .pp-tabs__panel + .pp-tabs__panel { margin-top: 0; }
.pp-tabs__panel.is-active { animation: tab-in .35s ease; }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }
.pp-tabs__text h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.pp-tabs__text p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.pp-tabs .browser { display: flex; flex-direction: column; aspect-ratio: 4 / 3; }
.pp-tabs .browser img { flex: 1; min-height: 0; object-fit: cover; object-position: top; }
.pp-tabs .browser img.is-bottom { object-position: bottom; }
@media (prefers-reduced-motion: reduce) { .pp-tabs__panel.is-active { animation: none; } }
.pp-next { margin: 3rem 0 0; padding: 1.1rem 1.4rem; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: .93rem; }
.pp-next strong { color: #8a6a3a; }

/* Zugang */
.pp-access { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.pp-access h2 { margin-bottom: .6em; }
.pp-access__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.pp-access__list { list-style: none; padding: 0; margin: 0; counter-reset: zugang; display: grid; gap: 1rem; }
.pp-access__list li {
  counter-increment: zugang; position: relative; padding: 1.25rem 1.5rem 1.25rem 4.25rem;
  border-radius: var(--radius-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.pp-access__list li::before {
  content: counter(zugang); position: absolute; left: 1.25rem; top: 1.25rem;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-weight: 800; font-size: .9rem;
}
.pp-access__list strong { display: block; color: #fff; }
.pp-access__list span { font-size: .93rem; opacity: .7; }

/* Startseite: Handwerker-Netzwerk in der Verwaltung */
.bento { grid-auto-flow: dense; }
.tile--network { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2rem, 4vw, 3rem); }
.tile--network h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tile--network p { color: #4a4436; font-size: 1.02rem; }
.tile--network .tile__icon { margin-bottom: 1.5rem; }
.tile--network .checklist { margin: 0; }
.tile--network .checklist li { background: #fff; border-color: transparent; font-weight: 600; }

/* Startseite: Anspruch – was oft passiert vs. wie wir es machen */
.promise { margin-top: clamp(4rem, 9vw, 7rem); }
.promise .section__head--row > p a { color: var(--primary); font-weight: 600; white-space: nowrap; }
.promise__table { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.promise__row { display: grid; grid-template-columns: minmax(150px, .7fr) 1fr 1fr; }
.promise__row > * { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); }
.promise__row:first-child > * { border-top: 0; }
.promise__row > strong { display: flex; flex-direction: column; gap: .4rem; font-size: 1.02rem; }
.promise__row > strong em { align-self: flex-start; font-style: normal; font-size: .72rem; font-weight: 700; padding: .25em .75em; border-radius: 999px; background: var(--accent); color: var(--ink); }
.promise__row--head > * { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-block: 1rem; }
.promise__old { background: #f6f8fb; color: var(--muted); }
.promise__new { background: var(--primary); color: #fff; border-top-color: rgba(255,255,255,.1) !important; }
.promise__row--head .promise__old, .promise__row--head .promise__new { color: inherit; }
.promise__row--head > :nth-child(2) { background: #f6f8fb; color: var(--muted); }
.promise__row--head > :nth-child(3) { background: var(--primary); color: var(--accent); }
.promise__old, .promise__new { display: flex; gap: .75rem; align-items: flex-start; }
.promise__old::before, .promise__new::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .15rem; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 11px; }
.promise__old::before { background-color: #dfe5ee; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6a72' stroke-width='3'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.promise__new::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a1f' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); }
.promise__row--key > strong { background: var(--accent-soft); }
.promise__row--key .promise__new { background: var(--primary-dark); font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Standorte: Berlin als Hauptsitz, Hinweis für andere Regionen */
.city-legend a.city-legend__main { background: var(--primary); border-color: var(--primary); color: #fff; }
.de-pin--main .de-pin__label rect { fill: var(--accent); }
.de-pin--main:hover .de-pin__label rect { fill: #fff; }
.de-pin--main:hover .de-pin__dot { r: 18; }
.location--main { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.location--main .post__meta { color: var(--accent); font-weight: 700; }
.elsewhere {
  position: relative; z-index: 3; margin-top: 1.25rem;
  display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius); background: var(--primary); color: #fff;
}
.elsewhere h3 { font-size: 1.3rem; margin-bottom: .3em; }
.elsewhere p { color: rgba(255,255,255,.75); margin: 0; }
.elsewhere .btn { margin-left: auto; flex: none; }
.elsewhere__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); }
.elsewhere__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }

/* ============ Rechtstexte ============ */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal p { color: #36434b; }

/* ============ Footer ============ */
.footer { background: var(--primary); color: rgba(255,255,255,.7); font-size: .92rem; }
.footer__top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding: clamp(3rem, 7vw, 5rem) 0 3rem; }
.footer .logo__img { height: 60px; }
.footer__claim { margin-top: 1.25rem; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(130px, auto)); gap: 2.5rem; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: 0; margin-bottom: 1rem; }
.footer__cols a { display: block; text-decoration: none; padding: .25rem 0; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; }
.footer__bottom p { margin: 0; font-size: .85rem; }

/* ============ Scroll-Animation ============ */
/* Nur mit JavaScript ausblenden – ohne JS bleiben Inhalte sichtbar (auch für Crawler) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
.nav a, .nav__drop-toggle { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav { gap: 1.1rem; }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .nav { gap: .85rem; }
  .lang-switch { margin-left: .75rem; }
  .logo__img { height: 44px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; order: 2; margin-left: .5rem; }
  .lang-switch { order: 1; margin-left: auto; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 16px 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav__portal { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0; padding: .9rem 0 !important; }
  .nav .btn { margin-top: 1rem; justify-content: center; order: 1; }
  .nav__dropdown { display: block; }
  .nav__drop-toggle { width: 100%; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--line); opacity: 1; font-size: .93rem; }
  .nav__menu { position: static; transform: none !important; min-width: 0; padding: 0; display: none; opacity: 1; visibility: visible; }
  .nav__dropdown.is-open .nav__menu { display: block; }
  .nav__menu-inner { border: 0; box-shadow: none; padding: .25rem 0 .5rem 1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .nav__menu a { border-bottom: 0; padding: .65rem .5rem; }
  .city-hero, .contact-card, .valuation { grid-template-columns: 1fr; }
  .standorte-head { min-height: 0; max-width: none; margin-bottom: 1rem; }
  .de-map-wrap {
    position: relative; top: auto; right: auto; padding: 0; margin: 0 0 1rem;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 64.0%, rgba(0,0,0,0.999) 66.3%, rgba(0,0,0,0.992) 68.5%, rgba(0,0,0,0.974) 70.8%, rgba(0,0,0,0.938) 73.0%, rgba(0,0,0,0.878) 75.3%, rgba(0,0,0,0.789) 77.5%, rgba(0,0,0,0.665) 79.8%, rgba(0,0,0,0.5) 82.0%, rgba(0,0,0,0.335) 84.3%, rgba(0,0,0,0.211) 86.5%, rgba(0,0,0,0.122) 88.8%, rgba(0,0,0,0.063) 91.0%, rgba(0,0,0,0.026) 93.3%, rgba(0,0,0,0.008) 95.5%, rgba(0,0,0,0.001) 97.8%, rgba(0,0,0,0) 100.0%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 64.0%, rgba(0,0,0,0.999) 66.3%, rgba(0,0,0,0.992) 68.5%, rgba(0,0,0,0.974) 70.8%, rgba(0,0,0,0.938) 73.0%, rgba(0,0,0,0.878) 75.3%, rgba(0,0,0,0.789) 77.5%, rgba(0,0,0,0.665) 79.8%, rgba(0,0,0,0.5) 82.0%, rgba(0,0,0,0.335) 84.3%, rgba(0,0,0,0.211) 86.5%, rgba(0,0,0,0.122) 88.8%, rgba(0,0,0,0.063) 91.0%, rgba(0,0,0,0.026) 93.3%, rgba(0,0,0,0.008) 95.5%, rgba(0,0,0,0.001) 97.8%, rgba(0,0,0,0) 100.0%);
  }
  .de-map { width: min(100%, 420px); height: auto; margin: 0 auto; filter: none; }
  .valuation__card { transform: none; }
  .local-grid { grid-template-columns: 1fr 1fr; }
  .header.is-open { background: #fff; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner, .split, .about, .contact, .faq-wrap, .post--featured, .pp-hero__inner, .pp-tabs__panel, .pp-access, .pp-compare, .tile--network { grid-template-columns: 1fr; }
  .elsewhere { flex-wrap: wrap; }
  .elsewhere > div { flex: 1 1 280px; }
  .elsewhere .btn { margin-left: 0; }
  .pp-roles { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .hero__card { left: 1rem; bottom: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .locations, .posts { grid-template-columns: 1fr 1fr; }
  .split__photo, .about__photo { aspect-ratio: 16 / 11; }
}

@media (max-width: 640px) {
  .bento, .locations, .posts, .values, .local-grid { grid-template-columns: 1fr; }
  .pp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; }
  .pp-facts strong { font-size: 1.5rem; }
  .pp-facts span { display: block; font-size: .78rem; line-height: 1.35; }
  .office dl { grid-template-columns: 1fr; gap: .1rem; }
  .office dd { margin-bottom: .6rem; }
  .tile--wide, .tile--network { grid-column: auto; }
  .promise__row { grid-template-columns: 1fr; }
  .promise__row--head { display: none; }
  .promise__row > * { border-top: 0; }
  .promise__row > strong { flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-bottom: .75rem; }
  .promise__row:nth-child(2) > strong { border-top: 0; }
  .promise__row--key > strong { background: var(--accent-soft); }
  .promise__row > strong em { align-self: center; }
  .tile--full { flex-direction: column; align-items: flex-start; }
  .tile--full .tile__arrow { margin-left: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: .15rem; }
  .logo__img { height: 42px; }
}
