/* Dellendoktor Stuttgart */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #067303;
  --green-dark: #04560a;
  --green-tint: #eaf1e6;
  --ink: #171916;
  --ink-soft: #3c3f39;
  --muted: #62655d;
  --paper: #f6f5f1;
  --white: #ffffff;
  --line: #dddbd3;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.15rem; font-stretch: 105%; letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* --- Topbar & Header --- */

.topbar { background: var(--ink); color: #d9dbd4; font-size: 0.82rem; }
.topbar-inner { display: flex; gap: 28px; justify-content: flex-end; padding-top: 7px; padding-bottom: 7px; }
.topbar-inner span:first-child { margin-right: auto; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 50px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--green); }
.nav .nav-phone {
  font-weight: 700; color: var(--green); border: 1.5px solid var(--green);
  padding: 8px 14px; border-radius: 3px;
}
.nav .nav-phone:hover { background: var(--green); color: #fff; }

.nav-toggle { display: none; }

/* --- Buttons --- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 3px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--green); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-line { background: transparent; color: var(--green); }
.btn-line:hover { background: var(--green-tint); }

/* --- Hero --- */

.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.kicker {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-stretch: 115%; letter-spacing: -0.025em; line-height: 1; }
.hero .lead { margin-top: 26px; font-size: 1.13rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-facts {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  border-top: 1px solid var(--line);
}
.hero-facts li { padding: 16px 28px 0 0; margin-right: 28px; font-size: 0.92rem; color: var(--muted); border-right: 1px solid var(--line); }
.hero-facts li:last-child { border-right: 0; margin-right: 0; }
.hero-facts strong { display: block; color: var(--ink); font-size: 1.05rem; }

.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: min(78vh, 700px); object-fit: cover; object-position: 50% 45%; }
.hero-photo figcaption, .services-photo figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }

/* --- Sections --- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: 44px; }
.section-head p { color: var(--muted); max-width: 30em; }

/* --- Vorher / Nachher --- */

.ba-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ba-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

.ba {
  position: relative; aspect-ratio: 4 / 4.4; max-height: calc(100vh - 120px); overflow: hidden;
  background: #ddd; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; cursor: ew-resize;
  --pos: 50%;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }

.ba-tag {
  position: absolute; top: 14px; z-index: 2;
  background: rgba(23, 25, 22, 0.78); color: #fff;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px; pointer-events: none;
}
.ba-tag-l { left: 14px; }
.ba-tag-r { right: 14px; background: var(--green); }
.ba-tag { transition: opacity .15s; }
.ba.hide-l .ba-tag-l, .ba.hide-r .ba-tag-r { opacity: 0; }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 3px; margin-left: -1.5px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-knob { outline: 3px solid var(--green); outline-offset: 2px; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.ba-knob svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ba-cases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ba-cases li { border-bottom: 1px solid var(--line); }
.ba-case {
  display: flex; gap: 18px; width: 100%; padding: 18px 4px 18px 0;
  background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.ba-case-no { font-weight: 700; font-size: 0.9rem; color: var(--muted); padding-top: 2px; min-width: 24px; }
.ba-case-title { display: block; font-weight: 700; font-size: 1.05rem; }
.ba-case-text { display: block; color: var(--muted); font-size: 0.93rem; margin-top: 2px; }
.ba-case:hover .ba-case-title { color: var(--green); }
.ba-case.is-active { box-shadow: inset 3px 0 0 var(--green); padding-left: 16px; }
.ba-case.is-active .ba-case-no, .ba-case.is-active .ba-case-title { color: var(--green); }
.ba-case { transition: padding-left .15s; }

/* --- Leistungen --- */

.services-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); }
.services-side p { color: var(--muted); margin-top: 20px; max-width: 28em; }
.services-photo { margin: 36px 0 0; }
.services-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 40% 55%; }

.service-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.service-list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 8px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-no { font-weight: 700; color: var(--green); font-size: 0.95rem; padding-top: 2px; }
.service-list h3 { margin-bottom: 8px; }
.service-list p { color: var(--ink-soft); }

/* --- Hagel --- */

.hail { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; background: #2a2d2a; }
.hail-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hail-inner { position: relative; padding-top: 120px; padding-bottom: clamp(32px, 6vw, 64px); }
.hail-box { background: #fff; max-width: 480px; margin-left: auto; padding: clamp(24px, 4vw, 40px); border-top: 4px solid var(--green); }
.hail-box h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 16px; }
.hail-box p { color: var(--ink-soft); margin-bottom: 24px; }

/* --- Über uns --- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.about-quote { margin: 0; padding: 0; }
.about-quote p {
  font-size: clamp(2rem, 4.3vw, 3.3rem); font-weight: 700; font-stretch: 108%;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--green);
}
.about-text h2 { font-size: 1.1rem; font-stretch: 100%; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 20px; }
.about-text > p { font-size: 1.08rem; color: var(--ink-soft); }

.principles { margin: 36px 0 0; }
.principles div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 6px 20px; }
.principles dt { font-weight: 700; }
.principles dd { margin: 0; color: var(--muted); }

/* --- Ablauf --- */

.steps { background: var(--green-tint); padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 90px); }
.step-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.step-list li { counter-increment: step; padding: 0 32px 0 0; }
.step-list li + li { padding-left: 32px; border-left: 1px solid rgba(6, 115, 3, 0.25); }
.step-list li::before {
  content: counter(step);
  display: block; font-size: 3rem; font-weight: 800; font-stretch: 115%; line-height: 1;
  color: var(--green); margin-bottom: 14px;
}
.step-list h3 { margin-bottom: 8px; }
.step-list p { color: var(--ink-soft); }

/* --- Kontakt --- */

.contact { background: var(--green); color: #fff; padding: clamp(64px, 9vw, 110px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 90px); }
.contact h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.contact-intro { margin-top: 18px; color: rgba(255, 255, 255, 0.85); max-width: 30em; }

.contact-list { list-style: none; margin: 36px 0 0; padding: 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.28); display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 12px; }
.contact-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.contact-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.contact-list a { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact-side { display: grid; gap: 32px; align-content: start; padding-top: 8px; }
.contact-block { background: #fff; color: var(--ink); padding: 26px 28px; }
.contact-block h3 { margin-bottom: 12px; }
.text-link { display: inline-block; margin-top: 14px; color: var(--green); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { padding: 6px 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; font-weight: 600; white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; color: var(--muted); font-weight: 400; }

/* --- Footer --- */

.site-footer { background: var(--ink); color: #c9ccc4; font-size: 0.92rem; padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 260px 1fr; gap: 32px 60px; }
.footer-logo { width: 220px; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: 24px 56px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid #33362f; padding-top: 20px; font-size: 0.82rem; color: #8d9088; }

.mobile-bar { display: none; }

/* --- Rechtstexte --- */

.legal { padding: clamp(48px, 7vw, 90px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; font-stretch: 105%; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--green); }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--green); font-weight: 600; text-decoration: none; }

/* --- Tablet --- */

@media (max-width: 1020px) {
  .nav { gap: 20px; font-size: 0.9rem; }
  .services-grid, .about-grid { grid-template-columns: 1fr; }
  .services-photo { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { justify-content: start; }
}

@media (max-width: 860px) {
  .ba-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px; }
  .ba-case { gap: 12px; padding: 14px 4px 14px 0; }
  .ba-case-text { font-size: 0.86rem; }
  :root { --header-h: 64px; }
  .topbar-addr { display: none; }
  .brand img { height: 40px; }

  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; font-size: 1.05rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { border-bottom-color: var(--line); color: var(--green); }
  .nav .nav-phone { margin-top: 16px; text-align: center; border-radius: 3px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { margin: 0 calc(-1 * var(--gutter)); }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3; object-position: 50% 38%; }
  .hero-facts { margin-top: 36px; }
  .hero-photo figcaption { padding: 0 var(--gutter); }

  .section-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .step-list { grid-template-columns: 1fr; }
  .step-list li, .step-list li + li { padding: 22px 0; border-left: 0; border-top: 1px solid rgba(6, 115, 3, 0.25); display: grid; grid-template-columns: 56px 1fr; }
  .step-list li::before { grid-row: span 2; font-size: 2.4rem; margin: 0; }

  .hail { display: block; min-height: 0; background: #fff; }
  .hail-bg { position: static; height: auto; aspect-ratio: 16 / 10; object-position: 30% 70%; }
  .hail-inner { padding-top: 0; padding-bottom: 0; }
  .hail-box { margin: -48px 0 0 auto; position: relative; max-width: 560px; }

  body { padding-bottom: 60px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: block; padding: 17px 10px; text-align: center; font-weight: 700; text-decoration: none; }
  .mobile-bar a:first-child { background: var(--green); color: #fff; }
  .mobile-bar a:last-child { color: var(--green); }
}

@media (max-width: 560px) {
  .ba-layout { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .topbar-inner { justify-content: space-between; gap: 12px; font-size: 0.78rem; }
  .topbar-inner span:first-child { margin-right: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-facts li { padding-right: 10px; margin-right: 10px; font-size: 0.8rem; }
  .hero-facts strong { font-size: 0.95rem; }
  .ba { aspect-ratio: 4 / 4.4; }
  .ba-knob { width: 40px; height: 40px; }
  .principles div { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .contact-side { grid-template-columns: 1fr; }
  .hail-inner { padding-left: 0; padding-right: 0; }
  .hail-box { margin-top: 0; max-width: none; }
  .footer-cols { grid-template-columns: 1fr; }
}
