/* ============================================================
   Fußpflege Geesthacht – Stylesheet
   Palette: Salbei (#a8bbae, aus dem Logo) + tiefes Pinien-Grün
   Radius-System: Interaktives = Pille, Flächen/Bilder = 16-20px
   ============================================================ */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212;
}

:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --tint: #edf1eb;
  --tint-deep: #e2e9e0;
  --sage: #a8bbae;
  --accent: #2c5a4a;
  --accent-strong: #234a3d;
  --on-accent: #ffffff;
  --on-accent-soft: #d8e6dd;
  --ink: #1f2c25;
  --muted: #52655b;
  --line: #dce3da;
  --band: #2c5a4a;
  --on-band: #ffffff;
  --on-band-soft: #d8e6dd;
  --shadow: 0 14px 40px -18px rgb(44 90 74 / 0.28);
  --radius-card: 16px;
  --radius-img: 20px;
  color-scheme: light;
}

/* Dunkle Token, manuell gewaehlt (data-theme) oder per Systemeinstellung.
   Beide Bloecke identisch halten! */
:root[data-theme="dark"] {
  --bg: #141b17;
  --surface: #1b2420;
  --tint: #202b25;
  --tint-deep: #26332c;
  --sage: #a8bbae;
  --accent: #a8bbae;
  --accent-strong: #bccfc1;
  --on-accent: #16211b;
  --on-accent-soft: #3c4f44;
  --ink: #e9eeea;
  --muted: #a9b6ad;
  --line: #2b3730;
  --band: #22443a;
  --on-band: #eef4ef;
  --on-band-soft: #b9cdc1;
  --shadow: 0 14px 40px -18px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141b17;
    --surface: #1b2420;
    --tint: #202b25;
    --tint-deep: #26332c;
    --sage: #a8bbae;
    --accent: #a8bbae;
    --accent-strong: #bccfc1;
    --on-accent: #16211b;
    --on-accent-soft: #3c4f44;
    --ink: #e9eeea;
    --muted: #a9b6ad;
    --line: #2b3730;
    --band: #22443a;
    --on-band: #eef4ef;
    --on-band-soft: #b9cdc1;
    --shadow: 0 14px 40px -18px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 96px;
}

@media (max-width: 919px) {
  html { scroll-padding-top: 130px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

.hero-figure img,
.ueber-figure img { height: auto; }

a { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus-visible { left: 0; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  height: 72px;
}

/* Bis iPad hochkant: zweizeiliger Kopf, Menü sichtbar statt versteckt */
@media (max-width: 919px) {
  .site-header .wrap {
    height: auto;
    flex-wrap: wrap;
    row-gap: 0.15rem;
    padding-block: 0.6rem 0.7rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin-right: auto;
  white-space: nowrap;
}

.brand img { width: 34px; height: auto; }

.site-nav {
  display: flex;
  gap: clamp(1.1rem, 2.4vw, 1.9rem);
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--ink); }

@media (max-width: 919px) {
  .site-nav {
    order: 3;
    width: 100%;
    gap: 1.75rem;
  }
  .site-nav a { padding-block: 0.25rem; }
}

/* ---------- Farbmodus-Umschalter ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 22px; height: 22px; }

.theme-toggle .icon-sun { display: none; }

:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.78rem 1.5rem;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  color: var(--accent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Auf Mobilgeräten übernimmt die untere Anruf-Leiste; Button erst ab Tablet */
.btn-header { display: none; padding: 0.6rem 1.25rem; font-size: 0.98rem; }

@media (min-width: 768px) {
  .btn-header { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.08fr 0.92fr; }
}

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 0 0 1.1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: clamp(1.1rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-figure {
  position: relative;
  margin: 0;
}

/* Partikel-Fuß schwebt frei auf dem Seitenhintergrund, ohne Panel */

.hero-figure img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-img);
  aspect-ratio: 4 / 4.1;
  max-height: min(540px, 62vh);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-canvas {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 4.1;
  max-height: min(540px, 62vh);
  width: 100%;
  overflow: hidden;
}

.hero-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas-fallback {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 55%;
  height: auto;
  aspect-ratio: auto;
  box-shadow: none;
}

@media (max-width: 859px) {
  .hero-figure { margin-right: 1.4rem; }
  .hero-figure img { aspect-ratio: 4 / 3.4; }
  .hero-canvas { aspect-ratio: 4 / 3.4; }
}

/* ---------- Fakten-Leiste ---------- */

.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 1.4rem 0;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .facts ul { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 550;
  font-size: clamp(0.94rem, 1.35vw, 1.02rem);
  white-space: nowrap;
}

.facts svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--accent);
}

/* ---------- Sektionen ---------- */

.section { padding-block: clamp(3.2rem, 8vw, 5.5rem); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 0.75rem;
}

.section-head p {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Leistungen ---------- */

.leistungen-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .leistungen-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
}

.price-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}

.price-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.4rem;
}

.price-top h3 {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0;
}

.price {
  font-size: 2.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
}

.price small {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--muted);
  margin-right: 0.3rem;
}

.price-note { color: var(--muted); margin: 0 0 1.4rem; }

.check-list {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.06rem;
}

.check-list svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  margin-top: 0.2rem;
  color: var(--accent);
}

.extras { display: grid; gap: 1.5rem; }

.extras-panel {
  background: var(--tint);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.extras-panel h3 {
  font-size: 1.2rem;
  font-weight: 650;
  margin: 0 0 1rem;
}

.extras-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.extras-panel li { display: flex; gap: 0.85rem; }

.extras-panel li svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent);
}

.extras-panel strong { display: block; font-weight: 600; }

.extras-panel span { color: var(--muted); font-size: 0.98rem; }

.gutschein {
  border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.gutschein svg {
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
  color: var(--accent);
}

.gutschein h3 { font-size: 1.15rem; font-weight: 650; margin: 0 0 0.35rem; }
.gutschein p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Über mich ---------- */

.ueber { background: var(--surface); border-block: 1px solid var(--line); }

.ueber-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 860px) {
  .ueber-grid { grid-template-columns: 0.9fr 1.1fr; }
}

.ueber-figure { position: relative; margin: 0 0 0 1.4rem; max-width: 420px; }

.ueber-figure::before {
  content: "";
  position: absolute;
  inset: 1.4rem 1.4rem -1.4rem -1.4rem;
  background: var(--tint-deep);
  border-radius: var(--radius-img);
}

.ueber-figure img {
  position: relative;
  border-radius: var(--radius-img);
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.ueber h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 1rem;
}

.ueber .lead { font-size: 1.14rem; color: var(--muted); margin: 0 0 1rem; }
.ueber p { margin: 0 0 1rem; }

.ueber h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 1.6rem 0 0.9rem;
}

/* ---------- Ablauf ---------- */

.ablauf-grid {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .ablauf-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.ablauf-grid article {
  counter-increment: step;
  border-top: 3px solid var(--tint-deep);
  padding-top: 1.2rem;
  position: relative;
}

.ablauf-grid article::before {
  content: counter(step);
  display: block;
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

:root[data-theme="dark"] .ablauf-grid article::before { color: var(--muted); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ablauf-grid article::before { color: var(--muted); }
}

.ablauf-grid h3 {
  font-size: 1.28rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.ablauf-grid p { margin: 0; color: var(--muted); }

.ablauf-grid a { font-weight: 600; text-decoration: none; }
.ablauf-grid a:hover { text-decoration: underline; }

/* ---------- Kontakt ---------- */

.kontakt {
  background: var(--band);
  color: var(--on-band);
}

.kontakt-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 860px) {
  .kontakt-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.kontakt h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 0.9rem;
}

.kontakt .kontakt-intro {
  color: var(--on-band-soft);
  font-size: 1.14rem;
  margin: 0 0 1.8rem;
  max-width: 30rem;
}

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--on-band);
  text-decoration: none;
  line-height: 1.2;
}

.phone-big svg { width: 1em; height: 1em; flex: none; }
.phone-big:hover { text-decoration: underline; text-underline-offset: 6px; }

.kontakt-meta {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--on-band-soft);
  font-size: 1.05rem;
}

.kontakt-meta a {
  color: var(--on-band);
  font-weight: 550;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.einsatz {
  background: color-mix(in srgb, var(--on-band) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-band) 22%, transparent);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.einsatz h3 {
  font-size: 1.2rem;
  font-weight: 650;
  margin: 0 0 1.1rem;
}

.einsatz ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.einsatz li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.06rem;
}

.einsatz svg { width: 1.4rem; height: 1.4rem; flex: none; opacity: 0.85; }

.einsatz .einsatz-note {
  margin: 1.2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--on-band) 22%, transparent);
  color: var(--on-band-soft);
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */

.site-footer { padding: 2.4rem 0 2.2rem; }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  margin-right: auto;
}

.footer-brand img { width: 26px; height: auto; }

.footer-brand small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.98rem;
}

.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Mobile Anruf-Leiste ---------- */

.call-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.call-bar .btn { width: 100%; justify-content: center; font-size: 1.1rem; }

@media (min-width: 768px) {
  .call-bar { display: none; }
}

@media (max-width: 767px) {
  body { padding-bottom: 4.6rem; }
}

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */

.legal { padding-block: clamp(2.5rem, 6vw, 4rem); }

.legal-article { max-width: 46rem; }

.legal-article h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em;
  font-weight: 650;
  line-height: 1.1;
  margin: 0.5rem 0 2rem;
}

.legal-article h2 {
  font-size: 1.3rem;
  font-weight: 650;
  margin: 2.2rem 0 0.7rem;
}

.legal-article p, .legal-article ul { color: var(--muted); margin: 0 0 1rem; }
.legal-article li { margin-bottom: 0.35rem; }
.legal-article address { font-style: normal; color: var(--muted); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.98rem;
}

.back-link:hover { text-decoration: underline; }
.back-link svg { width: 0.9em; height: 0.9em; transform: rotate(180deg); }
