/* ===========================================================
   TEMPUS 2026 — Dark Premium Tech Design System
   Uebersetzt aus dem React/Tailwind-Muster (index.css)
   Reines CSS mit Custom Properties — kein Framework noetig.
   =========================================================== */

/* ===========================================================
   1. DESIGN TOKENS
   =========================================================== */
:root {
  /* — Surfaces (Dark First) — */
  --background:      hsl(205 35% 5%);
  --background-elev: hsl(204 30% 8%);
  --background-soft: hsl(203 25% 11%);
  --foreground:      hsl(80 12% 96%);

  --card:            hsl(204 30% 8%);
  --card-foreground: hsl(80 12% 96%);

  /* — Brand: Tempus Logo Green — */
  --brand:            hsl(88 62% 44%);
  --brand-foreground: hsl(203 100% 8%);
  --brand-glow:       hsl(88 70% 55%);
  --brand-deep:       hsl(88 70% 32%);

  /* — Secondary: Deep Navy #00324E — */
  --navy:            hsl(203 100% 15%);
  --navy-deep:       hsl(204 100% 10%);
  --navy-soft:       hsl(203 50% 20%);
  --navy-foreground: hsl(0 0% 98%);

  /* — Semantic — */
  --primary:            hsl(88 62% 44%);
  --primary-foreground: hsl(203 100% 8%);
  --secondary:          hsl(203 100% 15%);
  --muted:              hsl(204 18% 16%);
  --muted-foreground:   hsl(203 18% 78%);
  --destructive:        hsl(0 70% 55%);

  /* — Borders & Inputs — */
  --border:        hsl(204 22% 16%);
  --border-strong: hsl(203 30% 24%);
  --input:         hsl(204 25% 14%);
  --ring:          hsl(88 75% 60%);
  --radius:        1rem;

  /* — Gradients — */
  --gradient-brand: linear-gradient(135deg, hsl(88 62% 44%) 0%, hsl(203 100% 18%) 100%);
  --gradient-glow:  radial-gradient(60% 60% at 50% 0%, hsl(88 62% 44% / 0.18), transparent 70%);
  --gradient-ink:   linear-gradient(180deg, hsl(205 35% 5%) 0%, hsl(203 100% 10%) 100%);
  --gradient-navy:  linear-gradient(135deg, hsl(203 100% 15%) 0%, hsl(204 100% 8%) 100%);
  --gradient-mesh:
    radial-gradient(40% 60% at 10% 0%, hsl(88 62% 44% / 0.15), transparent 60%),
    radial-gradient(50% 50% at 100% 20%, hsl(203 100% 22% / 0.30), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, hsl(88 62% 44% / 0.08), transparent 60%);

  /* — Shadows / Glows — */
  --shadow-glow: 0 0 60px -10px hsl(88 62% 44% / 0.45);
  --shadow-navy: 0 0 60px -12px hsl(203 100% 15% / 0.55);
  --shadow-elev: 0 24px 60px -20px hsl(204 100% 3% / 0.7), 0 8px 20px -8px hsl(204 100% 3% / 0.5);
  --shadow-card: 0 1px 0 hsl(203 30% 24% / 0.5) inset, 0 24px 50px -24px hsl(204 100% 3% / 0.7);

  /* — Typography — */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* — Motion — */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ===========================================================
   2. RESET & BASE
   =========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Subtiler Mesh-Hintergrund */
  background-image:
    radial-gradient(1200px 800px at 80% -10%, hsl(88 62% 44% / 0.06), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, hsl(203 100% 18% / 0.18), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, hsl(204 100% 10% / 0.25), transparent 60%);
  background-attachment: fixed;
}

::selection {
  background: hsl(88 62% 44% / 0.3);
  color: var(--foreground);
}

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

/* WordPress setzt width/height HTML-Attribute auf Bilder.
   Ohne height:auto werden Bilder verzerrt wenn max-width greift.
   Absolut positionierte Bilder (object-fit Cover) ausgenommen. */
img:not([style*="position"]):not([style*="object-fit"]):not(.object-cover) {
  height: auto !important;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
a:hover {
  color: var(--brand-glow);
}

ul, ol {
  list-style: none;
  padding: 0;
}


/* ===========================================================
   3. TYPOGRAPHY
   =========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--foreground);
}

h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

.text-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.text-mono {
  font-family: var(--font-mono);
}

.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

.text-brand { color: var(--brand); }
.bg-brand   { background-color: var(--brand); }

.text-navy  { color: var(--navy); }
.bg-navy    { background-color: var(--navy); }

.text-muted { color: var(--muted-foreground); }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; }
.text-2xl   { font-size: 1.5rem; }
.text-3xl   { font-size: 1.875rem; }


/* ===========================================================
   4. ACCESSIBILITY
   =========================================================== */

/* Skip-Link */
.skip-link {
  position: absolute;
  top: -56px;
  left: 12px;
  background: var(--brand);
  color: var(--brand-foreground);
  padding: 0.85rem 1.25rem;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  border-radius: 9999px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* Focus-Visible */
*:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 4px var(--background);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* 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: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}


/* ===========================================================
   5. LAYOUT
   =========================================================== */

.container-page {
  max-width: 80rem;
  margin-inline: auto;
  width: 100%;
  padding-inline: 1.25rem;
}
@media (min-width: 640px)  { .container-page { padding-inline: 1.5rem; } }
@media (min-width: 768px)  { .container-page { padding-inline: 2rem; } }
@media (min-width: 1024px) { .container-page { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container-page { padding-inline: 3rem; } }

/* Flex & Grid Utilities */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }

.grid { display: grid; }

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; width: 100%; height: 100%; }

.hidden { display: none; }
@media (min-width: 1024px) { .lg\:flex    { display: flex; } }
@media (min-width: 1024px) { .lg\:hidden  { display: none; } }
@media (max-width: 1023px) { .lg-only     { display: none; } }

.w-full { width: 100%; }
.mx-auto { margin-inline: auto; }
.text-center { text-align: center; }


/* ===========================================================
   6. SPACING SYSTEM
   =========================================================== */

/* Section Padding */
.section-pad    { padding-block: 3.5rem; }
.section-pad-sm { padding-block: 2.5rem; }
.section-pad-lg { padding-block: 5rem; }

@media (min-width: 640px) {
  .section-pad    { padding-block: 4rem; }
  .section-pad-sm { padding-block: 3rem; }
  .section-pad-lg { padding-block: 6rem; }
}
@media (min-width: 768px) {
  .section-pad    { padding-block: 5rem; }
  .section-pad-sm { padding-block: 3.5rem; }
  .section-pad-lg { padding-block: 7rem; }
}
@media (min-width: 1024px) {
  .section-pad    { padding-block: 6rem; }
  .section-pad-sm { padding-block: 4rem; }
  .section-pad-lg { padding-block: 8rem; }
}

/* Header Gap */
.header-gap { margin-bottom: 2rem; }
@media (min-width: 768px) { .header-gap { margin-bottom: 2.5rem; } }
@media (min-width: 1024px) { .header-gap { margin-bottom: 3rem; } }

/* Card Gaps */
.card-gap       { gap: 1.25rem; }
.card-gap-tight { gap: 1rem; }
.card-gap-loose { gap: 1.5rem; }

@media (min-width: 768px) {
  .card-gap       { gap: 1.5rem; }
  .card-gap-tight { gap: 1.25rem; }
  .card-gap-loose { gap: 2rem; }
}
@media (min-width: 1024px) {
  .card-gap       { gap: 2rem; }
  .card-gap-loose { gap: 2.5rem; }
}

/* Card Padding */
.card-pad { padding: 1.25rem; }
@media (min-width: 768px) { .card-pad { padding: 1.5rem; } }
@media (min-width: 1024px) { .card-pad { padding: 1.75rem; } }

/* Vertical Stacks */
.stack-xs > * + * { margin-top: 0.375rem; }
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-md > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }

@media (min-width: 768px) {
  .stack-sm > * + * { margin-top: 0.625rem; }
  .stack-md > * + * { margin-top: 1.25rem; }
  .stack-lg > * + * { margin-top: 2rem; }
}


/* ===========================================================
   7. COMPONENT: EYEBROW
   =========================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  font-family: var(--font-mono);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}


/* ===========================================================
   8. COMPONENT: GLASS
   =========================================================== */
.glass {
  background: hsl(204 30% 8% / 0.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid hsl(204 22% 16% / 0.6);
}


/* ===========================================================
   9. COMPONENT: CARD
   =========================================================== */
.card-tempus {
  display: flex;
  height: 100%;
  flex-direction: column;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.5s var(--ease);
  background: linear-gradient(180deg, var(--background-elev) 0%, var(--background-soft) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .card-tempus { padding: 1.75rem; } }

.card-tempus:hover {
  border-color: hsl(88 62% 44% / 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 20px 60px -20px hsl(88 62% 44% / 0.18);
}

.card-tempus a {
  color: inherit;
}
.card-tempus a:hover {
  color: var(--brand);
}


/* ===========================================================
   10. COMPONENT: ICON-PILL
   =========================================================== */
.icon-pill {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(88 62% 44% / 0.15), hsl(88 62% 44% / 0.05));
  border: 1px solid hsl(88 62% 44% / 0.25);
  color: var(--brand);
  flex-shrink: 0;
}
.icon-pill svg,
.icon-pill .icon {
  width: 24px;
  height: 24px;
}


/* ===========================================================
   11. COMPONENT: BUTTONS
   =========================================================== */

/* Primary Glow Button */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.3s var(--ease);
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: 0 0 0 0 hsl(88 62% 44% / 0);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary-glow:hover {
  background: var(--brand-glow);
  color: var(--brand-foreground);
  box-shadow: 0 0 30px -5px hsl(88 62% 44% / 0.5), 0 8px 20px -8px hsl(88 62% 44% / 0.3);
  transform: translateY(-1px);
}

/* Ghost Button */
.btn-ghost-tempus {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.3s var(--ease);
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}
.btn-ghost-tempus:hover {
  border-color: hsl(88 62% 44% / 0.5);
  background: hsl(88 62% 44% / 0.05);
  color: var(--brand);
}

/* Section Header mit rechts ausgerichtetem Link */
.section-header-with-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .section-header-with-link {
    flex-direction: row;
    align-items: flex-end;
  }
}
.section-header-with-link .link-arrow {
  flex-shrink: 0;
}

/* KI-Stack Row (column mobile, row desktop) */
.ki-stack-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .ki-stack-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Link Arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  color: var(--brand);
}
.link-arrow:hover {
  gap: 0.75rem;
  color: var(--brand-glow);
}


/* ===========================================================
   12. SURFACES (Navy/Brand Backgrounds)
   =========================================================== */

/* Tiefer Navy-Verlauf (Hero, CTA) */
.surface-navy {
  background:
    radial-gradient(60% 80% at 80% 0%, hsl(88 62% 44% / 0.12), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, hsl(203 100% 15% / 0.45), transparent 60%),
    linear-gradient(180deg, var(--background) 0%, var(--navy-deep) 100%);
}

/* Subtile Navy-Toenung (Section-Baender) */
.surface-navy-soft {
  background:
    radial-gradient(50% 60% at 100% 0%, hsl(88 62% 44% / 0.06), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, hsl(203 100% 15% / 0.18), transparent 60%),
    var(--background-elev);
}

/* Premium-Card / CTA-Block */
.surface-navy-card {
  background: linear-gradient(135deg,
    var(--navy-deep) 0%,
    var(--background-elev) 55%,
    var(--navy) 100%);
  border: 1px solid hsl(203 100% 15% / 0.5);
}

/* Header-Glass (scrolled) */
.surface-header {
  background:
    linear-gradient(180deg,
      hsl(205 35% 5% / 0.85) 0%,
      hsl(204 100% 10% / 0.75) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid hsl(203 100% 15% / 0.35);
}


/* ===========================================================
   13. DECORATIVE ELEMENTS
   =========================================================== */

/* Accent Line */
.accent-line {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsl(88 62% 44% / 0.6) 25%,
    hsl(203 100% 15% / 0.9) 50%,
    hsl(88 62% 44% / 0.6) 75%,
    transparent 100%);
}

/* Grid Pattern Overlay */
.grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2760%27 height=%2760%27%3E%3Cpath d=%27M60 0H0v60%27 fill=%27none%27 stroke=%27white%27 stroke-opacity=%27.05%27 stroke-width=%27.5%27/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.05;
}

/* Glow Blobs */
.glow-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}
.blob-brand { background: hsl(88 62% 44% / 0.25); }
.blob-navy  { background: hsl(203 100% 15% / 0.7); }
.blob-deep  { background: hsl(204 100% 10% / 0.85); }

/* Grid / Dots Background */
.bg-grid {
  background-image:
    linear-gradient(hsl(204 22% 16% / 0.4) 1px, transparent 1px),
    linear-gradient(90deg, hsl(204 22% 16% / 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
}
.bg-dots {
  background-image: radial-gradient(hsl(203 30% 24%) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Num Tag */
.num-tag {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  border: 1px solid var(--border-strong);
  color: var(--brand);
  flex-shrink: 0;
}


/* ===========================================================
   14. ANIMATIONS
   =========================================================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(88 62% 44% / 0.4); }
  50%      { box-shadow: 0 0 0 12px hsl(88 62% 44% / 0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes accordion-down {
  from { height: 0; opacity: 0; }
  to   { height: var(--accordion-height); opacity: 1; }
}

@keyframes accordion-up {
  from { height: var(--accordion-height); opacity: 1; }
  to   { height: 0; opacity: 0; }
}

.animate-fade-up    { animation: fade-up 0.7s var(--ease) both; }
.animate-fade-in    { animation: fade-in 0.5s ease-out both; }
.animate-glow-pulse { animation: glow-pulse 2s infinite; }
.animate-marquee    { animation: marquee 40s linear infinite; }

/* Scroll-Reveal (unsichtbar bis JS die Klasse hinzufuegt) */
.tw-animate {
  opacity: 0;
}
.tw-animate.tw-revealed {
  animation: fade-up 0.6s var(--ease) forwards;
}

/* Gestaffelte Delays */
.tw-stagger > .tw-animate.tw-revealed:nth-child(2) { animation-delay: 0.1s; }
.tw-stagger > .tw-animate.tw-revealed:nth-child(3) { animation-delay: 0.15s; }
.tw-stagger > .tw-animate.tw-revealed:nth-child(4) { animation-delay: 0.2s; }
.tw-stagger > .tw-animate.tw-revealed:nth-child(5) { animation-delay: 0.25s; }
.tw-stagger > .tw-animate.tw-revealed:nth-child(6) { animation-delay: 0.3s; }

/* Fade-Maske */
.mask-fade {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}


/* ===========================================================
   15. HEADER
   =========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s var(--ease);
}

.site-header .accent-line {
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.site-header.scrolled {
  background:
    linear-gradient(180deg,
      hsl(205 35% 5% / 0.85) 0%,
      hsl(204 100% 10% / 0.75) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid hsl(203 100% 15% / 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
@media (min-width: 1024px) {
  .header-inner { height: 5rem; }
}

/* Logo */
.site-logo img {
  height: auto;
  width: auto;
  max-width: 225px;
}

/* Desktop Navigation */
.main-nav {
  display: none;
}
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.main-nav a,
.main-nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav button:hover,
.main-nav a.active,
.main-nav .current-menu-item > a {
  color: var(--brand);
  background: hsl(88 62% 44% / 0.08);
}

.main-nav .nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}
.main-nav .nav-dropdown-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  display: none;
}
@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
  }
}

/* Mobile Toggle */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}
.mobile-toggle:hover {
  background: hsl(88 62% 44% / 0.08);
}
.mobile-toggle svg {
  width: 24px;
  height: 24px;
}


/* ===========================================================
   16. DROPDOWN MENU
   =========================================================== */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--background-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elev);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 200;
  min-width: 500px;
}
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-section h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.nav-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.nav-dropdown-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--foreground);
  transition: all 0.2s;
}
.nav-dropdown-list a:hover {
  background: hsl(88 62% 44% / 0.08);
  color: var(--brand);
}
.nav-dropdown-list a .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}

/* Leistungen Mega-Dropdown: 3 Spalten */
.nav-dropdown-mega {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  min-width: 680px;
}

/* Branchen Dropdown: 2 Spalten */
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.125rem;
}


/* ===========================================================
   17. MOBILE DRAWER
   =========================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.6);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mobile-drawer.open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 400px);
  background: var(--background-elev);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  border-radius: 0.5rem;
}
.mobile-drawer-close:hover {
  background: hsl(88 62% 44% / 0.08);
}

.mobile-drawer-nav {
  flex: 1;
  padding: 1rem 0;
}

.mobile-nav-item {
  display: block;
}
.mobile-nav-item > a,
.mobile-nav-item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.mobile-nav-item > a:hover,
.mobile-nav-item > button:hover {
  color: var(--brand);
  background: hsl(88 62% 44% / 0.05);
}

.mobile-nav-item > button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.mobile-nav-item > button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
  padding-left: 1.25rem;
  background: hsl(204 30% 8% / 0.5);
}
.mobile-nav-submenu.open {
  max-height: 800px;
}

.mobile-nav-submenu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.mobile-nav-submenu a:hover {
  color: var(--brand);
}

.mobile-drawer-footer {
  padding: 1rem 1.25rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}


/* ===========================================================
   18. PAGE HEADER
   =========================================================== */
.page-header {
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
}

.page-header-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header-title {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  letter-spacing: -0.03em;
  max-width: 40rem;
}

.page-header-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-top: 1rem;
  line-height: 1.6;
}


/* ===========================================================
   19. FOOTER
   =========================================================== */
.site-footer {
  background: var(--background-elev);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--foreground);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--brand);
}

.footer-brand img {
  height: 2rem;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0.9);
}

.footer-contact {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.footer-contact a {
  display: inline;
  padding: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.footer-legal {
  display: flex;
  gap: 0.25rem;
}
.footer-legal a {
  padding: 0.25rem 0.75rem;
  border-left: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.footer-legal a:first-child {
  border-left: none;
}
.footer-legal a:hover {
  color: var(--brand);
}


/* ===========================================================
   20. BACK-TO-TOP
   =========================================================== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 15px hsl(88 62% 44% / 0.35);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
  align-items: center;
  justify-content: center;
}
#back-to-top.visible {
  display: flex;
}
#back-to-top svg {
  width: 22px;
  height: 22px;
}
#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px hsl(88 62% 44% / 0.5);
}


/* ===========================================================
   21. CTA SECTION
   =========================================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-section { padding: 4rem 3rem; }
}

.cta-section .eyebrow { justify-content: center; }

.cta-title {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  margin-top: 0.75rem;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}


/* ===========================================================
   22. FAQ ACCORDION
   =========================================================== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--background-elev);
}
.faq-item:hover {
  border-color: hsl(88 62% 44% / 0.3);
}
.faq-item.open {
  border-color: hsl(88 62% 44% / 0.4);
  box-shadow: 0 4px 20px hsl(88 62% 44% / 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--foreground);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}
.faq-question:hover {
  color: var(--brand);
}

.faq-question .faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  color: var(--brand);
}
.faq-item.open .faq-question .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
}
.faq-item.open .faq-answer {
  max-height: 800px;
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}
.faq-answer ul {
  padding-left: 1.2rem;
}
.faq-answer li {
  list-style: disc;
  margin-bottom: 0.25rem;
}


/* ===========================================================
   23. BREADCRUMB
   =========================================================== */
.breadcrumb {
  padding: 0.75rem 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--border-strong);
  margin-right: 0.25rem;
}

.breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}
.breadcrumb-item a:hover {
  color: var(--brand);
}

.breadcrumb-current {
  color: var(--foreground);
  font-weight: 500;
}


/* ===========================================================
   24. WP CONTENT STYLING
   =========================================================== */
.wp-content h2 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsl(88 62% 44% / 0.3);
}

.wp-content h3 {
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.wp-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.wp-content ul,
.wp-content ol {
  margin-bottom: 1rem;
  padding-left: 0;
}
.wp-content li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.wp-content ul li {
  list-style: none;
}
.wp-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
.wp-content ol {
  counter-reset: ol-counter;
}
.wp-content ol li {
  list-style: none;
  counter-increment: ol-counter;
}
.wp-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-content blockquote {
  border-left: 4px solid var(--brand);
  background: var(--background-soft);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.wp-content img {
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto !important;
}

/* WordPress Alignment-Klassen */
.wp-content .aligncenter {
  display: block;
  margin-inline: auto;
}
.wp-content .alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}
.wp-content .alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}
.wp-content .alignnone {
  display: block;
}

/* WordPress Bild-Groessen-Klassen */
.wp-content .size-thumbnail {
  max-width: 150px;
}
.wp-content .size-medium {
  max-width: 300px;
}
.wp-content .size-large {
  max-width: 100%;
}

/* WordPress Block-Editor Bilder */
.wp-content figure {
  margin: 1.5rem 0;
  max-width: 100%;
}
.wp-content figure img {
  border-radius: 0.75rem;
}
.wp-content figcaption {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  text-align: center;
}

/* WordPress Gallery */
.wp-content .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.wp-content .gallery-item {
  margin: 0;
}
.wp-content .gallery-item img {
  width: 100%;
  height: auto !important;
  border-radius: 0.5rem;
}

.wp-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wp-content a:hover {
  color: var(--brand-glow);
}

.wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.wp-content td,
.wp-content th {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}
.wp-content th {
  background: var(--navy);
  color: var(--navy-foreground);
  font-weight: 600;
}

/* Formulare im dunklen Theme */
.wp-content input[type="text"],
.wp-content input[type="email"],
.wp-content input[type="tel"],
.wp-content input[type="url"],
.wp-content textarea,
.wp-content select {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color 0.2s;
}
.wp-content input:focus,
.wp-content textarea:focus,
.wp-content select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px hsl(88 62% 44% / 0.15);
}


/* ===========================================================
   25. TESTIMONIAL CARD
   =========================================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--background-elev);
  border: 1px solid var(--border);
}

.testimonial-stars {
  display: flex;
  gap: 0.125rem;
  color: hsl(45 93% 55%);
}
.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  font-style: italic;
}

.testimonial-author {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-source {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}


/* ===========================================================
   26. FRONT-PAGE RESPONSIVE UTILITIES
   =========================================================== */

/* Mobile-first responsive grids (simpler class names) */
@media (min-width: 768px) {
  .md-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md-grid-4 { grid-template-columns: repeat(4, 1fr); }

  .md-flex-row      { flex-direction: row; }
  .md-items-end     { align-items: flex-end; }
  .md-align-center  { align-items: center; }
  .md-justify-between { justify-content: space-between; }

  .header-gap .md-flex-row-override {
    flex-direction: row;
    align-items: flex-end;
  }
}
@media (min-width: 1024px) {
  .lg-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .lg-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-4 { grid-template-columns: repeat(4, 1fr); }

  /* FAQ Section: sidebar(4) + content(8) */
  .lg-grid-faq { grid-template-columns: 4fr 8fr; }

  /* Content(8) + sidebar(4) — Leistung/Branche Detail */
  .lg-grid-content-sidebar { grid-template-columns: 8fr 4fr; }

  /* KI Section header: 7+5 column split */
  .lg-grid-ki-header { grid-template-columns: 7fr 5fr; }

  /* Footer CTA: Text + Buttons nebeneinander */
  .lg-cta-grid { grid-template-columns: 1fr auto; align-items: end; }
}

/* Visibility helpers */
.hidden-mobile { display: none; }
.visible-mobile { display: block; }

@media (min-width: 768px) {
  .hidden-mobile  { display: block; }
  .visible-mobile { display: none; }
}

/* Hero-specific: hidden br on mobile */
@media (max-width: 767px) {
  .hidden-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .hidden-mobile { display: initial; }
}

/* Brand HSL raw value for alpha usage */
:root {
  --brand-hsl: 88 62% 44%;
}


/* ===========================================================
   27. FAQ ACCORDION (Template Part — Alternative Triggers)
   =========================================================== */
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s;
}
@media (min-width: 768px) {
  .faq-trigger { font-size: 1.125rem; }
}
.faq-trigger:hover {
  color: var(--brand);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  color: var(--brand);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item.open .faq-content {
  max-height: 600px;
}
.faq-content-inner {
  padding: 0 1.25rem 1.25rem 2.5rem;
}
