/* =============================================
   Reha & Care GmbH — Complete Redesign v2
   KreativFabrik GmbH · 2025
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   DESIGN TOKENS
   ============================================= */

:root {
  /* Colors */
  --color-primary:       #014FA1;
  --color-primary-dark:  #013a78;
  --color-primary-light: #D9EBF9;
  --color-secondary:     #014FA1;
  --color-accent:        #C50304;
  --color-accent-hover:  #a00203;
  --color-accent-warm:   #e8611a;
  --color-white:         #ffffff;
  --color-light:         #D9EBF9;
  --color-bg-light:      #f0f5fb;
  --color-light-2:       #eaf0f7;
  --color-gray:          #7f8c8d;
  --color-text:          #1c2b3a;
  --color-text-light:    #5a6a7a;
  --color-border:        #dde6f0;
  --color-success:       #27ae60;
  --color-footer:        #013a78;

  /* Typography */
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Shadows */
  --shadow-xs:  0 1px 4px rgba(1,79,161,0.06);
  --shadow-sm:  0 2px 12px rgba(1,79,161,0.08);
  --shadow-md:  0 4px 20px rgba(1,79,161,0.12);
  --shadow-lg:  0 8px 36px rgba(1,79,161,0.16);
  --shadow-xl:  0 16px 56px rgba(1,79,161,0.20);

  /* Radii */
  --radius:     8px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-pill:9999px;

  /* Spacing */
  --max-width:      1280px;
  --header-height:  76px;
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  background: var(--color-white);
  font-weight: 400;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-primary); }

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

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Always white header — no transparent hero behavior */
.site-header {
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.site-header .nav-link {
  color: #1a2332;
}
.site-header .logo-name {
  color: #014FA1;
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 0;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(1,79,161,0.25));
  transition: filter 0.2s;
}
.logo:hover .logo-svg {
  filter: drop-shadow(0 4px 10px rgba(1,79,161,0.35));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.logo-tagline {
  font-size: 11px;
  color: var(--color-gray);
  line-height: 1;
  font-weight: 400;
}

/* Logo colors */

/* ---- Main Nav ---- */
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-light);
}
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-light-2);
  font-weight: 600;
}



/* Dropdown */
.has-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.6;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 230px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.22s ease;
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.nav-dropdown a:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

/* ---- Header Actions ---- */
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(231,76,60,0.2);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(231,76,60,0.35);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-secondary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}



.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Hero CTA buttons */
.btn-hero {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(231,76,60,0.35);
}
.btn-hero:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(231,76,60,0.45);
}

.btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.75);
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* =============================================
   HERO — Centered layout (Wix-style)
   ============================================= */

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #e8f3fb 40%, #D9EBF9 100%);
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.hero-location-badge {
  display: inline-block;
  background: rgba(1,79,161,0.08);
  color: #014FA1;
  border: 1px solid rgba(1,79,161,0.2);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #014FA1;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-subtext {
  font-size: clamp(15px, 2vw, 18px);
  color: #555;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.hero-illustrations {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.hero-illus-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 200px;
}
.hero-illus-item img {
  width: 180px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(1,79,161,0.1));
}
.hero-illus-item span {
  font-size: 13px;
  color: #014FA1;
  font-weight: 600;
}
.hero-bottom-cta h2 {
  font-size: clamp(20px, 3vw, 30px);
  color: #014FA1;
  margin-bottom: 28px;
  font-weight: 700;
  line-height: 1.3;
}
.hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-illustrations {
    gap: 20px;
  }
  .hero-illus-item {
    flex: 0 0 140px;
  }
  .hero-illus-item img {
    width: 130px;
    height: 120px;
  }
  .hero-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* =============================================
   PAGE HERO (subpages)
   ============================================= */

.page-hero {
  position: relative;
  background: linear-gradient(135deg, #014FA1 0%, #014FA1 100%);
  color: white;
  padding: 80px 0 88px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(41,128,185,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.92);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.page-hero p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.65;
  font-weight: 300;
}

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

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 52px 0;
}

.section-light {
  background: var(--color-light);
  color: #1a1a2e;
}

.section-bg-light {
  color: #1a1a2e;
}

.section-primary {
  background: var(--color-primary);
  color: white;
}

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

.section-tag {
  display: inline-block;
  background: var(--color-light-2);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.72;
  font-weight: 300;
}

.section-primary .section-header h2,
.section-primary .section-header p {
  color: white;
}
.section-primary .section-tag {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
}

/* =============================================
   IMAGE HELPERS
   ============================================= */

.img-placeholder {
  background: var(--color-light-2);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-gray);
  font-size: 13px;
}
.img-placeholder .icon {
  font-size: 36px;
  opacity: 0.5;
}

.photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================
   FEATURE CARDS
   ============================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.28s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(41,128,185,0.25);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-light-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  border: 1px solid var(--color-border);
}

.card-illus {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--color-border);
}

.card-illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-illus img {
  transform: scale(1.04);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

/* Readability: ensure cards always have readable text */
.card, .feature-card, .product-card {
  color: #1a1a2e;
}
.card h2, .feature-card h2, .product-card h2 {
  color: #014FA1;
}

.card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.68;
  font-weight: 400;
}

/* =============================================
   PRODUCT CARDS — with images
   ============================================= */

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.28s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: inherit;
  border-color: rgba(41,128,185,0.2);
}

.product-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-light-2);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.04);
}
.product-card-img .emoji-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, var(--color-light-2), #dce8f5);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Legacy emoji img fallback */
.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, var(--color-light-2), #dce8f5);
}

.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.product-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  font-weight: 400;
}
.product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.product-link::after { content: ' →'; }
.product-card:hover .product-link { gap: 8px; }

/* =============================================
   CHECKLIST
   ============================================= */

.checklist {
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--color-border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eafaf1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2327ae60' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  border: 1.5px solid rgba(39,174,96,0.4);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================
   TWO COLUMN LAYOUT
   ============================================= */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.two-col-text h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.two-col-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  margin-top: 28px;
}
.two-col-text p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.72;
  margin-bottom: 14px;
  font-weight: 400;
}

/* =============================================
   INFO BOX
   ============================================= */

.info-box {
  background: var(--color-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.info-box p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-light-2);
  letter-spacing: -0.2px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--color-light-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: #014FA1;
}
.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: #014FA1;
}

.contact-item-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.contact-item-text span,
.contact-item-text a {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.5;
}
.contact-item-text a { color: var(--color-primary-light); }
.contact-item-text a:hover { color: var(--color-primary); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr:not(:last-child) td { border-bottom: 1px solid var(--color-border); }
.hours-table td {
  padding: 9px 4px;
  font-size: 15px;
  color: var(--color-text-light);
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 55%;
}

.map-placeholder {
  height: 260px;
  background: linear-gradient(135deg, #e8eef5, #d5e0ec);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--color-gray);
  font-size: 14px;
  margin-top: 20px;
  border: 1px solid var(--color-border);
}

/* =============================================
   TESTIMONIALS
   ============================================= */

.testimonials-section {
  background: linear-gradient(135deg, var(--color-light) 0%, #e8f0fa 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.testimonial-quote-mark {
  position: absolute;
  top: -8px;
  left: 24px;
  font-size: 100px;
  color: var(--color-light-2);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  color: rgba(1,79,161,0.08);
}

.stars {
  color: #f39c12;
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.testimonial p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.72;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}
.testimonial-author span {
  font-size: 13px;
  color: var(--color-gray);
}

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

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.cta-banner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-weight: 300;
}

/* =============================================
   PROCESS STEPS
   ============================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: steps;
}

.step { text-align: center; }

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(1,79,161,0.25);
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.65;
}

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

.site-footer {
  background: var(--color-footer);
  color: rgba(255,255,255,0.80);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 52px;
}

.footer-brand .logo-name { color: white; font-size: 18px; }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.55); }

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  margin-top: 16px;
  line-height: 1.72;
  font-weight: 400;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }

.footer-contact-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  margin-bottom: 12px;
  align-items: flex-start;
}
.footer-contact-item span:first-child {
  opacity: 0.7;
  flex-shrink: 0;
  width: 20px;
}

/* Social media icons */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: all 0.2s;
  text-decoration: none;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: white;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}
.footer-bottom a:hover { color: white; }

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

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* =============================================
   BREADCRUMB
   ============================================= */

.breadcrumb {
  background: var(--color-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-gray);
}
.breadcrumb-inner a { color: var(--color-gray); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--color-primary); }
.breadcrumb-sep { opacity: 0.5; }

/* =============================================
   LEGAL PAGES
   ============================================= */

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0;
}
.legal-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-light-2);
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 36px;
  margin-bottom: 14px;
}
.legal-content p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.78;
  margin-bottom: 16px;
}
.legal-content strong { color: var(--color-text); font-weight: 600; }

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

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Desktop nav always visible ---- */
@media (min-width: 1024px) {
  .main-nav {
    display: flex !important;
  }
  .hamburger {
    display: none !important;
  }
  .header-actions {
    display: flex !important;
  }
}

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 90vw);
    background: white;
    padding: 90px 24px 24px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: var(--shadow-xl);
    gap: 0;
    transform: translateX(0);
  }

  /* Overlay when menu open */
  .main-nav.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
  }

  .main-nav.open .nav-link {
    padding: 13px 8px;
    font-size: 16px;
    font-weight: 500;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-light);
    margin: 4px 0 8px 16px;
    border-radius: var(--radius);
  }

  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .two-col { gap: 36px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero {
    min-height: auto;
    padding: 100px 0 64px;
    background-attachment: scroll;
  }
  .page-hero { padding: 64px 0 72px; }

  .section { padding: 56px 0; }
  .header-actions .btn-outline { display: none; }
  .header-actions .btn-primary { display: none; }
  .form-row { grid-template-columns: 1fr; }

  .hero-trust { gap: 10px; }
  .trust-badge { padding: 10px 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; }
  .trust-badge { width: 100%; }
}

/* ===== MOBILE OVERFLOW FIXES ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

/* .header-inner padding removed — parent .container already provides horizontal padding */

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
}

.logo-text .logo-name {
  font-size: clamp(13px, 3vw, 16px);
  white-space: nowrap;
}

.logo-text .logo-tagline {
  font-size: clamp(9px, 2vw, 11px);
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(24px, 6vw, 64px);
  word-break: break-word;
}

.hero p {
  font-size: clamp(14px, 3vw, 20px);
}

.page-hero h1 {
  font-size: clamp(22px, 5vw, 48px);
  word-break: break-word;
}

.page-hero p {
  font-size: clamp(13px, 2.5vw, 18px);
}

.products-grid, .features-grid, .testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.trust-badges {
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px;
}

section, .section {
  padding-left: 16px;
  padding-right: 16px;
}

.container {
  padding-left: 16px;
  padding-right: 16px;
  max-width: 100%;
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0 16px;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-buttons a {
    text-align: center;
  }
  
  .breadcrumb {
    font-size: 12px;
    padding: 8px 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== HEADER MOBILE FIX ===== */
/* Prevent hamburger button from overflowing the viewport on small screens.
   The .logo has flex-shrink:0 by default which pushes the hamburger out of bounds.
   On mobile: allow logo to shrink, reduce header gap, and cap hamburger right-edge. */
@media (max-width: 768px) {
  .header-inner {
    gap: 8px;
    overflow: hidden;
  }

  .logo {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }

  .logo-text {
    overflow: hidden;
  }

  .logo-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo-tagline {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hamburger {
    flex-shrink: 0;
    margin-right: 0;
  }
}

@media (max-width: 400px) {
  .logo-tagline {
    display: none;
  }

  .logo-img {
    height: 40px;
  }

  .logo {
    gap: 8px;
  }
}

/* =============================================
   SOCIAL MEDIA — Global Styles
   KreativFabrik GmbH · 2025
   ============================================= */

/* ---- Social Proof Bar ---- */
.social-proof-bar {
  background: var(--color-primary);
  padding: 18px 0;
  border-bottom: 3px solid var(--color-primary-dark);
}

.social-proof-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.social-proof-text {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
}

.social-links {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ---- Social Link Pills ---- */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-link.instagram {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  box-shadow: 0 2px 10px rgba(131,58,180,0.30);
}

.social-link.instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(131,58,180,0.50);
  color: white;
  filter: brightness(1.08);
}

.social-link.facebook {
  background: #1877f2;
  box-shadow: 0 2px 10px rgba(24,119,242,0.25);
}

.social-link.facebook:hover {
  background: #0d63d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(24,119,242,0.40);
  color: white;
}

/* ---- Instagram Embed Grid ---- */
.instagram-embed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.instagram-embed-grid blockquote.instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: var(--radius-lg) !important;
}

/* ---- Instagram Placeholder Fallback ---- */
.ig-fallback-card {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 300px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ig-fallback-card:hover {
  border-color: rgba(131,58,180,0.3);
  box-shadow: var(--shadow-md);
}

.ig-fallback-card .ig-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ig-fallback-card .ig-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.ig-fallback-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

.ig-fallback-card a {
  font-size: 13px;
  font-weight: 600;
  color: #833ab4;
}

.ig-fallback-card a:hover {
  color: #fd1d1d;
}

/* ---- Footer Social Icons (global upgrade) ---- */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: translateY(-2px);
}

/* ---- Responsive Social Styles ---- */
@media (max-width: 1024px) {
  .instagram-embed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .social-proof-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .social-proof-text {
    font-size: 13px;
  }

  .social-links {
    width: 100%;
  }

  .social-link {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
  }

  .instagram-embed-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .social-link span {
    display: none;
  }

  .social-link {
    padding: 10px 14px;
    width: 44px;
    height: 44px;
    justify-content: center;
    flex: 0 0 auto;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .social-links {
    width: auto;
  }

  .social-proof-text {
    font-size: 13px;
  }
}

/* =============================================
   SEO/GEO PAGES — NEW COMPONENTS
   KreativFabrik GmbH · 2026
   ============================================= */

/* Social Follow Section */
.social-follow {
  background: var(--color-light);
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.social-follow p {
  color: var(--color-text-light);
  font-size: 15px;
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  transition: background 0.2s, transform 0.2s;
}

.social-icons a:hover {
  background: var(--color-primary-light);
  transform: scale(1.1);
}

/* Footer Social Icons */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* Page Hero (for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  padding: 80px 0 72px;
  color: white;
}

.page-hero-content {
  max-width: 800px;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: white;
  margin-bottom: 20px;
}

.page-hero .hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  font-size: 13px;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
}

.breadcrumb-list li::after {
  content: "›";
  color: var(--color-border);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list a {
  color: var(--color-primary-light);
}

.breadcrumb-list a:hover {
  color: var(--color-primary);
}

/* HowTo Steps */
.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.howto-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.6;
}

/* FAQ List (for GEO & Topic pages) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.65;
}

/* Info Box */
.info-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* =============================================
   RESPONSIVE — NEW COMPONENTS
   ============================================= */

@media (max-width: 768px) {
  .page-hero {
    padding: 56px 0 52px;
  }

  .howto-step {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .social-follow {
    padding: 24px 0;
  }
}

/* Instagram/Social Callout Box */
.instagram-callout {
  background-color: #D9EBF9;
  border-left: 4px solid #0a84c8;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 40px 0;
  max-width: 800px;
}

.instagram-callout p {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #1a1a2e;
}

.instagram-callout a {
  display: inline-block;
  color: #0a84c8;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.instagram-callout a:hover {
  color: #0066a0;
  text-decoration: underline;
}

/* =============================================
   FLOATING CALL BUTTON (Mobile only)
   ============================================= */

.floating-call-btn {
  display: none;
}

@media (max-width: 768px) {
  .floating-call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--color-primary-light);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(1,79,161,0.35);
    transition: background 0.2s, transform 0.2s;
  }
  .floating-call-btn:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
  }
}

/* =============================================
   MULTI-STEP LEAD FORM
   ============================================= */

.lead-form-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

/* =============================================
   CONTACT PAGE 2-COLUMN GRID LAYOUT
   ============================================= */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  align-items: start;
}

.contact-form-col {
  position: sticky;
  top: 90px;
}

.contact-form-col .contact-card {
  background: #fff;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: 32px;
}

@media (max-width: 1023px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  /* On mobile: form first, info second */
  .contact-form-col {
    order: -1;
    position: static;
  }
}

.lead-form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.lead-form-trust span {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* Progress bar */
.form-progress {
  margin-bottom: 32px;
}

.form-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
}

.form-progress-labels .active {
  color: var(--color-primary);
}

.form-progress-bar-bg {
  background: var(--color-border);
  border-radius: var(--radius-pill);
  height: 6px;
  overflow: hidden;
}

.form-progress-bar-fill {
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

/* Step containers */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}

/* Card grid for step 1 */
.need-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.need-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--color-light);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  user-select: none;
}

.need-card:hover {
  border-color: var(--color-primary-light);
  background: var(--color-light-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.need-card.selected {
  border-color: var(--color-primary);
  background: var(--color-light-2);
  color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}

.need-card .card-icon {
  font-size: 36px;
  line-height: 1;
}

/* Radio groups for step 2 */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.radio-group-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-light);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.radio-option:hover {
  border-color: var(--color-primary-light);
  background: var(--color-light-2);
}

.radio-option input[type="radio"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.radio-option.selected {
  border-color: var(--color-primary);
  background: var(--color-light-2);
}

/* Step nav buttons */
.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-nav .btn-back {
  background: var(--color-light);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.form-nav .btn-back:hover {
  background: var(--color-border);
}

.form-nav .btn-next {
  flex: 1;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.form-nav .btn-next:hover {
  background: var(--color-primary-dark);
}

/* Thank you message */
.form-thankyou {
  display: none;
  text-align: center;
  padding: 48px 32px;
}

.form-thankyou .ty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.form-thankyou h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.form-thankyou p {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* DSGVO box */
.dsgvo-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  cursor: pointer;
}

.dsgvo-check input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .need-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .lead-form-trust {
    flex-direction: column;
    align-items: stretch;
  }
  .lead-form-trust span {
    text-align: center;
  }
}

/* ===== EVENT BANNER ===== */
.event-banner {
  background: linear-gradient(90deg, #014FA1, #014FA1);
  color: white;
  padding: 12px 16px;
  position: relative;
  z-index: 200;
}
.event-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.event-badge {
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.event-text {
  font-size: 14px;
  flex: 1;
  min-width: 200px;
}
.event-btn {
  background: white;
  color: #014FA1;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.event-btn:hover { background: #D9EBF9; }
.event-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  margin-left: auto;
}
.event-close:hover { color: white; }
@media (max-width: 600px) {
  .event-text { font-size: 13px; }
  .event-badge { display: none; }
}

/* ===== HAUSMESSE ANFAHRT GRID MOBILE ===== */
.anfahrt-grid {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .anfahrt-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== CHATBOT MOBILE POSITION FIX ===== */
@media (max-width: 768px) {
  #chat-widget {
    bottom: 80px !important;
  }
  #chat-bubble {
    bottom: 80px !important;
  }
  .chat-notification {
    bottom: 130px !important;
  }
  .floating-call-btn {
    bottom: 16px !important;
    z-index: 999;
  }
}

/* =============================================
   SCROLL ANIMATIONS — Intersection Observer
   KreativFabrik GmbH · 2026
   ============================================= */

.animate-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for card grids */
.features-grid .feature-card:nth-child(2),
.cards-grid .card:nth-child(2),
.cards-grid .product-card:nth-child(2) {
  transition-delay: 0.1s;
}
.features-grid .feature-card:nth-child(3),
.cards-grid .card:nth-child(3),
.cards-grid .product-card:nth-child(3) {
  transition-delay: 0.2s;
}
.features-grid .feature-card:nth-child(4),
.cards-grid .card:nth-child(4),
.cards-grid .product-card:nth-child(4) {
  transition-delay: 0.3s;
}
.features-grid .feature-card:nth-child(5),
.cards-grid .card:nth-child(5),
.cards-grid .product-card:nth-child(5) {
  transition-delay: 0.4s;
}
.features-grid .feature-card:nth-child(6),
.cards-grid .card:nth-child(6),
.cards-grid .product-card:nth-child(6) {
  transition-delay: 0.5s;
}

/* =============================================
   SECTION VISUAL HIERARCHY UPGRADES
   ============================================= */

/* Alternate section backgrounds */
.section:nth-of-type(even):not(.section-light):not([style*="background"]) {
  background: #f8f9fa;
}

/* More section padding on desktop */
@media (min-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 64px;
  }
}

/* Section header breathing room */
.section-header h2 {
  margin-bottom: 20px;
}

/* Consistent card shadows and hover lift */
.card {
  box-shadow: 0 2px 12px rgba(1,79,161,0.08);
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(1,79,161,0.16);
  transform: translateY(-5px);
  border-color: rgba(41,128,185,0.3);
}

.product-card {
  box-shadow: 0 2px 12px rgba(1,79,161,0.08);
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(1,79,161,0.18);
  transform: translateY(-5px);
}

.testimonial {
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.testimonial:hover {
  box-shadow: 0 8px 28px rgba(1,79,161,0.14);
  transform: translateY(-3px);
}



/* ===== DROPDOWN TIMING FIX ===== */
.nav-item.has-dropdown .nav-dropdown {
  transition-delay: 0s, 0s, 0s; /* no delay on show */
  /* Add delay before hiding so mouse can move to dropdown */
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
}

/* Keep dropdown open with a larger invisible hover area */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px;
  background: transparent;
}

/* Add delay before hiding dropdown */
.nav-item.has-dropdown .nav-dropdown {
  transition-delay: 0.15s !important;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  transition-delay: 0s !important;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}


/* ===== TEXT OVERFLOW FIXES ===== */

/* All cards: contain text properly */
.feature-card,
.product-card,
.card,
.info-card,
.service-card,
.contact-card,
.testimonial-card,
.geo-card {
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Card grids: equal height cards */
.features-grid,
.products-grid,
.cards-grid,
.services-grid {
  align-items: stretch;
}

.features-grid .feature-card,
.products-grid .product-card {
  display: flex;
  flex-direction: column;
}

.features-grid .feature-card p,
.products-grid .product-card p {
  flex: 1; /* push content to fill available space */
}

/* Category badge/tag in cards: don't overflow */
.card-category,
.section-tag,
.product-category,
.card-tag {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card titles: prevent overflow */
.feature-card h3,
.product-card h3,
.card h3,
.card h2 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Images in cards: never overflow */
.feature-card img,
.product-card img,
.card img {
  max-width: 100%;
  height: auto;
}

/* Inline card icon boxes */
.card-icon,
.feature-icon {
  flex-shrink: 0;
  overflow: hidden;
}

/* Features grid: equal height, stretch layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  align-items: stretch;
}

.features-grid .feature-card {
  height: 100%; /* fill grid cell */
}

/* =============================================
   REEL PREVIEW CARDS (bei-uns.html)
   ============================================= */
.reel-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 32px;
}
.reel-card {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #D9EBF9;
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
}
.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(1,79,161,0.12);
}
.reel-thumbnail {
  background: linear-gradient(135deg, #014FA1, #0161c4);
  aspect-ratio: 9/16;
  max-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.reel-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #014FA1;
}
.reel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #C50304;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.reel-info {
  padding: 16px;
}
.reel-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.reel-avatar {
  width: 32px;
  height: 32px;
  background: #014FA1;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.reel-account span {
  font-weight: 600;
  color: #014FA1;
  font-size: 14px;
}
.reel-caption {
  color: #555;
  font-size: 13px;
  margin: 0;
}

/* ===== EVENT BANNER REDESIGN ===== */
.event-banner {
  background: #C50304;
  color: white;
  padding: 10px 20px;
}
.event-banner-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: center;
}
.event-badge {
  background: rgba(255,255,255,0.2);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.event-text {
  font-size: 14px;
  white-space: nowrap;
  flex: 0 1 auto;
}
.event-text strong {
  font-weight: 800;
  font-size: 15px;
}
.event-btn {
  background: white;
  color: #C50304;
  padding: 5px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.event-btn:hover { background: #fff0f0; }
.event-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  flex-shrink: 0;
  margin-left: 4px;
}
@media (max-width: 768px) {
  .event-text { font-size: 12px; white-space: normal; }
  .event-badge { display: none; }
}
