/* ============================================
   STEFFES DACHSYSTEME – Komplettes Stylesheet
   Design System + Landing Page Styles
   ============================================ */

/* --- Lokale Fonts --- */
@font-face { font-family: 'Montserrat'; src: url('Fonts/Montserrat/montserrat-v15-latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('Fonts/Montserrat/montserrat-v15-latin-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('Fonts/Montserrat/montserrat-v15-latin-200.woff2') format('woff2'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('Fonts/Montserrat/montserrat-v15-latin-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('Fonts/Montserrat/montserrat-v15-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('Fonts/Montserrat/montserrat-v15-latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('Fonts/Montserrat/montserrat-v15-latin-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('Fonts/Montserrat/montserrat-v15-latin-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('Fonts/Montserrat/montserrat-v15-latin-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('Fonts/dm-sans-cufonfonts/DMSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('Fonts/dm-sans-cufonfonts/DMSans-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('Fonts/dm-sans-cufonfonts/DMSans-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('Fonts/dm-sans-cufonfonts/DMSans-MediumItalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('Fonts/dm-sans-cufonfonts/DMSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('Fonts/dm-sans-cufonfonts/DMSans-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --brand-color: #e2061b;
  --brand-color-hover: #c00517;
  --brand-color-light: rgba(226, 6, 27, 0.08);

  /* Neutral Colors */
  --body-background: #f5f7fa;
  --body-text: #3c3c3b;
  --headings: #3c3c3b;
  --text-muted: #4a5d69;
  --text-light: #a0aec0;
  --white: #ffffff;
  --borders: #ccd2d4;

  /* Background Colors */
  --bg-dark: #3c3c3b;
  --bg-teal: #7293a0;
  --bg-deep: #034764;
  --bg-light-gray: #f5f7fa;
  --bg-white: #ffffff;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 1.9375rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-brand: 0 4px 16px rgba(226, 6, 27, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;

  /* Section Spacing */
  --section-padding: 6rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--body-background);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 100%;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-color);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--headings);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); line-height: 1.1; }
h3 { font-size: var(--text-2xl); line-height: 1.1; }
h4 { font-size: var(--text-xl); line-height: 1.1; }
h5 { font-size: var(--text-lg); line-height: 1.1; }

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.text-brand { color: var(--brand-color); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: var(--text-sm); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Sections --- */
.section {
  padding: var(--section-padding) 0;
}

.section--light {
  background-color: var(--bg-white);
}

.section--gray {
  background-color: var(--bg-light-gray);
}

.section--dark {
  background-color: var(--bg-dark);
}

.section--teal {
  background-color: var(--bg-teal);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 0.8rem 1.3rem;
  font-size: var(--text-base);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn--primary {
  background-color: var(--bg-dark);
  color: var(--white);
}
.btn--primary:hover {
  background-color: transparent;
  border-color: var(--bg-dark);
  color: var(--bg-dark);
}

.btn--brand {
  background-color: var(--brand-color);
  color: var(--white);
  border-radius: var(--radius-pill);
}
.btn--brand:hover {
  background-color: var(--bg-deep);
  color: var(--white);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--bg-dark);
  color: var(--bg-dark);
}
.btn--outline:hover {
  background-color: var(--bg-dark);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--bg-dark);
}
.btn--white:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--brand-color);
}

.btn--dark {
  background-color: var(--bg-dark);
  color: var(--white);
  border-radius: var(--radius-pill);
}
.btn--dark:hover {
  background-color: rgba(60, 60, 59, 0.85);
  color: var(--white);
}

.btn--outline-white {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: var(--radius-pill);
}
.btn--outline-white:hover {
  background-color: var(--white);
  color: var(--brand-color);
}

.btn--large {
  padding: 1rem 1.75rem;
  font-size: var(--text-md);
}

.btn--small {
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg-white);
  padding: 0.5rem 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  margin: 0 auto;
}

.nav__logo img {
  height: 3rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav__link {
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--brand-color);
}

.nav__cta {
  background-color: var(--brand-color);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.75rem 2rem;
  font-weight: 600;
  margin-left: var(--space-5);
  transition: background-color var(--transition-fast);
}

.nav__cta:hover {
  background-color: var(--bg-deep);
  color: var(--white);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--headings);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-4) 0;
  gap: var(--space-2);
}

.nav__mobile.active {
  display: flex;
}

.nav__mobile-link {
  padding: var(--space-3) var(--space-4);
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--radius-md);
}

.nav__mobile-link:hover {
  background: var(--bg-light-gray);
  color: var(--brand-color);
}

/* --- Hero Split --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  margin-top: 0;
}

.hero-split__content {
  display: flex;
  align-items: center;
  padding: 8rem 4rem 4rem;
  background: var(--bg-white);
}

.hero-split__inner {
  max-width: 560px;
  margin-left: auto;
}

.hero-split__kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-8);
  text-transform: uppercase;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.kicker-line {
  width: 40px;
  height: 3px;
  background: var(--brand-color);
}

.hero-split__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-split__title em {
  font-style: normal;
}

.hero-split__desc {
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.trust-badges {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-badge__icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-color-light);
  border-radius: var(--radius-md);
}

.trust-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--headings);
}

.trust-badge span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.hero-split__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-split__media {
  position: relative;
  overflow: hidden;
}

.hero-split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-in-out;
}

.hero-split__media:hover .hero-split__img {
  transform: scale(1.05);
}

.hero-split__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(60, 60, 59, 0.2) 100%);
}

.hero-split__floating-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.floating-badge__number {
  font-size: var(--text-2xl);
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--brand-color);
}

.floating-badge__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- Badge Bar --- */
/* Issue #13: Kennzahlen vorerst ausgeblendet (Zahlen noch nicht final) */
.badge-bar {
  display: none;
  background: var(--bg-dark);
  padding: var(--space-12) 0;
}

.badge-bar__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
}

.badge-bar__item {
  text-align: center;
}

.badge-bar__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--brand-color);
  line-height: 1;
}

.badge-bar__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
  line-height: 1.4;
}

.badge-bar__divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header__tag {
  display: inline-block;
  background: var(--brand-color-light);
  color: var(--brand-color);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.section-header__tag--light {
  background: rgba(226, 6, 27, 0.15);
}

.section-header__tag--on-brand {
  background: var(--brand-color);
  color: var(--white);
}

.section-header__desc {
  color: var(--text-muted);
  font-size: var(--text-md);
  max-width: 700px;
  margin: 0 auto;
}

.section-header__left {
  max-width: 50%;
}

.section-header:has(.section-header__left) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
}

.section-header__right-text {
  max-width: 400px;
  color: var(--text-muted);
  font-size: var(--text-base);
  text-align: right;
}

/* --- Overview Grid (Komplettsystem) --- */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.overview-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--borders);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.overview-card__body {
  padding: var(--space-8);
}

.overview-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--brand-color-light);
  border-radius: var(--radius-md);
  color: var(--brand-color);
  margin-bottom: var(--space-5);
}

.overview-card__body h4 {
  margin-bottom: var(--space-2);
}

.overview-card__list {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.overview-card__count {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overview-grid .overview-card:nth-child(1) { transition-delay: 0s; }
.overview-grid .overview-card:nth-child(2) { transition-delay: 0.1s; }
.overview-grid .overview-card:nth-child(3) { transition-delay: 0.2s; }

/* --- Product Tabs --- */
.product-tabs__nav {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  border-bottom: 2px solid var(--borders);
  padding-bottom: var(--space-1);
}

.product-tab {
  background: none;
  border: none;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.product-tab::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-color);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.product-tab:hover,
.product-tab.active {
  color: var(--brand-color);
}

.product-tab.active::after {
  transform: scaleX(1);
}

.product-tabs__content {
  display: none;
}

.product-tabs__content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.product-tile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--borders);
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium), transform var(--transition-medium);
}

.product-tile:hover {
  border-color: var(--brand-color);
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
}

.product-tile__img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.product-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-tile:hover .product-tile__img {
  transform: scale(1.06);
}

.product-tile__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--brand-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-tile__badge--teal {
  background: var(--bg-deep);
}

.product-tile__info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.product-tile__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}

.product-tile__header h3 {
  font-size: var(--text-xl);
  color: var(--brand-color);
  margin-bottom: 0;
}

.product-tile__code {
  font-size: var(--text-xs);
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-tile__info > p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex: 1;
}

.product-tile__specs {
  margin: var(--space-4) 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--borders);
  border-bottom: 1px solid var(--borders);
}

.spec {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
}

.spec__label { color: var(--text-muted); }
.spec__value { font-weight: 600; color: var(--headings); }

.product-grid .product-tile:nth-child(1) { transition-delay: 0s; }
.product-grid .product-tile:nth-child(2) { transition-delay: 0.1s; }
.product-grid .product-tile:nth-child(3) { transition-delay: 0.2s; }
.product-grid .product-tile:nth-child(4) { transition-delay: 0.3s; }

/* --- Steps Grid (Vier Schritte) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.step-card {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.step-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  color: var(--brand-color);
  line-height: 1;
  margin-bottom: var(--space-4);
  opacity: 0.15;
}

.step-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.steps-grid .step-card:nth-child(1) { transition-delay: 0s; }
.steps-grid .step-card:nth-child(2) { transition-delay: 0.1s; }
.steps-grid .step-card:nth-child(3) { transition-delay: 0.2s; }
.steps-grid .step-card:nth-child(4) { transition-delay: 0.3s; }

/* --- Tech Grid --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.tech-card {
  display: flex;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--borders);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tech-card__img-wrap {
  width: 40%;
  min-height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.tech-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-card__content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-card__content h4 {
  margin-bottom: var(--space-3);
}

.tech-card__content p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-4);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.gallery-item--large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 200px;
}

.gallery-item--large .gallery-item__img {
  min-height: 420px;
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
}

.gallery-grid .gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-grid .gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-grid .gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-grid .gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-grid .gallery-item:nth-child(5) { transition-delay: 0.25s; }

/* --- Accessory Grid --- */
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

.accessory-card {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--borders);
  transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.accessory-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-color);
  box-shadow: var(--shadow-md);
}

.accessory-card img {
  height: 90px;
  width: auto;
  max-width: 100%;
  margin: 0 auto var(--space-4);
  object-fit: contain;
}

.accessory-card h5 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.accessory-grid .accessory-card:nth-child(1) { transition-delay: 0s; }
.accessory-grid .accessory-card:nth-child(2) { transition-delay: 0.05s; }
.accessory-grid .accessory-card:nth-child(3) { transition-delay: 0.1s; }
.accessory-grid .accessory-card:nth-child(4) { transition-delay: 0.15s; }
.accessory-grid .accessory-card:nth-child(5) { transition-delay: 0.2s; }
.accessory-grid .accessory-card:nth-child(6) { transition-delay: 0.25s; }

/* --- CTA Bar --- */
.cta-bar {
  background:
    linear-gradient(105deg, rgba(20, 20, 20, 0.85), rgba(20, 20, 20, 0.5)),
    url('images/ASTRA-Dachmodule_Ambiente-05.webp') center / cover no-repeat;
}

.cta-bar__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
}

.cta-bar__content {
  flex: 1;
}

.cta-bar__content h2 {
  margin-bottom: var(--space-2);
}

.cta-bar__content em {
  font-style: normal;
}

.cta-bar__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}

.cta-bar__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cta-bar__trust {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-6);
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: 500;
}

.cta-trust-item svg {
  color: var(--brand-color);
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-teal);
  padding: var(--section-padding) 0 var(--space-16);
  color: var(--body-text);
}

.footer__grid {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-8);
  margin-bottom: 2.5rem;
}

.footer__col {
  flex: 1;
}

.footer__col--brand {
  flex: 1.5;
}

.footer__logo {
  height: 3rem;
  margin-bottom: 1rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--headings);
}

.footer__link {
  display: block;
  color: var(--body-text);
  font-size: var(--text-base);
  margin-bottom: 0.625rem;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
  color: var(--body-text);
}

.footer__copyright {
  color: var(--body-text);
  font-size: var(--text-sm);
  opacity: 0.7;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(60, 60, 59, 0.2);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --text-2xl: 1.75rem;
    --section-padding: 4rem;
  }

  .hero-split { grid-template-columns: 1fr; }
  .hero-split__content { padding: 7rem 2rem 3rem; }
  .hero-split__media { height: 50vh; }
  .overview-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-tile { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--large { grid-column: 1 / 3; grid-row: auto; }
  .accessory-grid { grid-template-columns: repeat(3, 1fr); }

  .section-header:has(.section-header__left) {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-header__left { max-width: 100%; }
  .section-header__right-text { text-align: left; }
  .badge-bar__grid { gap: var(--space-6); }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --section-padding: 3rem;
    --container-padding: 1rem;
  }

  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav { padding: 0.5rem 1rem; }

  .hero-split__inner { margin-left: 0; }
  .trust-badges { flex-direction: row; flex-wrap: wrap; gap: var(--space-3); }
  .trust-badge__icon { width: 36px; height: 36px; font-size: 1.125rem; }
  .product-tile { grid-template-columns: 1fr; }
  .product-tile__img-wrap { min-height: 200px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .tech-card { flex-direction: column; }
  .tech-card__img-wrap { width: 100%; min-height: 180px; }
  .tech-card__content h4 { font-size: var(--text-lg); }
  .tech-card__content p { font-size: var(--text-sm); }
  .badge-bar__grid { flex-wrap: wrap; gap: var(--space-6); }
  .badge-bar__divider { display: none; }
  .badge-bar__item { width: 40%; }
  .product-tabs__nav { overflow: visible; flex-wrap: wrap; }
  .product-tab { padding: var(--space-2) var(--space-4); flex: 1 1 auto; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--large { grid-column: auto; }
  .gallery-item--large .gallery-item__img { min-height: 280px; }
  .accessory-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-bar__actions { width: 100%; }
  .cta-bar__actions .btn { flex: 1; text-align: center; }

  .footer__grid { flex-direction: column; gap: var(--space-6); }
}

@media (max-width: 480px) {
  :root {
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --section-padding: 2rem;
  }

  .hero-split__actions { flex-direction: column; }
  .hero-split__actions .btn { width: 100%; text-align: center; }
  .hero-split__actions .btn--large { padding: 0.75rem 1.25rem; font-size: var(--text-base); }
  .steps-grid { grid-template-columns: 1fr; }
  .accessory-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-bar__actions { flex-direction: column; }
}
