/* ═══════════════════════════════════════════════════
   MODULHAUS-ZENTRUM BERLIN – Design System
   Modern, hell, premium „Wohn-Gefühl"
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  /* Farben */
  --color-primary: #2d5016;
  --color-primary-light: #3d6b1e;
  --color-primary-dark: #1e3a0e;
  --color-secondary: #c5883e;
  --color-secondary-light: #d9a35e;
  --color-accent: #d4713b;
  --color-accent-hover: #c0622f;
  --color-bg: #fafaf8;
  --color-bg-alt: #f0ede8;
  --color-bg-dark: #1a1a1a;
  --color-text: #1a1a1a;
  --color-text-light: #5a5a5a;
  --color-text-inverse: #fafaf8;
  --color-border: #e0ddd8;
  --color-success: #2d7a3a;
  --color-error: #c0392b;
  --color-white: #ffffff;

  /* Typografie */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --fs-hero: clamp(2rem, 5vw, 3.5rem);
  --fs-h1: clamp(1.75rem, 4vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.2rem, 2.5vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: 0.875rem;
  --fs-tiny: 0.8rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-section: clamp(4rem, 8vw, 7rem);

  /* Layout */
  --max-width: 1280px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(45, 80, 22, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Header */
  --header-height: 80px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

/* ── Barrierefreiheit ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: var(--color-text-inverse);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-section) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--color-text-inverse);
}

h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
}
h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}
h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-intro {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--color-text-light);
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(212, 113, 59, 0.3);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 113, 59, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: var(--fs-small);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ═══════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--color-primary);
  z-index: 1001;
}

.logo-icon {
  font-size: 2rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.logo-sub {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link.nav-cta {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.6rem 1.4rem;
  border-radius: var(--border-radius);
}

.nav-link.nav-cta::after {
  display: none;
}

.nav-link.nav-cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(
    135deg,
    var(--color-bg) 0%,
    var(--color-bg-alt) 100%
  );
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(45, 80, 22, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(197, 136, 62, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: var(--space-md);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════
   FEATURES / USP LIST
   ═══════════════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary-light);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: var(--fs-h3);
}

.feature-card p {
  color: var(--color-text-light);
}

/* ═══════════════════════════════════════════════════
   MODEL CARDS
   ═══════════════════════════════════════════════════ */

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.model-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.model-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.model-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.model-card:hover .model-card-image img {
  transform: scale(1.05);
}

.model-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.model-card-body {
  padding: var(--space-md);
}

.model-card-body h3 {
  margin-bottom: var(--space-xs);
}

.model-card-subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
}

.model-card-body p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  font-size: var(--fs-small);
}

.model-card-specs {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.model-spec {
  font-size: var(--fs-tiny);
  color: var(--color-text-light);
}

.model-spec strong {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════
   SPLIT SECTION (B2C / B2B)
   ═══════════════════════════════════════════════════ */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.split-card {
  position: relative;
  padding: var(--space-xl);
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.split-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

.split-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.split-card:hover .split-card-bg {
  transform: scale(1.05);
}

.split-card-content {
  position: relative;
  z-index: 2;
  color: var(--color-text-inverse);
}

.split-card-content h3 {
  color: var(--color-text-inverse);
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.split-card-content p {
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════
   LOCATION / MAP SECTION
   ═══════════════════════════════════════════════════ */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.location-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius-sm);
  font-size: 1.2rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-group label .required {
  color: var(--color-error);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-white);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-control::placeholder {
  color: #aaa;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Radio & Checkbox */
.form-radio-group,
.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.form-radio,
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
}

.form-radio input[type="radio"],
.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-consent {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

.form-consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Form Messages */
.form-message {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-md);
  font-size: var(--fs-small);
}

.form-message-error {
  background: #fdf0ee;
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.form-message-success {
  background: #eef7ef;
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

/* ═══════════════════════════════════════════════════
   CONTENT PAGES (Über uns, Full-Service, etc.)
   ═══════════════════════════════════════════════════ */

.page-hero {
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  background: linear-gradient(
    135deg,
    var(--color-bg) 0%,
    var(--color-bg-alt) 100%
  );
}

.page-hero h1 {
  max-width: 800px;
}

.page-hero .section-intro {
  max-width: 650px;
}

.content-section {
  padding: var(--space-section) 0;
}

.content-block {
  max-width: 800px;
}

.content-block p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.content-block h2 {
  margin-top: var(--space-xl);
}

.content-block ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.content-block ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

.content-block ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   MODEL DETAIL PAGES
   ═══════════════════════════════════════════════════ */

.model-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl) 0;
  padding-top: calc(var(--header-height) + var(--space-xl));
  background-size: cover;
  background-position: center;
}

.model-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}

.model-hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-text-inverse);
}

.model-hero-content h1 {
  color: var(--color-text-inverse);
}

.model-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.model-specs-list {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

.spec-value {
  font-weight: 600;
  text-align: right;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-col h3 {
  color: var(--color-text-inverse);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.footer-col address {
  font-style: normal;
}

.footer-col p,
.footer-col address p {
  color: rgba(250, 250, 248, 0.7);
  margin-bottom: var(--space-xs);
  font-size: var(--fs-small);
}

.footer-col a {
  color: rgba(250, 250, 248, 0.7);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-nav li {
  margin-bottom: var(--space-xs);
}

.footer-nav a {
  font-size: var(--fs-small);
}

.footer-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-accent) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-small);
  color: rgba(250, 250, 248, 0.5);
}

/* ═══════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  border-top: 3px solid var(--color-primary);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.cookie-text h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.cookie-text p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   DANKE PAGE
   ═══════════════════════════════════════════════════ */

.danke-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}

.danke-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════ */

.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

/* ═══════════════════════════════════════════════════
   PLACEHOLDER IMAGES
   ═══════════════════════════════════════════════════ */

.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #e5e2dc 100%);
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  text-align: center;
  padding: var(--space-md);
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for children */
.stagger-children .animate-on-scroll:nth-child(1) {
  transition-delay: 0ms;
}
.stagger-children .animate-on-scroll:nth-child(2) {
  transition-delay: 100ms;
}
.stagger-children .animate-on-scroll:nth-child(3) {
  transition-delay: 200ms;
}
.stagger-children .animate-on-scroll:nth-child(4) {
  transition-delay: 300ms;
}

/* ═══════════════════════════════════════════════════
   VARIANT SELECTOR TABS
   ═══════════════════════════════════════════════════ */

.variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-sm);
}

.variant-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-text-light);
  min-width: 120px;
  text-align: center;
}

.variant-tab:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  background: rgba(45, 80, 22, 0.04);
}

.variant-tab.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(45, 80, 22, 0.08);
  box-shadow: 0 2px 8px rgba(45, 80, 22, 0.15);
}

.variant-tab-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.variant-tab-size {
  font-size: var(--fs-tiny);
  font-weight: 400;
  color: var(--color-text-light);
  margin-top: 2px;
}

.variant-tab.active .variant-tab-size {
  color: var(--color-primary-light);
}

/* Variant Panel */
.variant-panel {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.variant-panel.active {
  display: block;
}

/* ═══════════════════════════════════════════════════
   IMAGE GALLERY
   ═══════════════════════════════════════════════════ */

.variant-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.gallery-thumb:hover {
  border-color: var(--color-primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-thumb:hover img {
  transform: scale(1.08);
}

.gallery-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  text-align: center;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  text-align: center;
  z-index: 3;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-image {
    max-width: 600px;
  }

  .features-grid,
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-detail-grid {
    grid-template-columns: 1fr;
  }

  .model-specs-list {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 65px;
  }

  /* Mobile Navigation */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 1000;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .nav-link {
    font-size: 1.2rem;
    padding: var(--space-sm) var(--space-md);
  }

  /* Hamburger Animation */
  .nav-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Grids */
  .features-grid,
  .models-grid,
  .split-grid,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    text-align: center;
  }

  .split-card {
    min-height: 280px;
  }

  .variant-tabs {
    gap: var(--space-xs);
  }

  .variant-tab {
    min-width: 90px;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-tiny);
  }

  .variant-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
}
