/* TAURUS Immobilien Group, Redesign 2026 */

/* Poppins lokal gehostet (DSGVO: kein Abruf bei Google, keine IP-Uebermittlung an Dritte).
   Quelle: Google Fonts, SIL Open Font License 1.1 */
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-500-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-500-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/poppins-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =========================================================
   1. Tokens
   ========================================================= */
:root {
  /* Colors */
  --ink: #1A1613;
  --ink-soft: #2E2823;
  --muted: #6B6156;
  --muted-2: #9A8F82;
  --bg: #FAF8F4;
  --bg-warm: rgba(232, 106, 40, 0.07);
  --surface: #FFFFFF;
  --accent: #E86A28;
  --gray-logo: #505050;
  --gray-logo-dark: #3C3C3C;
  --accent-bright: #F5A56B;
  --accent-sun: #E86A28;
  --accent-sun-soft: #F5A56B;

  /* Lines & shadows */
  --border: rgba(26, 22, 19, 0.08);
  --border-strong: rgba(26, 22, 19, 0.18);
  --shadow-sm: 0 1px 2px rgba(26, 22, 19, 0.05);
  --shadow: 0 8px 24px rgba(26, 22, 19, 0.06), 0 1px 3px rgba(232, 106, 40, 0.04);
  --shadow-lg: 0 20px 48px rgba(26, 22, 19, 0.09), 0 4px 12px rgba(232, 106, 40, 0.06);

  /* Radii */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Layout */
  --max-w: 1320px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);

  /* Type */
  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: var(--font-head);
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* =========================================================
   2. Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* Ambient dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(26, 22, 19, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
main, .site-header, .topbar, .site-footer { position: relative; z-index: 1; }

/* =========================================================
   3. Typography
   ========================================================= */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.display {
  font-size: clamp(2.3rem, 5.8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-head); letter-spacing: -0.005em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); font-weight: 400; }

.display em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  display: inline-block;
  position: relative;
}

/* Eyebrow chip */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 26px;
  background: rgba(232, 106, 40, 0.08);
  border: 1px solid rgba(232, 106, 40, 0.14);
  border-radius: 100px;
  position: relative;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 12px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  animation: sun-pulse 3.2s ease-in-out infinite;
}

/* =========================================================
   4. Layout
   ========================================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
/* Nur vertikal setzen: Die Kurzform `padding: X 0` hat bei Elementen mit
   beiden Klassen (<section class="section container">) das seitliche Padding
   des Containers ueberschrieben, weil .section spaeter steht. Auf dem Handy
   klebten die betroffenen Abschnitte dadurch ohne jeden Abstand am Rand. */
.section { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.section-sm { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.grid { display: grid; gap: var(--gap); }

/* Grid-Varianten der Inhaltsseiten. Bewusst als Klassen statt als Inline-Style,
   damit die Responsive-Regeln weiter unten sie überhaupt überschreiben können. */
.grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-gap-md { gap: var(--gap); }
.grid-gap-lg { gap: 3rem; }
.grid-top { align-items: start; }
.grid-aside { grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.grid-cta { grid-template-columns: 1.2fr auto; gap: 2rem; align-items: center; }
.grid-cta-even { grid-template-columns: 1.2fr 1fr; }
/* Doppelte Klasse, damit diese Varianten unabhängig von der Reihenfolge
   gegen ihre weiter unten stehenden Basisregeln gewinnen. */
.services.services-list { grid-template-columns: 1fr; gap: 1rem; }
.project-image.project-image-wide { aspect-ratio: 16/10; }

/* =========================================================
   5. Top bar
   ========================================================= */
.topbar {
  background: var(--ink);
  color: #E8E0D2;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(232, 106, 40, 0.18);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 1rem;
}
.topbar a { color: inherit; opacity: .85; }
.topbar a:hover { opacity: 1; color: var(--accent-bright); }
.topbar-contact { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.topbar-contact span { display: inline-flex; gap: .5rem; align-items: center; }
.topbar-socials { display: flex; gap: 1rem; }
.topbar-socials a { transition: color .2s, transform .2s; }
.topbar-socials a:hover { color: var(--accent); transform: translateY(-1px); }

/* =========================================================
   6. Header & nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 244, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(26, 22, 19, 0.04);
}
/* Bei geöffnetem Menü ohne Blur, sonst wird der Header zum Bezugsrahmen des
   Menüs und dieses klappt auf Header-Höhe zusammen. Muss nach .is-scrolled
   stehen, um dessen Hintergrund zu überschreiben. */
.site-header.nav-open {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--border);
}
body.nav-locked { overflow: hidden; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
  transition: height .3s ease;
}
.is-scrolled .nav { height: 66px; }
.is-scrolled .brand svg, .is-scrolled .brand { height: 34px; }
/* Firmenlogo (Sonne über Schriftzug): braucht mehr Höhe als ein
   waagerechtes Logo, sonst wird „TAURUS" unlesbar. */
.brand { display: inline-flex; align-items: center; color: var(--ink); height: 56px; transition: transform .3s ease; }
.brand img { height: 56px; width: auto; display: block; }
.brand:hover { transform: translateY(-1px); }
.brand:hover img { filter: drop-shadow(0 2px 12px rgba(232, 106, 40, 0.35)); }

.nav-list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  padding: 8px 0;
  display: inline-block;
  position: relative;
}
.nav-list > li > a::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transition: transform .3s var(--ease);
}
.nav-list > li > a:hover::before,
.nav-list > li > a[data-active]::before { transform: translateX(-50%) scale(1); }
.nav-list > li > a[data-active] { color: var(--accent); }

/* Submenu */
.nav-list .has-sub::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 14px;
}
.nav-list .submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  pointer-events: none;
  transform-origin: top center;
}
.nav-list .has-sub:hover .submenu,
.nav-list .has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.submenu li a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.submenu li a:hover { background: var(--bg-warm); color: var(--accent); }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s ease; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform .3s ease, top .3s ease;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   7. Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 106, 40, 0.28);
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
}
.btn-primary:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(26, 22, 19, 0.25);
}
.btn-primary:hover::after { animation: shine-sweep .9s ease-out; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--accent-bright); }

.nav-cta svg { transition: transform .3s var(--ease); }
.nav-cta:hover svg { transform: translateX(4px); }

/* =========================================================
   8. Hero
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-headline { margin-bottom: 1.25rem; }
.hero-text { max-width: 520px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; }
.hero-cta { display: flex; gap: 10px; margin-top: 1.75rem; flex-wrap: wrap; }
.hero h1, .hero .lead, .hero .eyebrow { animation: fade-up .8s var(--ease) both; }
.hero .eyebrow { animation-delay: .05s; }
.hero h1 { animation-delay: .18s; }
.hero .lead { animation-delay: .32s; }
.hero-cta { animation: fade-up .8s var(--ease) .44s both; }

.hero-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-media:hover img { transform: scale(1.03); }
.hero-meta {
  position: absolute;
  left: 18px; bottom: 18px;
  right: 18px;
  max-width: 300px;
  padding: 14px 18px 14px 18px;
  padding-top: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 22, 19, 0.06);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: fade-up .8s var(--ease) .6s both;
}
.hero-meta::before {
  content: '';
  position: absolute;
  left: 14px; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 106, 40, 0.18);
  animation: sun-pulse 3s ease-in-out infinite;
}
.hero-meta strong {
  font-family: var(--font-serif);
  display: block;
  font-size: 1.15rem;
  margin-bottom: 2px;
  font-weight: 500;
}

/* =========================================================
   9. Stats
   ========================================================= */
.stats { padding: 0; background: transparent; border: 0; }
.stats > .container { padding-top: 0; padding-bottom: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid-3 .stat:nth-child(3) { border-right: none; }
@media (max-width: 1024px) {
  /* Auf schmalen Bildschirmen zwei nebeneinander, die dritte volle Breite. */
  .stats-grid-3 { grid-template-columns: 1fr 1fr; }
  .stats-grid-3 .stat:nth-child(2) { border-right: none; }
  .stats-grid-3 .stat:nth-child(3) { grid-column: 1 / -1; border-bottom: none; }
}
.stats-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 50%, var(--accent) 100%);
}
.stat {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  text-align: left;
  position: relative;
  transition: background .3s ease;
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(232, 106, 40, 0.035); }
.stat::before {
  content: '';
  position: absolute;
  left: 1.75rem; top: 1.5rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: block;
  color: var(--ink);
  padding-top: 8px;
}
.stat-num strong, .stat-num em { color: var(--accent); font-style: normal; }
.stat-label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.stat::after {
  content: '';
  position: absolute;
  left: 1.75rem; bottom: 1.25rem;
  width: 44px; height: 3px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent) 70%, rgba(232, 106, 40, 0.15) 70% 100%);
}
.stat:nth-child(2)::after { background: linear-gradient(90deg, var(--accent) 55%, rgba(232, 106, 40, 0.15) 55% 100%); }
.stat:nth-child(3)::after { background: linear-gradient(90deg, var(--accent) 82%, rgba(232, 106, 40, 0.15) 82% 100%); }
.stat:nth-child(4)::after { background: linear-gradient(90deg, var(--accent) 40%, rgba(232, 106, 40, 0.15) 40% 100%); }

/* =========================================================
   10. Section heads
   ========================================================= */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.section-head .text { max-width: 620px; }
.section-head h2 { margin-top: 10px; }
.section-head h2 em {
  background: linear-gradient(180deg, transparent 0 72%, rgba(232, 106, 40, 0.22) 72% 100%);
  padding: 0 3px;
}

/* =========================================================
   11. Projects
   ========================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 106, 40, 0.25);
}
.project-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-warm);
  border-radius: calc(var(--radius-lg) - 8px);
  position: relative;
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.project:hover .project-image img { transform: scale(1.06); }
.project-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 22, 19, 0.3));
  opacity: 0;
  transition: opacity .4s ease;
}
.project:hover .project-image::after { opacity: 1; }

.project-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 12px 6px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 22, 19, 0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .3s, color .3s, transform .3s;
  display: inline-flex;
  align-items: center;
}
.project-badge::before {
  content: '';
  position: absolute;
  left: 10px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.project:hover .project-badge { transform: translateY(-2px); }

.project-info { padding: 16px 10px 8px; }
.project-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 4px;
  font-weight: 500;
}
.project-meta { display: flex; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.project-meta span { display: inline-flex; align-items: center; gap: 4px; }

.project-specs {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  font-size: 12.5px;
  line-height: 1.3;
}
.project-specs dt,
.project-specs dd {
  padding: 6px 0;
  border-top: 1px solid rgba(26, 22, 19, 0.07);
}
.project-specs dt { color: var(--muted); }
.project-specs dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   12. Split sections
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.split-media:hover img { transform: scale(1.03); }
.split-text .eyebrow { margin-bottom: 1rem; }

/* Bauzeichnungen und Grundrisse: vollständig zeigen, nie beschneiden. */
.plan-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(26, 22, 19, 0.08);
  display: flex;
}
.plan-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
}

.full-image {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.full-image img { width: 100%; height: 100%; object-fit: cover; }
.full-image-square { aspect-ratio: 1; }
.full-image-43 { aspect-ratio: 4/3; }
.full-image-flat { border-radius: var(--radius-lg); box-shadow: none; }
.plan-image-wide { aspect-ratio: 16/10; }

/* Motive mit Personen: Gesichter sitzen im oberen Bilddrittel. Beim Zuschneiden
   auf ein flacheres Format wird deshalb von unten beschnitten, nicht mittig. */
.img-people img { object-position: 50% 22%; }

/* Unterseiten: Einleitungstext links, Bild rechts daneben. */
.page-head-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.page-head-split .lead { margin-bottom: 0; }
.page-head-media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   13. Services
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 106, 40, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity .4s ease, transform .6s ease;
}
.service::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 106, 40, 0.25);
  box-shadow: var(--shadow-lg);
}
.service:hover::before { opacity: 1; transform: scale(1.1); }
.service:hover::after { transform: scaleX(1); }

.service-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 500;
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-right: 16px;
}
.service-num::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: .35;
}
/* Pfeil-Marker der Leistungs-Einträge: blass, färbt sich erst beim
   Überfahren der Karte im Akzentton. Kein Punkt-Marker. */
.service-arrow {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  display: inline-block;
  min-width: 56px;
  color: rgba(232, 106, 40, 0.3);
  transition: color .3s var(--ease);
}
.service:hover .service-arrow { color: var(--accent); }

.service h3 {
  font-size: 1.2rem;
  font-weight: 500;
  font-family: var(--font-serif);
}
.service ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}
.service ul li { margin-bottom: 5px; }
.service ul li::marker { color: var(--accent); }

/* =========================================================
   14. CTA band
   ========================================================= */
.cta-band {
  color: #F5F1EA;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(500px 300px at 20% 0%, rgba(232, 106, 40, 0.3), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, #2A211A 100%);
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(232, 106, 40, 0.35), transparent 65%);
  animation: drift 16s ease-in-out infinite;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: inherit; max-width: 14ch; margin-bottom: 1rem; }
.cta-band p { color: rgba(245, 241, 234, 0.78); max-width: 50ch; }
.cta-band .btn-primary { background: var(--accent); color: #fff; }
.cta-band .btn-primary:hover { background: #fff; color: var(--accent); }
.cta-band .eyebrow {
  color: var(--accent-bright);
  background: rgba(232, 106, 40, 0.18);
  border-color: rgba(232, 106, 40, 0.28);
}
.cta-band .eyebrow::before { background: var(--accent-bright); }

/* =========================================================
   15. Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: #CBBDA6;
  padding-top: clamp(3.5rem, 5vw, 5rem);
  padding-bottom: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 3px solid var(--accent);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 30%, var(--accent) 60%, var(--accent-bright) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand .brand {
  color: #F5F1EA;
  margin-bottom: 1.1rem;
  display: inline-flex;
}
.footer-brand p {
  color: rgba(245, 241, 234, 0.68);
  max-width: 34ch;
  font-size: 14.5px;
}
.footer-col h4 {
  color: #F5F1EA;
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  color: rgba(245, 241, 234, 0.7);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .35s var(--ease), color .2s;
  padding-bottom: 1px;
}
.footer-col a:hover { background-size: 100% 1px; color: var(--accent-bright); }
.topbar a, .submenu a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .35s var(--ease), color .2s;
  padding-bottom: 1px;
}
.topbar a:hover, .submenu a:hover { background-size: 100% 1px; }

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  color: rgba(245, 241, 234, 0.55);
}
.footer-bottom .small-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* =========================================================
   16. Page head (inner pages)
   ========================================================= */
.page-head {
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(232, 106, 40, 0.18), transparent 65%);
  pointer-events: none;
}
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0.9rem 0 1.25rem;
}
.page-head .lead { max-width: 60ch; }
.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--accent-bright); }

/* =========================================================
   17. Prose (text-heavy content)
   ========================================================= */
.prose { max-width: 70ch; }
.prose p {
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 1.1em;
}
.prose h2 { margin: 2em 0 0.5em; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose ul { padding-left: 1.25em; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(26, 22, 19, 0.05);
  padding: 1px 6px;
  border-radius: 5px;
}
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.5em 0 0.5em 1.4em;
  margin: 1.8em 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
}

/* =========================================================
   18. Data table
   ========================================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--bg-warm);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .2s ease; }
.data-table tbody tr:hover { background: var(--bg-warm); }
.data-table td strong { font-weight: 600; color: var(--ink); }

/* =========================================================
   19. Forms
   ========================================================= */
.form {
  background: var(--surface);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 720px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 106, 40, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consent {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
/* Die Einwilligungszeile ist Fliesstext, kein Feldtitel: ohne diese Regel
   erbt sie von `.field label` Versalien und Sperrung und wird unlesbar. */
/* Kein Flex-Layout: Das machte jedes Kind des Labels zu einer eigenen Spalte,
   wodurch der Link mitten im Satz umbrach. Stattdessen fliesst der Text normal
   und das Kaestchen steht absolut davor. */
.consent label {
  display: block;
  position: relative;
  padding-left: 28px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0;
  cursor: pointer;
}
.field.consent input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 1px;
  /* Ohne das Zuruecksetzen erbt das Kaestchen Innenabstand und Rahmen der
     normalen Eingabefelder und wird zu einem 45 Pixel grossen Kasten. */
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  margin: 0;
  accent-color: var(--gray-logo);
}
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   20. Info card / list / pill / values / timeline
   ========================================================= */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow .3s ease, transform .3s ease;
}
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.info-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.info-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.info-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label { color: var(--muted); }
.info-list .value { color: var(--ink); font-weight: 500; text-align: right; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--bg-warm);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.pill.accent { background: rgba(232, 106, 40, 0.1); color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.value-card {
  padding: 1.75rem;
  border-top: 1px solid var(--border-strong);
  transition: border-color .3s ease;
}
.value-card:hover { border-color: var(--accent); }
.value-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border-strong);
  padding-left: 1.75rem;
}
.timeline-item { padding-bottom: 2rem; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.2rem;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.timeline-item .date {
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* =========================================================
   21. Reveal / animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes sun-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(232, 106, 40, 0)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 2px 10px rgba(232, 106, 40, 0.35)); }
}
@keyframes sun-rise {
  0% { transform: translateY(6px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes shine-sweep {
  0% { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(220%) skewX(-12deg); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -14px); }
}

/* =========================================================
   22. Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav-list { gap: 1.25rem; }
  .nav-list > li > a { font-size: 13.5px; }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .stat:nth-child(4) { border-right: none; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; aspect-ratio: 16/10; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 560px; aspect-ratio: 4/3; margin: 0 auto; }
  .page-head-split { grid-template-columns: 1fr; }
  .page-head-media { max-width: 560px; margin: 1.5rem auto 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-aside { grid-template-columns: 1fr; gap: 2rem; }
  .grid-gap-lg { gap: 2rem; }
}

@media (max-width: 780px) {
  .topbar .container { justify-content: center; }
  .topbar-contact { display: none; }
  /* Fingerfreundliche Trefferflächen: Die Links waren nur rund 17 bis 22 Pixel
     hoch und damit auf dem Touchscreen kaum sicher zu treffen. */
  .topbar-socials { gap: .25rem; }
  .topbar-socials a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
  .footer-col li { margin-bottom: 0; }
  .footer-col a { display: inline-block; padding: 11px 0; font-size: 15px; }
  .footer-bottom a { display: inline-block; padding: 10px 0; }
  .nav { height: 68px; }
  .nav-list { display: none; }
  .burger { display: inline-flex; }
  .nav-list.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    /* --nav-offset setzt das Skript auf die tatsächliche Header-Unterkante,
       die am Seitenanfang unter der Topbar liegt und nach dem Scrollen bei 0.
       dvh statt vh berücksichtigt die ein- und ausfahrende Browserleiste. */
    inset: var(--nav-offset, 68px) 0 0;
    height: calc(100dvh - var(--nav-offset, 68px));
    z-index: 40;
    background: var(--bg);
    padding: 1rem var(--pad-x) 2rem;
    gap: 0.25rem;
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
  }
  .nav-list.open li {
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
  }
  .nav-list.open li:last-child { border-bottom: none; }
  .nav-list.open > li > a {
    font-size: 16px;
    padding: 14px 0;
    display: block;
  }
  .nav-list.open .submenu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 10px 1rem;
    background: transparent;
    pointer-events: auto;
    min-width: 0;
  }
  .nav-list.open .submenu li a { font-size: 15px; padding: 12px 0; display: block; }
  .nav-cta { padding: 10px 16px; font-size: 12.5px; margin-left: auto; }

  .project-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .grid-2, .grid-cta, .grid-cta-even { grid-template-columns: 1fr; }
  .grid-gap-lg, .grid-2 { gap: 1.75rem; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
  /* Mindestens 16px, sonst zoomt iOS Safari beim Antippen eines Feldes
     ungefragt in die Seite hinein und verlässt sie danach verschoben. */
  .field input, .field textarea, .field select,
  input, textarea, select { font-size: 16px; }
  .field input, .field select { min-height: 48px; }
  .field input[type="file"] { padding: 12px 15px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cta-band .grid { grid-template-columns: 1fr !important; }
  .cta-band { border-radius: var(--radius-lg); padding: 2rem 1.5rem; }

  .stat { padding: 1.5rem 1.25rem; }
  .stat::before { left: 1.25rem; top: 1.1rem; }
  .stat::after { left: 1.25rem; bottom: 1rem; }
  .stat-num { font-size: 2rem; padding-top: 6px; }

  /* Bildkomposition auf dem Handy: Die Motive behalten ihr eigenes
     Seitenverhältnis, statt in ein festes Querformat gezwungen zu werden.
     Sonst schneidet ein Hochformat-Foto (Personen, Fassaden) genau die
     Bildmitte heraus und Köpfe bzw. Dächer fallen aus dem Rahmen.
     Nur sehr hohe Motive werden gedeckelt, dann von unten. */
  .hero-media, .split-media, .page-head-media, .full-image {
    aspect-ratio: auto;
    max-height: none;
  }
  /* Die Deckelung sitzt am Bild, nicht am Rahmen: sonst schneidet der Rahmen
     bei hohen Motiven die Info-Karte darunter ab. */
  .hero-media img, .split-media img, .page-head-media img, .full-image img {
    height: auto;
    max-height: 62vh;
    object-fit: cover;
    display: block;
    object-position: 50% 25%;
  }
  .page-head-media { margin-top: 1.5rem; }

  /* Die Info-Karte lag als Overlay auf dem Bild und verdeckte auf schmalen
     Displays fast die Hälfte davon. Auf dem Handy steht sie darunter. */
  .hero-meta {
    position: static;
    max-width: none;
    margin: 0;
    padding: 14px 16px 15px;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    font-size: 13px;
  }
  .hero-meta::before { left: 16px; top: 19px; }
  .hero-meta strong { font-size: 1.05rem; padding-left: 18px; }
  .hero-media { box-shadow: var(--shadow); }

  .full-image, .hero-media, .split-media { border-radius: var(--radius-lg); }
}

@media (max-width: 480px) {
  /* Mehr Luft zum Displayrand: 16 px wirkten auf dem Handy gedraengt,
     der Text lief fast in die abgerundete Bildschirmkante. */
  :root { --pad-x: 1.35rem; }

  /* Schriftgrade: Auf 390 px greift ueberall das Minimum der clamp()-Werte,
     das fuer Tablet-Breiten gesetzt war. Ueberschriften fuellten dadurch
     halbe Bildschirme und rissen den Textfluss auseinander. */
  .display { font-size: 2.05rem; line-height: 1.14; letter-spacing: -0.02em; }
  h1 { font-size: 1.85rem; line-height: 1.16; }
  h2 { font-size: 1.5rem; line-height: 1.2; }
  h3 { font-size: 1.12rem; }
  .lead { font-size: 1rem; line-height: 1.6; }
  .eyebrow { font-size: 10.5px; }

  /* Kuerzere Wege: Die vertikalen Sektionsabstaende waren fuer den Desktop
     gedacht und ergaben auf dem Handy lange leere Strecken. */
  .section { padding-top: 2.9rem; padding-bottom: 2.9rem; }
  .section-sm { padding-top: 2.2rem; padding-bottom: 2.2rem; }
  .page-head { padding-top: 2.2rem; padding-bottom: 1.6rem; }

  /* Bilder nicht ueber den halben Bildschirm ziehen. */
  .hero-media img, .split-media img, .page-head-media img, .full-image img { max-height: 54vh; }

  /* Die vier Kennzahlen bleiben im 2x2-Raster. Untereinander gestapelt
     ergaben sie einen unnötig langen Scrollweg für vier kurze Zahlen. */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.25rem 0.85rem 1.15rem; }
  .stat::before { left: 0.85rem; top: 0.9rem; }
  .stat::after { left: 0.85rem; bottom: 0.85rem; }
  .stat-num { font-size: 1.7rem; }
  /* Enger gesetzt, damit "Projekte realisiert" einzeilig bleibt und die vier
     Kacheln die gleiche Höhe bekommen. */
  .stat-label { font-size: 10.5px; letter-spacing: 0.06em; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { padding: 12px 20px; font-size: 12.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .project { padding: 8px; }
  .service { padding: 1.5rem 1.25rem; }
  .form { padding: 1.5rem 1.25rem; }
  .cta-band { padding: 1.75rem 1.25rem; }
}

/* =========================================================
   23. Utilities
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.max-w-prose { max-width: 70ch; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 1rem; }

/* Focus ring for keyboard users */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   24. Reduce motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   20. Service-Button & Service-Panel (Overlay unter Header)
   ========================================================= */
.btn-dark {
  background: var(--gray-logo);
  color: #fff;
  box-shadow: 0 4px 14px rgba(60, 60, 60, 0.25);
}
.btn-dark:hover { background: var(--gray-logo-dark); color: #fff; }
.btn-dark[aria-expanded="true"] { background: var(--gray-logo-dark); }
.btn-dark .chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.btn-dark[aria-expanded="true"] .chev { transform: rotate(180deg); }
.btn-dark:hover svg { transform: none; }

.service-panel {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(26, 22, 19, 0.10);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .3s ease, visibility .3s;
  z-index: 49;
}
.service-panel.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.service-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}
.service-widget {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.service-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(232, 106, 40, 0.07), transparent 55%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.service-widget::after {
  content: '→';
  position: absolute;
  right: 18px; top: 16px;
  font-size: 17px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .35s var(--ease);
}
.service-widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 106, 40, 0.35);
}
.service-widget:hover::before { opacity: 1; }
.service-widget:hover::after { opacity: 1; transform: none; }
.service-widget .sw-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(80, 80, 80, 0.1), rgba(80, 80, 80, 0.05));
  color: var(--gray-logo);
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.service-widget:hover .sw-icon {
  background: linear-gradient(150deg, var(--accent), var(--accent-bright));
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
}
.service-widget .sw-icon svg { width: 22px; height: 22px; }
.service-widget h4 { margin: 2px 0 3px; font-size: 15px; }
.service-widget p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .service-panel-grid { grid-template-columns: 1fr; gap: .6rem; }
}

/* =========================================================
   21. Team-Grid (Platzhalter mit Drag & Drop)
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.team-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 55%, var(--accent) 100%);
  z-index: 3;
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.team-card:hover::after { transform: translateY(0); }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: repeating-linear-gradient(45deg, rgba(80,80,80,0.06) 0 12px, rgba(80,80,80,0.02) 12px 24px);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.team-photo.dragover { background: rgba(232, 106, 40, 0.1); }
.team-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 14, 10, 0.05) 62%, rgba(20, 14, 10, 0.74));
  pointer-events: none;
}
.team-photo:not(.has-img)::after { display: none; }
.team-photo-hint {
  font-size: 12px;
  color: var(--muted-2);
  max-width: 14ch;
  line-height: 1.5;
  padding: 0 8px;
  text-align: center;
  pointer-events: none;
}
.team-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 15px;
  z-index: 2;
  transition: transform .35s var(--ease);
}
.team-card:hover .team-info { transform: translateY(-10px); }
.team-photo:not(.has-img) ~ .team-info { background: rgba(20, 14, 10, 0.55); padding-top: 24px; }
.team-info::before {
  content: '';
  position: absolute;
  left: 18px; top: 26px;
  width: 26px; height: 3px;
  border-radius: 100px;
  background: var(--accent);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.team-card:hover .team-info::before { transform: scaleX(1.8); }
.team-name {
  font-size: 1.02rem;
  margin: 0;
  color: #fff;
  line-height: 1.25;
  outline: none;
  border-radius: 6px;
}
.team-role {
  font-size: 11.5px;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  outline: none;
  border-radius: 6px;
  min-height: 1em;
}
.team-name[contenteditable]:hover, .team-role[contenteditable]:hover,
.team-name[contenteditable]:focus, .team-role[contenteditable]:focus {
  background: rgba(232, 106, 40, 0.4);
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* =========================================================
   22. Funnel (Wohnungsgeberbestätigung)
   ========================================================= */
.funnel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.funnel-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
}
.funnel-progress span {
  flex: 1;
  height: 4px;
  border-radius: 100px;
  background: var(--border);
  transition: background .3s;
}
.funnel-progress span.done { background: var(--accent); }
.funnel-step { display: none; }
.funnel-step.active { display: block; animation: fade-up .45s var(--ease) both; }
.funnel-step h3 { margin-bottom: .5rem; }
.funnel-step .step-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 1.5rem; }
.funnel-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2rem;
}
.funnel-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 14.5px;
}
.funnel-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.funnel-summary dt { color: var(--muted); }
.funnel-summary dd { margin: 0; font-weight: 500; }
/* Einspaltige Formularseiten (Wohnungsgeberbestaetigung): Das Formular war
   zuvor ein vierstufiger Ablauf. Jetzt steht alles auf einer Seite, gegliedert
   durch Zwischenueberschriften. */
.form-narrow { max-width: 720px; margin: 0 auto; }
.form-section-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.form .form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-sub {
  margin: 0 0 1rem;
  font-size: 13.5px;
  color: var(--muted);
}
.form-section-title + .field-row,
.form-section-title + .field { margin-top: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 12px; }

.person-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.person-remove {
  height: 46px; width: 46px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  display: grid; place-items: center;
  transition: color .2s, border-color .2s;
}
.person-remove:hover { color: #C0392B; border-color: #C0392B; }

/* =========================================================
   23. Datei-Upload (Schadensmeldung) & Erfolgs-Banner
   ========================================================= */
.file-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .25s, background .25s;
  color: var(--muted);
}
.file-drop:hover, .file-drop.dragover { border-color: var(--accent); background: rgba(232, 106, 40, 0.05); color: var(--accent); }
.file-drop svg { width: 26px; height: 26px; flex: 0 0 auto; }
.file-drop-text { font-size: 14px; line-height: 1.45; }
.file-drop-text small { color: var(--muted-2); font-size: 12.5px; }
.file-drop input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink-soft);
}
.file-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.file-list .file-size { margin-left: auto; color: var(--muted-2); font-size: 12px; }

.form-success {
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.25);
  color: #2E5D31;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14.5px;
  margin-bottom: 1.5rem;
}

.form-success[hidden], .form-error[hidden] { display: none !important; }
.form-error {
  background: rgba(176, 58, 46, 0.07);
  border: 1px solid rgba(176, 58, 46, 0.25);
  color: #8E342B;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.form-error a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   24. Editor-Modus (Team), Login & Speichern-Leiste
   ========================================================= */
.team-edit-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s;
  flex: 0 0 auto;
  opacity: .45;
}
.team-edit-btn:hover { color: var(--accent); border-color: var(--accent); opacity: 1; transform: rotate(-8deg); }
.team-edit-btn svg { width: 17px; height: 17px; }

.team-card.is-empty { display: none; }
.edit-mode .team-card.is-empty { display: block; opacity: .75; }
.team-photo { cursor: default; }
.edit-mode .team-photo { cursor: pointer; }
.team-photo-hint { display: none; }
.edit-mode .team-photo:not(.has-img) .team-photo-hint { display: block; }
.team-photo:not(.has-img) { border-style: solid; border-color: var(--border); }
.edit-mode .team-photo:not(.has-img) { border-style: dashed; border-color: var(--border-strong); }
.team-name[contenteditable], .team-role[contenteditable] { cursor: text; }
.edit-mode .team-card { outline: 1.5px dashed rgba(232, 106, 40, 0.35); outline-offset: 4px; }

.edit-login {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 19, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.edit-login-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  max-width: 380px;
  width: 100%;
}
.edit-login-box h3 { margin-bottom: .25rem; }
.edit-login-box p { color: var(--muted); font-size: 14px; }
.edit-login-box input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
  margin: .5rem 0 1rem;
  background: var(--bg);
}
.edit-login-box input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.edit-login-actions { display: flex; justify-content: flex-end; gap: 10px; }
.edit-login-error { color: #C0392B !important; margin: .75rem 0 0; }

.save-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 190;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--ink);
  color: #F5F1EA;
  border-radius: 100px;
  padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  max-width: calc(100vw - 2rem);
}

/* =========================================================
   25. Frische-Details (Über uns & global)
   ========================================================= */
h1 em { font-style: italic; color: var(--accent); }
.value-card { transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 106, 40, 0.3);
}
.team-panorama {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}
.team-panorama img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.team-panorama:hover img { transform: scale(1.025); }
.team-panorama .hero-meta { max-width: 340px; }
@media (max-width: 760px) { .team-panorama { aspect-ratio: 16/10; } }

/* =========================================================
   26. Verspielte Details
   ========================================================= */
h1 em { font-style: italic; color: var(--accent); }

/* Schwebende Deko-Punkte im Seitenkopf */
.page-head::after {
  content: '';
  position: absolute;
  left: 8%; bottom: 16%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .28;
  animation: float-bob 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.15); }
}

/* Gekippte Fotos, die sich beim Hover aufrichten */
.photo-tilt { overflow: visible; position: relative; }
.photo-tilt img {
  border-radius: var(--radius-lg);
  transform: rotate(-2.2deg) scale(.97);
  box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease);
}
.photo-tilt:hover img { transform: rotate(0) scale(1); }
.photo-tilt::before {
  content: '';
  position: absolute;
  right: -14px; top: -14px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 106, 40, 0.25), transparent 68%);
  animation: float-bob 6s ease-in-out .8s infinite;
  pointer-events: none;
}

/* Team-Grid: Hover-Kippen */
.team-grid .team-card:nth-child(odd):hover { transform: translateY(-8px) rotate(-1.3deg); }
.team-grid .team-card:nth-child(even):hover { transform: translateY(-8px) rotate(1.3deg); }
.team-panorama .hero-meta { transform: rotate(-1.6deg); transition: transform .4s var(--ease); }
.team-panorama:hover .hero-meta { transform: rotate(0); }


/* =========================================================
   22. Cookie-Hinweis (klein, unten rechts)
   ========================================================= */
.cookie-note {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 200;
  width: min(340px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(26, 22, 19, 0.18);
  padding: 1.15rem 1.25rem 1.25rem;
  animation: cookie-in .45s var(--ease) both;
}
.cookie-note[hidden] { display: none !important; }
.cookie-note h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 .4rem;
  padding-left: 14px;
  position: relative;
}
.cookie-note h3::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.cookie-note p {
  margin: 0 0 1rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.cookie-note p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
/* Untereinander statt nebeneinander: „Alle akzeptieren" ist in
   Versalien breiter als der halbe Kasten und würde sonst abgeschnitten. */
.cookie-note-actions { display: flex; flex-direction: column; gap: 8px; }
.cookie-note-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: 12.5px;
}


/* --- Einwilligungsbanner -------------------------------------------------
   Akzeptieren und Ablehnen sind bewusst identisch gestaltet (gleiche Groesse,
   Farbe, Position), damit die Einwilligung freiwillig im Sinne der DSGVO ist
   und kein Dark Pattern entsteht. */
.cookie-note {
  width: min(400px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.cookie-options {
  border-top: 1px solid var(--border);
  margin: 0 0 1rem;
  padding-top: .85rem;
}
.cookie-options[hidden] { display: none !important; }
.cookie-option + .cookie-option {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.cookie-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.cookie-option input[disabled] + span { color: var(--muted); cursor: default; }
.cookie-option input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--gray-logo);
  flex: 0 0 auto;
  cursor: pointer;
}
.cookie-option input[type="checkbox"][disabled] { cursor: default; }
.cookie-option p {
  margin: .35rem 0 0 27px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.cookie-note-actions .btn-consent {
  background: var(--gray-logo);
  color: #ffffff;
  border: 1px solid var(--gray-logo);
}
.cookie-note-actions .btn-consent:hover { background: var(--gray-logo-dark); border-color: var(--gray-logo-dark); }
.cookie-note-actions .btn-consent-save { background: var(--ink); border-color: var(--ink); }
.cookie-note-actions .btn-consent-save[hidden] { display: none !important; }
.cookie-note-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 4px 0;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-note-toggle:hover { color: var(--ink); }
.cookie-note-legal {
  margin: .7rem 0 0 !important;
  font-size: 11.5px;
  color: var(--muted-2);
}
.cookie-note-legal a { color: var(--muted); }

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-note { animation: none; }
}

[data-team-edit]{display:none!important}
