/* =========================================================
   Cybarrio – Stylesheet
   Minimalistisch · Professionell · Barrierefrei
   ========================================================= */

/* ---------------------------------------------------------
   CSS Custom Properties – Light Mode (Default)
   --------------------------------------------------------- */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Helvetica, Arial, sans-serif;

  --color-bg:             #FFFFFF;
  --color-bg-subtle:      #F8FAFC;
  --color-bg-card:        #FFFFFF;
  --color-border:         #E2E8F0;
  --color-border-subtle:  #F1F5F9;

  --color-text:           #0F172A;
  --color-text-muted:     #64748B;
  --color-text-light:     #94A3B8;

  --color-accent:         #1D4ED8;
  --color-accent-hover:   #1E40AF;
  --color-accent-light:   #EFF6FF;
  --color-accent-mid:     #BFDBFE;

  --color-success:        #059669;

  --nav-bg: rgba(255, 255, 255, 0.88);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.06), 0 8px 10px rgba(0,0,0,0.03);

  --nav-h: 68px;
  --max-w: 1140px;
  --max-w-text: 720px;

  color-scheme: light;
}

/* ---------------------------------------------------------
   Dark Mode – Systemeinstellung (automatisch)
   --------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg:             #0F172A;
    --color-bg-subtle:      #1E293B;
    --color-bg-card:        #1E293B;
    --color-border:         #334155;
    --color-border-subtle:  #1E293B;

    --color-text:           #F1F5F9;
    --color-text-muted:     #94A3B8;
    --color-text-light:     #64748B;

    --color-accent:         #3B82F6;
    --color-accent-hover:   #60A5FA;
    --color-accent-light:   #1E3A5F;
    --color-accent-mid:     #1E40AF;

    --nav-bg: rgba(15, 23, 42, 0.90);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------
   Dark Mode – Manueller Toggle
   --------------------------------------------------------- */
[data-theme="dark"] {
  --color-bg:             #0F172A;
  --color-bg-subtle:      #1E293B;
  --color-bg-card:        #1E293B;
  --color-border:         #334155;
  --color-border-subtle:  #1E293B;

  --color-text:           #F1F5F9;
  --color-text-muted:     #94A3B8;
  --color-text-light:     #64748B;

  --color-accent:         #3B82F6;
  --color-accent-hover:   #60A5FA;
  --color-accent-light:   #1E3A5F;
  --color-accent-mid:     #1E40AF;

  --nav-bg: rgba(15, 23, 42, 0.90);
  color-scheme: dark;
}

/* ---------------------------------------------------------
   Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-accent-hover); }

ul, ol { list-style: none; }

/* ---------------------------------------------------------
   Barrierefreiheit – Skip Link
   --------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* Screen-Reader-Only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus-Stile */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   Utility
   --------------------------------------------------------- */
.container {
  width: 92%;
  max-width: var(--max-w);
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Typografie
   --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem;    font-weight: 600; }

p { color: var(--color-text-muted); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: var(--max-w-text);
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-intro h2 { margin-bottom: 1rem; }
.section-intro p  { font-size: 1.1rem; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease,
              transform 0.1s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(29,78,216,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
  padding-inline: 0.625rem;
}
.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
}

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              background 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img { height: 36px; width: auto; }

/* Logo-Wechsel je nach Modus */
.logo-dark  { display: none; }
.logo-light { display: block; }

[data-theme="dark"] .logo-dark  { display: block; }
[data-theme="dark"] .logo-light { display: none;  }

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

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text-muted);
  padding: 0.4375rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.main-nav a:hover  { color: var(--color-text);   background: var(--color-bg-subtle); }
.main-nav a.active { color: var(--color-accent);  font-weight: 600; }

/* Rechte Nav-Controls */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Dark-Mode-Toggle */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.15s ease, border-color 0.15s ease,
              background 0.15s ease;
}
.theme-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent-mid);
  background: var(--color-accent-light);
}
/* Icon-Sichtbarkeit je nach Modus */
.icon-sun  { display: none; }
.icon-moon { display: block; }

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

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  display: block;
  text-decoration: none;
  transition: background 0.15s ease;
}
.mobile-nav a:hover  { background: var(--color-bg-subtle); }
.mobile-nav .btn     { margin-top: 0.75rem; width: 100%; justify-content: center; }

/* ---------------------------------------------------------
   Hero Section
   --------------------------------------------------------- */
#home {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#home::before {
  content: '';
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(29,78,216,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
#home h1 {
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.125rem;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  color: var(--color-text-muted);
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 100px;
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Sektions-Shared
   --------------------------------------------------------- */
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--color-bg-subtle); }

/* ---------------------------------------------------------
   Leistungen
   --------------------------------------------------------- */
#leistungen { background: var(--color-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p  { font-size: 0.9375rem; line-height: 1.6; }
.service-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ---------------------------------------------------------
   Unternehmensberatung
   --------------------------------------------------------- */
#unternehmen { background: var(--color-bg-subtle); }

.unternehmen-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.unternehmen-text h2 { margin-bottom: 1rem; }
.unternehmen-text p  { font-size: 1.0625rem; margin-bottom: 1.25rem; }

.unternehmen-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.5rem 0 2rem;
}
.unternehmen-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.unternehmen-list li .icon-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.benefit-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-sm);
}
.benefit-card .b-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 0.875rem;
}
.benefit-card h4 { margin-bottom: 0.375rem; font-size: 0.9375rem; }
.benefit-card p  { font-size: 0.875rem; line-height: 1.5; }

/* ---------------------------------------------------------
   Freelancer-Kooperation
   --------------------------------------------------------- */
#freelancer { background: var(--color-bg); }

.freelancer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.freelancer-text h2 { margin-bottom: 1rem; }
.freelancer-text p  { font-size: 1.0625rem; margin-bottom: 1.25rem; }

.freelancer-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.freelancer-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.freelancer-list li .icon-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.freelancer-visual {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fv-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.fv-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.fv-label { font-size: 0.875rem; font-weight: 600; color: var(--color-text); }
.fv-desc  { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 1px; }

/* ---------------------------------------------------------
   Interim-Management
   --------------------------------------------------------- */
#interim { background: var(--color-bg-subtle); }

.interim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.interim-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.interim-card:hover {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-md);
}
.interim-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.interim-card h3 { margin-bottom: 0.75rem; }
.interim-card p  { font-size: 0.9375rem; }

.interim-banner {
  margin-top: 2rem;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.interim-banner .ib-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.interim-banner h4 { color: var(--color-text); margin-bottom: 0.375rem; }
.interim-banner p  { font-size: 0.9375rem; color: var(--color-text-muted); }

/* ---------------------------------------------------------
   Profil & Zertifizierungen
   --------------------------------------------------------- */
#profil { background: var(--color-bg); }

.profil-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

/* Bild-Switcher (Profil & Kontakt) */
.img-switcher {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  line-height: 0;
  cursor: pointer;
}
.img-switcher img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease;
}
.img-switcher .img-hover {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.img-switcher:hover .img-hover,
.img-switcher:focus-visible .img-hover { opacity: 1; }
.img-switcher:hover .img-default,
.img-switcher:focus-visible .img-default { opacity: 0; }

.profil-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.profil-image-wrap .img-switcher {
  max-width: 320px;
  width: 100%;
}

.profil-right h2 { margin-bottom: 1rem; }
.profil-right p  { font-size: 1.0625rem; margin-bottom: 1rem; }

.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cert-item:hover {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-sm);
}
.cert-badge {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.cert-name { font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.cert-org  { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 1px; }

/* ---------------------------------------------------------
   Kontakt
   --------------------------------------------------------- */
#kontakt { background: var(--color-bg-subtle); }

.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: center;
}

/* Bild – füllt die linke Spalte vollständig */
.kontakt-image-wrap {
  width: 100%;
}
.kontakt-image-wrap .img-switcher {
  border-radius: var(--radius-xl);
  max-width: 440px;
  margin-inline: auto;
}

/* Rechte Spalte: konsolidierter Inhalt */
.kontakt-content h2 { margin-bottom: 1rem; }
.kontakt-content > p { font-size: 1.0625rem; margin-bottom: 2rem; }
.kontakt-cta { margin-top: 2rem; }

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kontakt-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.kontakt-item .k-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.kontakt-item a { color: var(--color-text); font-weight: 500; }
.kontakt-item a:hover { color: var(--color-accent); }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.875rem;
  max-width: 280px;
  margin-bottom: 1.25rem;
}
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}
.footer-col ul li a:hover { color: var(--color-text); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8125rem; color: var(--color-text-light); }
.footer-legal    { display: flex; gap: 1.25rem; }
.footer-legal a  { font-size: 0.8125rem; color: var(--color-text-light); }
.footer-legal a:hover { color: var(--color-text-muted); }

.social-links { display: flex; gap: 0.5rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.social-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent-mid);
}

/* SEO-Keywords (für Crawler, nicht sichtbar) */
.seo-keywords {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Cookie-Einstellungen Link */
#open_preferences_center {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
  font-size: 0.75rem;
  color: var(--color-text-light);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 5px 10px;
  border-radius: 100px;
  transition: color 0.15s ease;
}
#open_preferences_center:hover { color: var(--color-text-muted); }

/* ---------------------------------------------------------
   Legal-Seiten
   --------------------------------------------------------- */
.legal-page { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 5rem; }
.legal-page .legal-content { max-width: var(--max-w-text); margin-inline: auto; }
.legal-page h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.legal-page .legal-meta { font-size: 0.875rem; color: var(--color-text-light); margin-bottom: 3rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-page h3 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 600; }
.legal-page p, .legal-page li { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.legal-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page a  { color: var(--color-accent); }

/* ---------------------------------------------------------
   Responsive – Tablet (max-width: 1024px)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .interim-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }

  .unternehmen-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .freelancer-inner  { grid-template-columns: 1fr; gap: 2.5rem; }
  .freelancer-visual { max-width: 500px; }

  .profil-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .profil-image-wrap { flex-direction: row; align-items: flex-start; }
  .profil-image-wrap .img-switcher { max-width: 200px; }

  .kontakt-inner {
    grid-template-columns: 1fr 1.25fr;
    gap: 2.5rem;
  }
}

/* ---------------------------------------------------------
   Responsive – Mobile (max-width: 768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  section { padding: 3.5rem 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }

  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .interim-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  #home {
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 3rem;
  }
  .hero-badges { gap: 0.375rem; }
  .badge { font-size: 0.75rem; }

  .profil-image-wrap { flex-direction: column; align-items: center; }
  .profil-image-wrap .img-switcher { max-width: 260px; }

  .kontakt-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .kontakt-inner { grid-template-columns: 1fr; gap: 2rem; }
  .kontakt-image-wrap { max-width: 300px; margin-inline: auto; }

  .benefit-grid { grid-template-columns: 1fr; }
  .interim-banner { flex-direction: column; }

  .legal-page {
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .footer-grid       { grid-template-columns: 1fr; }
  .cta-actions .btn  { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------
   Print
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   SCORM as a Service
   --------------------------------------------------------- */
.scorm-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.scorm-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.scorm-image {
  width: 100%;
  height: auto;
  display: block;
}
.scorm-content h2 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.scorm-lead {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.scorm-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.scorm-features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.scorm-features li i {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.scorm-features li div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.scorm-features li strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}
.scorm-features li span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .scorm-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .scorm-image-wrap { max-width: 520px; margin: 0 auto; }
}

@media print {
  .site-header, #open_preferences_center, .theme-toggle, .cookie-banner { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ---------------------------------------------------------
   Cookie-Banner
   --------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 2rem));
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 9000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(1rem);
}
.cookie-banner p {
  flex: 1;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.cookie-banner p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}
.cookie-banner-actions .btn-cookie-accept {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.cookie-banner-actions .btn-cookie-accept:hover { background: var(--color-accent-hover); }
.cookie-banner-actions .btn-cookie-decline {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cookie-banner-actions .btn-cookie-decline:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .cookie-banner.hidden { transform: translateY(1rem); }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions button { flex: 1; }
}
