/* ============================================================
   RYLLBAU GMBH — Hauptstylesheet
   ============================================================ */

/* === Self-hosted Fonts === */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin-ext-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin-ext-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-latin-ext-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-latin-ext-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === CSS-Variablen === */
:root {
  --orange:       #E8830A;
  --orange-dark:  #C56C07;
  --orange-soft:  rgba(232, 131, 10, 0.12);
  --dark:         #1C1C1C;
  --dark-mid:     #333333;
  --gray:         #666666;
  --gray-light:   #999999;
  --border:       #E0E0E0;
  --bg-light:     #F5F5F5;
  --white:        #FFFFFF;
  --transition:   0.3s ease;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.14);
  --radius:       2px;
  --nav-h:        80px;
  --container:    1200px;
  --font-head:    'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

/* Überschriften → Space Grotesk */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
}

/* Labels, Nummern, Buttons, Nav → Space Grotesk */
.section-label,
.leistung-card-num,
.nav-links a,
.mobile-toggle,
.btn,
.intro-stat-value,
.footer-nav a {
  font-family: var(--font-head);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

/* === Utilities === */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all var(--transition);
  border-radius: var(--radius);
  font-family: inherit;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,131,10,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
  box-shadow: 0 8px 24px rgba(232,131,10,0.35);
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 560px;
}

/* === Anker-Offset (fixed Nav) === */
section[id] {
  scroll-margin-top: var(--nav-h);
}

/* === Scroll-Animationen === */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }
.fade-in.d4 { transition-delay: 0.4s; }
.fade-in.d5 { transition-delay: 0.5s; }
.fade-in.d6 { transition-delay: 0.6s; }
.fade-in.d7 { transition-delay: 0.7s; }
.fade-in.d8 { transition-delay: 0.8s; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 62px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark-mid);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  transition: color var(--transition);
  border-radius: var(--radius);
}

.nav a:hover {
  color: var(--orange);
}

/* Header transparent: weiße Links über dunklem Hero */
.header:not(.scrolled) .nav a {
  color: rgba(255,255,255,0.85);
}
.header:not(.scrolled) .nav a:hover {
  color: var(--white);
}
.header:not(.scrolled) .nav-toggle span {
  background: var(--white);
}

/* Nav Hover-Unterlinie (alle Zustände) */
.nav a:not(.nav-cta) {
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}
.header.scrolled .nav a:not(.nav-cta):hover {
  color: var(--dark);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--orange-dark) !important;
}

/* Untermenüpunkt – nur im Burger-Menü sichtbar */
.nav-sub { display: none; }

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--dark);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: heroZoom 10s ease-out forwards;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@keyframes heroZoom {
  from { transform: scale(1.06) translateZ(0); }
  to   { transform: scale(1) translateZ(0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(28,28,28,0.85) 0%, rgba(28,28,28,0.55) 55%, rgba(28,28,28,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 60px 0 140px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,131,10,0.18);
  border: 1px solid rgba(232,131,10,0.4);
  color: var(--orange);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--orange);
  display: block;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Hero Einblend-Animationen === */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag      { animation: heroFadeUp 0.65s ease both; animation-delay: 0.1s; }
.hero h1       { animation: heroFadeUp 0.65s ease both; animation-delay: 0.35s; }
.hero-lead     { animation: heroFadeUp 0.65s ease both; animation-delay: 0.55s; }
.hero-actions  { animation: heroFadeUp 0.65s ease both; animation-delay: 0.75s; }

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: scrollPulse 2.5s ease-in-out infinite;
  z-index: 1;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* === Wort-Rotation === */
.hero-word {
  display: inline-block;
}

@keyframes wordOut {
  to { opacity: 0; transform: translateY(-8px); }
}

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

.hero-word.word-exit  { animation: wordOut 0.28s ease forwards; }
.hero-word.word-enter { animation: wordIn  0.28s ease forwards; }

/* === Floating Stat-Karten === */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 2;
}

.hero-stat-card {
  flex: 1;
  background: rgba(28,28,28,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 2px solid var(--orange);
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.hero-stat-card:last-child {
  border-right: none;
}

.hero-stat-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
  line-height: 1.1;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.25px;
  line-height: 1.3;
}

/* ============================================================
   INTRO STRIP
   ============================================================ */
.intro-strip {
  background: var(--orange);
  padding: 28px 0;
}

.intro-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.intro-stat {
  text-align: center;
  color: var(--white);
}

.intro-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}

.intro-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}

.intro-strip-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}

/* === Orange Trennlinie oben – alle Hauptsektionen === */
.leistungen,
.projekte,
.planradar,
.ueber-uns,
.kontakt {
  border-top: 3px solid var(--orange);
}

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.leistungen {
  padding: 120px 0;
  background: var(--bg-light);
  background-image: radial-gradient(circle, rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 26px 26px;
}

.leistungen .section-header {
  margin-bottom: 40px;
}
.leistungen .section-desc {
  max-width: 900px !important;
  line-height: 1.75;
  text-wrap: pretty;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 16px;
  row-gap: 40px;
}

/* === Karte === */
.leistung-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  /* Austritt: sanft ausblenden */
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.leistung-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  transform: translateY(-2px);
  border-color: var(--orange);
  /* Eintritt: sofort reagieren */
  transition: box-shadow 0.08s ease, transform 0.08s ease, border-color 0.08s ease;
}

.leistung-card-img {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.leistung-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Textbereich */
.leistung-card-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leistung-card-num {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  line-height: 1;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.leistung-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

.leistung-card-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

.leistung-finale-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.45);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-family: var(--font-head);
}

/* 7. Karte: zentriert, orange gerahmt – Finaler Schritt */
.leistung-card--last {
  grid-column: 1 / -1;
  display: flex;            /* Flexbox statt Grid – zuverlässige Höhe */
  max-width: 700px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid var(--orange);
  box-shadow: 0 4px 24px rgba(232, 131, 10, 0.15);
}

.leistung-card--last .leistung-card-img {
  flex: 0 0 260px;
  aspect-ratio: auto;
  min-height: 220px;
  background: var(--bg-light);
}

.leistung-card--last .leistung-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* kein Beschneiden */
  object-position: center;
}

.leistung-card--last .leistung-card-body {
  flex: 1;
  background: var(--orange);
  align-items: center;
  text-align: center;
  padding: 24px 24px;
}

.leistung-card--last .leistung-card-num {
  color: rgba(255,255,255,0.7);
}

.leistung-card--last .leistung-card-title {
  color: var(--white);
}

.leistung-card--last .leistung-card-desc {
  color: rgba(255,255,255,0.85);
}

.leistung-card--last:hover {
  border-color: var(--orange-dark);
  box-shadow: 0 8px 32px rgba(232,131,10,0.30);
  transform: translateY(-2px);
  transition: box-shadow 0.08s ease, transform 0.08s ease, border-color 0.08s ease;
}

/* === Leistungen: Übergeordnetes Statement === */
.leistungen-statement {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--orange);
  padding: 32px 40px;
  margin-bottom: 48px;
  border-radius: var(--radius);
}

.leistungen-statement .ls-arrow {
  font-size: 2rem;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  line-height: 1;
}

.leistungen-statement strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.leistungen-statement p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0;
}

/* === Variante B: Mini-Grid === */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.mini-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}

.mini-card:hover {
  border-left-color: var(--orange);
}

.mini-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(232,131,10,0.2);
  line-height: 1;
  letter-spacing: -2px;
  transition: color 0.2s;
}

.mini-card:hover .mini-num {
  color: var(--orange);
}

.mini-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.mini-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Karte 07: volle Breite, dunkler Hintergrund */
.mini-card--last {
  background: var(--dark);
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  border-left: 3px solid var(--orange);
  padding: 32px 40px;
}

.mini-card--last .mini-num {
  color: var(--orange);
}

.mini-card--last .mini-title {
  color: var(--white);
  font-size: 1.25rem;
}

.mini-card--last .mini-desc {
  color: rgba(255,255,255,0.6);
}

.mini-card--last .leistung-finale-badge {
  border-color: rgba(232,131,10,0.5);
  margin-bottom: 8px;
}

.mini-card--last-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================
   PROJEKTE
   ============================================================ */
.projekte {
  padding: 120px 0;
  background: var(--bg-light);
  background-image:
    linear-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.018) 1px, transparent 1px);
  background-size: 30px 30px;
}

.projekte .section-header {
  margin-bottom: 64px;
}

.projekt-card {
  background: var(--white);
  margin-bottom: 80px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.projekt-card:last-child {
  margin-bottom: 0;
}

/* --- Projekte Preview Grid (One-Pager) --- */
.projekte-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.projekte-preview-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
}

.projekte-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

.projekte-preview-slider {
  aspect-ratio: 16/9;
}

.projekte-preview-body {
  padding: 28px 28px 32px;
}

.projekte-preview-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
  margin: 10px 0 10px;
}

.projekte-preview-desc {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 24px;
}

.projekte-preview-link {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  text-decoration: none;
  transition: gap 0.18s, letter-spacing 0.18s;
}

.projekte-preview-link:hover {
  letter-spacing: 2px;
}

.projekte-preview-cta {
  margin-top: 48px;
  text-align: center;
}

.projekt-header {
  padding: 48px 48px 32px;
}

.projekt-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.projekt-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 5px 12px;
  border-radius: 100px;
}

.projekt-title {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.25px;
}

.projekt-desc {
  color: var(--gray);
  max-width: 680px;
  line-height: 1.8;
  font-size: 1rem;
}

/* --- Before/After Slider --- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  --pos: 50%;
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}

.ba-before img,
.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.ba-slider--right-bottom .ba-before img,
.ba-slider--right-bottom .ba-after img {
  object-position: right bottom;
}

.ba-after {
  clip-path: inset(0 0 0 var(--pos));
  will-change: clip-path;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.ba-label {
  position: absolute;
  bottom: 20px;
  padding: 5px 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 100px;
  pointer-events: none;
}

.ba-before .ba-label {
  left: 20px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.85);
}

.ba-after .ba-label {
  right: 20px;
  background: var(--orange);
  color: var(--white);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 2px;
  z-index: 10;
  pointer-events: none;
}

.ba-line {
  width: 100%;
  height: 100%;
  background: var(--white);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.ba-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  font-size: 1.125rem;
  color: var(--dark);
  flex-shrink: 0;
}

/* --- Foto-Grid --- */
.projekt-photos {
  padding: 0 48px 48px;
}

.photos-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-light);
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}

.photo-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img {
  transform: scale(1.06);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay span {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.photo-overlay .label-nachher {
  background: var(--orange);
  padding: 3px 10px;
  border-radius: 100px;
}

/* --- Planungs-Section (Krankenhaus) --- */
.planung-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 32px 48px 48px;
}

.planung-section .photos-label {
  border-top: none;
  padding-top: 0;
}

/* === Kundenstimme === */
.projekt-testimonial {
  padding: 32px 48px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

.projekt-testimonial blockquote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projekt-testimonial blockquote p {
  font-size: 1rem;
  font-style: italic;
  color: var(--dark-mid);
  line-height: 1.75;
  margin: 0;
}

.projekt-testimonial blockquote p::before {
  content: '\201E';
  color: var(--orange);
  font-size: 1.4rem;
  font-style: normal;
  line-height: 0;
  vertical-align: -0.25em;
  margin-right: 3px;
}

.projekt-testimonial cite {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-style: normal;
  padding-left: 2px;
}

.projekt-testimonial cite strong {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
}

.projekt-testimonial cite span {
  font-size: 0.8125rem;
  color: var(--gray-light);
}

/* ============================================================
   PLANRADAR
   ============================================================ */
.planradar {
  padding: 120px 0;
  background: var(--dark);
  background-image: radial-gradient(circle, rgba(232,131,10,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
}


.planradar::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,131,10,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* === Intro Header === */
.planradar-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 72px;
}

.planradar-intro .section-label {
  color: var(--orange);
}

.planradar-intro .section-title {
  color: var(--white);
}

.planradar-intro .section-desc {
  color: rgba(255, 255, 255, 0.65);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* === Hauptblock === */
.planradar-what {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 48px;
  padding: 52px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 4px;
}

.pr-what-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  border: 1px solid rgba(232,131,10,0.4);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.planradar-what-text h3 {
  color: var(--dark);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.planradar-what-text > p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pr-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-benefit-list li {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}

.pr-benefit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.planradar-what-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.planradar-what-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* === SiteView Highlight === */
.siteview-strip {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 4px;
  padding: 56px;
  position: relative;
}

.siteview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sv-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.siteview-text h3 {
  color: var(--dark);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.siteview-text > p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 36px;
}

.sv-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.sv-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sv-benefit-icon {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.sv-benefit strong {
  color: var(--dark);
  font-size: 0.9375rem;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}

.sv-benefit span {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.siteview-hero-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.siteview-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* === Link === */
.pr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-light);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition);
}

.pr-link:hover {
  color: var(--orange);
}

/* ============================================================
   ÜBER UNS
   ============================================================ */
.ueber-uns {
  padding: 120px 0;
  background: var(--white);
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(0,0,0,0.014) 24px, rgba(0,0,0,0.014) 25px),
    repeating-linear-gradient(-45deg, transparent, transparent 24px, rgba(0,0,0,0.014) 24px, rgba(0,0,0,0.014) 25px);
}

.ueber-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.portrait-wrap {
  position: relative;
}

.portrait-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 3px solid var(--orange);
  z-index: 0;
}

.portrait-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  object-fit: cover;
}

.portrait-placeholder {
  position: relative;
  z-index: 1;
  aspect-ratio: 3/4;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-light);
  font-size: 0.875rem;
  text-align: center;
  padding: 20px;
}

.portrait-placeholder::before {
  content: '👤';
  font-size: 3rem;
}

.ueber-text .section-label {
  color: var(--orange);
}

.ueber-text h2 {
  margin-bottom: 6px;
}

.ueber-role {
  color: var(--orange);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
  display: block;
}

.ueber-text p {
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 0.9375rem;
}

.ueber-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.value-item {
  padding: 20px 24px;
  background: var(--bg-light);
  border-left: 3px solid var(--orange);
}

.value-item h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 6px;
}

.value-item p {
  font-size: 0.8125rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt {
  padding: 120px 0;
  background: var(--bg-light);
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.018) 1px, transparent 1px);
  background-size: 20px 20px;
}

.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.kontakt-info .section-label { color: var(--orange); }
.kontakt-info h2 { margin-bottom: 14px; }
.kontakt-info > p { margin-bottom: 44px; font-size: 0.9375rem; }

.kontakt-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.k-icon {
  width: 46px;
  height: 46px;
  background: var(--orange-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.k-detail h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 4px;
}

.k-detail p,
.k-detail a {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Kontaktformular */
.kontakt-form {
  background: var(--white);
  padding: 52px;
  box-shadow: var(--shadow);
}

.kontakt-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--dark);
  transition: border-color var(--transition);
  border-radius: var(--radius);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 28px;
  font-size: 0.8125rem;
  color: var(--gray);
  line-height: 1.6;
}

.form-privacy input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
}

.form-privacy a {
  color: var(--orange);
  text-decoration: underline;
}

/* Honeypot (Anti-Spam) */
.hp-field {
  display: none !important;
  visibility: hidden;
}

.form-msg {
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-top: 16px;
  margin-bottom: 20px;
  display: none;
  line-height: 1.5;
}

.form-msg.success {
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
  display: block;
}

.form-msg.error {
  background: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
  display: block;
}

.form-msg.hint {
  background: #FFF3CD;
  color: #664D03;
  border: 1px solid #FFECB5;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 80px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  max-width: 320px;
  margin-top: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer-social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-sublink {
  font-size: 0.8125rem !important;
  color: rgba(255,255,255,0.28) !important;
  padding-left: 8px;
}

.footer-sublink:hover {
  color: var(--orange) !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--orange);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-bottom-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-logo-link:hover .footer-bottom-logo {
  opacity: 1;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* iPad: größer darstellen */
@media (min-width: 768px) and (max-width: 1180px) {
  .lightbox img {
    max-width: 95vw;
    max-height: 92vh;
  }
}

/* iPad Landscape: mehr Höhe nutzen */
@media (min-width: 768px) and (max-height: 900px) and (orientation: landscape) {
  .lightbox img {
    max-height: 94vh;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.375rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
}

/* ============================================================
   IMPRESSUM / DATENSCHUTZ SEITEN
   ============================================================ */
.legal-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.legal-hero {
  background: var(--dark);
  padding: 80px 0 60px;
}

.legal-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
}

.legal-content {
  padding: 80px 0 120px;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-top: 48px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--orange);
  text-decoration: underline;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 6px;
}

.back-link {
  display: block;
  gap: 8px;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 3rem;
  transition: letter-spacing var(--transition);
}

/* Unterer Back-Link (nach Inhalt): Abstand nach oben, keiner nach unten */
.back-link:last-child {
  margin-top: 60px;
  margin-bottom: 0;
}

/* h2 direkt nach Back-Link: kein eigener Margin-Top nötig */
.back-link + h2 {
  margin-top: 0;
}

.back-link:hover {
  letter-spacing: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-card--last {
    gap: 32px;
    padding: 28px 32px;
  }

  .planradar-what {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px;
  }

  .siteview-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .siteview-strip {
    padding: 36px;
  }

  .ueber-inner {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .projekte-preview-grid {
    grid-template-columns: 1fr;
  }

  .ueber-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projekte-preview-cta.fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
    gap: 4px;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Menüpunkte immer dunkel wenn offen – unabhängig vom Header-Zustand */
  .header:not(.scrolled) .nav.open a {
    color: var(--dark-mid);
  }
  .header:not(.scrolled) .nav.open a:hover {
    color: var(--orange);
  }

  /* Kein Hover-Unterstrich im mobilen Burger-Menü */
  .nav.open a:not(.nav-cta)::after {
    display: none;
  }

  .nav a {
    padding: 12px 16px;
    border-radius: 6px;
  }

  .nav-cta {
    margin-left: 0 !important;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-sub {
    display: block;
    margin-left: 28px;
    font-size: 0.75rem !important;
    color: var(--gray-light) !important;
  }
  .nav-sub::before {
    content: '→ ';
    color: var(--orange);
  }

  .intro-strip-divider {
    display: none;
  }

  .kontakt-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .kontakt-form {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .projekt-header {
    padding: 32px 24px 24px;
  }

  .projekt-photos {
    padding: 0 24px 32px;
  }

  .planung-section {
    padding: 24px 24px 32px;
  }

  .ueber-values {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stat-card {
    flex: 0 0 50%;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .hero-stat-card:nth-child(2n) {
    border-right: none;
  }

  .hero-stat-value {
    font-size: 1.25rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }

  .hero-content {
    padding-bottom: 200px;
  }

  .ba-slider {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .leistungen-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .mini-card {
    padding: 24px 20px;
  }

  .mini-card--last {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
  }

  /* Karte bei 480px: vertikal (Bild oben, Text unten) */
  .leistung-card,
  .leistung-card--last {
    grid-template-columns: 1fr;
  }

  .leistung-card--last {
    grid-column: auto;
    max-width: 100%;
    flex-direction: column;   /* Bild oben, Text unten */
  }

  .leistung-card-img {
    aspect-ratio: 4 / 3;
  }

  .leistung-card--last .leistung-card-img {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: auto;
  }

  .leistung-card-body {
    padding: 20px 16px;
  }

  .pr-stats-row {
    gap: 20px;
  }

  .siteview-strip {
    padding: 24px;
  }
}

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(232, 131, 10, 0.35);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: rgba(232, 131, 10, 0.65);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .scroll-top.visible {
    opacity: 1;
  }

  .scroll-top:active {
    background: var(--orange);
  }
}

