/* =====================================================
   BRANDING & DESIGN SYSTEM
===================================================== */

:root {
  --color-red: #c40000;
  --color-dark: #2a2a2a;
  --color-gray: #777;
  --color-light: #f2f2f2;
  --color-white: #ffffff;

  --font-main: Arial, Helvetica, sans-serif;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;

  --max-width: 1200px;
}

/* =====================================================
   RESET & BASE
===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
}

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

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

/* =====================================================
   HEADER & NAVIGATION
===================================================== */

header {
  height: 80px;
  background: #fff;
  border-bottom: 2px solid var(--color-red);
  padding: var(--space-s) var(--space-m);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  max-height: 48px;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  font-weight: bold;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
}

/* ==========================
   LANGUAGE SWITCH
========================== */

.lang-switch button {
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  padding: 0.3rem 0.6rem;
  margin-left: 0.3rem;
  cursor: pointer;
}

.lang-switch button:hover {
  opacity: 0.9;
}

/* =====================================================
   HERO
===================================================== */

.hero {
  position: relative;
  padding: var(--space-l) var(--space-m);
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* =====================================================
   CONTENT SECTIONS
===================================================== */

section {
  max-width: var(--max-width);
  margin: auto;
  padding: var(--space-l) var(--space-m);
}

section:nth-of-type(even) {
  background: var(--color-light);
}

h1, h2, h3 {
  color: var(--color-red);
  margin-bottom: var(--space-s);
}

.section-intro {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
  color: #555;
}

/* =====================================================
   GLOBAL CARD SYSTEM (EINHEITLICH)
===================================================== */

.card,
.service-card,
.process-step,
.product-image-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card:hover,
.service-card:hover,
.process-step:hover,
.product-image-card:hover {
  border-color: var(--color-red);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Akzentlinie */
.card::before,
.service-card::before,
.process-step::before,
.product-image-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--color-red);
  transition: height 0.3s ease;
}

.card:hover::before,
.service-card:hover::before,
.process-step:hover::before,
.product-image-card:hover::before {
  height: 100%;
}

/* Bilder – ruhig & technisch */
.card img,
.service-card img,
.process-step img,
.product-image-card img {
  
  transition: filter 0.3s ease;
  margin-bottom: 1rem;
}

.card:hover img,
.service-card:hover img,
.process-step:hover img,
.product-image-card:hover img {
  transform: scale(1.03);
}

/* =====================================================
   GRID SYSTEME
===================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* =====================================================
   KPI BAR
===================================================== */

.kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
  padding-top: 2rem;
}

.kpi {
  text-align: center;
}

.kpi strong {
  font-size: 2rem;
  color: var(--color-red);
}

/* =========================
   AKTUELLES / NEWS BLOCK
========================= */

.news-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  margin: 4rem 0;
  padding: 2.5rem;
  background: #f4f4f4;
  border-left: 5px solid #c00000; /* CI-Rot */
}

/* Bild */
.news-image img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.4s ease;
}

/* Hover Bild */
.news-block:hover .news-image img {
  transform: scale(1.03);
}

/* Inhalt */
.news-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Label */
.news-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c00000;
  font-weight: 600;
}

/* Headline */
.news-content h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

/* Text */
.news-content p {
  color: #555;
  line-height: 1.6;
  max-width: 600px;
}


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

.cta-box {
  text-align: center;
  padding: 3rem 2rem;
  background: #f2f2f2;
  color: #2a2a2a;
  border-top: 1px solid #e0e0e0;
}

.cta-box p {
  color: #000000;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--color-red);
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background: #a80000;
  transform: translateY(-2px);
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  background: #0f1720;
  color: #cfd6dc;
  border-top: 4px solid var(--color-red);
}

.footer-grid {
  max-width: var(--max-width);
  margin: auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

footer h3 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

footer a:hover {
  color: var(--color-red);
}

.footer-bottom {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #9aa3aa;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
  nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    display: none;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  nav.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  section {
    padding: var(--space-m);
  }

  .product-image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   CONTACT FORM
================================ */

.contact-section {
  max-width: 800px;
  margin: auto;
  padding: 4rem 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.4rem;
  padding: 0.7rem;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c40000;
}

/* Honeypot */
.contact-form input[name="company"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Checkbox und Datenschutztext */
.contact-form .checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #555;
}

.contact-form .checkbox input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0.2rem 0.3rem 0 0;
  padding: 0;
  flex: 0 0 auto;
}

.contact-form .checkbox span {
  flex: 1;
  min-width: 250px;
}

.contact-form .checkbox a {
  color: #a10000;
  text-decoration: underline;
}

.contact-form .checkbox a:hover {
  color: #c40000;
}

/* Statusmeldungen */
.form-status {
  display: none;
  padding: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 4px;
}

.form-status.success {
  background: #e6f4ea;
  color: #1e7f43;
  border: 1px solid #b7dfc2;
}

.form-status.error {
  background: #fcebea;
  color: #a10000;
  border: 1px solid #efc2bf;
}

/* Mobilgeräte */
@media (max-width: 600px) {
  .contact-section {
    padding: 2.5rem 1rem;
  }

  .contact-form .checkbox span {
    min-width: calc(100% - 30px);
  }
}


/* =====================================================
   PRODUCT GROUP – HEADLINE, INTRO & DETAILS
===================================================== */

/* Gesamter Produktbereich */
.product-group {
  position: relative;
}

/* Hauptüberschrift der Produktgruppe */
.product-group > h2 {
  position: relative;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-red);
}

/* Technische Linie unter der Überschrift */
.product-group > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 3px;
  background: var(--color-red);
}

/* Einleitungstext */
.product-group .section-intro {
  max-width: 850px;
  margin: 0 0 3rem;
  padding-left: 1.25rem;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  border-left: 3px solid var(--color-red);
}

/* =====================================================
   PRODUCT DETAILS
===================================================== */

.product-details {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 2rem;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  align-items: stretch;
}

/* Gemeinsame Gestaltung */
.product-text,
.product-meta {
  position: relative;
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid #dedede;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Rote Akzentlinie */
.product-text::before,
.product-meta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-red);
}

/* Überschrift im Detailbereich */
.product-text h3 {
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--color-dark);
}

/* Eigenschaftsliste */
.product-text ul {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.product-text li {
  position: relative;
  padding-left: 1.75rem;
  color: #4f4f4f;
  line-height: 1.65;
}

/* Technischer Listenpunkt */
.product-text li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--color-red);
  transform: rotate(45deg);
}

/* =====================================================
   PRODUCT META
===================================================== */

.product-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f4f5f6;
}

/* Einzelne Metazeile */
.product-meta p {
  position: relative;
  margin: 0;
  padding: 1rem 0 1rem 1.25rem;
  color: #444;
  line-height: 1.55;
  border-bottom: 1px solid #d8d8d8;
}

/* Letzte Zeile ohne Trennlinie */
.product-meta p:last-child {
  border-bottom: none;
}

/* Kleiner roter Marker */
.product-meta p::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--color-red);
}

/* Der Text vor dem Doppelpunkt wird optisch hervorgehoben,
   sofern du ihn im HTML mit <strong> versiehst */
.product-meta strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =====================================================
   PRODUCT IMAGE GRID – ERGÄNZUNG
===================================================== */

.product-image-grid {
  margin-top: 1rem;
}

.product-image-card {
  overflow: hidden;
}

.product-image-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  margin-bottom: 0;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

/* =====================================================
   RESPONSIVE PRODUCT DETAILS
===================================================== */

@media (max-width: 900px) {
  .product-details {
    grid-template-columns: 1fr;
  }

  .product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1.5rem;
  }

  .product-meta p {
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    border-right: 1px solid #d8d8d8;
    border-bottom: none;
  }

  .product-meta p:last-child {
    border-right: none;
  }

  .product-meta p::before {
    top: 1.2rem;
  }
}

@media (max-width: 650px) {
  .product-group > h2 {
    font-size: 1.75rem;
  }

  .product-group .section-intro {
    padding-left: 1rem;
    font-size: 1rem;
  }

  .product-text,
  .product-meta {
    padding: 1.5rem;
  }

  .product-meta {
    display: flex;
  }

  .product-meta p {
    padding: 1rem 0 1rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid #d8d8d8;
  }

  .product-meta p:last-child {
    border-bottom: none;
  }

  .product-meta p::before {
    top: 1.45rem;
  }
}

