/* ═══════════════════════════════════════════════════════════════════════════
   SSI WebGenerator Endoskeleton — base.css v3.12.0
   Core layout, grid, typography, responsive foundation.
   NEVER modified per site. All colors via CSS custom properties.
   Theme overrides go in theme.css per project.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─────────────────────────────────────────────────── */
:root {
  /* Colors — accessible defaults (WCAG AA compliant)
     --text #333 on --bg #fff = 12.6:1 contrast ratio
     --text-muted #595959 on --bg #fff = 7.0:1 contrast ratio */
  --primary:         #2e6b2e;
  --primary-dark:    #1e4d1e;
  --primary-light:   #4a9e4a;
  --primary-rgb:     46, 107, 46;
  --bg:              #ffffff;
  --bg-alt:          #f1f5f9;
  --bg-dark:         #1a1a2e;
  --text:            #2d3748;
  --text-muted:      #64748b;
  --text-light:      #475569;
  --text-on-primary: #ffffff;
  --heading:         #0f172a;
  --border:          rgba(15, 23, 42, 0.10);
  --card-bg:         #ffffff;
  --shadow:          rgba(0, 0, 0, 0.08);
  --focus:           #1a6bff;
  --error:           #c0392b;
  --success:         #27ae60;

  /* Spacing — all in rem for accessibility */
  --space-xs:      0.25rem;
  --space-sm:      0.5rem;
  --space-md:      1rem;
  --space-lg:      1.5rem;
  --space-xl:      2rem;
  --space-2xl:     3rem;
  --space-3xl:     4rem;
  --space-section: 5rem;

  /* Typography — fluid with clamp() */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-nav: var(--font-heading);
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --fs-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --fs-sm:   clamp(0.8125rem, 0.775rem + 0.2vw, 0.875rem);
  --fs-base: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  --fs-md:   clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
  --fs-lg:   clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --fs-xl:   clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --fs-2xl:  clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --fs-3xl:  clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --fs-hero: clamp(2.5rem, 1.75rem + 3.75vw, 4.5rem);
  --fs-display: clamp(3.5rem, 2.5rem + 6vw, 8rem);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 0.0625rem 0.1875rem var(--shadow);
  --shadow-md: 0 0.25rem 0.75rem var(--shadow);
  --shadow-lg: 0 0.5rem 1.875rem var(--shadow);

  /* Layout */
  --nav-height: 4.375rem;
  --max-width:  75rem;
  --max-narrow: 50rem;
  --max-wide:   87.5rem;
}

/* ─── DARK THEME ────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:            #0f0f1a;
  --bg-alt:        #1a1a2e;
  --bg-dark:       #0a0a14;
  --text:          #e8e8e8;
  --text-muted:    #b0b0b8;
  --text-light:    #c0c0c8;
  --heading:       #ffffff;
  --border:        rgba(255, 255, 255, 0.12);
  --card-bg:       rgba(255, 255, 255, 0.05);
  --shadow:        rgba(0, 0, 0, 0.4);
  --focus:         #4d94ff;
  --text-on-primary: #ffffff;
}

/* ─── TECH THEME ────────────────────────────────────────────────────────── */
/* Inspiriert von pawbot.ssi.at — ultra-dunkles Blauschwarz, Neon-Glow */
[data-theme="tech"] {
  --bg:         #0a0a0f;
  --bg-alt:     #12121a;
  --bg-dark:    #05050a;
  --text:       #e8e8f0;
  --text-muted: #a0a0b8;
  --text-light: #c0c0d8;
  --heading:    #ffffff;
  --border:     rgba(100, 120, 255, 0.15);
  --card-bg:    rgba(255, 255, 255, 0.04);
  --shadow:     rgba(0, 0, 0, 0.5);
  --focus:      #22d3ee;
  --text-on-primary: #ffffff;
}

/* ─── WARM THEME ────────────────────────────────────────────────────────── */
/* Inspiriert von survivaltraining.at — warme Creme-Töne statt Kalt-Weiß */
[data-theme="warm"] {
  --bg:         #f5f2eb;
  --bg-alt:     #ede9e0;
  --bg-dark:    #2a2218;
  --text:       #5a5347;
  --text-muted: #8a7d6a;
  --text-light: #7a6d5e;
  --heading:    #3a362e;
  --border:     rgba(140, 100, 60, 0.18);
  --card-bg:    #f9f6f0;
  --shadow:     rgba(80, 50, 20, 0.08);
}

/* ─── PASTEL THEME ──────────────────────────────────────────────────────── */
/* Weich, freundlich — dezenter Lavendel-Hauch, gedaempfte Farben */
[data-theme="pastel"] {
  --bg:         #f8f5ff;
  --bg-alt:     #f0ecf8;
  --bg-dark:    #2a2440;
  --text:       #4a4560;
  --text-muted: #7a7590;
  --text-light: #6a6580;
  --heading:    #2e2946;
  --border:     rgba(120, 100, 180, 0.15);
  --card-bg:    #fdfbff;
  --shadow:     rgba(100, 80, 160, 0.06);
}

/* Natur, organisch — Sand, Lehm, erdige Toene */

/* Frisch, kuehl — Eisblau, maritime Klarheit */

/* Warm, lebhaft — Pfirsich-Hauch, goldene Stunde */

/* Edel-Dunkel — Tiefblau, silberne Akzente */

/* ─── FOREST THEME ──────────────────────────────────────────────────────── */
/* Natur-Dunkel — Tiefgruen, Moos, Waldatmosphaere */
[data-theme="forest"] {
  --bg:         #0d1a0d;
  --bg-alt:     #152215;
  --bg-dark:    #080f08;
  --text:       #c8d8c8;
  --text-muted: #88a888;
  --text-light: #a0c0a0;
  --heading:    #e0f0e0;
  --border:     rgba(80, 140, 80, 0.15);
  --card-bg:    #152215;
  --shadow:     rgba(0, 20, 0, 0.4);
  --focus:      #4ade80;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button, textarea, select {
  font: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default list styling when role="list" is set */
[role="list"] {
  list-style: none;
  padding: 0;
}

/* ─── ACCESSIBILITY: SKIP LINK ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--focus);
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* ─── ACCESSIBILITY: FOCUS STYLES ───────────────────────────────────────── */
:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.125rem;
  border-radius: var(--radius-sm);
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ─── ACCESSIBILITY: REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── BASE ──────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  padding-top: var(--nav-height);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--heading);
  font-weight: var(--heading-weight, 600);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
}

h5 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
}

h6 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
  color: var(--text);
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

strong {
  font-weight: 600;
  color: var(--heading);
}

em {
  font-style: italic;
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
  line-height: 1.8;
  color: var(--text);
}

small {
  font-size: var(--fs-xs);
}

.section-tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
  display: block;
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-md);
}

.section-lead {
  font-size: var(--fs-md);
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 42.5rem;
}

.divider {
  width: 3.75rem;
  height: 0.1875rem;
  background: var(--primary);
  border-radius: 0.125rem;
  margin: var(--space-md) 0;
  border: none;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ─── CONTAINER ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ─── GRID ──────────────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.grid-2.align-start,
.grid-3.align-start,
.grid-4.align-start {
  align-items: start;
}

.grid-2.align-center,
.grid-3.align-center,
.grid-4.align-center {
  align-items: center;
}

/* ─── NAVIGATION ────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  transition: background 0.3s, box-shadow 0.3s, transform 0.35s ease, color 0.3s;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ─── Nav Behavior: autohide ────────────────────────────────────────────────
   Versteckt sich beim Runterscrollen, erscheint beim Raufscrollen. */
.site-nav.nav-hidden {
  transform: translateY(-100%);
}

/* ─── Nav Behavior: transparent ─────────────────────────────────────────────
   Startet transparent über dem Hero. Wird bei Scroll solid.
   Setzt voraus: class="nav-transparent" wird via JS gesetzt. */
.site-nav.nav-transparent:not(.nav-solid) {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-nav.nav-transparent:not(.nav-solid) .nav-logo,
.site-nav.nav-transparent:not(.nav-solid) .nav-logo img {
  filter: brightness(0) invert(1);
}

.site-nav.nav-transparent:not(.nav-solid) .nav-links a,
.site-nav.nav-transparent:not(.nav-solid) .nav-hamburger span {
  color: #ffffff;
}

.site-nav.nav-transparent:not(.nav-solid) .nav-links a::after {
  background: #ffffff;
}

.site-nav.nav-transparent:not(.nav-solid) .nav-hamburger span {
  background: #ffffff;
}

[data-theme="dark"] .site-nav {
  background: rgba(15, 15, 26, 0.92);
  border-bottom: 0.0625rem solid var(--border);
}

/* Scrolled: nur wenn nicht im transparent-Modus */
.site-nav.scrolled:not(.nav-transparent) {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .site-nav.scrolled:not(.nav-transparent) {
  background: rgba(15, 15, 26, 0.98);
}

/* ─── Nav Behavior: shrink ──────────────────────────────────────────────────
   Nav wird beim Scrollen kleiner (Höhe & Schrift). */
.site-nav.nav-shrink {
  transition: height 0.3s ease, padding 0.3s ease, background 0.3s, box-shadow 0.3s, transform 0.35s;
}
.site-nav.nav-shrink.scrolled {
  height: 3rem;
}
.site-nav.nav-shrink .nav-logo {
  transition: font-size 0.3s ease;
}
.site-nav.nav-shrink.scrolled .nav-logo {
  font-size: 1.05rem;
}
.site-nav.nav-shrink .nav-logo img {
  transition: height 0.3s ease;
}
.site-nav.nav-shrink.scrolled .nav-logo img {
  height: 1.75rem;
}

/* ─── Nav Style: dark ───────────────────────────────────────────────────────
   Dunkler Nav — für dunkle Hero-Bereiche oder markante Designs. */
.site-nav.nav-dark {
  background: rgba(10, 10, 20, 0.96);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
}
.site-nav.nav-dark .nav-logo { color: #ffffff; }
.site-nav.nav-dark .nav-logo img { filter: brightness(0) invert(1); }
.site-nav.nav-dark .nav-links a {
  font-family: var(--font-body); color: rgba(255, 255, 255, 0.8); }
.site-nav.nav-dark .nav-links a:hover,
.site-nav.nav-dark .nav-links a.active { color: #ffffff; }
.site-nav.nav-dark .nav-hamburger span { background: #ffffff; }
.site-nav.nav-dark.scrolled:not(.nav-transparent) {
  background: rgba(10, 10, 20, 0.99);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ─── Nav Style: colored ────────────────────────────────────────────────────
   Nav in der Primärfarbe der Website. */
.site-nav.nav-colored {
  background: var(--primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-nav.nav-colored .nav-logo { color: #ffffff; }
.site-nav.nav-colored .nav-logo img { filter: brightness(0) invert(1); }
.site-nav.nav-colored .nav-links a {
  font-family: var(--font-body); color: rgba(255, 255, 255, 0.85); }
.site-nav.nav-colored .nav-links a:hover,
.site-nav.nav-colored .nav-links a.active { color: #ffffff; }
.site-nav.nav-colored .nav-links a.active { border-bottom-color: #ffffff; }
.site-nav.nav-colored .nav-hamburger span { background: #ffffff; }
.site-nav.nav-colored .nav-cta { background: rgba(0,0,0,0.2); color: #ffffff; }
.site-nav.nav-colored.scrolled:not(.nav-transparent) {
  background: var(--primary-dark, var(--primary));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* ─── Nav Style: glass ──────────────────────────────────────────────────────
   Starkes Frosted-Glass — funktioniert über hellen und dunklen Backgrounds. */
.site-nav.nav-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1.5rem) saturate(200%);
  -webkit-backdrop-filter: blur(1.5rem) saturate(200%);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.35);
}
.site-nav.nav-glass .nav-logo { color: var(--heading); }
.site-nav.nav-glass .nav-links a {
  font-family: var(--font-body); color: var(--text-light); }
.site-nav.nav-glass.scrolled:not(.nav-transparent) {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] .site-nav.nav-glass {
  background: rgba(15, 15, 26, 0.25);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .site-nav.nav-glass.scrolled:not(.nav-transparent) {
  background: rgba(15, 15, 26, 0.8);
}

[data-theme="warm"] .site-nav {
  background: rgba(245, 242, 235, 0.92);
  border-bottom: 0.0625rem solid var(--border);
}
[data-theme="warm"] .site-nav.scrolled:not(.nav-transparent) {
  background: rgba(245, 242, 235, 0.98);
}
[data-theme="warm"] .site-nav.nav-glass {
  background: rgba(245, 242, 235, 0.3);
  border-bottom: 0.0625rem solid rgba(140, 100, 60, 0.12);
}
[data-theme="warm"] .site-nav.nav-glass.scrolled:not(.nav-transparent) {
  background: rgba(245, 242, 235, 0.85);
}

[data-theme="tech"] .site-nav {
  background: rgba(10, 10, 15, 0.92);
  border-bottom: 0.0625rem solid var(--border);
}
[data-theme="tech"] .site-nav.scrolled:not(.nav-transparent) {
  background: rgba(10, 10, 15, 0.98);
}
[data-theme="tech"] .site-nav.nav-glass {
  background: rgba(10, 10, 15, 0.25);
  border-bottom: 0.0625rem solid rgba(100, 120, 255, 0.08);
}
[data-theme="tech"] .site-nav.nav-glass.scrolled:not(.nav-transparent) {
  background: rgba(10, 10, 15, 0.85);
}

/* ─── Nav-Overrides für neue helle Themes ─── */
[data-theme="pastel"] .site-nav { background: rgba(248, 245, 255, 0.92); }
[data-theme="pastel"] .site-nav.scrolled:not(.nav-transparent) { background: rgba(248, 245, 255, 0.98); }

/* ─── Nav-Overrides für neue dunkle Themes ─── */

[data-theme="forest"] .site-nav { background: rgba(13, 26, 13, 0.92); border-bottom: 0.0625rem solid var(--border); }
[data-theme="forest"] .site-nav.scrolled:not(.nav-transparent) { background: rgba(13, 26, 13, 0.98); }
[data-theme="forest"] .site-nav .nav-logo { color: #e0f0e0; }
[data-theme="forest"] .site-nav .nav-links a {
  font-family: var(--font-body); color: #a0c0a0; }
[data-theme="forest"] .site-nav .nav-links a:hover { color: #e0f0e0; }
[data-theme="forest"] .site-nav .nav-hamburger span { background: #e0f0e0; }

/* Transparent mode: alle Stile starten transparent über dem Hero */
.site-nav.nav-transparent:not(.nav-solid) .nav-dark,
.site-nav.nav-dark.nav-transparent:not(.nav-solid),
.site-nav.nav-colored.nav-transparent:not(.nav-solid),
.site-nav.nav-glass.nav-transparent:not(.nav-solid) {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight, 700);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--heading);
  flex-shrink: 0;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-nav);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
  padding: var(--space-xs) 0;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  border-bottom: 0.125rem solid var(--primary);
  padding-bottom: 0.125rem;
}

/* Nav CTA button — immer sichtbar, nie von Charakter-Presets ueberschrieben */
.nav-cta {
  background: var(--primary) !important;
  color: var(--text-on-primary) !important;
  padding: 0.45rem 1.25rem !important;
  border-radius: var(--cta-radius, var(--radius-full)) !important;
  font-family: var(--font-nav);
  font-size: 0.85rem !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1.4;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: none;
  border: none;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--text-on-primary) !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

/* ─── Nav Case (uppercase option) ─────────────────────────────────────── */
.site-nav.nav-upper .nav-links a {
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}
.site-nav.nav-upper .nav-logo {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-nav.nav-upper .nav-cta {
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
/* ─── LANGUAGE SWITCH ─────────────────────────────────────────────────── */
/* Kompakter DE/EN-Toggle in der Nav — neutral, themefähig, tastaturbedienbar */
.nav-lang {
  font-family: var(--font-nav);
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  margin: 0 0.5rem;
  line-height: 1;
}
.nav-lang-btn {
  font-family: var(--font-nav);
  appearance: none;
  background: transparent !important;
  color: var(--text-muted);
  border: 0;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  min-width: 2.25rem;
}
.nav-lang-btn:hover {
  color: var(--text);
  background: rgba(var(--primary-rgb), 0.06);
}
.nav-lang-btn.active {
  background: var(--primary);
  color: #ffffff;
}
.nav-lang-btn:focus-visible {
  outline: 2px solid var(--focus, var(--primary));
  outline-offset: -2px;
}
/* Mobile: verkleinere den Switch, verstecke ihn NICHT — Sichtbarkeit ist kritisch */


/* ─── Nav-Style overrides Theme defaults ──────────────────────────────── */
[data-theme] .site-nav.nav-dark,
.site-nav.nav-dark {
  background: rgba(10, 10, 20, 0.96) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme] .site-nav.nav-dark .nav-logo,
.site-nav.nav-dark .nav-logo { color: #ffffff !important; }
[data-theme] .site-nav.nav-dark .nav-links a,
.site-nav.nav-dark .nav-links a { color: rgba(255, 255, 255, 0.8) !important; }
[data-theme] .site-nav.nav-dark .nav-links a:hover,
.site-nav.nav-dark .nav-links a:hover { color: #ffffff !important; }
[data-theme] .site-nav.nav-dark .nav-hamburger span,
.site-nav.nav-dark .nav-hamburger span { background: #ffffff !important; }

[data-theme] .site-nav.nav-colored,
.site-nav.nav-colored {
  background: var(--primary) !important;
  border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}
[data-theme] .site-nav.nav-colored .nav-logo,
.site-nav.nav-colored .nav-logo { color: #ffffff !important; }
[data-theme] .site-nav.nav-colored .nav-links a,
.site-nav.nav-colored .nav-links a { color: rgba(255, 255, 255, 0.85) !important; }

.site-nav.nav-glass {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(1.5rem) saturate(200%) !important;
  -webkit-backdrop-filter: blur(1.5rem) saturate(200%) !important;
}

@media (max-width: 48rem) {
  .nav-lang {
  font-family: var(--font-nav); margin: 0 0.35rem; }
  .nav-lang-btn {
  font-family: var(--font-nav); padding: 0.35rem 0.5rem; font-size: 0.68rem; min-width: 2rem; }
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

/* Dropdown-Pfeil (Chevron) */
.nav-dropdown > a::after {
  content: '▾';
  display: inline-block;
  margin-left: 0.35em;
  font-size: 0.75em;
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-sub,
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 13.75rem;
  z-index: 300;
  padding: var(--space-sm) 0;
}

.nav-sub li a,
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: var(--fs-sm);
  color: var(--text-light);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-sub li a:hover,
.nav-dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.nav-dropdown:hover .nav-sub,
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 0.3125rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
}

.nav-hamburger span {
  width: 1.5rem;
  height: 0.125rem;
  background: var(--text);
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(0.3125rem, -0.3125rem);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 150;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 0.0625rem solid var(--border);
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--primary);
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 0.09375rem solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
}

.lang-switch:hover {
  background: var(--primary);
  color: var(--text-on-primary);
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-alt);
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 56.25rem;
  padding: 0 var(--space-lg);
  z-index: 1;
}

.hero-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: var(--display-weight, 700);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  color: var(--heading);
}

.hero-title .accent {
  color: var(--primary);
}

.hero-subtitle {
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto var(--space-xl);
}

/* Hero with background image — light text (override via --hero-title-color) */
.hero--image .hero-title,
.hero--image .hero-subtitle {
  color: var(--hero-title-color, #ffffff);
}

.hero--image .hero-eyebrow {
  color: var(--hero-eyebrow-color, rgba(255, 255, 255, 0.85));
}

/* Hero with display-size headline modifier */
.hero--display .hero-title {
  font-size: var(--fs-display);
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── PAGE HEADER (subpages) ────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  background: var(--bg-alt);
  text-align: center;
  margin-top: calc(var(--nav-height) * -1);
}

.page-hero .section-title {
  margin-bottom: var(--space-md);
}

/* ─── SECTIONS ──────────────────────────────────────────────────────────── */
section {
  padding: var(--space-section) var(--space-lg);
}

section:nth-of-type(even) {
  background: var(--bg-alt);
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark,
section.section-dark {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p,
.section-dark li {
  color: rgba(255, 255, 255, 0.75);
}

.section-dark .section-tag {
  color: var(--primary-light);
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Section Veil — dezentes Hintergrundbild wie survivaltraining.at ──────
   Verwendung:
   <section class="section-veil">
     <div class="section-veil-bg" style="background-image: url('img/hero.jpg');"></div>
     <div class="container">...</div>
   </section>
   ═══════════════════════════════════════════════════════════════════════════ */
.section-veil {
  position: relative;
  overflow: hidden;
}

.section-veil-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.section-veil-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.section-veil > *:not(.section-veil-bg) {
  position: relative;
  z-index: 1;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 2rem;
  min-height: 2.75rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-0.125rem);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  color: var(--text-on-primary);
}

.btn-outline {
  background: transparent !important;
  color: var(--primary);
  border: 0.15rem solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-on-primary);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 0.125rem solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent !important;
  color: var(--text);
  border: 0.0625rem solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Ghost on dark / image backgrounds */
.hero--image .btn-ghost,
.section-dark .btn-ghost {
  background: transparent !important;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  border-width: 0.125rem;
}

.hero--image .btn-ghost:hover,
.section-dark .btn-ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* ─── Dark Theme Button Fixes ─────────────────────────────────────────── */
[data-theme=dark] .btn-secondary,
[data-theme=tech] .btn-secondary,
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}
[data-theme=dark] .btn-secondary:hover,
[data-theme=tech] .btn-secondary:hover,
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme=dark] .btn-ghost,
[data-theme=tech] .btn-ghost,
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Tech Theme Enhancements ─────────────────────────────────────────── */
[data-theme="tech"] .stat-number,
[data-theme="tech"] .banner-stat-number {
  color: var(--primary);
}
[data-theme="tech"] .pricing-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
[data-theme="tech"] .pricing-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
}
[data-theme="tech"] .pricing-card.recommended {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.15);
}

/* Cookie/Accept/Decline buttons */
.btn-accept {
  background: var(--primary);
  color: #ffffff;
  border: 0.125rem solid var(--primary);
}

.btn-accept:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-decline {
  background: var(--bg);
  color: var(--text);
  border: 0.125rem solid var(--border);
}

.btn-decline:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 1rem 2.8rem;
  font-size: var(--fs-base);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ─── CARDS ─────────────────────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border, rgba(0,0,0,0.06));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card-img--square {
  aspect-ratio: 1;
}

.card-img--wide {
  aspect-ratio: 2 / 1;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg);
}

.card-body h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: var(--space-sm);
}

.card-body p {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-muted);
  flex: 0 0 auto;
  margin-bottom: var(--space-xs);
}

.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-icon {
  width: 3.25rem;
  height: 3.25rem;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1.5px solid rgba(var(--primary-rgb), 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  align-self: flex-start;
}

.text-center .card-icon {
  align-self: center;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cards in dark section */
.section-dark .card {
  background: var(--card-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
}

.section-dark .card:hover {
  background: var(--card-bg, rgba(255, 255, 255, 0.06));
  border-color: var(--primary, rgba(255, 255, 255, 0.25));
}

.section-dark .card-body h3 {
  color: var(--heading, #ffffff);
}

.section-dark .card-body p {
  color: var(--text-muted, rgba(255, 255, 255, 0.8));
}

/* ─── BANNER / STATS STRIP ──────────────────────────────────────────────── */
.banner-strip {
  background: var(--bg-alt);
  border-top: 0.0625rem solid var(--border);
  border-bottom: 0.0625rem solid var(--border);
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.banner-item {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  border-right: 0.0625rem solid var(--border);
  transition: background 0.3s;
}

.banner-item:last-child {
  border-right: none;
}

.banner-val {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--display-weight, 700);
  color: var(--banner-val-color, var(--primary));
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.banner-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--banner-label-color, var(--text-muted));
}

/* ─── BLOCKQUOTE / TESTIMONIAL ──────────────────────────────────────────── */
.blockquote {
  border-left: 0.1875rem solid var(--primary);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-xl) 0;
}

.blockquote p {
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 0;
}

.blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  font-style: normal;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 0.0625rem solid var(--border);
  padding: var(--space-lg) 0;
}

.faq-item:first-child {
  border-top: 0.0625rem solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--heading);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  gap: var(--space-md);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  display: none;
  padding-top: var(--space-md);
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ─── GALLERY ───────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ─── PRICING ───────────────────────────────────────────────────────────── */
/* Pricing grid needs top padding for badge overflow */
.grid-3:has(.pricing-card) {
  padding-top: 1rem;
}

.pricing-card {
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: visible;
}

.pricing-card .card-body {
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.pricing-featured {
  border: 0.125rem solid var(--primary);
  position: relative;
  box-shadow: 0 0 2rem rgba(var(--primary-rgb), 0.12);
}

.pricing-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.pricing-price {
  margin: var(--space-md) 0 var(--space-xs);
  line-height: 1;
}

.pricing-currency {
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--text-muted);
  vertical-align: top;
  margin-top: 0.5rem;
  display: inline-block;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-md);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
  text-align: left;
  flex: 1;
}

.pricing-features li {
  padding: 0.45rem 0;
  font-size: var(--fs-sm);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .card-body .btn {
  display: flex;
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ─── FORMS ─────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-alt, var(--bg));
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-md, var(--radius-sm));
  color: var(--text);
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: var(--fs-base, var(--fs-sm));
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.1);
  background: var(--bg);
}

.form-group textarea {
  min-height: 7.5rem;
}

/* Form error state */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: var(--error);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--error);
  margin-top: var(--space-xs);
}

.form-success {
  font-size: var(--fs-sm);
  color: var(--success);
  padding: var(--space-md);
  background: rgba(39, 174, 96, 0.1);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
}

/* Form row — 2+ Felder nebeneinander (z.B. Vorname/Nachname) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Form checkbox inline */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

.form-checkbox label {
  display: inline;
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Contact info card — Kontaktdaten-Sidebar */
.contact-info {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  align-self: start;
}

.contact-info h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-md);
}

.contact-info h3 + .divider {
  margin-bottom: var(--space-md);
}

.contact-info p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 48rem) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Honeypot field — hidden from real users */
.form-hp {
  position: absolute;
  left: -9999rem;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
  font-size: var(--fs-base);
  margin-bottom: var(--space-sm);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  margin-bottom: var(--space-sm);
}

.footer-logo img {
  height: 2.25rem;
  width: auto;
}

.footer-tagline {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
}

.footer-col a,
.footer-col p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: block;
  line-height: 2.2;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.footer-bottom p {
  color: inherit;
  margin-bottom: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-powered {
  margin-top: var(--space-sm);
  font-size: var(--fs-xs);
  opacity: 0.5;
}

.footer-powered a {
  text-decoration: none;
}

.footer-powered a:hover {
  opacity: 1;
}

/* Light footer variant */
.site-footer--light {
  background: var(--bg-alt);
  color: var(--text);
  border-top: 0.0625rem solid var(--border);
}

.site-footer--light .footer-tagline {
  color: var(--text-muted);
}

.site-footer--light .footer-col h4 {
  color: var(--primary);
}

.site-footer--light .footer-col a,
.site-footer--light .footer-col p {
  color: var(--text-muted);
}

.site-footer--light .footer-col a:hover {
  color: var(--primary);
}

.site-footer--light .footer-bottom {
  color: var(--text-muted);
}

.site-footer--light .footer-bottom a {
  color: var(--text-muted);
}

/* Alias für Konsistenz mit Nav-Naming */
.footer-light { /* identisch mit .site-footer--light */ }
.footer-light,
.footer-light .footer-tagline,
.footer-light .footer-col h4,
.footer-light .footer-col a,
.footer-light .footer-col p,
.footer-light .footer-bottom,
.footer-light .footer-bottom a {
  /* Erbt alles von site-footer--light — Selector-Alias */
}

/* ─── Footer Style: minimal ─────────────────────────────────────────────────
   Zentriert, einzeilig, kompakt — für Landing Pages und minimalistische Sites. */
.footer-minimal {
  background: var(--bg-alt);
  color: var(--text);
  border-top: 0.0625rem solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.footer-minimal .footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  border-bottom: none;
  padding-bottom: var(--space-md);
}

.footer-minimal .footer-about {
  text-align: center;
}

.footer-minimal .footer-col {
  display: none;
}

.footer-minimal .footer-tagline {
  color: var(--text-muted);
}

.footer-minimal .footer-bottom {
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.footer-minimal .footer-bottom a {
  color: var(--text-muted);
}

/* ─── Footer Style: colored ─────────────────────────────────────────────────
   Primärfarbe als Hintergrund — markant und brand-stark. */
.footer-colored {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
}

.footer-colored a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-colored a:hover {
  color: #ffffff;
}

.footer-colored h3,
.footer-colored h4 {
  color: #ffffff;
}

.footer-colored .footer-grid {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.footer-colored .footer-tagline {
  color: rgba(255, 255, 255, 0.6);
}

.footer-colored .footer-col h4 {
  color: rgba(255, 255, 255, 0.95);
}

.footer-colored .footer-col a,
.footer-colored .footer-col p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-colored .footer-col a:hover {
  color: #ffffff;
}

.footer-colored .footer-bottom {
  color: rgba(255, 255, 255, 0.6);
}

.footer-colored .footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── COOKIE BANNER ─────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg);
  border-top: 0.0625rem solid var(--border);
  box-shadow: 0 -0.25rem 1.25rem var(--shadow);
  color: var(--text);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  font-size: var(--fs-sm);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#cookie-banner.cb-visible {
  transform: translateY(0);
  opacity: 1;
}

.cb-text {
  flex: 1;
  line-height: 1.6;
  color: var(--text-muted);
}

.cb-text a {
  color: var(--primary);
}

.cb-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cb-btn {
  padding: 0.55rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: all 0.2s;
  min-width: 6.25rem;
}

.cb-accept {
  background: var(--primary);
  color: var(--text-on-primary);
  min-width: 7.5rem;
}

.cb-accept:hover {
  background: var(--primary-dark);
}

.cb-decline {
  background: transparent !important;
  color: var(--text-muted);
  border: 0.0625rem solid var(--border);
}

.cb-decline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── THEME TOGGLE ──────────────────────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 0.0625rem solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* ─── LIGHTBOX ──────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  cursor: default;
}

.lightbox-counter {
  position: absolute;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-sm);
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #ffffff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  cursor: pointer;
  padding: var(--space-md);
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-nav:hover {
  color: #ffffff;
}

.lightbox-prev {
  left: var(--space-md);
}

.lightbox-next {
  right: var(--space-md);
}

/* ─── UTILITIES ─────────────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

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

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

.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.overflow-hidden {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── REVEAL ANIMATION ──────────────────────────────────────────────────── */
/* Opacity + translateY Fade. Safety-Net: Falls IntersectionObserver fehlt
   oder JS nicht lädt, garantiert ein CSS-Fallback-@keyframes nach 3s die
   Sichtbarkeit (kein Unsichtbarer-Text-Bug wie v4.6.0 ihn vermeiden wollte). */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: reveal-safety-net 0.5s ease 0.3s forwards;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes reveal-safety-net {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero on-load Stagger — 4-stufig wie survivaltraining.at Referenz.
   Nutzt fadeUp-keyframe (unten definiert). animation-fill-mode: both
   sorgt dafür dass Endzustand nach Animation bleibt. */
.hero .hero-eyebrow,
.hero-eyebrow { animation: fadeUp 0.8s ease 0.2s both; }
.hero .hero-title,
.hero-title   { animation: fadeUp 0.9s ease 0.4s both; }
.hero .hero-subtitle,
.hero-subtitle { animation: fadeUp 0.9s ease 0.6s both; }
.hero .hero-ctas,
.hero-ctas    { animation: fadeUp 0.9s ease 0.8s both; }

/* Respect user motion preference — instant visibility, no motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .hero .hero-eyebrow, .hero-eyebrow,
  .hero .hero-title, .hero-title,
  .hero .hero-subtitle, .hero-subtitle,
  .hero .hero-ctas, .hero-ctas {
    animation: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 48rem) {
  :root {
    --space-section: 3.5rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 20rem;
  }

  #cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }

  .cb-buttons {
    width: 100%;
  }

  .cb-btn {
    flex: 1;
  }

  .lightbox-nav {
    font-size: 1.5rem;
  }
}

@media (max-width: 30rem) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .banner-val {
    font-size: var(--fs-2xl);
  }

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

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

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--fs-sm);
  }

  .hero {
    min-height: 85vh;
  }
}

/* ─── PRINT ─────────────────────────────────────────────────────────────── */
@media print {
  .site-nav,
  .site-footer,
  .theme-toggle,
  #cookie-banner,
  .nav-mobile,
  .nav-hamburger,
  .lightbox,
  .skip-link {
    display: none;
  }

  body {
    color: #000000;
    background: #ffffff;
    padding-top: 0;
    font-size: 12pt;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555555;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    margin-top: 0;
  }

  section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 0.0625rem solid #cccccc;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* ─── FARB-HARMONIE: Text & Heading farbgetönt je nach Primärfarbe ─── */
/* Jede Farbe bringt einen Hauch ihres Akzents ins Fließtext-Heading-System */
body[data-color="blue"]   { --text: #2a3548; --heading: #0f1e38; }
body[data-color="navy"]   { --text: #252e48; --heading: #0a1530; }
body[data-color="wine"]   { --text: #3d2a2e; --heading: #2a1015; }
body[data-color="red"]    { --text: #3d2a2a; --heading: #2a0f0f; }
body[data-color="gold"]   { --text: #3d3326; --heading: #26200f; }
body[data-color="brown"]  { --text: #3a2e24; --heading: #241810; }
body[data-color="coral"]  { --text: #3a2820; --heading: #26140c; }
body[data-color="orange"] { --text: #3a2820; --heading: #26140c; }
body[data-color="cyan"]   { --text: #263a42; --heading: #0f2630; }
body[data-color="teal"]   { --text: #263a38; --heading: #0f2620; }
body[data-color="mint"]   { --text: #2a3a32; --heading: #0f2a1e; }
body[data-color="survival"]{ --text: #253525; --heading: #0f2010; }
body[data-color="forest"] { --text: #253525; --heading: #0f2010; }
body[data-color="olive"]  { --text: #30382a; --heading: #182010; }
body[data-color="violet"] { --text: #322840; --heading: #1a0f2e; }
body[data-color="lavender"]{ --text: #322840; --heading: #1a0f2e; }
body[data-color="pink"]   { --text: #3a2838; --heading: #261024; }
body[data-color="slate"]  { --text: #2d3748; --heading: #0f172a; }
body[data-color="gray"]   { --text: #2d3748; --heading: #0f172a; }
body[data-color="charcoal"]{ --text: #1f2937; --heading: #0a0f16; }

/* ─── HARMONIE-RESET: Dunkle Themes brauchen helle Textfarben ─── */
/* Die body[data-color] Regeln oben setzen dunkle, farbgetönte Textwerte
   für helle Themes. Bei dunklen Themes (dark/tech/forest)
   entsteht dadurch dark-on-dark (WCAG FAIL 1.0-1.7:1). Diese Regeln
   stellen für dunkle Themes wieder helle Textwerte her, passend zum
   jeweiligen Theme-BG. Specificity 0,2,1 schlägt body[data-color] (0,1,1). */
[data-theme="dark"] body[data-color]     { --text: #e0e0e0; --text-muted: #a0a0a0; --text-light: #b0b0b0; --heading: #f0f0f0; }
[data-theme="tech"] body[data-color]     { --text: #e8e8f0; --text-muted: #9090a8; --text-light: #b0b0c8; --heading: #f0f0f8; }
[data-theme="forest"] body[data-color]   { --text: #d0e0d0; --text-muted: #8ca88c; --text-light: #a8c0a8; --heading: #e8f0e8; }

/* ─── KONTRAST-SCHUTZ: Section-Tag Sichtbarkeit auf dunklen Themes ─── */
[data-theme="dark"] .section-tag,
[data-theme="tech"] .section-tag,
[data-theme="forest"] .section-tag {
  color: var(--primary-light, color-mix(in srgb, var(--primary) 60%, white));
  filter: brightness(1.4) saturate(1.1);
}

/* Card headings auf dunklen Themes - sicherstellen dass sie sichtbar sind */
[data-theme="dark"] .card h3,
[data-theme="tech"] .card h3,
[data-theme="forest"] .card h3,
[data-theme="dark"] .service-card h3,
[data-theme="tech"] .service-card h3,
[data-theme="forest"] .service-card h3 {
  color: var(--heading);
}
