:root {
  --primary: #1b7bd8;   /* Blau wie das Logo */
  --primary-soft: #e7f3ff;
  --accent: #00c0ff;
  --bg: #f5f7fb;
  --text: #111827;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #dde4f0;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.12);
  --transition-fast: 0.18s ease-out;
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

/* NAVBAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 228, 240, 0.8);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(27, 123, 216, 0.25);
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #8dd0ff 45%, #0c4a84 80%);
}

.nav-logo-circle img {
  width: 135%;
}

.nav-title-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #0b3a6f;
}

.nav-title-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.86rem;
  color: #374151;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Burger-Menu */

.burger {
  display: none; /* wird auf Mobile eingeblendet */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(27, 123, 216, 0.4);
  background: #eff4ff;
  cursor: pointer;
  padding: 4px 7px;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.burger span {
  height: 2.5px;
  border-radius: 999px;
  background: var(--primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.burger:hover {
  background: #e1edff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* PAGE WRAPPER */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

/* HERO MIT VIDEO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 24px;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 520px;
}

.hero-list {
  list-style: none;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 16px;
}

.hero-list li {
  margin-bottom: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  background: #eef2ff;
  color: #0b3a6f;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-outline:hover {
  background: #e2ecff;
  border-color: var(--primary);
}

.hero-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Video-Bereich */

.video-frame {
  position: relative;
  width: 100%;
  max-width: 900px; /* optional Begrenzung */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #000;
}

.video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECTION HEADERS */

section {
  margin-top: 30px;
}

.section-header {
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

/* LEISTUNGEN */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 14px 14px 16px;
  font-size: 0.9rem;
  color: #374151;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.15);
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

/* WARUM */

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px 16px 14px;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.15);
}

.why-card ul {
  padding-left: 16px;
}

.why-card li {
  margin-bottom: 6px;
  color: #374151;
}

/* KONTAKT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.contact-info p {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 8px;
}

.contact-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 14px 14px 16px;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.15);
}

form {
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

label {
  display: block;
  font-size: 0.82rem;
  color: #4b5563;
  margin-bottom: 3px;
}

input,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f9fbff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
  background: #ffffff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* FOOTER */

footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 0.9rem;
  margin-top: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-credit {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .page {
    padding-inline: 14px;
  }

  .hero {
    padding: 18px 16px 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .form-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Desktop-Navi ausblenden, Burger nutzen */
  .nav-links {
    position: absolute;
    top: 56px;
    right: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: var(--white);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
    border: 1px solid var(--border);
    min-width: 160px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .burger {
    display: flex;
  }
}

/* Cookie Banner – kompakt & schwebend */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 900px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  padding: 10px 14px;
  z-index: 9999;
  display: none; /* wird per JS eingeblendet */
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.4;
}

/* Button im Banner */
#cookie-accept {
  flex-shrink: 0;
  padding: 7px 18px;
  font-size: 0.9rem;
  border-radius: 999px;
}

/* Mobile: noch kompakter & Button auf volle Breite */
@media (max-width: 640px) {
  .cookie-banner {
    bottom: 10px;
    padding: 10px 12px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  #cookie-accept {
    width: 100%;
    justify-content: center;
  }
}

/* Galerie */
#galerie h2 {
  text-align: center;
  margin-bottom: 10px;
}

#galerie p {
  text-align: center;
  margin-bottom: 30px;
  color: #4b5563;
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* WhatsApp Button – Icon selbst ist der Button */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;      /* kein extra blauer Kreis mehr */
  z-index: 9999;
}

/* das Icon ist der runde Button */
.whatsapp-float img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* nur mobil anzeigen */
@media (min-width: 768px) {
  .whatsapp-float {
    display: none;
  }
}

/* WHY SECTION PREMIUM LOOK */
.why-section {
  margin-top: 40px;
}

.why-header {
  text-align: center;
  margin-bottom: 25px;
}

.why-header h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.why-sub {
  font-size: 1rem;
  color: #4b5563;
}

.why-textblock {
  max-width: 800px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.why-textblock h3 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin: 35px 0;
}

.why-item {
  text-align: center;
  padding: 18px 12px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.why-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.why-item p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.why-final {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.why-final h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}


.video-container {
  width: 100%;
  max-width: 900px;      /* Rahmenbreite */
  margin: 0 auto;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  aspect-ratio: 16 / 9;  /* Der Rahmen selbst bleibt immer im richtigen Format */
  background: #000;       /* falls Video kurz lädt */
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* 🔥 Der wichtigste Punkt */
  display: block;
}

/* Allgemeine Section-Optik (falls noch nicht vorhanden oder schwächer) */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 0.98rem;
  color: #4b5563;
}

/* Karten / Textboxen für Über uns & Karriere */
.card-block {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px 16px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.card-block h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card-block p {
  margin: 6px 0 4px;
  color: #374151;
  font-size: 0.97rem;
}

/* Grid für Karriere-Kacheln (zwei Spalten auf Desktop, eine auf Handy) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 8px 0 18px;
}

/* Listen-Stil in Karten / Textblöcken */
.bullet-list {
  margin: 6px 0 6px 18px;
  padding-left: 0;
  list-style: disc;
}

.bullet-list li {
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: #374151;
}

/* Etwas mehr Luft unter den großen Textbereichen */
#ueber-uns .card-block:last-of-type,
#karriere .card-block:last-of-type {
  margin-bottom: 24px;
}

/* Kleine Optimierung für den Hero-Text, damit alles zusammen passt */
.hero-sub {
  margin-bottom: 10px;
  color: #4b5563;
}

.hero-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 14px;
}

.hero-list li {
  font-size: 0.95rem;
  color: #374151;
}

/* Kontaktkarte (falls noch nicht hübsch genug) */
.contact-form.card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.clarezza-blue {
  color: #1d7fe2; /* Ein schönes sauberes Premium-Blau */
  font-weight: 600; 
}

/* Warum-Bereich Icons */
.why-icons-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.why-icons-list li {
  display: flex;
  align-items: center;
  gap: 8px;                 /* Abstand Icon – Text */
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #374151;
}

.why-icons-list li img {
  width: 22px;              /* kleine dezente Icons */
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;             /* wirkt edler */
}

.section-divider {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 1px;
  margin: 40px auto 30px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(29, 127, 226, 0.35),
    transparent
  );
  border-radius: 50px;
  overflow: visible;
}

/* ✨ Blaues Gradient-Overlay */
.section-divider::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 35px;
  background: radial-gradient(
    circle,
    rgba(29, 127, 226, 0.20) 0%,
    rgba(29, 127, 226, 0) 70%
  );
  pointer-events: none;
}

.made-line {
  display: inline-flex;      /* oder display:flex; */
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.made-line svg {
  display: block;
}

.heart-icon svg {
  transform: translateY(1px); /* optional */
}