/* ==========================================================
   Dr. Oxenbauer Marketing – Stylesheet
   Branding laut Moodboard: Farben & Schriften unter :root
   ========================================================== */

/* Schriften lokal (DSGVO) – Poppins für Überschriften, Nunito für Fließtext */
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../assets/fonts/nunito-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Primärfarben */
  --c-primary: #1f3c5d;      /* Navy */
  --c-petrol: #2c4f5c;       /* Petrol */
  --c-primary-ink: #ffffff;
  /* Sekundärfarben */
  --c-green: #4c7350;        /* Waldgrün */
  --c-cream: #f3efe6;        /* Creme */
  /* Akzent */
  --c-accent: #9dc3e6;       /* Hellblau – Buttons, Highlights auf dunklem Grund */
  --c-accent-hover: #b9d5ee;
  --c-accent-ink: #1f3c5d;

  --c-bg: #fcfbf8;
  --c-surface: var(--c-cream);
  --c-card: #ffffff;
  --c-text: #1c2a3a;
  --c-muted: #55606c;
  --c-line: #e4ded2;

  --f-head: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Layout */
  --max: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 30, 25, .08);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.2; font-weight: 600; margin: 0 0 .6em; color: var(--c-text); overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.8rem, 3.8vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--c-surface); }
.section--dark { background: var(--c-primary); color: var(--c-primary-ink); }
.section--dark h2, .section--dark h3 { color: var(--c-primary-ink); }
.section--dark .eyebrow { color: var(--c-accent); }
.section--petrol { background: var(--c-petrol); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-green); margin-bottom: .8rem;
}
.lead { font-size: 1.2rem; color: var(--c-muted); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--ghost { border-color: currentColor; color: var(--c-primary); background: transparent; }
.section--dark .btn--ghost { color: var(--c-primary-ink); }
.btn--small { padding: .6em 1.15em; font-size: .92rem; }
.btn--large { padding: 1.05em 2.6em; font-size: 1.15rem; box-shadow: 0 8px 22px rgba(31, 60, 93, .18); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-text); flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.logo-text { font-family: var(--f-head); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--f-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); font-weight: 500; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; color: var(--c-text); font-size: .97rem; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--c-green); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-text); margin: 5px 0; transition: .2s; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--c-bg);
    border-bottom: 1px solid var(--c-line); display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .nav li a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid var(--c-line); }
  .nav li:last-child { margin-top: 1rem; }
  .nav .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 var(--section-y); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--c-primary); box-shadow: inset 0 -.32em 0 var(--c-accent); hyphens: manual; -webkit-hyphens: manual; white-space: nowrap; }
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin: 1.5rem 0 1.5rem; }
.cta-note { margin: 0; font-size: .92rem; color: var(--c-muted); text-align: center; }
@media (max-width: 480px) { .hero-ctas .btn--large { width: 100%; padding-left: 1.2em; padding-right: 1.2em; } }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--c-muted); }
.hero-proof li::before { content: "✓"; color: var(--c-green); font-weight: 700; margin-right: .4em; }
.hero-media { position: relative; }
.hero-media .portrait { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -1.5rem; bottom: 2rem; background: var(--c-card); border-radius: 12px;
  padding: .9rem 1.1rem; box-shadow: var(--shadow); font-size: .9rem; max-width: 15rem; line-height: 1.4;
}
.hero-badge strong { display: block; font-family: var(--f-head); font-size: 1.05rem; color: var(--c-primary); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 420px; }
  .hero-badge { left: 1rem; bottom: 1rem; }
}

/* Platzhalter für fehlende Fotos */
.img-placeholder {
  aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--c-primary), var(--c-petrol));
  color: var(--c-primary-ink); display: grid; place-items: center; text-align: center;
  font-family: var(--f-head); font-size: 1.1rem; padding: 1rem; box-shadow: var(--shadow);
}

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--c-surface);
  display: grid; place-items: center; margin-bottom: 1.25rem; color: var(--c-primary);
}
.card .icon svg { width: 26px; height: 26px; }
.card ul { padding-left: 1.1rem; margin: .5rem 0 1.25rem; color: var(--c-muted); }
.card ul li { margin-bottom: .35rem; }
.card .outcome { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--c-line); font-weight: 600; color: var(--c-primary); font-size: .95rem; }

/* Probleme */
.quote-head { position: relative; padding-left: .55em; }
.quote-head .qm { color: var(--c-green); }
.quote-head .qm:first-child { position: absolute; left: 0; top: 0; }
.pain { padding: 1.5rem; border-left: 3px solid var(--c-green); background: var(--c-card); border-radius: 0 var(--radius) var(--radius) 0; }
.pain h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.pain p { color: var(--c-muted); margin: 0; font-size: .98rem; }

/* Prozess */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 3.5rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: var(--f-head); font-size: 2.2rem; color: var(--c-accent); line-height: 1;
}
.section--dark .step p { color: rgba(255, 255, 255, .8); }
.usp {
  margin-top: 3rem; padding: 1.75rem 2rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15);
}
.usp p { margin: 0; color: rgba(255, 255, 255, .9); }

/* Über mich */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about .portrait { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.signature { font-family: var(--f-head); font-size: 1.3rem; color: var(--c-primary); margin-top: 1.5rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-media { max-width: 380px; } }

/* Vertrauen */
.trust { text-align: center; padding: 1.75rem 1.25rem; }
.trust .icon { margin: 0 auto 1rem; }
.trust h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.trust p { font-size: .93rem; color: var(--c-muted); }
.note { font-size: .85rem; color: var(--c-muted); margin-top: 1.5rem; }

/* BAFA-Förderung */
.badge {
  align-self: flex-start; margin-top: .9rem; padding: .35em .85em; border-radius: 999px;
  background: var(--c-surface); color: var(--c-primary); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.badge:hover { background: var(--c-accent); color: var(--c-accent-ink); }
.funding {
  margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem 3rem;
  background: var(--c-card); border: 1px solid var(--c-line); border-left: 4px solid var(--c-green);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); scroll-margin-top: 100px;
}
.funding h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.funding p { color: var(--c-muted); }
.funding-facts { list-style: none; margin: 0; padding: 0; align-self: center; }
.funding-facts li { padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--c-line); position: relative; font-size: .97rem; }
.funding-facts li:last-child { border-bottom: 0; }
.funding-facts li::before { content: "✓"; position: absolute; left: 0; color: var(--c-green); font-weight: 700; }
.funding-note { grid-column: 1 / -1; font-size: .8rem; margin: 0; line-height: 1.5; }
@media (max-width: 760px) { .funding { grid-template-columns: minmax(0, 1fr); } }

/* Referenz */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.case-media { min-height: 320px; background: var(--c-primary); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-media .img-placeholder { aspect-ratio: auto; height: 100%; border-radius: 0; box-shadow: none; }
.case-body { padding: clamp(1.75rem, 4vw, 3rem); }
.case-body dl { margin: 1.5rem 0 0; }
.case-body dt { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.case-body dd { margin: .2rem 0 1.1rem; color: var(--c-muted); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case-media { min-height: 220px; } }

/* FAQ */
.faq { max-width: 52rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--f-head); font-size: 1.15rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--c-green); font-family: var(--f-body); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--c-muted); padding-right: 2rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact p { color: rgba(255, 255, 255, .85); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact .contact-intro { margin: 2rem 0 .75rem; font-weight: 700; color: var(--c-primary-ink); }
.contact-intro + .contact-list { margin-top: 0; }
.contact-list li { margin-bottom: .6rem; }
.contact-list a { color: var(--c-primary-ink); }
.booking {
  background: var(--c-card); color: var(--c-text); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.booking h3 { color: var(--c-text) !important; }
.booking ul { padding-left: 1.1rem; color: var(--c-muted); }
.booking .btn { width: 100%; margin-top: 1rem; }
.booking small { display: block; margin-top: .9rem; color: var(--c-muted); font-size: .8rem; line-height: 1.5; }
.booking-embed { margin-top: 1rem; min-height: 0; }
.booking-embed iframe { width: 100%; height: 680px; border: 0; border-radius: 10px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #162c45; color: rgba(255, 255, 255, .75); padding: 2.5rem 0; font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

/* Rechtliche Seiten */
.legal { max-width: 46rem; padding: clamp(48px, 7vw, 90px) var(--gutter); margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal .todo { background: #fff4d6; padding: 0 .25em; border-radius: 3px; }

/* ---------- Branding: Fotos, Siegel ---------- */
.intro-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: 3rem; }
.intro-split .section-head { margin-bottom: 0; }
.intro-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .intro-split { grid-template-columns: minmax(0, 1fr); } }

/* Siegel: Größen nach wirkender Fläche abgeglichen (≈ 32.000 px² je Siegel), Bilder in doppelter Auflösung */
.seals {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem 2.5rem;
  margin-top: 3rem; padding: 2.25rem 2rem; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.seals img { display: block; width: auto; max-width: 100%; object-fit: contain; }
.seal-link { display: inline-flex; border-radius: 8px; transition: transform .15s ease, box-shadow .15s ease; }
.seal-link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31, 60, 93, .15); }
.seals .seal-tuev { height: 110px; }
.seals .seal-round { height: 180px; }
.seals .seal-bafa { height: 222px; }
.seals .seal-hubspot { height: 143px; }
/* Handy: TÜV oben über die volle Breite, darunter rund + BAFA nebeneinander, HubSpot unten */
@media (max-width: 640px) {
  .seals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-items: center; gap: 1.5rem 1rem; padding: 1.5rem 1rem; }
  .seals .seal-link { grid-column: 1 / -1; }
  .seals .seal-tuev { height: auto; width: min(100%, 300px); }
  .seals .seal-round { height: auto; width: min(100%, 140px); }
  .seals .seal-bafa { height: 170px; }
  .seals .seal-hubspot { grid-column: 1 / -1; height: auto; width: min(100%, 210px); }
}

.footer-logo { font-family: var(--f-head); font-weight: 600; color: #fff; margin: 0; }
.footer-logo small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .78rem; letter-spacing: .2em; color: var(--c-accent); }
.ai-note { flex-basis: 100%; font-size: .78rem; color: rgba(255, 255, 255, .55); margin: .5rem 0 0; }