/* ===== SanoTec – überarbeitetes Design ===== */
:root {
  --teal: #1b7d74;
  --teal-600: #146259;
  --teal-50: #eaf4f2;
  --teal-100: #d3e9e5;
  --ink: #1d2a28;
  --muted: #4b5a57;
  --line: #dde7e4;
  --bg: #ffffff;
  --tint: #f5f8f7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 50, 45, .06), 0 8px 24px rgba(20, 50, 45, .08);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { font-family: "Poppins", sans-serif; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.center { text-align: center; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.icon-lg { width: 36px; height: 36px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.kicker {
  font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .8em;
}
.kicker-light { color: var(--teal-100); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-600); }
.btn-secondary { background: #fff; color: var(--teal-600); border-color: var(--teal-100); }
.btn-secondary:hover { border-color: var(--teal); }
.btn-light { background: #fff; color: var(--teal-600); }
.btn-light:hover { background: var(--teal-50); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 80px; }
.logo img { width: 160px; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--teal); border-bottom-color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.header-phone:hover { background: var(--teal-600); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 64px 0 80px; background: linear-gradient(180deg, var(--teal-50) 0%, #fff 85%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-sub { font-family: "Poppins", sans-serif; font-size: 1.35rem; font-weight: 500; color: var(--teal-600); margin-bottom: .6em; }
.hero-text > p:not(.kicker):not(.hero-sub) { color: var(--muted); max-width: 540px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; }
.hero-checks .icon { color: var(--teal); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%;
  border-radius: 24px; box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; left: -28px; bottom: 36px;
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px;
}
.hero-badge strong { font-family: "Poppins", sans-serif; font-size: 2rem; color: var(--teal); line-height: 1; }
.hero-badge span { font-size: .88rem; line-height: 1.35; color: var(--muted); }

/* Vertrauensleiste */
.trustbar { border-block: 1px solid var(--line); background: #fff; }
.trustbar-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 28px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.35; color: var(--muted); }
.trust-item strong { display: block; color: var(--ink); font-size: 1rem; }
.trust-item .icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal);
}

/* Sektionen */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); margin: 0; }

/* Ablauf */
.process { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.process-step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px 28px;
}
.process-step .icon-lg { color: var(--teal); margin-bottom: 18px; }
.process-step p { color: var(--muted); margin: 0; font-size: 1rem; }
.process-num {
  position: absolute; top: 24px; right: 24px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 2.6rem; line-height: 1;
  color: var(--teal-100);
}

/* CPM */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p { color: var(--muted); }
.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.benefit-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.benefit-list .icon { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--teal); color: #fff; }
.benefit-list strong { display: block; font-size: 1.05rem; }
.benefit-list span { color: var(--muted); font-size: .98rem; }

/* Geräte */
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.device {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 24px; transition: box-shadow .2s, transform .2s;
}
.device:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.device-img { background: var(--tint); border-radius: var(--radius-sm); margin-bottom: 20px; }
.device-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.device h3, .device p { padding-inline: 8px; }
.device p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Vertrauen */
.trust-panel { background: var(--teal-600); color: #fff; overflow: hidden; }
.trust-panel-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 48px; align-items: center; padding-top: 80px; }
.trust-panel-text { padding-bottom: 80px; }
.trust-panel h2 { color: #fff; }
.trust-panel p { color: rgba(255,255,255,.88); max-width: 600px; }
.trust-panel .btn { margin-top: 12px; }
.trust-panel-img { width: 260px; justify-self: center; align-self: end; border-radius: var(--radius) var(--radius) 0 0; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq details[open] { border-color: var(--teal-100); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: "Poppins", sans-serif; font-weight: 500; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal-50); color: var(--teal);
  font-size: 1.3rem; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; color: var(--muted); }
.faq-body p:last-child { margin: 0; }

/* CTA */
.section-cta { padding-top: 0; }
.cta-card {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-600) 100%);
  color: #fff; border-radius: 24px; padding: 48px 56px;
}
.cta-card h2 { color: #fff; margin-bottom: .3em; }
.cta-card p { color: rgba(255,255,255,.88); margin: 0; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: #15201e; color: #c4cfcc; font-size: .95rem; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { display: inline-block; margin-bottom: 16px; border-radius: 8px; }
.footer-brand img { width: 150px; background: #fff; padding: 8px 12px; border-radius: 8px; transition: opacity .2s; }
.footer-logo:hover img { opacity: .85; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .header-phone { padding: 10px; }
  .trustbar-inner { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .main-nav.open { max-height: 400px; box-shadow: var(--shadow); }
  .main-nav a { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }

  .hero { padding: 40px 0 56px; }
  .hero-inner, .split, .trust-panel-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-badge { left: 16px; bottom: 16px; }
  .process, .device-grid { grid-template-columns: 1fr 1fr; }
  .trust-panel-img { width: 180px; }
  .trust-panel-text { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .section-cta { padding-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .trustbar-inner { grid-template-columns: 1fr 1fr; }
  .process, .device-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons .btn { flex: 1 1 100%; justify-content: center; }
  .cta-card { padding: 36px 24px; }
  .cta-buttons, .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ===================== Unterseiten ===================== */

/* Seitenkopf */
.page-hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--teal-50) 0%, #fff 100%); }
.page-hero-inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.page-hero p:not(.kicker) { color: var(--muted); font-size: 1.1rem; margin: 0; }
.hero-checks-inline { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; }

/* CPM-Therapie */
.cpm-letter { color: var(--teal-600); font-size: 1.15em; }
.slideshow {
  position: relative; aspect-ratio: 1 / 1;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow);
}
.slideshow img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px;
  opacity: 0; transition: opacity 1s ease;
}
.slideshow img.active { opacity: 1; }
.process-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.process-4 .process-step h3 { padding-right: 40px; }

.stat-band { background: var(--teal-600); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 56px 0; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.stat .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(255,255,255,.14); margin-bottom: 8px; }
.stat strong { font-family: "Poppins", sans-serif; font-size: 1.5rem; font-weight: 600; }
.stat span { color: var(--teal-100); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card {
  background: #fff; border-radius: var(--radius); padding: 26px 26px 24px;
  border-left: 4px solid var(--teal); box-shadow: var(--shadow);
}
.info-card h3 { margin-bottom: .3em; }
.info-card p { color: var(--muted); margin: 0; font-size: 1rem; hyphens: manual; }

/* Leistungen */
.services { display: grid; gap: 80px; }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.service:nth-child(even) img { order: 2; }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.service-num { display: block; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem; color: var(--teal); margin-bottom: 8px; }
.service h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service p { color: var(--muted); }

/* Kontakt */
.contact-section { padding-top: 56px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.contact-card, .form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px;
  box-shadow: var(--shadow);
}
.contact-items { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-items li { display: flex; gap: 14px; align-items: flex-start; }
.contact-items .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--teal-50); color: var(--teal); }
.contact-items .label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-items a { font-weight: 700; text-decoration: none; }
.contact-rezept { border-top: 1px solid var(--line); padding-top: 24px; }
.contact-rezept .btn { margin-bottom: 14px; }

.form-card.contact-embed { padding: 16px; }


/* Formular-Einbettung (Jotform) */
.form-embed { padding-top: 40px; }
.form-embed-inner {
  max-width: 900px; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 16px; box-shadow: var(--shadow);
}
.form-alt { color: var(--muted); font-size: .95rem; text-align: center; margin: 16px 16px 8px; }

/* Rechtstexte */
.legal { background: var(--tint); padding-top: 56px; }
.legal .narrow {
  max-width: 860px; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 5vw, 56px);
}
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: .8em; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal h1 + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p { color: #33403d; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; background: var(--teal-50); }

@media (max-width: 900px) {
  .process-4, .stat-grid, .info-grid { grid-template-columns: 1fr 1fr; }
  .service, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .service:nth-child(even) img { order: 0; }
  .services { gap: 56px; }
  .slideshow { max-width: 480px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  .process-4, .info-grid { grid-template-columns: 1fr; }
  .contact-card, .form-card { padding: 24px; }
  .page-hero { padding: 48px 0 40px; }
  .form-embed-inner { padding: 4px; border-radius: 16px; }
}

.page-hero-centered { margin-inline: auto; text-align: center; }
.page-hero-centered .hero-checks-inline { justify-content: center; }

@media (max-width: 640px) {
  .legal .narrow { padding: 24px 18px; }
  .legal table { font-size: .85rem; hyphens: auto; overflow-wrap: anywhere; }
  .legal th, .legal td { padding: 10px 8px; }
}
@media (max-width: 420px) {
  .trustbar-inner { grid-template-columns: 1fr; gap: 14px; }
}

/* Lange deutsche Wörter auf schmalen Bildschirmen trennen */
h1, h2, h3, .info-card, .stat { overflow-wrap: break-word; hyphens: auto; }
.info-card, .stat, .process-step, .device { min-width: 0; }
@media (max-width: 420px) {
  .stat strong { font-size: 1.2rem; }
  .info-card { padding: 20px 18px; }
}

/* Karten „Was bewirkt das CPM-Training?“: keine Silbentrennung */
.nowrap { white-space: nowrap; }
.process-step h3, .process-step p { hyphens: manual; }
@media (min-width: 901px) and (max-width: 1100px) {
  .process-4, .info-grid { grid-template-columns: 1fr 1fr; }
}
