/* =========================================
   K&G CORPORATE DESIGN - WEB
   Based on Business Card Identity (Final)
   ========================================= */

/* SCHRIFTART IMPORTIEREN (Roboto) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  /* Farben der Visitenkarte */
  --blue-primary: #255ddf;
  --blue-dark: #14357e;
  --brand-gradient: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);

  /* Web Layout Farben */
  --bg-body: #f4f6f9;    /* Helles, technisches Grau */
  --bg-panel: #ffffff;
  --text-main: #1d253a;
  --text-muted: #5b6273;
  --border-light: #eef1f6;

  /* UI Elemente */
  --radius: 8px;
  --shadow-soft: 0 10px 40px rgba(20, 53, 126, 0.08);
  --shadow-card: 0 4px 12px rgba(0,0,0,0.05);

  --container-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.site {
  background: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* LINKS ALLGEMEIN (Im Content Bereich) */
a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
a:hover { color: var(--blue-primary); }

/* CONTAINER */
.container {
  width: min(var(--container-width), calc(100% - 20px));
  margin: 0 auto;
}

/* =========================================
   HEADER (Wie Visitenkarte Vorderseite)
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-gradient);
  box-shadow: 0 4px 20px rgba(20, 53, 126, 0.25);
  color: white;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* LOGO BEREICH */
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff !important; /* WICHTIG: Erzwingt Weiß auch bei Hover */
  text-decoration: none;
  transition: opacity 0.2s;
}

.brand:hover {
    opacity: 0.85; /* Nur leichter Effekt statt Farbwechsel */
    color: #fff !important;
}

/* Das Logo-Icon */
.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
}

.brand__mark img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1); /* Weißes Logo */
}

/* Vertikale Trennlinie (Wie auf der Karte) */
.brand__divider {
  width: 1px;
  height: 35px;
  background: rgba(255,255,255,0.3);
}

/* Text Block */
.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand__name {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.brand__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  font-weight: 400;
}

/* NAVIGATION */
.nav { display: flex; align-items: center; gap: 5px; }

.nav__link {
  color: rgba(255,255,255,0.85) !important; /* Weiß erzwingen */
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav__link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.15); /* Heller Hintergrund bei Hover */
  text-decoration: none;
}

.nav__link.active {
  background: rgba(255,255,255,0.25);
  color: #fff !important;
  font-weight: 700;
}

/* BURGER MENU (Mobile) */
.burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
}
.burger__line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

/* =========================================
   MAIN CONTENT & TYPOGRAFIE
   ========================================= */
.main {
  flex: 1;
  padding: 40px 0;
}

/* Karten-Look für Inhaltspanels */
.panel, .card {
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);

  /* HIER GEÄNDERT: */
  /* Vorher: padding: 40px; */
  padding: 25px 30px; /* Oben/Unten 25px, Links/Rechts 30px */

  margin-bottom: 30px;
}

/* WICHTIGER FIX: */
/* Entfernt den oberen Abstand beim allerersten Element in der Box (z.B. der Überschrift) */
.panel > :first-child,
.card > :first-child {
    margin-top: 0;
}

/* Entfernt den unteren Abstand beim letzten Element (z.B. Text oder Liste) */
.panel > :last-child,
.card > :last-child {
    margin-bottom: 0;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-top: 0;
  margin-bottom: 20px; /* Mehr Abstand zum Text */
  letter-spacing: -0.5px;
}

h2 {
  font-size: 26px;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--blue-dark);
}

p {
  margin-bottom: 25px; /* Luft zwischen Absätzen */
  font-size: 16px;
  color: var(--text-muted);
}

/* Listen Styling (Mehr Luft) */
ul {
  padding-left: 20px;
  margin-bottom: 25px;
}

ul li {
  margin-bottom: 10px; /* Abstand zwischen Listenpunkten */
  color: var(--text-main);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.2s;
  text-align: center;
  margin-bottom: 30px;
}

.btn + .btn {
    margin-left: 15px;
}

.btn--primary {
  background: var(--brand-gradient);
  color: white !important;
  box-shadow: 0 4px 15px rgba(37, 93, 223, 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 93, 223, 0.4);
}

.btn--ghost {
  background: transparent;
  border: 1px solid #d1d9e6;
  color: var(--text-muted) !important;
}
.btn--ghost:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary) !important;
  background: rgba(37, 93, 223, 0.05);
}

/* =========================================
   FOOTER (Wie Visitenkarte Rückseite)
   ========================================= */
.footer {
  background: var(--brand-gradient);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

/* Footer Links: Immer weiß */
.footer a {
    color: white !important;
    text-decoration: none;
    opacity: 0.9;
}
.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 30px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.footer__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 15px;
  font-weight: 500;
}

.footer__brand {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1;
}

.footer__text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.footer__bottom {
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
}

/* Form Styles */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
}
.field input:focus, .field textarea:focus {
  border-color: var(--blue-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 93, 223, 0.1);
}

/* Cookie Banner */
.cookie {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  z-index: 999; display: none; justify-content: center;
}
.cookie.show { display: flex; }
.cookie__box {
  background: white; padding: 25px; border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  max-width: 500px; width: 100%;
  border-left: 5px solid var(--blue-primary);
}
.cookie__actions { margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header__inner { padding: 10px 0; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--blue-dark);
    padding: 20px; display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  .nav.open { display: flex; }
  .nav__link { width: 100%; text-align: center; padding: 12px; }

  .burger { display: block; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .brand__divider { display: none; }
  .brand { gap: 10px; }

  /* Buttons untereinander auf Mobile */
  .btn { display: block; width: 100%; margin-bottom: 10px; }
  .btn + .btn { margin-left: 0; }

  .panel { padding: 20px; }
}











/* =========================================
   CONTACT PAGE LAYOUT (Map Left / Form Right)
   ========================================= */

/* Der Hauptcontainer für Kontakt */
.contact-layout {
  display: flex;
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden; /* Wichtig, damit die Map nicht über die runden Ecken ragt */
  min-height: 600px; /* Mindesthöhe, damit es gut aussieht */
  margin-bottom: 40px;
}

/* Linke Seite: Google Maps */
.contact-map {
  flex: 1; /* Nimmt den gesamten restlichen Platz ein */
  position: relative;
  background: #eee;
  min-height: 300px; /* Fallback */
}

/* Zwingt die Map, den ganzen Bereich zu füllen */
.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Rechte Seite: Formular Panel */
.contact-panel {
  width: 500px; /* Feste Breite für das Formular */
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Zentriert Inhalte vertikal */
  background: white;
  border-left: 1px solid var(--border-light);
}

/* RESPONSIVE: Auf Handys untereinander */
@media (max-width: 900px) {
  .contact-layout {
    flex-direction: column;
  }

  .contact-map {
    height: 350px; /* Feste Höhe auf dem Handy */
    flex: none; /* Deaktiviert flex-grow */
  }

  .contact-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding: 30px 20px;
  }
}

/* =========================================
   PRODUKT BILDER GRID
   ========================================= */

.product-grid {
  display: grid;
  /* 3 Spalten, die sich gleichmäßig verteilen */
  grid-template-columns: repeat(3, 1fr);
  gap: 30px; /* Abstand zwischen den Bildern */
  margin-top: 40px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden; /* Wichtig, damit das Bild die runden Ecken nicht überragt */
  height: 250px; /* Feste Höhe der Karten */
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-5px); /* Leichter Schwebe-Effekt */
  box-shadow: 0 15px 30px rgba(20, 53, 126, 0.15);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt den Bereich komplett aus, ohne Verzerrung */
  display: block;
}

/* Responsive Anpassung */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablets */
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr; /* 1 Spalte auf Handys */
    height: auto;
  }
}













/* =========================================
   HERO / SPLIT LAYOUT (Startseite)
   ========================================= */

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Text etwas breiter als Bild */
  gap: 40px;
  align-items: center; /* Vertikal zentrieren */
}

.hero-text {
  padding-right: 10px;
}

.hero-image-container {
  position: relative;
  height: 100%;
  min-height: 300px; /* Mindesthöhe für das Bild */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt den Bereich perfekt aus */
  display: block;
}

/* Feature Liste mit Icons (optionaler Styling-Tipp) */
.check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.check-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--blue-dark);
}
.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--blue-primary);
  font-weight: bold;
}

/* Responsive: Untereinander auf Mobile */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-text { padding-right: 0; }
  .hero-image-container {
    min-height: 250px;
    order: -1; /* Bild auf Handy ZUERST anzeigen? Wenn nicht gewünscht, Zeile löschen */
  }
}


/* =========================================
   TEXT SPALTEN (Für Produktseite oben)
   ========================================= */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Zwei gleich große Spalten */
  gap: 30px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr; /* Untereinander auf Handy */
  }
}


.main > .container > :last-child {
  margin-bottom: 0;
}

