/* ==========================================================================
   ACT Medical Center GmbH — Stil „Klinisch Editorial“
   Statisches Redesign der TYPO3-Seite act-mm.de
   Font: Titillium Web (self-hosted, von Google Fonts bereitgestellt)
   ========================================================================== */

/* ---------- Fonts: Titillium Web (self-hosted woff2) ---------- */

/* weight 200 */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-200-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: "Titillium Web";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-200-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-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* weight 300 */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-300-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: "Titillium Web";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-300-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-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* weight 400 */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-400-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: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-400-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-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* weight 600 */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-600-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: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-600-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-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* weight 700 */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-700-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: "Titillium Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-normal-700-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-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* italic 300 */
@font-face {
  font-family: "Titillium Web";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-italic-300-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: "Titillium Web";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-italic-300-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-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* italic 400 */
@font-face {
  font-family: "Titillium Web";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-italic-400-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: "Titillium Web";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-italic-400-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-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* italic 600 */
@font-face {
  font-family: "Titillium Web";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-italic-600-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: "Titillium Web";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/titillium-web-v19-italic-600-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-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design Tokens ---------- */

:root {
  /* Farben */
  --red: #b51d28;            /* ACT-Markenrot (Original-CSS) */
  --red-dark: #8e1520;       /* Hover */
  --red-deep: #6f0f18;       /* Footer-Bodenleiste */
  --red-tint: #fbeef0;       /* Rot, hauchdünn (Hintergründe) */
  --bg: #524e54;             /* Seitenhintergrund (Original #5a555a, tiefer gestimmt) */
  --bg-deep: #45414a;
  --paper: #ffffff;          /* Inhaltshintergrund („Blatt“) */
  --paper-soft: #faf8f7;     /* Alternierende Sektionsflächen */
  --ink: #221f23;            /* Titel, dunkler Text */
  --ink-soft: #4d484f;       /* Fließtext */
  --ink-faint: #837d86;      /* Caption, Meta */
  --line: #e9e5e4;           /* Hairline auf Weiß */
  --line-strong: #d6d0cf;

  /* Typografie */
  --font: "Titillium Web", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;          /* 12px */
  --fs-sm: 0.875rem;         /* 14px */
  --fs-base: 1rem;           /* 16px */
  --fs-md: 1.125rem;         /* 18px */
  --fs-lg: 1.375rem;         /* 22px */
  --fs-xl: 1.75rem;          /* 28px */
  --fs-2xl: clamp(2.125rem, 4vw, 3rem);
  --fs-display: clamp(2.5rem, 5.2vw, 3.75rem);
  --leading-tight: 1.12;
  --leading-body: 1.65;

  /* Abstände (4er-Raster) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  /* Layout */
  --container: 1160px;
  --measure: 66ch;
  --header-h: 76px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sheet: 0 1px 2px rgba(18, 12, 14, 0.14), 0 24px 60px -24px rgba(18, 12, 14, 0.45);
  --shadow-soft: 0 8px 30px rgba(18, 12, 14, 0.07);
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ---------- Reset / Basis ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--ink-soft);
  background-color: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 60%);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s4);
  color: var(--ink);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--s4);
}

ul, ol {
  margin: 0 0 var(--s5);
  padding: 0;
}

a {
  color: var(--red);
  text-decoration: none;
}

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

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s5);
}

.measure {
  max-width: var(--measure);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

.lead {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.muted {
  color: var(--ink-faint);
  font-size: var(--fs-sm);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--s4);
  z-index: 100;
  padding: var(--s2) var(--s4);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--s2);
  color: #fff;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 6px 24px -12px rgba(18, 12, 14, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

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

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: var(--s2) var(--s3);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: var(--s3);
  right: var(--s3);
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease);
}

.main-nav a:hover {
  color: var(--red);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--red);
}

.main-nav a .ext {
  display: inline-block;
  font-size: 0.8em;
  margin-left: 2px;
  opacity: 0.7;
}

/* Nav-Toggle (mobil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Das weiße „Blatt“ (Inhaltsfläche) ---------- */

.sheet {
  background: var(--paper);
  max-width: var(--container);
  margin: var(--s6) auto 0;
  box-shadow: var(--shadow-sheet);
}

.sheet-inner {
  padding: var(--s8) var(--s5) var(--s9);
}

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-head {
  padding-bottom: var(--s7);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s7);
}

.page-head h1 {
  font-size: var(--fs-2xl);
  font-weight: 200;
  margin-bottom: var(--s4);
}

.page-head .lead {
  margin-bottom: 0;
}

/* ---------- Abschnitte ---------- */

.section {
  padding: var(--s8) 0;
}

.section:first-of-type {
  padding-top: 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section--tint {
  background: var(--paper-soft);
}

.section--full {
  margin-left: calc(var(--s5) * -1);
  margin-right: calc(var(--s5) * -1);
  padding-left: var(--s5);
  padding-right: var(--s5);
}

.hero--flush-bottom {
  padding-bottom: 0;
}

.section-title {
  font-size: var(--fs-xl);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s5);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s7);
  align-items: start;
}

.section-grid--flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--on-red {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--on-red:hover {
  background: #fff;
  border-color: #fff;
  color: var(--red);
}

.btn .arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s6);
}

/* ---------- Textlinks mit Unterstrich-Animation ---------- */

.link {
  color: var(--red);
  font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--ease);
}

.link:hover {
  background-size: 100% 1px;
}

/* ---------- Checkliste (Original: ul.check) ---------- */

.check-list {
  list-style: none;
  margin-bottom: 0;
}

.check-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: var(--s3);
  color: var(--ink);
  font-weight: 400;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--red-tint);
  color: var(--red);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Schritte: Zeitstrahl (Home, „4 einfache Schritte“) ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: var(--s8);
}

/* Verbindende Linie */
.steps li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.steps li:first-child::before {
  left: 50%;
}

.steps li:last-child::before {
  right: 50%;
}

.steps li::after {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  /* „Ausbruch“ der Ziffernkreise über die Verbindungs-Linie */
  box-shadow: 0 0 0 6px var(--paper);
}

.steps--tint li::after {
  box-shadow: 0 0 0 6px var(--paper-soft);
}

.step-title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s2);
}

.step-text {
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

.steps--tint {
  background: var(--paper-soft);
}

/* ---------- App-Schritte (Bestell-App) ---------- */

/* Hinweis: Die Original-Icons enthalten bereits ihr Ziffern-Badge,
   daher wird hier kein zusätzliches Badge per CSS gezeichnet. */

.app-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}

.app-steps li {
  position: relative;
  padding-top: var(--s2);
}

.app-steps .app-step-img {
  position: relative;
  width: 84px;
  margin-bottom: var(--s4);
}

.app-steps .app-step-img img {
  width: 84px;
  height: auto;
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s8);
  align-items: center;
  padding: var(--s8) 0 var(--s8);
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: var(--s5);
}

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

.hero .lead {
  margin-bottom: var(--s4);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}

/* ---------- Feature-Bilder / großformatige Grafiken ---------- */

.figure-full {
  margin: var(--s7) 0 0;
}

.figure-full img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.badge-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s7);
  align-items: center;
}

.badge-row img {
  width: 180px;
  height: auto;
}

/* ---------- Store-Badges ---------- */

.store-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s5);
  padding: var(--s5) var(--s6);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.store-band p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.store-badges a {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s var(--ease);
}

.store-badges a:hover {
  transform: translateY(-2px);
}

.store-badges img,
.store-badges svg {
  height: 44px;
  width: auto;
}

/* ---------- Kontakt-Zeile (Bestell-App, ALM) ---------- */

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}

.contact-tile {
  display: block;
  padding: var(--s5) var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-tile:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.contact-tile .label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s2);
}

.contact-tile .value {
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 300;
}

.contact-tile:hover .value {
  color: var(--red);
}

/* ---------- Download-Karten (Aktuell, Zertifikate) ---------- */

.download-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.download-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-soft);
}

.download-card + .download-card {
  margin-top: var(--s5);
}

.download-card .thumb {
  display: block;
  line-height: 0;
}

.download-card .thumb img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-card h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--s2);
}

.download-card .meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s3);
}

.download-card p {
  margin-bottom: var(--s3);
}

/* ---------- Info-Panel (ALM-System, Nagelspangen) ---------- */

.panel {
  padding: var(--s7);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
}

.panel h3 {
  font-size: var(--fs-lg);
  font-weight: 400;
}

/* ---------- Prose (Impressum, Datenschutz) ---------- */

.prose {
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 74ch;
}

.prose h2 {
  font-size: var(--fs-lg);
  font-weight: 400;
  margin: var(--s7) 0 var(--s4);
  padding-left: var(--s4);
  border-left: 3px solid var(--red);
  scroll-margin-top: calc(var(--header-h) + var(--s5));
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin: var(--s5) 0 var(--s3);
  color: var(--ink);
}

.prose h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin: var(--s4) 0 var(--s2);
  color: var(--ink);
}

.prose ul {
  list-style: disc;
  padding-left: var(--s5);
  margin-bottom: var(--s4);
}

.prose li {
  margin-bottom: var(--s2);
}

.prose p {
  margin-bottom: var(--s4);
}

.prose a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--red-dark);
}

.prose strong {
  color: var(--ink);
}

/* Abschnitt-Navigation (Datenschutz) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.chips a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.chips a:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-tint);
}

/* ---------- Katalog: Vollbild-Rahmen ---------- */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar h1 {
  font-size: var(--fs-md);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  margin: 0;
}

.catalog-toolbar .toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.catalog-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - var(--header-h) - 65px);
  min-height: 480px;
  border: 0;
  background: #f2f2f2;
}

.sheet--full {
  margin-top: 0;
  box-shadow: none;
}

.sheet--full .sheet-inner {
  padding: 0;
}

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

.site-footer {
  margin-top: var(--s8);
  background: var(--red);
  color: rgba(255, 255, 255, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 0;
  padding: var(--s7) 0;
}

.footer-col {
  padding: 0 var(--s6);
}

.footer-col + .footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

/* Sprechblase (rekonstruiert per CSS) */
.bubble {
  display: inline-block;
  position: relative;
  max-width: 300px;
  padding: var(--s4) var(--s5);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease);
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 34px;
  width: 24px;
  height: 24px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 0 0 4px 0;
}

.bubble:hover {
  transform: translateY(-3px);
  color: var(--red);
}

.bubble .bubble-top {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s1);
}

.bubble .bubble-phone {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.bubble:hover .bubble-phone {
  color: var(--red);
}

.footer-col p {
  margin: 0 0 var(--s3);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.footer-col a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-col a:hover {
  color: var(--red-tint);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  font-size: var(--fs-xs);
  margin-top: var(--s4);
}

.footer-legal a {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-address {
  text-align: right;
}

.footer-credit {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.footer-credit img {
  height: 18px;
  width: auto;
  margin-top: 2px;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  background: var(--red-deep);
  padding: var(--s3) 0;
  font-size: var(--fs-xs);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s7);
    padding-top: var(--s7);
  }

  .hero-figure {
    order: -1;
    max-width: 560px;
  }

  .section-grid,
  .section-grid--flip {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s6) var(--s5);
  }

  /* Linie beim 2er-Raster neu ausrichten */
  .steps li::before {
    top: 22px;
  }

  .steps li:nth-child(odd)::before {
    left: 50%;
  }

  .steps li:nth-child(even)::before {
    right: 50%;
  }

  .steps li:first-child::before,
  .steps li:nth-child(3)::before {
    left: 50%;
    right: auto;
  }

  .steps li:last-child::before {
    right: 50%;
    left: auto;
  }

  .app-steps {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(18, 12, 14, 0.35);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s3) var(--s5) var(--s5);
  }

  .main-nav li + li {
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    display: block;
    padding: var(--s4) var(--s2);
    font-size: var(--fs-base);
  }

  .main-nav a::after {
    display: none;
  }

  .sheet {
    margin-top: var(--s5);
  }

  .sheet-inner {
    padding: var(--s7) var(--s5) var(--s8);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col {
    padding: var(--s5) 0;
  }

  .footer-col + .footer-col {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

  .footer-address {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .brand img {
    height: 38px;
  }

  .sheet {
    margin-top: 0;
    box-shadow: none;
  }

  .sheet-inner {
    padding: var(--s6) var(--s4) var(--s7);
  }

  .section,
  .page-head {
    padding-top: var(--s6);
    padding-bottom: var(--s6);
  }

  .page-head {
    padding-top: var(--s5);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .steps li::before {
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .steps li:first-child::before,
  .steps li:nth-child(3)::before {
    left: 22px;
    right: auto;
  }

  .steps li:last-child::before {
    right: auto;
    bottom: 50%;
  }

  .section--full {
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--s4);
    padding-right: var(--s4);
  }

  .badge-row {
    grid-template-columns: 1fr;
    gap: var(--s5);
    justify-items: center;
    text-align: center;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .catalog-frame {
    height: calc(100dvh - var(--header-h) - 57px);
    min-height: 420px;
  }
}

/* ---------- Bewegungseinschränkung ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
