/* =========================================================================
   Berg- und Hütten-Apotheke — Apple-inspired, Avenir Next
   ========================================================================= */

:root {
  /* Colors — clean apple-like canvas + Apothekenrot */
  --ink:           #1D1F22;
  --ink-soft:      #2A2D33;
  --muted:         #6E6E73;
  --line:          #D2D2D7;
  --line-strong:   #B8B8BD;
  --cream:         #F5F5F7;       /* Apple's hero light gray */
  --cream-deep:    #EBEBEF;
  --paper:         #FFFFFF;
  --forest:        #0A2545;       /* Deep Navy für Dark Sections */
  --forest-soft:   #1A4080;
  --sage:          #7B9DD1;
  --sage-soft:     #DCE5F2;
  --accent:        #FF0000;       /* Apothekenrot */
  --accent-deep:   #C70000;
  --danger:        #B5483B;

  /* Type — Avenir Next LT Pro mit System-Fallbacks */
  --font-sans: 'Avenir Next LT Pro', 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Spacing & layout */
  --maxw: 1400px;
  --maxw-content: 1200px;
  --maxw-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9rem);
  --radius-sm: 8px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 44px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.05);
  --shadow:    0 12px 36px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 32px 70px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.06);

  --ease: cubic-bezier(.2,.7,.2,1);
  --t-fast: 200ms var(--ease);
  --t-med:  360ms var(--ease);
  --t-slow: 700ms var(--ease);

  --header-h: 80px;
}

/* ============ RESET ============ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { color: var(--muted); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--accent); color: #fff; }


/* ============ TYPOGRAPHY ============ */
/* Apple-style: big, bold, tight letter-spacing */
h1, h2, h3, h4, .display {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.75rem, 8vw, 7rem);
  letter-spacing: -0.035em;
  line-height: 1;
}
h2 {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  letter-spacing: -0.028em;
  line-height: 1.04;
}
h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  letter-spacing: -0.018em;
  line-height: 1.15;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
p { color: var(--ink-soft); font-weight: 400; }
.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 60ch;
  font-weight: 400;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent);
}
.eyebrow.eyebrow--muted { color: var(--muted); }

.brand-name {
  font-weight: 700;
  letter-spacing: -0.018em;
}

/* ============ LAYOUT ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--content { max-width: var(--maxw-content); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; }
section + section { padding-top: 0; }
/* Farbige Sektionen, die direkt auf eine andere folgen, brauchen etwas
   Innen-Abstand oben, damit die rote Eyebrow nicht an der sichtbaren
   Oberkante des Farbblocks klebt. */
section + section.bg-cream,
section + section.bg-cream-deep,
section + section.bg-forest,
section + section.bg-black { padding-top: clamp(2.5rem, 5vw, 4rem); }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: #fff; }
.bg-forest p { color: rgba(255,255,255,.78); }
.bg-black { background: #000; color: #fff; }
.bg-black h1, .bg-black h2, .bg-black h3 { color: #fff; }
.bg-black p { color: rgba(255,255,255,.7); }

/* ============ BUTTONS ============ */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: 999px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-med);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--accent { --bg: var(--accent); --fg: #fff; --bd: var(--accent); }
.btn--accent:hover { --bg: var(--accent-deep); --bd: var(--accent-deep); }
.btn--ghost  { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--light  { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--outline-on-dark { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.32); }
.btn--outline-on-dark:hover { --bd: #fff; }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--t-med), backdrop-filter var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.logo-mark {
  height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  transition: transform var(--t-fast);
}
.logo:hover .logo-mark { transform: scale(1.05); }
.logo-mark img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
.logo-mark--combo {
  height: 56px;
  width: 84px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.018em;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.6rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
}
.nav-link:hover { color: var(--ink); background: rgba(0,0,0,.05); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  transform: translateX(-50%);
}
.nav-link--cta {
  background: var(--ink); color: #fff;
  margin-left: 0.5rem;
  font-weight: 500;
}
.nav-link--cta:hover { background: var(--accent); color: #fff; }
/* Aktiv-Status: Akzentrot statt schwarzem BG (passt zum Hover und bleibt lesbar) */
.nav-link--cta.active { background: var(--accent); color: #fff; }
.nav-link--cta.active::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  margin: 3px 0; transition: transform var(--t-fast), opacity var(--t-fast);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.25rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform var(--t-med);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav.open { transform: translateX(0); }
  .nav-link {
    padding: 0.85rem 0 0.85rem 1.4rem;
    font-size: clamp(1.25rem, 5vw, 1.9rem);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    letter-spacing: -0.02em;
  }
  .nav-link:hover { background: transparent; }
  .nav-link.active::after { left: 0; bottom: auto; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; }
  .nav-link--cta {
    margin-top: 1rem; margin-left: 0;
    border-bottom: 0;
    background: var(--accent); color: #fff;
    border-radius: 999px;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
  }
}

body.no-scroll { overflow: hidden; }

/* ============ HERO — Apple-style stage ============ */
.hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(2rem, 5vw, 4rem);
  position: relative;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 8.5vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 16ch;
  margin: 1.25rem auto 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-since {
  margin: 0.75rem auto 0;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}
.hero-since em { font-style: normal; color: inherit; font-weight: inherit; }
.hero-sub {
  margin: 1.5rem auto 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.4;
}
.hero-cta {
  margin-top: 2.5rem;
  display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
}

/* Hero stage image (Außenaufnahme) — full bleed below text */
.hero-stage {
  margin-top: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 36px);
  aspect-ratio: 21/9;
  max-height: 60vh;
  background: var(--cream-deep);
  box-shadow: 0 40px 100px rgba(0,0,0,.18);
}
.hero-stage img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 12s var(--ease);
}
.hero-stage.is-in img { transform: scale(1.05); }

.hero-meta {
  margin-top: 2.5rem;
  display: inline-flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 400;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.status-pill a { color: inherit; }
a.status-pill:hover { background: var(--cream-deep); border-color: var(--line-strong); }
.status-pill .ext-icon { width: 12px; height: 12px; opacity: 0.6; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
  position: relative;
}
.status-dot.is-open  { background: #2EA964; }
.status-dot.is-open::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: #2EA964; opacity: .35; animation: pulse 2s var(--ease) infinite;
}
.status-dot.is-closed { background: var(--accent); }
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .35; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ============ FEATURE SECTIONS — Apple-style stage ============ */
.feature {
  text-align: center;
}
.feature-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.feature h2 {
  margin: 0 auto;
  max-width: 26ch;
}
.feature h2 em {
  display: inline-block;
  margin-top: 0.4rem;
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.feature .lead {
  margin: 1.5rem auto 0;
  text-align: center;
}
.feature-actions {
  margin-top: 2.5rem;
  display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
}
.feature-stage {
  margin-top: clamp(3rem, 6vw, 5rem);
  position: relative;
  border-radius: clamp(20px, 3vw, 36px);
  overflow: hidden;
  aspect-ratio: 21/9;
  max-height: 60vh;
  background: var(--cream-deep);
}
.feature-stage img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ============ BENTO / SERVICES ============ */
.s-head {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (max-width: 720px) { .s-head { grid-template-columns: 1fr; } }
.s-head h2 { max-width: 14ch; }
.s-head .lead { justify-self: end; }
@media (max-width: 720px) { .s-head .lead { justify-self: start; } }

.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
}
.bento-item {
  position: relative;
  padding: clamp(1.75rem, 2.8vw, 2.5rem);
  background: var(--cream);
  border-radius: clamp(20px, 2.4vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem;
  transition: transform var(--t-med), box-shadow var(--t-med);
  overflow: hidden;
}
.bento-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-item h3 {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.bento-item p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.5;
}
.bento-item .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.bento-item .icon svg { width: 26px; height: 26px; }

.bento-item--lg  { grid-column: span 4; }
.bento-item--md  { grid-column: span 3; }
.bento-item--sm  { grid-column: span 2; }
.bento-item--dark { background: var(--ink); color: #fff; }
.bento-item--dark h3 { color: #fff; }
.bento-item--dark p { color: rgba(255,255,255,.65); }
.bento-item--dark .icon { background: rgba(255,255,255,.08); color: var(--accent); box-shadow: none; }
.bento-item--accent { background: var(--accent); color: #fff; }
.bento-item--accent h3 { color: #fff; }
.bento-item--accent p { color: rgba(255,255,255,.85); }
.bento-item--accent .icon { background: #fff; color: var(--accent); box-shadow: none; }

.bento-item--lg .feature-num {
  font-weight: 700;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.bento-item--lg.bento-item--dark .feature-num { color: var(--accent); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-item--lg { grid-column: span 4; }
  .bento-item--md { grid-column: span 2; }
  .bento-item--sm { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item--lg, .bento-item--md, .bento-item--sm { grid-column: span 1; }
}

/* ============ HOURS / SCHEDULE ============ */
.hours-wrap {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
}
.hours-wrap .lead { text-align: justify; hyphens: auto; }
@media (max-width: 880px) { .hours-wrap { grid-template-columns: 1fr; } }

.hours-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--ink);
}
.hours-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t-fast);
}
.hours-row:hover { padding-left: 0.5rem; }
.hours-day  {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hours-time {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  text-align: right;
}
.hours-row.is-today .hours-day::after {
  content: "Heute"; margin-left: 0.75rem;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent); color: #fff;
  border-radius: 999px;
  vertical-align: middle;
  font-weight: 500;
}

.hours-aside { padding-top: 1rem; }
.hours-aside .lead { margin: 1rem 0 2rem; }
.hours-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============ SPLIT / EDITORIAL ============ */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
.split-img {
  position: relative;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 560px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  background: var(--cream-deep);
}
.split-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.split-img:hover img { transform: scale(1.04); }

/* ============ TEAM ============ */
.team-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 22px);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med);
  display: flex; flex-direction: column;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-photo {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;        /* Einheitlicher Bildausschnitt: oberer Bereich (Köpfe) */
  transition: transform var(--t-slow);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo--placeholder {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--cream-deep), var(--cream));
  padding: 2.5rem;
}
.team-photo--placeholder img {
  width: 80%; height: 80%;
  object-fit: contain;
  object-position: center;
  filter: opacity(0.55);
}
.team-info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.team-info h3 {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.team-role  {
  font-size: 0.875rem;
  color: var(--accent);
  margin-top: 0.25rem;
  font-weight: 500;
}
.team-since {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.4rem;
}
.team-extra {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.team-section + .team-section { margin-top: 4rem; }
.team-section-title {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.team-section-title h3 {
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.team-section-title span {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--muted); margin-left: auto;
}

/* ============ PHOTO MARQUEE — Team-Band ============ */
.photo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.photo-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-photos 60s linear infinite;
}
.photo-marquee:hover .photo-marquee-track { animation-play-state: paused; }
.photo-card {
  flex: 0 0 auto;
  width: clamp(180px, 22vw, 240px);
}
.photo-card-img {
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream-deep);
  margin-bottom: 0.85rem;
}
.photo-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 25%;
  transition: transform var(--t-slow);
}
.photo-card:hover .photo-card-img img { transform: scale(1.05); }
.photo-card h4 {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.012em;
  padding: 0 0.25rem;
}
.photo-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
  padding: 0 0.25rem;
}
@keyframes marquee-photos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ TIMELINE / GESCHICHTE ============ */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--line-strong);
}
.timeline-item { position: relative; padding-bottom: 4rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.timeline-item.has-photo { grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 720px) { .timeline-item.has-photo { grid-template-columns: 1fr; } }
.timeline-item::before {
  content: ""; position: absolute; left: -2rem;
  width: 12px; height: 12px;
  background: var(--paper); border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translateX(calc(-50% + 0.5px));
  top: 0.4rem;
}
.timeline-photo {
  width: 200px; aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-deep);
}
.timeline-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.timeline-content { }
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.timeline-item h3 {
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.timeline-item p { max-width: 60ch; text-align: justify; hyphens: auto; }
.timeline-item p + p { margin-top: 0.75rem; }
.timeline-item .timeline-year { text-align: left; }

/* ============ APP CARDS ============ */
.app-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}
.app-card--featured { grid-column: span 2; }
@media (max-width: 720px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-card--featured { grid-column: span 1; }
}
/* 2-spaltige Bullet-Liste für Featured-Karte */
.app-card ul.bullets-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.75rem;
}
@media (max-width: 720px) {
  .app-card ul.bullets-2col { grid-template-columns: 1fr; }
}
/* Footer-Strip mit Logo links und Store-Buttons rechts */
.app-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.app-card.is-featured .app-card-bottom {
  border-top-color: rgba(255,255,255,.12);
}
.app-card-logo {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.app-card-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.app-card {
  background: var(--cream);
  border-radius: clamp(20px, 2.4vw, 28px);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-direction: column; gap: 1.5rem;
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app-card.is-featured { background: var(--ink); color: #fff; }
.app-card.is-featured h3 { color: #fff; }
.app-card.is-featured p { color: rgba(255,255,255,.7); }
.app-badge {
  position: absolute; top: 1.4rem; right: 1.4rem;
  padding: 0.32rem 0.8rem;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px;
  font-weight: 500;
}
/* In den App-Boxen: Eyebrow ohne Strich davor */
.app-card .eyebrow::before { display: none; }
.app-card h3 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.app-card ul { display: flex; flex-direction: column; gap: 0.6rem; }
.app-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.97rem;
  line-height: 1.5;
}
.app-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.app-card.is-featured li::before { color: var(--accent); }
.app-stores { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.store-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: var(--ink); color: #fff;
  border-radius: 12px;
  font-size: 0.85rem; font-weight: 500;
  transition: transform var(--t-fast), background var(--t-fast);
}
.store-link:hover { transform: translateY(-1px); background: var(--accent); }
.store-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-link span small { display: block; font-size: 0.65rem; opacity: 0.7; font-weight: 400; }

.alt-channels {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2.5rem;
}
.alt-channel {
  padding: 1.4rem;
  border-radius: 18px;
  background: var(--cream);
  display: flex; gap: 1rem; align-items: flex-start;
}
.alt-channel .icon { color: var(--accent); flex-shrink: 0; }
.alt-channel small { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; font-weight: 500; }
.alt-channel a { color: var(--ink); font-weight: 500; }
.alt-channel a:hover { color: var(--accent); }

/* ============ CONTACT / MAP ============ */
.contact-grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr 1.4fr;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { display: flex; flex-direction: column; gap: 0; }
.contact-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-row small { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; font-weight: 500; }
.contact-row a { color: var(--ink); font-weight: 500; }
.contact-row a:hover { color: var(--accent); }

.map-frame {
  position: relative;
  border-radius: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-deep);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.9) contrast(0.95); }
/* Karte: Klick zum Laden (DSGVO - kein Datentransfer vor aktivem Klick) */
.map-consent {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem;
  background: var(--cream-deep);
}
.map-consent-inner { max-width: 36ch; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.map-consent-inner svg { width: 40px; height: 40px; color: var(--muted); }
.map-consent-title { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.map-consent-note { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.map-consent-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.map-consent-btn { margin-top: 0.3rem; }

/* ============ CTA ============ */
.cta {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--ink);
  color: #fff;
  border-radius: clamp(28px, 3vw, 44px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  color: #fff;
  max-width: 38ch;
  margin: 0 auto 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}
.cta h2 em { color: var(--accent); font-style: normal; }
.cta p { color: rgba(255,255,255,.7); max-width: 80ch; margin: 0 auto 2rem; font-size: 1.05rem; line-height: 1.5; }
.cta-actions { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.notdienst-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.25rem;
  line-height: 1.5;
  max-width: 60ch;
  font-style: italic;
}

/* ============ PAGE HERO (subpages) ============ */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 18ch;
  margin: 1.25rem auto 1.5rem;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: inherit;
}
/* "sub"-Variante: kleinerer Subtitel auf eigener Zeile (z.B. Team-Seite) */
.page-hero h1 em.sub {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.8vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
/* Kompakte Variante für H1 mit ganzen Sätzen pro Zeile (z.B. Kontakt) */
.page-hero h1.h1-sentences {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 36ch;
}
/* Etwas kleinere Statement-H1 (Leistungen, Vorbestellung, Geschichte) */
.page-hero h1.h1-compact {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}
/* Breitere H1 (Vorbestellung) - lange erste Zeile soll nicht zusätzlich umbrechen */
.page-hero h1.h1-wide { max-width: 26ch; }
/* Längere Statement-H1 (Leistungen) - etwas kleiner + breiter für saubere 2 Zeilen */
.page-hero h1.h1-long {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  max-width: 36ch;
}
/* Breiterer Lead (z.B. Leistungen) - 3 Zeilen, ohne die Schrift zu verkleinern */
.page-hero .lead.lead--wide { max-width: 70ch; }
.page-hero .lead { margin: 0 auto; max-width: 56ch; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  position: relative;
  overflow: hidden;
}
/* (Footer-Brand mit Bergmann + Mega-Text wurde entfernt — Footer startet direkt mit den Blöcken) */
/* .footer-mega entfernt */
.footer-blocks {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative; z-index: 1;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
}
@media (max-width: 720px) {
  .footer-blocks { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-block {
  padding: 0 0.5rem;
}
.footer-block strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.005em;
}
.footer-block a { color: inherit; transition: color var(--t-fast); }
.footer-block a:hover { color: var(--accent); }
/* Rechtliches-Menü unter den Blöcken */
.footer-legal-menu {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.footer-legal-menu a {
  color: rgba(255,255,255,.85);
  padding: 0.25rem 0;
  transition: color var(--t-fast);
}
.footer-legal-menu a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: center;
  font-size: 0.82rem;
  position: relative; z-index: 1;
  color: rgba(255,255,255,.55);
  text-align: center;
}

/* ============ LEGAL CONTENT ============ */
.legal {
  max-width: 900px;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
/* Volle Containerbreite für kurze Legal-Seiten (z.B. Cookie-Richtlinie) */
.legal.legal--wide { max-width: none; }
/* Rechtsseiten (Impressum/Datenschutz): Spalte mittig + Text zentriert.
   Cookie-Seite (.legal--wide) bleibt davon unberührt. */
.legal:not(.legal--wide) { margin-left: auto; margin-right: auto; text-align: center; }
.legal:not(.legal--wide) ul { display: inline-block; text-align: left; }
.legal h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
}
.legal h3 {
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.legal p, .legal ul { margin-bottom: 1rem; color: var(--ink-soft); }
.legal ul { padding-left: 1.5rem; list-style: disc; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* eRecht24: das vom Plugin gelieferte H1 ausblenden - die Seitenueberschrift
   kommt aus der page-hero (sonst doppelte + ueberdimensionierte Ueberschrift). */
.legal h1 { display: none; }

/* Logos auf den Rechtsseiten. Desktop: Siegel oben links + Serverstandort
   oben rechts (gleiche Hoehe --badge-h). Mobil: beide gestapelt am Seitenende. */
.legal-hero, .legal-logos-sec { --badge-h: clamp(62px, 8.5vw, 100px); }
.legal-hero { position: relative; text-align: center; min-height: var(--badge-h, 80px); }
.legal-siegel { height: var(--badge-h, 80px); width: auto; display: block; }
.serverstandort-badge img { height: var(--badge-h, 80px); width: auto; display: block; }
/* Desktop: Top-Logos in die Hero-Ecken */
.legal-hero .legal-siegel { position: absolute; top: 0; left: 0; }
.legal-hero .serverstandort-badge { position: absolute; top: 0; right: 0; line-height: 0; }
/* Logo-Reihe am Seitenende: nur auf Mobil sichtbar */
.legal-logos-sec { display: none; }

@media (max-width: 640px) {
  .legal-hero, .legal-logos-sec { --badge-h: clamp(64px, 16vw, 92px); }
  .legal-hero { min-height: 0; }
  .legal-hero .legal-logos--top { display: none; }            /* Top-Logos ausblenden */
  .legal-logos-sec { display: block; margin-top: 2.5rem; }    /* Logos ans Seitenende */
  .legal-logos--bottom { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .photo-marquee-track { animation: none; }
}

/* ============ UTILS ============ */
.center-text { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ============ LEISTUNGEN - FLIP-KACHEL-RASTER ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: var(--maxw-content);
  margin: 0 auto;
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card { perspective: 1200px; }
.svc-card-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; border-radius: var(--radius-lg); color: inherit; font: inherit;
}
.svc-card-btn:focus-visible { outline: 2px solid var(--ic, var(--accent)); outline-offset: 4px; }

.svc-card-inner {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
}
.svc-card-btn:hover .svc-card-inner,
.svc-card-btn:focus-visible .svc-card-inner { transform: rotateY(180deg); }

.svc-front, .svc-back {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; padding: 1.5rem;
  border-radius: var(--radius-lg); text-align: center;
}
.svc-front { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.svc-card.is-active .svc-front { border-color: var(--ic); box-shadow: 0 0 0 2px var(--ic) inset, var(--shadow); }

.svc-icon {
  width: 104px; height: 104px; display: grid; place-items: center;
  border-radius: 24px;
  background: color-mix(in srgb, var(--ic, var(--ink)) 13%, #fff);
  color: var(--ic, var(--ink));
}
.svc-icon svg { width: 64px; height: 64px; }
.svc-name { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 700; letter-spacing: -0.018em; color: var(--ink); max-width: 100%; }

.svc-back { background: var(--ic, var(--accent)); color: #fff; transform: rotateY(180deg); }
.svc-back .svc-name-sm { font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.015em; }
.svc-teaser { font-size: 1.02rem; line-height: 1.5; color: rgba(255,255,255,.96); max-width: 30ch; }
.svc-back .svc-more { margin-top: .2rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* Detail-Panel (volle Breite unter der Reihe) */
.svc-detail {
  grid-column: 1 / -1; position: relative;
  background: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem); margin-top: 0.5rem;
  --arrow-x: 50%;
  animation: svcReveal .32s var(--ease);
}
.svc-detail[hidden] { display: none; }
/* Quell-Container der Detailtexte: im DOM (crawlbar), aber unsichtbar - JS klont den Inhalt ins .svc-detail-Panel */
.svc-detail-src { display: none; }
.svc-detail::before {
  content: ""; position: absolute; top: -8px; left: var(--arrow-x);
  width: 18px; height: 18px; transform: translateX(-50%) rotate(45deg);
  background: var(--cream);
}
@keyframes svcReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.svc-detail-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.svc-detail-ic {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: color-mix(in srgb, var(--ic, var(--ink)) 14%, #fff); color: var(--ic, var(--ink));
}
.svc-detail-ic svg { width: 26px; height: 26px; }
.svc-detail h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--ic, var(--ink)); letter-spacing: -0.02em; }
.svc-detail-body { max-width: none; color: var(--ink-soft); }
.svc-detail-body > * + * { margin-top: .9rem; }
.svc-detail-body p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
/* Erstes Wort je Absatz in der Kachelfarbe hervorheben */
.svc-detail-body p .fw { color: var(--ic, var(--accent)); font-weight: 700; }
/* Links im Detailtext in Kachelfarbe + Unterstrich */
.svc-detail-body a { color: var(--ic, var(--accent)); text-decoration: underline; text-underline-offset: 2px; transition: opacity var(--t-fast); }
.svc-detail-body a:hover { opacity: .75; }

/* Affiliations-Logo (z.B. VHA) im Detail-Panel: rechts, Text läuft drumherum.
   mix-blend-mode multiply lässt den weißen Logo-Hintergrund in der Panel-Farbe verschwinden. */
.svc-detail-logo {
  float: right; width: clamp(180px, 21vw, 270px);
  margin: 0 0 1rem 1.8rem; display: block; transition: opacity var(--t-fast);
}
.svc-detail-logo img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.svc-detail-logo:hover { opacity: .8; }
@media (max-width: 560px) {
  /* Float aufheben: Logo als eigener Block oben im Panel (keine Ueberlappung mit der Ueberschrift) */
  .svc-detail-logo { float: none; width: clamp(150px, 44vw, 190px); margin: 0 0 1.1rem; }
}

/* Platzhalter-Marker (temporär, während wir die Texte abstimmen) */
.block-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ic, var(--accent));
  background: color-mix(in srgb, var(--ic, var(--accent)) 10%, #fff);
  padding: 0.15em 0.6em; border-radius: 999px; margin-right: 0.6rem; vertical-align: middle;
}

/* ============ LEISTUNGEN-ÜBERSICHT (Startseite) ============ */
/* Folge-Sektion in Weiß braucht oben Luft zur Grau/Weiß-Kante (wie andere Sektionen). */
.svc-home-sec { padding-top: clamp(2.5rem, 5vw, 4rem); }
/* Längere, beschreibende Überschrift braucht etwas mehr Breite als das s-head-Default (14ch). */
.svc-home-sec .s-head h2 { max-width: 18ch; }
.svc-home-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}
@media (max-width: 900px) { .svc-home-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .svc-home-grid { grid-template-columns: repeat(2, 1fr); } }

.svc-home-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  padding: clamp(1rem, 2vw, 1.5rem) 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-align: center; color: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.svc-home-item:hover, .svc-home-item:focus-visible {
  border-color: var(--ic, var(--accent));
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.svc-home-ic {
  width: 60px; height: 60px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ic, var(--ink)) 13%, #fff);
  color: var(--ic, var(--ink));
  transition: background var(--t-fast), color var(--t-fast);
}
.svc-home-ic svg { width: 34px; height: 34px; }
.svc-home-item:hover .svc-home-ic, .svc-home-item:focus-visible .svc-home-ic { background: var(--ic); color: #fff; }
.svc-home-name { font-size: 0.95rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }

/* ============ PFLEGE-BOX ============ */
.pb-verify {
  max-width: 460px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow);
}
.pb-verify[hidden] { display: none; }
.pb-verify label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.pb-input {
  width: 100%; padding: 0.85rem 1rem;
  font-family: var(--font-mono); font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.pb-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pb-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }
.pb-btn {
  width: 100%; margin-top: 1.1rem; padding: 0.9rem 1.5rem;
  font-size: 1rem; font-weight: 600; color: #fff; background: var(--ink);
  border: 0; border-radius: 999px; cursor: pointer; transition: background var(--t-fast);
}
.pb-btn:hover { background: var(--accent); }
.pb-btn[disabled] { opacity: 0.6; cursor: default; }
.pb-error { margin: 0.9rem 0 0; color: var(--accent); font-size: 0.9rem; font-weight: 500; min-height: 1.2em; }
.pb-note { max-width: 460px; margin: 1.1rem auto 0; font-size: 0.82rem; color: var(--muted); text-align: center; }
.pb-note[hidden] { display: none; }
.pb-tool[hidden] { display: none; }
.pb-tool-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
.pb-tool-intro { color: var(--ink-soft); margin: 0.5rem 0 1.5rem; }
:root { --pb-good: #16a34a; }

/* --- Budget (Tacho) + Live-Auswahl - bleiben beim Scrollen sichtbar (sticky) --- */
.pb-budgets { position: sticky; top: calc(var(--header-h) + 0.5rem); z-index: 50; margin-bottom: 1.5rem; background: var(--paper); padding: 0.8rem 1rem; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(10,37,69,.10); display: flex; gap: 1.25rem; align-items: stretch; }
.pb-gauge-box { flex: 0 0 auto; width: 150px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; }
.pbw-gauge { width: 100%; max-width: 140px; height: auto; }
.pbw-gauge-bg { fill: none; stroke: var(--line); stroke-width: 12; stroke-linecap: round; }
.pbw-gauge-fill { fill: none; stroke: var(--pb-good); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset var(--t-med), stroke var(--t-fast); }
.pbw-gauge-fill.is-over { stroke: var(--accent); }
.pbw-val { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pbw-sub { font-size: 0.78rem; color: var(--muted); text-align: center; }
.pbw-sub.is-over { color: var(--accent); font-weight: 600; }
.pb-summary { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pb-summary-head { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.pb-summary-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 130px; }
.pb-summary-list li { display: flex; gap: 0.5rem; align-items: center; padding: 0.25rem 0; font-size: 0.85rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.pb-sum-ctrl { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.3rem; }
.pb-sum-ctrl button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.pb-sum-ctrl button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pb-sum-q { min-width: 1.6ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-sum-name { flex: 1; min-width: 0; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-sum-price { flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.pb-sum-del { flex: 0 0 auto; width: 22px; height: 22px; border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; border-radius: 50%; transition: background var(--t-fast), color var(--t-fast); }
.pb-sum-del:hover { background: color-mix(in srgb, var(--accent) 15%, #fff); color: var(--accent); }
.pb-summary-empty { color: var(--muted); font-style: italic; border: 0; padding: 0.2rem 0; }
.pb-disclaimer { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 2rem; font-style: italic; }

/* --- Bestellung --- */
.pb-order { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.pb-deliver { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0.75rem 0; }
.pb-deliver label { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; }
.pb-deliver-note { color: var(--ink-soft); font-size: 0.9rem; background: var(--cream); padding: 0.7rem 1rem; border-radius: 10px; margin: 0 0 0.5rem; }
.pb-deliver-note[hidden] { display: none; }
.pb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pb-order-btn { margin-top: 1rem; padding: 0.9rem 2rem; font-size: 1rem; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 999px; cursor: pointer; transition: opacity var(--t-fast); }
.pb-order-btn:hover { opacity: 0.9; }
.pb-order-btn[disabled] { opacity: 0.6; cursor: default; }
.pb-order-msg { margin-top: 0.8rem; font-weight: 500; }
.pb-order-msg.is-ok { color: var(--pb-good); }
.pb-order-msg.is-err { color: var(--accent); }

/* --- Waschbare Bettschutzeinlagen (separates Budget) --- */
.pb-washable { margin-top: 2.5rem; }
.pb-washable-sub { color: var(--muted); font-size: 0.85rem; margin: -0.6rem 0 1rem; }
.pb-washable-card { display: flex; gap: 1.25rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.pb-washable-card img { width: 110px; height: 110px; object-fit: contain; object-position: center top; flex: 0 0 auto; }
.pb-washable-body { flex: 1; min-width: 0; }
.pb-washable-check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; cursor: pointer; margin-bottom: 0.8rem; }
.pb-washable-check input { margin-top: 0.2rem; width: 18px; height: 18px; flex: 0 0 auto; cursor: pointer; }
.pb-washable-notes { margin: 0; padding-left: 1.2rem; font-size: 0.85rem; color: var(--ink-soft); }
.pb-washable-notes li { margin-bottom: 0.4rem; }
@media (max-width: 560px) { .pb-washable-card { flex-direction: column; align-items: center; } }

/* --- Produktgruppen: 2 Spalten, grosse Gruppen ueber volle Breite --- */
.pb-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; align-items: start; }
.pb-group { margin: 0; padding: 0; } /* padding:0 wichtig: .pb-group ist <section>, sonst erbt die erste Gruppe das grosse globale section-Top-Padding */
.pb-group--wide { grid-column: 1 / -1; }
.pb-group-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.pb-prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.pb-group--wide .pb-prod-grid { grid-template-columns: repeat(4, 1fr); }
.pb-prod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.pb-prod.is-active { border-color: var(--pb-good); box-shadow: var(--shadow); }
.pb-prod img { width: 110px; height: 110px; object-fit: contain; object-position: center top; }
.pb-prod-ph-img { width: 110px; height: 110px; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 12px; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.25; }
.pb-prod-name { font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.pb-prod-pack { font-size: 0.82rem; color: var(--muted); }
.pb-prod-note { font-size: 0.74rem; color: var(--ink-soft); font-style: italic; }
.pb-step { display: inline-flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 0.5rem; }
.pb-step button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.pb-step button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pb-qty { min-width: 1.5ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .pb-groups { grid-template-columns: 1fr; } .pb-group--wide .pb-prod-grid { grid-template-columns: repeat(2, 1fr); } .pb-gauge-box { width: 120px; } .pb-summary-list { max-height: 110px; } }
