/* Lokal gehostete Schriftarten (DSGVO-konform, keine Verbindung zu Google-Servern) */
@font-face {
  font-display: swap;
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/dm-serif-display-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/dm-serif-display-v17-latin-italic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/outfit-v15-latin-300.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/outfit-v15-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/outfit-v15-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/outfit-v15-latin-600.woff2') format('woff2');
}
:root {
  --sage: #8B9E7C;
  --sage-light: #C5D1B8;
  --sage-pale: #EEF2EA;
  --warm: #D4A574;
  --warm-light: #F0DCC8;
  --cream: #FAF7F2;
  --sand: #F2EDE5;
  --text: #2C3328;
  --text-soft: #5A6355;
  --white: #FFFFFF;
  --border: rgba(139,158,124,0.2);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif; font-weight: 300;
  color: var(--text); background: var(--cream);
  line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 30px rgba(44,51,40,0.06); }
/* backdrop-filter erzeugt einen Containing Block für position:fixed-Kinder;
   beim geöffneten Mobilmenü muss er deshalb deaktiviert werden, sonst bezieht
   sich das Vollbild-Overlay nur auf die Nav-Leiste statt auf den Viewport. */
nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
}
.nav-logo {
  font-family: 'DM Serif Display', serif; font-size: 20px;
  color: var(--text); text-decoration: none; letter-spacing: -0.3px;
  white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--sage); }
.nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
/* gap bewusst knapp gehalten: "Über uns" ist ~30px breiter als das frühere "Team".
   10 Zwischenräume x 4px sparen 40px und halten die Leiste unter dem 1400px-Breakpoint. */
.nav-links { display: flex; gap: 22px; list-style: none; align-items: center; flex-wrap: nowrap; flex-shrink: 0; }
.nav-links li { white-space: nowrap; }
.nav-links a {
  text-decoration: none; color: var(--text-soft);
  font-size: 14px; font-weight: 400; letter-spacing: 0.3px;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--sage); transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--sage); color: var(--white) !important;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 500; font-size: 13px !important; letter-spacing: 0.5px;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #7A8E6B; transform: translateY(-1px); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 200;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* SUCHE */
.search-toggle {
  background: none; border: none; cursor: pointer; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); flex-shrink: 0;
  position: relative; z-index: 200;
}
.search-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.search-toggle:hover { color: var(--sage); }
.search-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(44,51,40,0.5); backdrop-filter: none;
  padding: 90px 24px 24px;
}
.search-overlay.open { display: block; }
.search-overlay-inner {
  max-width: 640px; margin: 0 auto; background: var(--cream);
  border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px rgba(44,51,40,0.25);
  max-height: 75vh; display: flex; flex-direction: column;
}
.search-input-row {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 12px 16px; background: var(--white); flex-shrink: 0;
}
.search-input-row svg { width: 20px; height: 20px; stroke: var(--text-soft); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.search-input-row input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'Outfit', sans-serif; font-size: 16px; color: var(--text);
}
#searchCloseBtn { background: none; border: none; cursor: pointer; padding: 2px; display: flex; }
#searchCloseBtn svg { width: 18px; height: 18px; stroke: var(--text-soft); fill: none; stroke-width: 1.8; }
.search-results { margin-top: 16px; overflow-y: auto; }
.search-result-item {
  display: block; padding: 14px 12px; border-radius: 12px;
  text-decoration: none; transition: background 0.2s;
}
.search-result-item:hover, .search-result-item.active { background: var(--sage-pale); }
.search-result-item h4 { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.search-result-item p { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.search-no-results { padding: 14px 12px; font-size: 14px; color: var(--text-soft); }
.search-hint { padding: 14px 12px; font-size: 13px; color: var(--text-soft); }

.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 40px 100px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
  opacity: 0.3; border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -10%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--warm-light) 0%, transparent 70%);
  opacity: 0.25; border-radius: 50%;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
}
.hero-text h1 {
  font-size: clamp(36px, 4.5vw, 58px); line-height: 1.1;
  color: var(--text); margin-bottom: 28px; letter-spacing: -0.5px;
}
.hero-text h1 em { font-style: italic; color: var(--sage); }
.hero-text p { font-size: 18px; color: var(--text-soft); max-width: 480px; margin-bottom: 40px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--sage); color: var(--white); padding: 16px 36px;
  border-radius: 50px; text-decoration: none; font-weight: 500;
  font-size: 16px; transition: all 0.3s; display: inline-block;
}
.btn-primary:hover { background: #7A8E6B; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,158,124,0.3); }
.btn-secondary {
  background: transparent; color: var(--text); padding: 16px 36px;
  border-radius: 50px; text-decoration: none; font-weight: 400;
  font-size: 16px; border: 1.5px solid var(--border); transition: all 0.3s; display: inline-block;
}
.btn-secondary:hover { border-color: var(--sage); color: var(--sage); }
.btn-gruppe {
  background: #C2655A; color: var(--white);
  padding: 16px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 500;
  font-size: 15px; transition: all 0.3s; display: inline-block;
  line-height: 1.4;
}
.btn-gruppe:hover { background: #A8524A; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(194,101,90,0.3); }
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-hands {
  width: 440px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-hands img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(44,51,40,0.12);
}
.floating-badge {
  position: absolute; background: var(--white); padding: 12px 20px;
  border-radius: 14px; box-shadow: 0 8px 30px rgba(44,51,40,0.08);
  font-size: 13px; font-weight: 500; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.floating-badge.top-right { top: -20px; right: -30px; }
.floating-badge.bottom-left { bottom: -20px; left: -30px; }
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }

section { padding: 110px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.2; margin-bottom: 18px; letter-spacing: -0.3px; }
.section-subtitle { font-size: 16px; color: var(--text-soft); max-width: 640px; line-height: 1.8; }
.bg-white { background: var(--white); }

/* TEAM */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 56px; }
.team-card {
  background: var(--white); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(44,51,40,0.06); }
.team-photo {
  aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--sage-pale), var(--sand));
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.team-photo::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%238B9E7C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.team-photo-placeholder {
  position: relative; z-index: 1; text-align: center; color: var(--text-soft); font-size: 13px;
}
.team-photo-placeholder svg {
  width: 44px; height: 44px; stroke: var(--sage); fill: none; stroke-width: 1.2;
  margin-bottom: 8px; display: block; margin-inline: auto;
}
.team-content { padding: 28px; }
.team-content h3 { font-size: 22px; margin-bottom: 4px; }
.team-title { font-size: 13px; color: var(--sage); font-weight: 500; letter-spacing: 0.3px; margin-bottom: 14px; display: block; }
.team-content p { color: var(--text-soft); font-size: 14px; margin-bottom: 12px; line-height: 1.7; }
.team-quals { list-style: none; margin-top: 14px; }
.team-quals li {
  font-size: 13px; color: var(--text-soft); padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 8px;
}
.team-quals li:last-child { border-bottom: none; }
.team-quals li::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  min-width: 6px; border-radius: 50%; background: var(--sage-light);
}
.team-contact {
  margin-top: 20px; padding-top: 18px;
  border-top: 2px solid var(--sage-pale);
}
.team-contact h4 {
  font-size: 15px; margin-bottom: 12px; color: var(--sage);
}
.team-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-soft);
  margin-bottom: 8px;
}
.team-contact-item:last-child { margin-bottom: 0; }
.team-contact-item svg {
  width: 16px; height: 16px; min-width: 16px;
  stroke: var(--sage); fill: none; stroke-width: 1.5;
  margin-top: 2px;
}
.team-contact-item a { color: var(--sage); text-decoration: none; }
.team-contact-item a:hover { text-decoration: underline; }
.team-contact-item strong { font-weight: 500; color: var(--text); }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.service-card {
  background: var(--white); border-radius: 18px; padding: 32px 24px;
  border: 1px solid var(--border); transition: all 0.4s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--sage); transform: scaleX(0); transition: transform 0.4s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(44,51,40,0.05); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px; background: var(--sage-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--sage); fill: none; stroke-width: 1.5; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--text-soft); font-size: 13px; line-height: 1.7; }

/* DIAGNOSTIK */
.diagnostik-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 56px; align-items: start; }
.diagnostik-text p { color: var(--text-soft); margin-bottom: 14px; font-size: 15px; }
.diagnostik-list { background: var(--white); border-radius: 18px; padding: 32px; border: 1px solid var(--border); }
.diagnostik-list h3 { font-size: 20px; margin-bottom: 18px; }
.diagnostik-list ul { list-style: none; }
.diagnostik-list li {
  font-size: 14px; color: var(--text-soft); padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 10px;
}
.diagnostik-list li:last-child { border-bottom: none; }
.diagnostik-list li::before { content: '✓'; color: var(--sage); font-weight: 600; font-size: 13px; }

/* BILLING */
.billing-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.billing-card {
  background: var(--white); border-radius: 18px; padding: 28px 20px;
  border: 1px solid var(--border); text-align: center; transition: all 0.3s;
}
.billing-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(44,51,40,0.05); }
.billing-card-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--sage-pale);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.billing-card-icon svg { width: 22px; height: 22px; stroke: var(--sage); fill: none; stroke-width: 1.5; }
.billing-card h3 { font-size: 17px; margin-bottom: 8px; }
.billing-card p { color: var(--text-soft); font-size: 13px; line-height: 1.6; }

/* ACCORDION */
.accordion { margin-top: 56px; max-width: 800px; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
  width: 100%; background: none; border: none; padding: 22px 0;
  text-align: left; cursor: pointer;
  font-family: 'DM Serif Display', serif; font-size: 19px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; transition: color 0.3s;
}
.accordion-btn:hover { color: var(--sage); }
.accordion-btn .icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--sage-pale);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.3s; flex-shrink: 0;
}
.accordion-btn .icon svg { width: 13px; height: 13px; stroke: var(--sage); fill: none; stroke-width: 2; }
.accordion-item.open .accordion-btn .icon { transform: rotate(45deg); background: var(--sage); }
.accordion-item.open .accordion-btn .icon svg { stroke: var(--white); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-item.open .accordion-body { max-height: 500px; }
.accordion-body-inner { padding: 0 0 22px 0; color: var(--text-soft); font-size: 15px; line-height: 1.8; }

/* PROCESS */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 56px; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 34px; left: 12%; right: 12%;
  height: 1.5px; background: linear-gradient(90deg, transparent, var(--sage-light), var(--sage-light), transparent);
}
.step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 68px; height: 68px; border-radius: 50%; background: var(--sage);
  color: var(--white); font-family: 'DM Serif Display', serif; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; box-shadow: 0 8px 30px rgba(139,158,124,0.2);
}
.step h4 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: 13px; line-height: 1.7; padding: 0 6px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 56px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--white); padding: 22px; border-radius: 14px; border: 1px solid var(--border);
}
.contact-card-icon {
  width: 42px; height: 42px; min-width: 42px; background: var(--sage-pale);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.contact-card-icon svg { width: 20px; height: 20px; stroke: var(--sage); fill: none; stroke-width: 1.5; }
.contact-card h4 { font-size: 16px; margin-bottom: 3px; }
.contact-card p { color: var(--text-soft); font-size: 14px; }
.contact-card a { color: var(--sage); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-form-box {
  background: var(--white); padding: 32px; border-radius: 18px; border: 1px solid var(--border);
}
.contact-form-box h3 { font-size: 20px; margin-bottom: 22px; }

/* ANFAHRT / GOOGLE-MAPS ZWEI-KLICK-LÖSUNG */
.map-block { margin-top: 56px; }
.map-block h3 { font-size: 20px; margin-bottom: 8px; }
.map-block > p { color: var(--text-soft); font-size: 14px; margin-bottom: 18px; max-width: 640px; }
.map-frame-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 260px;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--sage-pale), var(--sand));
}
.map-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 32px; gap: 14px;
}
.map-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%238B9E7C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.map-placeholder svg { width: 40px; height: 40px; stroke: var(--sage); fill: none; stroke-width: 1.3; position: relative; z-index: 1; }
.map-placeholder p { position: relative; z-index: 1; font-size: 13px; color: var(--text-soft); max-width: 420px; line-height: 1.6; }
.btn-map-load {
  position: relative; z-index: 1;
  background: var(--sage); color: var(--white); border: none; cursor: pointer;
  padding: 12px 28px; border-radius: 50px; font-family: 'Outfit', sans-serif;
  font-weight: 500; font-size: 14px; transition: background 0.3s, transform 0.2s;
}
.btn-map-load:hover { background: #7A8E6B; transform: translateY(-1px); }
.map-alt-link { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--sage); text-decoration: none; }
.map-alt-link:hover { text-decoration: underline; }

/* DOCTOLIB-BUTTON IN TEAM-CARDS */
.btn-doctolib {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px 20px; border-radius: 50px;
  background: transparent; border: 1.5px solid var(--sage);
  color: var(--sage) !important; text-decoration: none;
  font-size: 13px; font-weight: 500; transition: all 0.3s;
}
.btn-doctolib:hover { background: var(--sage); color: var(--white) !important; }
.btn-doctolib svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: 14px;
  font-weight: 300; color: var(--text); background: var(--cream);
  transition: border-color 0.3s; outline: none;
}
.form-group input:not([type="checkbox"]):not([type="radio"]):focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--sage); }
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px; flex-shrink: 0;
  margin: 2px 0 0; padding: 0; border: 1.5px solid var(--border);
  border-radius: 4px; accent-color: var(--sage); background: var(--cream);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 11px; color: var(--text-soft); margin-top: 10px; }
.btn-submit {
  background: var(--sage); color: var(--white); border: none;
  padding: 13px 32px; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.3s; width: 100%;
}
.btn-submit:hover { background: #7A8E6B; transform: translateY(-1px); }

footer {
  background: var(--text); color: rgba(255,255,255,0.6); padding: 56px 40px 28px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px;
}
.footer-brand .nav-logo { color: var(--white); display: inline-block; margin-bottom: 14px; }
.footer-brand .nav-logo span { color: var(--sage-light); }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 300px; }
footer h4 { font-size: 13px; color: var(--white); margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 7px; }
footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; transition: color 0.3s; }
footer ul a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px; margin: 36px auto 0;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.legal-links { display: flex; gap: 20px; }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* AUFKLAPPMENUE (Desktop) */
.nav-links li.has-sub { position: relative; }
.nav-sub-toggle {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0.3px;
  color: var(--text-soft); transition: color 0.3s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-sub-toggle:hover { color: var(--text); }
.nav-sub-toggle:focus { outline: none; }
.nav-sub-toggle:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; border-radius: 8px; }
.nav-sub-toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.3s; }
.nav-links li.has-sub.open > .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 212px; list-style: none; z-index: 200;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 18px 42px rgba(44,51,40,0.14);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
/* unsichtbare Bruecke, damit der Mauszeiger die Luecke ueberqueren kann */
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-links li.has-sub:hover > .nav-sub,
.nav-links li.has-sub:focus-within > .nav-sub,
.nav-links li.has-sub.open > .nav-sub {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px);
}
.nav-sub li { white-space: nowrap; }
.nav-sub a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: 14px; color: var(--text-soft);
  transition: background 0.2s, color 0.2s;
}
.nav-sub a::after { display: none; }
.nav-sub a:hover { background: var(--sage-pale); color: var(--text); }

@media (max-width: 1400px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text p { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-hands { width: 300px; }
  .floating-badge { display: none; }
  .team-grid, .services-grid, .diagnostik-grid, .contact-grid { grid-template-columns: 1fr; }
  .billing-cards { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  section { padding: 72px 24px; }
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 110px 24px 70px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream); align-items: center; justify-content: flex-start;
    gap: 4px; z-index: 150;
    padding: 96px 24px 40px; overflow-y: auto;
  }
  .nav-links.open > li { width: 100%; max-width: 340px; text-align: center; }
  .nav-links.open > li > a,
  .nav-links.open .nav-sub-toggle {
    font-size: 18px; padding: 12px 0;
    display: inline-flex; justify-content: center; width: 100%;
  }
  .nav-links.open .nav-cta { width: auto; margin-top: 16px; padding: 12px 30px; }
  /* Untermenue mobil als Akkordeon, ueber display gesteuert -
     dadurch kann :hover es auf Touch-Geraeten nicht versehentlich oeffnen */
  .nav-links.open .nav-sub {
    display: none;
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; background: transparent; border: none; box-shadow: none;
    padding: 0 0 10px; gap: 0;
  }
  .nav-links.open li.has-sub.open > .nav-sub {
    display: flex;
    /* muss die Desktop-Regel .nav-links li.has-sub.open > .nav-sub schlagen,
       die sonst translateX(-50%) beibehaelt und das Untermenue verschiebt */
    transform: none; top: auto; left: auto;
  }
  .nav-links.open .nav-sub::before { display: none; }
  .nav-links.open .nav-sub a { font-size: 16px; padding: 9px 0; }
}

@media (max-width: 600px) {
  .process-steps, .billing-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
