/* Self-hosted fonts: Inter (400, 600) & Lora (400, 400 italic, 700) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./inter-latin-ext-400-normal-C1nco2VV.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./inter-latin-400-normal-C38fXH4l.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./inter-latin-ext-600-normal-D2bJ5OIk.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./inter-latin-600-normal-LgqL8muc.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: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./lora-latin-ext-400-normal-CyviI4c-.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./lora-latin-400-normal-DnxXpLNu.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: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./lora-latin-ext-700-normal-DbHby4fw.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./lora-latin-700-normal-BHK4Pzk4.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: "Lora";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("./lora-latin-ext-400-italic-D02B-RQB.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("./lora-latin-400-italic-DYjZp4sZ.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;
}

/* Unique Alpine-Emerald & Soft Botanical-Sage Palette for KnieWohlRatgeber */
:root {
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Lora", Georgia, serif;
  --spacing: 0.25rem;
  --radius: 0.75rem;
  --background: oklch(98.6% 0.008 165);
  --foreground: oklch(24% 0.025 182);
  --card: oklch(100% 0 0);
  --card-foreground: oklch(24% 0.025 182);
  --popover: oklch(100% 0 0);
  --popover-foreground: oklch(24% 0.025 182);
  --primary: oklch(47% 0.118 162);
  --primary-foreground: oklch(99.2% 0 0);
  --primary-hover: oklch(40% 0.105 162);
  --secondary: oklch(94.8% 0.02 166);
  --secondary-foreground: oklch(24% 0.025 182);
  --muted: oklch(94.6% 0.015 168);
  --muted-foreground: oklch(43% 0.025 180);
  --accent: oklch(93.8% 0.028 165);
  --accent-foreground: oklch(22% 0.03 178);
  --warm: oklch(94.5% 0.03 166);
  --warm-border: oklch(86% 0.045 165);
  --border: oklch(88.5% 0.02 168);
  --input: oklch(87.5% 0.022 168);
  --ring: oklch(47% 0.118 162);
}

/* Base Reset & Mobile Overflow Protection */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

@media (width >= 40rem) {
  html {
    font-size: 18px;
  }
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ol, ul, menu {
  list-style: none;
}

img, svg, video, canvas {
  vertical-align: middle;
  display: block;
}

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

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
  appearance: button;
}

[hidden] {
  display: none !important;
}

/* Top Tricolor German Accent Line */
.de-stripe {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #181818 0%, #181818 33.33%, #d91e18 33.33%, #d91e18 66.66%, #f5be00 66.66%, #f5be00 100%);
}

/* Brand Header Link */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--foreground);
  transition: color 0.15s ease;
}

.brand-link:hover {
  color: var(--primary);
}

.brand-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Article Fluid Typography (Mobile-First) */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.72rem, 6.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: clamp(1.08rem, 3.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted-foreground);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.article p {
  margin-bottom: 1.1rem;
}

.article h2 {
  font-family: var(--font-serif);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.42rem, 4.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
}

/* Vertical Video Frame (Zero Layout Shift + Mobile Screen Fit) */
.reel-video {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  margin-inline: auto;
  border-radius: calc(var(--radius) + 4px);
  background-color: var(--muted);
  box-shadow: 0 10px 26px -10px rgba(16, 42, 36, 0.22);
}

@media (width >= 40rem) {
  .reel-video {
    max-width: 360px;
  }
}

/* Custom Prelander CTA Buttons */
.cta {
  border-radius: var(--radius);
  background: linear-gradient(180deg, oklch(50% 0.122 162) 0%, var(--primary) 100%);
  width: 100%;
  min-height: 54px;
  color: var(--primary-foreground);
  text-align: center;
  box-shadow: 0 8px 20px -8px var(--primary);
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 600;
  display: flex;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

@supports (color: color-mix(in lab, red, red)) {
  .cta {
    box-shadow: 0 8px 22px -8px color-mix(in oklab, var(--primary) 65%, transparent);
  }
}

.cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

@media (width >= 48rem) {
  .cta {
    width: auto;
    max-width: 480px;
    min-height: 56px;
    padding: 0.9rem 1.75rem;
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-sm {
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(180deg, oklch(50% 0.122 162) 0%, var(--primary) 100%);
  min-height: 44px;
  color: var(--primary-foreground);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  box-shadow: 0 4px 12px -4px rgba(19, 111, 80, 0.45);
  transition: background 0.2s ease;
}

.cta-sm:hover {
  background: var(--primary-hover);
}

/* Feature Pills (Full-Width Clean Cards on Mobile, Pills on Tablet/Desktop) */
.pill {
  background: var(--warm);
  border: 1px solid var(--warm-border);
  color: var(--foreground);
  border-radius: 0.85rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
  display: flex;
  width: 100%;
}

.pill svg {
  color: var(--primary);
  flex-shrink: 0;
}

@media (width >= 40rem) {
  .pill {
    display: inline-flex;
    width: auto;
    border-radius: 999px;
    padding: 0.58rem 1rem;
    font-size: 1rem;
  }
}

/* Numbered Step Badge */
.step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  width: 1.9rem;
  flex-shrink: 0;
  text-align: center;
}

@media (width >= 40rem) {
  .step-num {
    font-size: 3rem;
    width: 2.2rem;
  }
}

/* Feature card subtle hover */
.feature-card {
  box-shadow: 0 2px 10px -4px rgba(16, 48, 40, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--warm-border);
  box-shadow: 0 8px 20px -8px rgba(16, 48, 40, 0.12);
}

/* Mobile Sticky Bottom Bar (Safe-Area & Frosted Glass) */
.mobile-sticky {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.68rem 1rem calc(0.68rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px -4px rgba(16, 42, 36, 0.12);
}

/* Cookie Dialog Mobile Comfort & Safe Area */
.cookie-sheet {
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 28px -4px rgba(16, 42, 36, 0.18);
}

@media (width >= 40rem) {
  .cookie-sheet {
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Unified Footer Legal Links (Impressum / Datenschutz / Cookie-Einstellungen) */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.4rem;
  row-gap: 0.65rem;
  padding-top: 0.5rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-link:hover,
.footer-link.active {
  color: var(--primary);
}

/* Legal Subpage Styles */
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--warm);
  border: 1px solid var(--warm-border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  transition: background 0.15s ease;
}

.back-pill:hover {
  background: var(--accent);
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  margin-top: 1.15rem;
  box-shadow: 0 2px 10px -4px rgba(16, 48, 40, 0.05);
}

@media (width >= 48rem) {
  .legal-card {
    padding: 2rem;
  }
}

.legal-card h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

@media (width >= 40rem) {
  .legal-card h2 {
    font-size: 1.35rem;
  }
}

.legal-card h2:first-child {
  margin-top: 0;
}

/* Cookie Modal Backdrop */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(16, 32, 28, 0.35);
  backdrop-filter: blur(2px);
}

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.bg-background { background-color: var(--background); }
.bg-muted { background-color: var(--muted); }
.bg-card { background-color: var(--card); }
.bg-warm { background-color: var(--warm); border: 1px solid var(--warm-border); }
.text-foreground { color: var(--foreground); }
.text-card-foreground { color: var(--card-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-border { border-color: var(--border); }
.border-primary { border-color: var(--primary); }
.border-input { border-color: var(--input); }
.border-transparent { border-color: transparent; }

.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-t-xl {
  border-top-left-radius: calc(var(--radius) + 4px);
  border-top-right-radius: calc(var(--radius) + 4px);
}
.rounded-2xl { border-radius: calc(var(--radius) + 8px); }
.rounded-full { border-radius: 9999px; }

.mx-auto { margin-inline: auto; }
.my-7 { margin-block: calc(var(--spacing) * 7); }
.my-8 { margin-block: calc(var(--spacing) * 8); }
.\!mt-0 { margin-top: 0 !important; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: calc(var(--spacing) * 1); }
.mt-2 { margin-top: calc(var(--spacing) * 2); }
.mt-3 { margin-top: calc(var(--spacing) * 3); }
.mt-4 { margin-top: calc(var(--spacing) * 4); }
.mt-5 { margin-top: calc(var(--spacing) * 5); }
.mt-6 { margin-top: calc(var(--spacing) * 6); }
.mt-8 { margin-top: calc(var(--spacing) * 8); }
.mt-10 { margin-top: calc(var(--spacing) * 10); }
.mt-12 { margin-top: calc(var(--spacing) * 12); }
.mt-14 { margin-top: calc(var(--spacing) * 14); }
.mt-16 { margin-top: calc(var(--spacing) * 16); }
.\!mb-0 { margin-bottom: 0 !important; }

.p-0 { padding: 0; }
.p-4 { padding: calc(var(--spacing) * 4); }
.p-5 { padding: calc(var(--spacing) * 5); }
.p-6 { padding: calc(var(--spacing) * 6); }
.px-4 { padding-inline: calc(var(--spacing) * 4); }
.px-5 { padding-inline: calc(var(--spacing) * 5); }
.py-2 { padding-block: calc(var(--spacing) * 2); }
.py-3 { padding-block: calc(var(--spacing) * 3); }
.py-3\.5 { padding-block: 0.875rem; }
.py-4 { padding-block: calc(var(--spacing) * 4); }
.py-5 { padding-block: calc(var(--spacing) * 5); }
.py-8 { padding-block: calc(var(--spacing) * 8); }
.py-10 { padding-block: calc(var(--spacing) * 10); }
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: calc(var(--spacing) * 2); }
.pt-4 { padding-top: calc(var(--spacing) * 4); }
.pt-5 { padding-top: calc(var(--spacing) * 5); }
.pt-6 { padding-top: calc(var(--spacing) * 6); }
.pb-4 { padding-bottom: calc(var(--spacing) * 4); }
.pb-8 { padding-bottom: calc(var(--spacing) * 8); }

.max-w-\[720px\] { max-width: 720px; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-4 { height: calc(var(--spacing) * 4); }
.w-4 { width: calc(var(--spacing) * 4); }
.h-5 { height: calc(var(--spacing) * 5); }
.w-5 { width: calc(var(--spacing) * 5); }
.h-6 { height: calc(var(--spacing) * 6); }
.w-6 { width: calc(var(--spacing) * 6); }
.h-7 { height: calc(var(--spacing) * 7); }
.w-7 { width: calc(var(--spacing) * 7); }
.w-9 { width: calc(var(--spacing) * 9); }
.min-h-11 { min-height: 2.75rem; }
.min-h-12 { min-height: calc(var(--spacing) * 12); }
.max-h-\[80dvh\] { max-height: 80dvh; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.grid { display: grid; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gap-2 { gap: calc(var(--spacing) * 2); }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: calc(var(--spacing) * 3); }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: calc(var(--spacing) * 4); }
.gap-x-6 { column-gap: calc(var(--spacing) * 6); }
.gap-y-3 { row-gap: calc(var(--spacing) * 3); }

.space-y-3 > :not(:last-child) { margin-bottom: calc(var(--spacing) * 3); }
.space-y-4 > :not(:last-child) { margin-bottom: calc(var(--spacing) * 4); }
.space-y-5 > :not(:last-child) { margin-bottom: calc(var(--spacing) * 5); }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[9\/16\] { aspect-ratio: 9 / 16; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

.font-serif { font-family: var(--font-serif); }
.text-xs { font-size: 0.78rem; line-height: 1.3; }
.text-sm { font-size: 0.875rem; line-height: 1.35; }
.text-\[15px\] { font-size: 15px; line-height: 1.5; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-lg { font-size: 1.06rem; line-height: 1.45; }
.text-xl { font-size: 1.18rem; line-height: 1.4; }
.text-2xl { font-size: 1.4rem; line-height: 1.3; }

@media (width >= 40rem) {
  .text-lg { font-size: 1.125rem; line-height: 1.5; }
  .text-xl { font-size: 1.25rem; line-height: 1.45; }
  .text-2xl { font-size: 1.5rem; line-height: 1.33; }
}

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration-line: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.09em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.42; }
.leading-relaxed { line-height: 1.62; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.break-words { overflow-wrap: break-word; }

.fixed { position: fixed; }
.inset-x-0 { left: 0; right: 0; }
.bottom-0 { bottom: 0; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

.shadow-sm { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 10px 24px -4px rgba(16, 42, 36, 0.16), 0 4px 8px -4px rgba(16, 42, 36, 0.1); }
.outline-none { outline: none; }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }

.transition-all { transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-transform { transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), translate 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.duration-200 { transition-duration: 0.2s; }

.translate-y-0 { transform: translateY(0); }
.translate-y-full { transform: translateY(105%); }

@media (hover: hover) {
  .hover\:underline:hover { text-decoration-line: underline; }
  .hover\:bg-accent:hover { background-color: var(--accent); }
  .hover\:text-accent-foreground:hover { color: var(--accent-foreground); }
}

.focus-visible\:outline-none:focus-visible { outline: none; }
.focus-visible\:ring-1:focus-visible { box-shadow: 0 0 0 1px var(--ring); }
.focus-visible\:ring-2:focus-visible { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }

/* Callout aside */
.callout-box {
  background: var(--warm);
  border-left: 4px solid var(--primary);
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* Accordion state & smooth height animation */
.accordion-trigger {
  min-height: 54px;
  gap: 0.85rem;
}

.accordion-trigger[data-state="open"] > svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease-out;
}

.accordion-panel[data-state="open"] {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
}

/* Cookie Switch states */
.cookie-switch[data-state="checked"] {
  background-color: var(--primary);
}
.cookie-switch[data-state="unchecked"] {
  background-color: var(--input);
}
.cookie-switch-thumb {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-switch[data-state="checked"] .cookie-switch-thumb {
  transform: translateX(1rem);
}
.cookie-switch[data-state="unchecked"] .cookie-switch-thumb {
  transform: translateX(0);
}

/* Cookie accept primary button */
.btn-cookie-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-cookie-primary:hover {
  background: var(--primary-hover);
}

/* Responsive Breakpoints */
@media (width >= 40rem) {
  .sm\:px-5 { padding-inline: calc(var(--spacing) * 5); }
  .sm\:p-5 { padding: calc(var(--spacing) * 5); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-wrap { flex-wrap: wrap; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5; }
}

@media (width >= 48rem) {
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:max-w-\[360px\] { max-width: 360px; }
  .md\:max-w-\[440px\] { max-width: 440px; }
  .md\:p-10 { padding: calc(var(--spacing) * 10); }
}

@media (width < 48rem) {
  body.has-sticky-bar {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}
