/* ============================================
   lupenRhein – Global Stylesheet
   Wir sehen genauer hin.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --rot: #D0021B;
  --rot-dark: #A00015;
  --rot-light: #FF1A33;
  --weiss: #FFFFFF;
  --grau: #F2F2F0;
  --grau-mid: #E0DDD8;
  --grau-muted: #AAAAAA;
  --text: #404040;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--weiss);
  font-size: 0.95rem;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; filter: grayscale(100%); display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rot);
  font-weight: 500;
  display: block;
  margin-bottom: 1.2rem;
  font-family: 'DM Sans', sans-serif;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--weiss); color: var(--rot); }
.btn-primary:hover { background: var(--rot); color: var(--weiss); }
.btn-red { background: var(--rot); color: var(--weiss); }
.btn-red:hover { background: var(--rot-dark); }
.btn-outline { background: transparent; color: var(--weiss); border: 1px solid rgba(255,255,255,0.55); }
.btn-outline:hover { border-color: var(--weiss); background: rgba(255,255,255,0.1); }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--weiss);
  border-bottom: 1px solid var(--grau-mid);
  display: flex;
  align-items: center;
  z-index: 1000;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo span:first-child { color: var(--text); }
.nav-logo span:last-child { color: var(--rot); }

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
  list-style: none;
}
.nav-link {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav-link:hover, .nav-link a:hover { color: var(--rot); }
.nav-link a { color: var(--text); text-decoration: none; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-link a:hover { color: var(--rot); }

/* Mega Menu */
.mega-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--weiss);
  border-top: 2px solid var(--rot);
  border-bottom: 1px solid var(--grau-mid);
  z-index: 1001;
  padding: 3rem 4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.mega-menu.active { display: block; }
.mega-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.8fr;
  gap: 3rem;
}
.mega-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--text);
}
.mega-col ul { list-style: none; }
.mega-col ul li { margin-bottom: 0.6rem; }
.mega-col ul li a {
  font-size: 0.85rem;
  color: var(--grau-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.mega-col ul li a:hover { color: var(--rot); }
.mega-featured { background: var(--rot); padding: 1.5rem; }
.mega-featured h4 { color: var(--weiss); font-size: 1.1rem; margin-bottom: 0.8rem; }
.mega-featured p { color: rgba(255,255,255,0.8); font-size: 0.82rem; line-height: 1.6; margin-bottom: 1.2rem; }
.mega-featured a { color: var(--weiss); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 0.2rem; }

.nav-cta { margin-left: 1rem; }

/* Language Switcher */
.lang-switcher { display: flex; align-items: center; gap: 0.25rem; margin-left: 1rem; }
.lang-btn { font-size: 1.3rem; line-height: 1; opacity: 0.4; transition: opacity 0.2s; text-decoration: none; cursor: pointer; }
.lang-btn:hover { opacity: 0.85; }
.lang-btn.lang-active { opacity: 1; cursor: default; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--rot); transition: all 0.3s; }

/* Mobile Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--weiss);
  z-index: 1001;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}
.nav-overlay.open { display: flex; }
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--grau-mid);
}
.overlay-close {
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
  line-height: 1;
  padding: 0.3rem;
}
.overlay-links { list-style: none; padding: 0 1.5rem; }
.overlay-links > li { border-bottom: 1px solid var(--grau-mid); }
.overlay-links > li > a,
.overlay-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
}
.overlay-toggle::after { content: '+'; font-size: 1.2rem; font-weight: 300; color: var(--rot); }
.overlay-toggle.active::after { content: '−'; }
.overlay-links > li > a:hover, .overlay-toggle:hover { color: var(--rot); }
.overlay-sub { display: none; padding: 0 0 1rem 1rem; }
.overlay-sub.show { display: block; }
.overlay-sub a {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--grau-muted);
  padding: 0.4rem 0;
  text-decoration: none;
}
.overlay-sub a:hover { color: var(--rot); }
.overlay-cta { padding: 1.5rem; margin-top: auto; }
.overlay-cta .btn { width: 100%; text-align: center; display: block; }

/* ============================================
   Hero (Homepage)
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--text);
  margin-top: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  pointer-events: none;
}
.hero-overlay-red {
  position: absolute;
  inset: 0;
  background: rgba(208, 2, 27, 0.55);
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}
.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.6));
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--weiss);
  max-width: 900px;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  font-family: 'DM Sans', sans-serif;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}
.hero-title .dim { color: rgba(255,255,255,0.3); }
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.9; }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ============================================
   Page Hero (Unterseiten)
   ============================================ */

.page-hero {
  padding-top: 64px;
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  pointer-events: none;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(208, 2, 27, 0.45);
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}
.page-hero-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.05));
  z-index: 2;
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 3;
  padding: 3rem 4rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.page-hero-content .section-label { color: rgba(255,255,255,0.65); }
.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.04em;
  color: var(--weiss);
  line-height: 1;
}

/* ============================================
   Claim Band
   ============================================ */

.claim-band {
  background: var(--rot);
  padding: 1.4rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.claim-band-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--weiss);
}
.claim-band-sub {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  margin-left: 2rem;
}

/* ============================================
   Sections Base
   ============================================ */

section { padding: 7rem 4rem; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-header { margin-bottom: 4rem; }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text);
}
.section-intro { font-size: 0.95rem; line-height: 1.85; color: var(--text); margin-top: 1.5rem; }
.section-header .section-intro { text-align: center; max-width: 580px; margin-left: auto; margin-right: auto; }
.section-inner > .section-intro { text-align: center; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ============================================
   Intro / Stats
   ============================================ */

.intro-section { background: var(--weiss); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.intro-image-wrap { position: relative; }
.intro-image-wrap img { width: 100%; height: 520px; object-fit: cover; filter: grayscale(100%); }
.intro-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(208, 2, 27, 0.18);
  pointer-events: none;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; }
.stats-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; margin-top: 2rem; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 900px; margin: 0 auto; }
.stat-item { border-left: 3px solid var(--rot); padding-left: 1rem; }
.stat-number { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; letter-spacing: 0.04em; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grau-muted); font-weight: 500; margin-top: 0.3rem; }

/* ============================================
   Leistungen / Cards
   ============================================ */

.leistungen-section { background: var(--grau); }
.leistungen-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--grau-mid); }
.leistung-card {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--grau-mid);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: pointer;
}
.leistung-card:last-child { border-right: none; }
.leistung-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rot);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.leistung-card:hover::after { transform: scaleX(1); }
.leistung-card:hover { background: var(--text); }
.leistung-card:hover .leistung-nr { color: rgba(255,255,255,0.12); }
.leistung-card:hover .leistung-title { color: var(--weiss); }
.leistung-card:hover .leistung-text { color: rgba(255,255,255,0.65); }
.leistung-card:hover .leistung-link { color: var(--rot-light); }
.leistung-nr { font-family: 'Bebas Neue', sans-serif; font-size: 3.2rem; color: var(--grau-mid); letter-spacing: 0.04em; line-height: 1; margin-bottom: 1.5rem; transition: color 0.3s; }
.leistung-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.06em; margin-bottom: 1rem; transition: color 0.3s; }
.leistung-text { font-size: 0.88rem; line-height: 1.8; color: var(--text); margin-bottom: 1.5rem; transition: color 0.3s; }
.leistung-link { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rot); font-weight: 500; transition: color 0.3s; }

/* ============================================
   Split Layout (Case Study / KI)
   ============================================ */

.split-grid { display: grid; gap: 5rem; align-items: center; }
.split-grid.img-left { grid-template-columns: 1fr 1.2fr; }
.split-grid.img-right { grid-template-columns: 1.2fr 1fr; }
.split-image { position: relative; }
.split-image img { width: 100%; height: 520px; object-fit: cover; filter: grayscale(100%); }
.split-image::after { content: ''; position: absolute; inset: 0; background: rgba(208, 2, 27, 0.18); pointer-events: none; }

.case-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--text);
  margin: 2rem 0 0.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--rot);
}
.case-attribution { font-size: 0.75rem; color: var(--grau-muted); letter-spacing: 0.1em; padding-left: 1.5rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag {
  background: var(--grau);
  border: 1px solid var(--grau-mid);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  color: var(--grau-muted);
  font-weight: 500;
}

/* KI Features */
.ki-badge {
  display: inline-block;
  background: var(--rot);
  color: var(--weiss);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}
.ki-features { display: flex; flex-direction: column; gap: 1.2rem; margin: 2rem 0; }
.ki-feature { display: flex; gap: 1rem; align-items: flex-start; }
.ki-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rot); margin-top: 0.65rem; flex-shrink: 0; }
.ki-feature-text { font-size: 0.9rem; line-height: 1.7; }

/* ============================================
   Logos
   ============================================ */

.logos-section { background: var(--weiss); padding: 4rem 4rem; }
.logos-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 4.5rem; margin-top: 2.5rem; }
.logo-item { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.08em; color: var(--grau-mid); transition: color 0.2s; text-decoration: none; cursor: pointer; }
.logo-item:hover { color: var(--rot); }

/* ============================================
   Team
   ============================================ */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--grau-mid); margin-top: 3rem; }
.team-card { padding: 2rem; border-right: 1px solid var(--grau-mid); transition: background 0.3s; }
.team-card:last-child { border-right: none; }
.team-card:hover { background: var(--grau); }
.team-photo { position: relative; margin-bottom: 1.2rem; }
.team-photo img { width: 100%; height: 240px; object-fit: cover; object-position: center 30%; filter: grayscale(100%); }
.team-photo::after { content: ''; position: absolute; inset: 0; background: rgba(208, 2, 27, 0.12); pointer-events: none; }
.team-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.06em; }
.team-role { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rot); font-weight: 500; margin: 0.3rem 0 0.8rem; }
.team-bio { font-size: 0.82rem; line-height: 1.75; color: var(--grau-muted); }

/* ============================================
   Rheinischer Gedanke
   ============================================ */

.rheinisch-section { background: var(--rot); padding: 7rem 4rem; }
.rheinisch-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.rheinisch-label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 500; display: block; margin-bottom: 1.5rem; }
.rheinisch-quote { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 4.2rem); color: var(--weiss); line-height: 1.05; letter-spacing: 0.04em; }
.rheinisch-text { color: rgba(255,255,255,0.8); line-height: 1.85; font-size: 0.95rem; margin-bottom: 1.5rem; }
.rheinisch-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.rheinisch-tag { border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.35rem 0.9rem; }

/* ============================================
   FAQ
   ============================================ */

.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--grau-mid); }
.faq-item:first-child { border-top: 1px solid var(--grau-mid); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.4rem 0;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}
.faq-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--grau-mid);
  flex-shrink: 0;
  position: relative;
  margin-left: 1.5rem;
  transition: border-color 0.2s;
}
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--text); transition: all 0.3s; }
.faq-icon::before { width: 10px; height: 1px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1px; height: 10px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-item.open .faq-icon { border-color: var(--rot); }
.faq-item.open .faq-icon::before { background: var(--rot); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.38s ease; }
.faq-answer-inner { padding: 0 0 1.5rem; font-size: 0.9rem; line-height: 1.85; color: var(--grau-muted); }

/* ============================================
   CTA Section
   ============================================ */

.cta-section { background: var(--text); padding: 6rem 4rem; text-align: center; }
.cta-section .section-title { color: var(--weiss); }
.cta-section .cta-sub { color: rgba(255,255,255,0.6); max-width: 520px; margin: 1.5rem auto 2.5rem; }

/* ============================================
   Kontakt Page
   ============================================ */

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; }
.contact-info-item { margin-bottom: 2rem; }
.contact-info-label { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--rot); font-weight: 500; margin-bottom: 0.4rem; }
.contact-info-value { font-size: 1rem; line-height: 1.6; }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.5rem; color: var(--text); }

/* Anrede Toggle */
.anrede-group { display: flex; gap: 0.6rem; margin-bottom: 0; }
.anrede-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--grau-mid);
  background: var(--grau);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grau-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
}
.anrede-btn:hover { border-color: var(--rot); color: var(--rot); }
.anrede-btn.active { background: var(--rot); border-color: var(--rot); color: var(--weiss); }

/* Vorname / Name nebeneinander */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--grau-mid);
  background: var(--grau);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--rot); background: var(--weiss); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 2rem; }
.form-checkbox input { margin-top: 0.25rem; accent-color: var(--rot); flex-shrink: 0; }
.form-checkbox label { font-size: 0.82rem; line-height: 1.6; color: var(--grau-muted); }
.form-checkbox a { color: var(--rot); }
.form-success { display: none; background: var(--grau); border-left: 3px solid var(--rot); padding: 1.2rem 1.5rem; font-size: 0.9rem; margin-top: 1rem; }

/* ============================================
   Footer
   ============================================ */

.footer { background: var(--grau); padding: 5rem 4rem 2.5rem; border-top: 1px solid var(--grau-mid); }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--grau-mid); }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.04em; margin-bottom: 1rem; }
.footer-logo span:first-child { color: var(--text); }
.footer-logo span:last-child { color: var(--rot); }
.footer-tagline { font-size: 0.82rem; color: var(--grau-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-col h5 { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.12em; margin-bottom: 1.2rem; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.82rem; color: var(--grau-muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--rot); }
.footer-bottom { max-width: 1400px; margin: 2rem auto 0; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.78rem; color: var(--grau-muted); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.78rem; color: var(--grau-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--rot); }

/* ============================================
   Cookie Banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--text);
  color: var(--weiss);
  padding: 1.5rem 4rem;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 3px solid var(--rot);
}
.cookie-banner.show { display: flex; }
.cookie-text { font-size: 0.85rem; line-height: 1.6; flex: 1; }
.cookie-text a { color: var(--rot); }
.cookie-buttons { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie-btn {
  padding: 0.7rem 1.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: none;
}
.cookie-btn-accept { background: var(--rot); color: var(--weiss); }
.cookie-btn-accept:hover { background: var(--rot-dark); }
.cookie-btn-decline { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2); }
.cookie-btn-decline:hover { border-color: rgba(255,255,255,0.5); color: var(--weiss); }

/* ============================================
   Referenzen Page
   ============================================ */

.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--grau-mid); margin-top: 3rem; }
.ref-card { padding: 2.5rem; border-right: 1px solid var(--grau-mid); border-bottom: 1px solid var(--grau-mid); transition: background 0.3s; position: relative; overflow: hidden; }
.ref-card:hover { background: var(--text); }
.ref-card:hover .ref-client { color: rgba(255,255,255,0.15); }
.ref-card:hover .ref-title { color: var(--weiss); }
.ref-card:hover .ref-text { color: rgba(255,255,255,0.6); }
.ref-card:hover .ref-tag { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.5); }
.ref-client { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--grau-mid); letter-spacing: 0.04em; transition: color 0.3s; }
.ref-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.06em; margin: 0.5rem 0 1rem; transition: color 0.3s; }
.ref-text { font-size: 0.87rem; line-height: 1.8; color: var(--text); margin-bottom: 1.5rem; transition: color 0.3s; }
.ref-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ref-tag { border: 1px solid var(--grau-mid); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.3rem 0.7rem; color: var(--grau-muted); transition: all 0.3s; }
.ref-image { position: relative; margin-bottom: 1.5rem; background: var(--grau-mid); min-height: 200px; }
.ref-image img { width: 100%; height: 200px; object-fit: cover; filter: grayscale(100%); display: block; }
.ref-image::after { content: ''; position: absolute; inset: 0; background: rgba(208,2,27,0.15); pointer-events: none; }

/* ============================================
   Legal Pages
   ============================================ */

.legal-content { max-width: 800px; }
.legal-content h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 0.06em; margin: 3rem 0 1rem; color: var(--text); }
.legal-content h3 { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 1rem; margin: 2rem 0 0.5rem; letter-spacing: 0; }
.legal-content p { font-size: 0.9rem; line-height: 1.85; margin-bottom: 1rem; color: var(--text); }
.legal-content a { color: var(--rot); }
.legal-content ul { list-style: disc; padding-left: 1.5rem; }
.legal-content ul li { font-size: 0.9rem; line-height: 1.85; margin-bottom: 0.4rem; }

/* ============================================
   Utilities
   ============================================ */

.bg-weiss { background: var(--weiss); }
.bg-grau { background: var(--grau); }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ============================================
   Responsive – Tablet (≤1024px)
   ============================================ */

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 0 2rem; }

  section { padding: 5rem 2rem; }
  .claim-band { padding: 1.4rem 2rem; flex-wrap: wrap; gap: 0.5rem; }
  .footer { padding: 4rem 2rem 2rem; }
  .cookie-banner { padding: 1.5rem 2rem; }
  .page-hero-content { padding: 3rem 2rem; }
  .logos-section { padding: 3.5rem 2rem; }
  .rheinisch-section { padding: 5rem 2rem; }
  .cta-section { padding: 5rem 2rem; }

  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro-image-wrap { order: -1; }
  .intro-image-wrap img { height: 380px; }

  .leistungen-grid { grid-template-columns: 1fr; }
  .leistung-card { border-right: none; border-bottom: 1px solid var(--grau-mid); }
  .leistung-card:last-child { border-bottom: none; }

  .split-grid.img-left, .split-grid.img-right { grid-template-columns: 1fr; gap: 3rem; }
  .split-image img { height: 360px; }
  .split-image.order-2 { order: -1; }

  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card:nth-child(2) { border-right: none; }
  .team-card:nth-child(3) { border-top: 1px solid var(--grau-mid); }
  .team-card:nth-child(4) { border-top: 1px solid var(--grau-mid); border-right: none; }

  .rheinisch-inner { grid-template-columns: 1fr; gap: 3rem; }

  .ref-grid { grid-template-columns: 1fr 1fr; }
  .ref-card:nth-child(even) { border-right: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .mega-menu { display: none !important; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Responsive – Mobile (≤640px)
   ============================================ */

@media (max-width: 640px) {
  section { padding: 3.5rem 1.2rem; }
  .claim-band { padding: 1.2rem 1.2rem; flex-direction: column; align-items: flex-start; }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1.5rem 1.2rem; }
  .logos-section { padding: 3rem 1.2rem; }
  .rheinisch-section { padding: 4rem 1.2rem; }
  .cta-section { padding: 4rem 1.2rem; }
  .footer { padding: 3rem 1.2rem 2rem; }

  .hero-title { font-size: clamp(3rem, 13vw, 5rem); }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .split-image img { height: 240px; }
  .intro-image-wrap img { height: 240px; }

  .team-grid { grid-template-columns: 1fr; }
  .team-solo { max-width: 100% !important; }
  .team-card { border-right: none; border-bottom: 1px solid var(--grau-mid); }
  .team-card:nth-child(n) { border-right: none; border-top: none; }
  .team-photo img { height: 240px; }

  .ref-grid { grid-template-columns: 1fr; }
  .ref-card { border-right: none; }

  .stats-grid-4 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .grid-2col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .page-hero { height: 320px; }
  .page-hero-content { padding: 2rem 1.2rem; }

  .logos-grid { gap: 1.5rem 2.5rem; }
  .mega-inner { grid-template-columns: 1fr; }
}
