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

/* Schriftart Inter wird self-hosted geladen, siehe assets/fonts/fonts.css
   (in jede HTML-Seite eingebunden) — DSGVO: keine Verbindung zu Google. */

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

:root {
  /* Colors — Reha & Care Brand */
  --color-primary:       #014FA1;
  --color-primary-dark:  #013a78;
  --color-primary-light: #3a7fd4;
  --color-accent:        #C50304;
  --color-accent-hover:  #a00203;
  --color-accent-warm:   #E87C0A;
  --color-white:         #ffffff;
  --color-light:         #D9EBF9;
  --color-light-2:       #e8f2fb;
  --color-gray:          #7f8c8d;
  --color-text:          #000000;
  --color-text-light:    #000000;
  --color-border:        #c8dced;
  --color-success:       #27ae60;
  --color-footer:        #013a78;
  --color-brown:         #6C3215;

  /* 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: 16px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(200, 220, 237, 0.6);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px rgba(1, 79, 161, 0.10), 0 1px 0 rgba(255,255,255,0.95) inset;
  margin: 16px auto 0;
  max-width: calc(var(--max-width) - 48px);
  width: calc(100% - 48px);
  transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s ease;
}

.site-header > .container {
  padding: 0 22px;
  max-width: 100%;
}

/* Floating pill — compresses on scroll */
.site-header.scrolled {
  max-width: 920px;
  width: calc(100% - 48px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px rgba(1, 79, 161, 0.18), 0 1px 0 rgba(255,255,255,0.95) inset;
  border-color: rgba(200, 220, 237, 0.9);
}

.site-header.scrolled .header-inner {
  height: calc(var(--header-height) - 12px);
}

@media (max-width: 768px) {
  .site-header {
    top: 8px;
    margin: 8px auto 0;
    width: calc(100% - 16px);
    border-radius: var(--radius-xl);
  }
  .site-header.scrolled { max-width: calc(100% - 16px); }
}

/* Scrolled state: restore dark text after transparent hero */
.site-header.scrolled .nav-link {
  color: #1a2332;
}
.site-header.scrolled .nav-link:hover {
  color: #014FA1;
  background: var(--color-light);
}
.site-header.scrolled .logo-name {
  color: #014FA1;
}
.site-header.scrolled .logo-tagline {
  color: #666;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
  transition: height 0.3s ease;
}

/* Scroll progress indicator (created by motion-bundle.js) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-accent) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1500;
  pointer-events: none;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 8px rgba(1, 79, 161, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ---- 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(26,82,118,0.25));
  transition: filter 0.2s;
}
.logo:hover .logo-svg {
  filter: drop-shadow(0 4px 10px rgba(26,82,118,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;
}


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

.nav-item {
  position: relative;
}

/* Invisible hover bridge: keeps dropdown open while crossing the gap */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
  pointer-events: none;
}
.has-dropdown:hover::after {
  pointer-events: auto;
}

.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,
.nav-item:focus-within .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  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: opacity 0.22s ease, transform 0.22s ease, pointer-events 0s linear 0.18s;
  transition-delay: 0.12s;
}

.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: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
}
.btn-hero-outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  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 — Full Viewport with Photo Background
   ============================================= */

/* Hero animated gradient */
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Part 1: Light top */
.hero-top {
  background: linear-gradient(180deg, #ffffff 0%, #daeaf8 100%);
  padding: 130px 0 0;
  text-align: center;
  color: var(--color-primary);
}

.hero-center {
  max-width: 980px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  text-wrap: balance;
}

.hero h1 .nowrap {
  white-space: nowrap;
}

.hero p.hero-lead {
  font-size: 17px;
  color: var(--color-text-light);
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.7;
  font-weight: 400;
}

/* Hero illustration row */
.hero-illustration {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 48px auto 0;
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 180px;
}

.hero-illus {
  display: block;
  object-fit: contain;
  height: 100%;
  flex-shrink: 0;
}

.hero-illus-left {
  height: 85%;
  margin-right: -4%;
  position: relative;
  z-index: 1;
}

.hero-illus-center {
  height: 75%;
  position: relative;
  z-index: 2;
}

.hero-illus-right {
  height: 85%;
  margin-left: -4%;
  position: relative;
  z-index: 1;
}

/* Part 2: Dark blue bottom */
.hero-bottom {
  background: var(--color-primary);
  color: white;
  padding: 56px 0 64px;
  text-align: center;
}

.hero-bottom-headline {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 700px;
  margin: 0 auto 28px;
  color: white;
  letter-spacing: -0.3px;
}

.hero-bottom .btn-hero {
  margin-bottom: 28px;
}

.hero-bottom-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.hero-checklist {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  font-weight: 400;
}

.hero-checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
  margin-top: 2px;
  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='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

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

.page-hero {
  position: relative;
  background: linear-gradient(135deg, #F4F9FE 0%, #D9EBF9 60%, #C9E8FB 100%);
  color: var(--color-text);
  padding: 80px 0 88px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(1, 79, 161, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

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

.page-hero p {
  color: var(--color-text-light);
  opacity: 1;
}

.page-hero .page-hero-tag {
  background: rgba(1, 79, 161, 0.10);
  border: 1px solid rgba(1, 79, 161, 0.22);
  color: var(--color-primary);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 320px);
  align-items: center;
  justify-content: center;
  column-gap: 80px;
  max-width: 1080px;
  margin: 0 auto;
}

.page-hero-inner > .page-hero-tag,
.page-hero-inner > h1,
.page-hero-inner > p,
.page-hero-inner > .btn,
.page-hero-inner > .btn-hero {
  grid-column: 1;
  max-width: 580px;
  justify-self: start;
}
.page-hero-inner > .page-hero-tag {
  width: auto;
}

.page-hero-illus {
  grid-column: 2;
  grid-row: 1 / span 10;
  align-self: center;
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.page-hero-illus img {
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.22));
  animation: page-hero-illus-float 6s ease-in-out infinite;
}

@keyframes page-hero-illus-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-illus img { animation: none; }
}

@media (max-width: 880px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 32px;
    text-align: center;
    max-width: 640px;
  }
  .page-hero-inner > .page-hero-tag,
  .page-hero-inner > h1,
  .page-hero-inner > p,
  .page-hero-inner > .btn,
  .page-hero-inner > .btn-hero {
    grid-column: 1;
    max-width: 640px;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }
  .page-hero-illus {
    grid-column: 1;
    grid-row: auto;
    order: -1;
  }
  .page-hero-illus img {
    max-width: 220px;
    max-height: 200px;
  }
}

.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);
}

.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;
}

.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/10;
  overflow: hidden;
  background: linear-gradient(135deg, #F4F9FE 0%, #D9EBF9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.product-card-img img {
  width: auto !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}
.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;
}

.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(26,82,118,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(26,82,118,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.92); }

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  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.95);
  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.95);
  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.95);
  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 150px; /* bottom room for the pinned CTA bar */
    overflow-y: auto;
    z-index: 1050;
    box-shadow: var(--shadow-xl);
    gap: 0;
    transform: translateX(0);
  }

  /* backdrop-filter on .site-header creates a containing block that traps
     position:fixed descendants — drawer would only span the ~114px header.
     Drop the filter while the drawer is open so fixed resolves to the viewport. */
  .site-header:has(.main-nav.open) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* 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;
  }

  /* Surface the header CTAs (Rezeptupload / Kontakt) inside the open drawer —
     on mobile they are display:none in the header bar, so without this they are
     unreachable. Pinned as a stacked bar at the bottom of the drawer column.
     Relies on the .site-header:has(.main-nav.open) backdrop-filter drop above so
     position:fixed resolves to the viewport rather than the header box. */
  .site-header:has(.main-nav.open) .header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    right: 0;
    bottom: 0;
    width: min(320px, 90vw);
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
    background: white;
    border-top: 1px solid var(--color-light);
    box-shadow: 0 -4px 16px rgba(1, 79, 161, 0.08);
    z-index: 1060;
  }
  .site-header:has(.main-nav.open) .header-actions .btn-outline,
  .site-header:has(.main-nav.open) .header-actions .btn-primary {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 16px;
  }
  .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-top { padding: 100px 0 0; }
  .hero-bottom { padding: 40px 0 48px; }
  .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 { grid-template-columns: repeat(2, 1fr); }
  .trust-badge { padding: 16px 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-illustration { height: 120px; }
}

/* ===== MOBILE OVERFLOW FIXES ===== */
/* overflow-x: clip preserves sticky positioning (unlike hidden which creates a scroll container) */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

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

.logo-img {
  height: 36px;
  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 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

/* Forced 3-column variant (e.g. 6-card lists that must stay symmetric) */
.features-grid.features-grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .features-grid.features-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .features-grid.features-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Feature cards */
.feature-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.32s ease, transform 0.32s ease, border-color 0.32s ease;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #014FA1, #3a7fd4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover {
  box-shadow: 0 14px 40px rgba(1, 79, 161, 0.14);
  transform: translateY(-6px);
  border-color: rgba(1, 79, 161, 0.25);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #E8F2FB 0%, #D9EBF9 100%);
  border-radius: 14px;
  transition: transform 0.32s ease, background 0.32s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(135deg, #D9EBF9 0%, #BFDDF4 100%);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--color-text-light);
  line-height: 1.65;
}

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

@media (max-width: 600px) {
  section, .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@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: 28px;
  }

  .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: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}

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

.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.95);
  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.95);
  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, #F4F9FE 0%, #D9EBF9 60%, #C9E8FB 100%);
  padding: 80px 0 72px;
  color: var(--color-text);
}

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

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

.page-hero .hero-lead {
  font-size: 18px;
  color: var(--color-text-light);
  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: #e8f4fd;
  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(26,82,118,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, #a00203, #C50304);
  color: white;
  padding: 12px 16px;
  position: relative;
  z-index: 200;
}
.event-banner-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.event-badge {
  background: rgba(255,255,255,0.25);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.event-text {
  font-size: 14px;
  flex: none;
}
.event-btn {
  background: white;
  color: #C50304;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.event-btn:hover { background: #fff5f5; }
.event-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.95);
  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(26,82,118,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(26,82,118,0.16);
  transform: translateY(-5px);
  border-color: rgba(41,128,185,0.3);
}

.product-card {
  box-shadow: 0 2px 12px rgba(26,82,118,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(26,82,118,0.18);
  transform: translateY(-5px);
}

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



/* Marken-Showcase (Hersteller-Logo-Card) — Board-Cleanup 2026-06-01 */
.brand-showcase {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; min-height: 360px; padding: 32px;
  background: var(--color-light-2); border-radius: var(--radius-lg);
}
.brand-showcase img { max-width: 75%; max-height: 160px; object-fit: contain; }
.brand-showcase .brand-caption { font-weight: 600; opacity: 0.7; }
