/* ==========================================================================
   dental-stb – Basis-Styles (Etappe 2: Grundgerüst)
   Alle Farben und Schriften stehen als Variablen in :root.
   Farbanpassung (z. B. an apo-stb) = nur diesen Block ändern.
   ========================================================================== */

/* Schriften lokal eingebunden (DSGVO, keine Google-Server). Lizenz: SIL OFL 1.1 */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../Fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../Fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../Fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../Fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../Fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../Fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../Fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../Fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }

:root {
  /* Farben */
  --c-ink: #17313A;          /* Petrol, Text und dunkle Flächen */
  --c-ink-soft: #4A5C61;     /* Fließtext sekundär */
  --c-ground: #F6F3EE;       /* Elfenbein, Seitenhintergrund */
  --c-surface: #FFFFFF;      /* Karten, helle Sektionen */
  --c-line: #E4DED4;         /* Linien, Rahmen */
  --c-accent: #3F7F78;       /* Salbei-Türkis, Buttons und Akzente */
  --c-accent-dark: #2F6A64;  /* Hover */
  --c-accent-tint: #E3EEEC;  /* helle Akzentfläche */
  --c-on-dark: #F6F3EE;
  --c-on-dark-soft: #D5DEDC;
  --c-on-dark-accent: #9FC7C1;

  /* Schriften */
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Maße */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 112px);
  --radius: 4px;
  --radius-pill: 999px;
  --header-h: 96px;
}

/* Basis ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-ground);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-dark); }
a:hover { color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; color: var(--c-ink); }
h1 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 3.6vw, 52px); }
h3 { font-family: var(--f-body); font-size: 20px; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--c-ink); color: var(--c-on-dark); border-radius: var(--radius); }
.skip-link:focus { top: 16px; }

.eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--c-accent); margin: 0 0 16px; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn--outline { border-color: var(--c-ink); color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: var(--c-on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--c-ink); }
.brand__word { font-family: var(--f-display); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }
.brand__word--light { color: var(--c-on-dark); }
.brand__dot { color: var(--c-accent); }
.brand__claim { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #5B6B6F; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.main-nav__list, .meta-nav ul, .mega__list { list-style: none; margin: 0; padding: 0; }
.main-nav__list { display: flex; gap: 26px; }
.main-nav__item { position: relative; }
.main-nav__link { display: inline-block; padding: 34px 0; font-size: 14.5px; font-weight: 500; color: var(--c-ink); text-decoration: none; }
.main-nav__item.is-active > .main-nav__link { color: var(--c-accent); font-weight: 700; }

.mega { position: absolute; left: -32px; top: 100%; display: none; grid-template-columns: 240px 1fr; gap: 32px; width: 620px; padding: 32px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 20px 40px rgba(23, 49, 58, 0.08); }
.main-nav__item:hover > .mega, .main-nav__item:focus-within > .mega { display: grid; }
.mega__title { font-family: var(--f-display); font-size: 26px; margin: 0 0 8px; }
.mega__text { font-size: 14.5px; color: var(--c-ink-soft); margin: 0; }
.mega__list { display: flex; flex-direction: column; gap: 10px; }
.mega__list a { color: var(--c-ink); text-decoration: none; font-size: 15px; }
.mega__list a:hover, .mega__list a[aria-current="page"] { color: var(--c-accent); }

.meta-nav { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 20px; }
.header-phone { font-size: 14px; font-weight: 600; color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.site-header__actions .btn { min-height: 44px; padding: 0 22px; font-size: 14px; }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 12px; width: 24px; height: 2px; background: var(--c-ink); content: ""; transition: transform .2s; }
.nav-toggle__bar { top: 23px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }

/* Brotkrumen ------------------------------------------------------------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 32px 0 0; font-size: 13px; color: #5B6B6F; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; }
.breadcrumb a { color: #5B6B6F; text-decoration: none; }

/* Kontakt-CTA ------------------------------------------------------------ */
.contact-cta { background: var(--c-accent-tint); padding-block: var(--section-y); text-align: center; }
.contact-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.contact-cta__title { margin: 0; font-size: clamp(34px, 4vw, 56px); }
.contact-cta__text { max-width: 680px; margin: 0; font-size: 18px; color: #3E5156; }
.contact-cta__small { margin: 0; font-size: 14px; color: #3E5156; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--c-ink); color: var(--c-on-dark-soft); font-size: 14px; }
.site-footer a { color: var(--c-on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--c-on-dark); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-block: 88px 56px; }
.site-footer__about p { margin: 16px 0 0; line-height: 1.65; }
.site-footer__about .brand__dot { color: var(--c-on-dark-accent); }
.site-footer__heading { font-weight: 700; color: var(--c-on-dark); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__nl-text { margin: 20px 0 12px; line-height: 1.6; }
.nl-form__label { display: block; margin-bottom: 8px; font-size: 13px; }
.nl-form__row { display: flex; gap: 8px; }
.nl-form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid #4A6268; border-radius: var(--radius-pill); background: transparent; color: var(--c-on-dark); font: inherit; font-size: 14px; }
.nl-form input::placeholder { color: #8FA3A6; }
.nl-form button { height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: var(--c-on-dark); color: var(--c-ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.nl-form button:hover { background: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px 48px; border-top: 1px solid #2E4A52; font-size: 13px; }
.site-footer__bottom ul { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }

/* Inhaltselemente: siehe elements.css */

/* Responsiv -------------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; display: none; flex-direction: column; align-items: stretch; gap: 32px; padding: 24px var(--gutter) 48px; background: var(--c-surface); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__link { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--c-line); width: 100%; }
  .mega { position: static; display: block; width: auto; padding: 8px 0 16px 16px; border: 0; box-shadow: none; }
  .mega__intro { display: none; }
  .meta-nav { display: block; }
  .meta-nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
  .meta-nav a { color: var(--c-ink-soft); text-decoration: none; }
  .site-header__actions { flex-direction: column; align-items: stretch; }
  .site-header__actions .btn { min-height: 52px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__word { font-size: 28px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Link-Optik für Buttons (z. B. „Cookie-Einstellungen“ im Footer) */
.link-button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-button:hover { color: var(--c-on-dark); text-decoration: underline; }
