/* ==========================================================================
   Payroll Fuchs — Shared Design System
   All pages import this file. Production-grade CSS.
   ========================================================================== */


/* 1. CSS Reset
   ========================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 2. Custom Properties
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-primary: #e8eef6;
  --bg-white: #f7f7f7;
  --bg-hero: linear-gradient(135deg, #2a4a7f 0%, #1e3a5f 50%, #0f172a 100%);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #475569; /* Slate-600 — WCAG AA gegen --bg-white #f7f7f7 (7.0:1); zuvor #64748b war 4.44:1 */

  /* Accent */
  --accent: #3b82f6;
  --accent-light: #60a5fa;

  /* Border */
  --border: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-smooth: cubic-bezier(0.17, 0.55, 0.55, 1);
}

/* 3. Google Fonts — imported at top of file per CSS spec */

/* 4. Base Typography
   ========================================================================== */

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.5;
}

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

/* 5. Layout Utilities
   ========================================================================== */

.container {
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 1.8rem 0 5rem;
}

/* Trust-bar (Logo-Karussell): symmetrische vertikale Abstaende, etwas mehr oben */
.section:has(.logo-carousel) {
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
}

.section--slate {
  background-color: var(--bg-primary);
}

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

/* 6. Grid Utilities
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.5rem;
}

/* 7. Card Component
   ========================================================================== */

.card {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

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

.card__body {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card__list li {
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 0.3em;
}

.card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* 8. Button Components
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out;
}

.btn-primary:hover {
  transform: scale(1.02);
  background-color: #1e293b;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-primary);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

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

/* 9. Badge Component
   ========================================================================== */

.badge {
  display: inline-block;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  text-decoration: none;
}

/* Hero Badges: 20% groesser fuer prominente Wirkung neben dem Demo-Buchen-Button */
.hero__actions .badge {
  font-size: 0.9rem;
  padding: 0.35rem 0.95rem;
}

.badge--datev {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.badge--dsgvo {
  background-color: #dcfce7;
  color: #15803d;
}

.badge--google {
  background-color: #ffffff;
  color: #a16207;
}

/* 10. Label Component
   ========================================================================== */

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* 11. Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  background-color: #f7f7f7;
  border-bottom: none;
  z-index: 1000;
  padding: 1rem 0;
  transition: padding 0.3s ease-out, box-shadow 0.3s ease-out;
}

.nav--scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 5rem;
  list-style: none;
}

.nav__links a {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transform-origin: center;
  transition: color 0.2s ease-out, transform 0.2s ease-out;
}

.nav__links a:hover {
  color: #2563eb;
  transform: scale(1.12);
}

/* Pillar Themen-Submenu */
.nav__has-submenu {
  position: relative;
}

.nav__submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
  padding: 0.4rem 0;
  list-style: none;
  min-width: 220px;
  z-index: 100;
  white-space: nowrap;
}

.nav__has-submenu:hover .nav__submenu {
  display: block;
}

.nav__submenu li a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transform: none;
}

.nav__submenu li a:hover {
  color: #2563eb;
  transform: none;
  background: #f8fafc;
}

/* Footer Fachthemen-Block — full-width top row */
.footer__fachthemen {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.footer__fachthemen p {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.footer__fachthemen a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

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

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2563eb;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out;
}

.nav__cta:hover {
  transform: scale(1.02);
  background-color: #1d4ed8;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.hamburger--active {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2100;
}

.hamburger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 12. Footer
   ========================================================================== */

.footer {
  background-color: var(--bg-white);
  padding: 1.3rem 0;
  margin-top: auto;
}

.footer__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 5.25rem;
}

.footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease-out;
}

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

.footer__right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.footer__link-right {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease-out;
}

.footer__link-right:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer__social a {
  color: var(--text-muted);
  transition: color 0.2s ease-out;
}

.footer__social a:hover {
  color: var(--accent);
}

.footer__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* 13. SVG Wave Dividers
   ========================================================================== */

.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: clamp(30px, 4vw, 80px);
}

/* 14. Scroll-Reveal Classes
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

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

.reveal--fade {
  opacity: 0;
  transform: none;
  transition: opacity 0.6s var(--transition-smooth);
}

.reveal--fade.reveal--visible {
  opacity: 1;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* 15. Hero Styles
   ========================================================================== */

.hero {
  min-height: clamp(500px, 70svh, 800px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: clamp(2.1rem, 5.6svh, 5.6rem);
  padding-bottom: clamp(1.8rem, 4.8svh, 4.8rem);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 58, 95, 0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
  text-align: center;
}

.hero__label {
  font-size: 1.5rem;
  margin-top: clamp(0.25rem, 0.7vh, 1rem);
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero__title {
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: clamp(1rem, 3vh, 2.5rem);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: clamp(1rem, 8vw, 9rem);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: clamp(1.44rem, 4.3vh, 3.6rem);
  margin-bottom: 2rem;
}

.hero__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__video-preview {
  position: relative;
  max-width: 640px;
  margin: 2rem auto 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hero__video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  pointer-events: none;
}

.hero__video-preview:hover .hero__video-play {
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(1.08);
}

.hero__video-preview:hover .hero__video-play svg path {
  fill: #0f172a;
}

/* 16. Hero Text Animation
   ========================================================================== */

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__label {
  animation: heroFadeIn 0.6s ease-out both;
}

.hero__title {
  animation: heroFadeIn 0.6s ease-out 0.15s both;
}

.hero__subtitle {
  animation: heroFadeIn 0.6s ease-out 0.3s both;
}

.hero__actions {
  animation: heroFadeIn 0.6s ease-out 0.45s both;
}

.hero__badges {
  animation: heroFadeIn 0.6s ease-out 0.6s both;
}

/* 16b. Page Components — Redesign
   ========================================================================== */

/* Section Titles */
.section__title {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.section__title-link:hover,
.section__title-link:focus-visible {
  color: #ea580c;
  outline: none;
}

/* Trust Bar — Customer Logos */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.trust-bar img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s ease-out, opacity 0.3s ease-out;
}

.trust-bar img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Card Icon (top of card) */
.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.card__icon img {
  width: 48px;
  height: 48px;
}

/* Hero Gradient Placeholder (until video is provided) */
.hero--gradient {
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(59, 130, 246, 0.04), transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(59, 130, 246, 0.20), transparent 70%),
    linear-gradient(135deg, #3b82f6 0%, #2a4a7f 55%, #1e3a5f 100%);
}

.hero--gradient .hero__overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.10) 0%, rgba(30, 58, 95, 0.18) 100%);
}

/* Hero Accent Text */
.hero__accent {
  color: var(--accent-light);
}

/* Hero Wave — top (nav → hero transition) */
.hero__wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero__wave-top svg {
  display: block;
  width: 100%;
  height: clamp(20px, 3vw, 50px);
}

/* Hero Wave — bottom (hero → next section) */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: clamp(14px, 1.8vw, 36px);
}

/* Logo Carousel (infinite scroll) */
.logo-carousel {
  overflow: hidden;
  width: 100%;
}

.logo-carousel__track {
  display: flex;
  align-items: center;
  animation: carouselScroll 10s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 3.6rem;
}

.logo-wrap img {
  height: 48px !important;
  width: auto !important;
  object-fit: contain;
}

@keyframes carouselScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Testimonial Carousel */
.testimonial-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-carousel__track {
  display: flex;
  animation: testimonialScroll 24s linear infinite;
}

.testimonial-carousel__slide {
  flex: 0 0 100%;
  padding: 0 2rem;
  margin: 0;
  border: none;
}

.testimonial-carousel__quote {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.testimonial-carousel__author {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

@keyframes testimonialScroll {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-100%); }
  50%, 70% { transform: translateX(-200%); }
  75%, 95% { transform: translateX(-300%); }
  100% { transform: translateX(-400%); }
}

/* Hero Buttons on dark background */
/* Demo-Buchen-CTA — siehe STYLE-GUIDE.md §10. Default Orange, Hover Grün, Navy-Shadow.
   Hinweis: weisser Text auf #ea580c hat WCAG-Contrast 3.55:1 (Schwelle 4.5:1).
   Bewusst akzeptiert (Brand-Farbe, 2026-05-15) — fuer Lighthouse-Audit:
   color-contrast bleibt failing fuer diesen Button. */
.hero__btn-primary {
  background-color: #ea580c !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.40);
}

.hero__btn-primary:hover {
  background-color: #059669 !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.50);
}

.hero__btn-ghost {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.hero__btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Team Teaser Photo (circular) */
.team-teaser__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

/* Mobile Nav Menu Open State */
.nav__links.nav__menu--open {
  display: flex !important;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: max-content;
  max-width: 75%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5.75rem 2rem 2rem;
  gap: 1.75rem;
  box-shadow: -12px 0 32px rgba(15, 23, 42, 0.08);
}

.nav__links.nav__menu--open a {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav__links.nav__menu--open .nav__submenu {
  display: block;
  position: static;
  transform: none;
  box-shadow: none;
  padding: 0.25rem 0 0 1rem;
  border-left: 2px solid #e2e8f0;
  background: transparent;
  min-width: 0;
}

.nav__links.nav__menu--open .nav__submenu li a {
  font-size: 0.9375rem;
  padding: 0.3rem 0;
  color: var(--text-secondary);
}

/* 17. Responsive
   ========================================================================== */

/* Mobile — up to 768px */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  /* Mobile: center card icons + titles (Leistungen-section etc.) */
  .card__icon {
    margin-left: auto;
    margin-right: auto;
  }
  .card__title {
    text-align: center;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: 80svh;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer__links {
    justify-content: center;
    gap: 1.5rem;
  }

  .footer__right {
    flex-direction: column;
    gap: 0.5rem;
  }

  .trust-bar {
    gap: 2rem;
  }

  .trust-bar img {
    height: 30px;
  }

  .team-teaser__photo {
    width: 100px;
    height: 100px;
  }
}

/* Tablet — 769px to 1024px: stack stattdessen, statt 2+1-Layout bei 3 Items */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Desktop — 1025px and up */
@media (min-width: 1025px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Site Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #f7f7f7;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1290px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
  transition: height 0.3s ease-out;
}

.site-header--scrolled .header-inner {
  height: 60px;
}

.site-header--scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 100px;
  padding-left: 10px;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  width: 60px;
  height: auto;
}

.header-social {
  margin-left: auto;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  color: #4875B4;
  border-radius: 4px;
  transition: color 0.2s;
}

.header-social a:hover {
  color: #222222;
}

.header-social svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.header-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.78em 2.515em;
  font-size: 19px;
  font-weight: 400;
  color: #265E9A;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #2B6CB0;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 60px;
}

.header-right .btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2F8DF1;
  color: #fff;
  padding: 3px 21px;
  border-radius: 51px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
  transition: background 0.2s;
}

.header-right .btn-login:hover {
  box-shadow: 0 15px 25px -7px rgb(0 0 0 / 0.1);
}

/* .hamburger is defined above in section 11 (shared nav) */

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background: #f7f7f7;
  padding: 30px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 19px;
  padding: 0 2.93em;
  color: #265E9A;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #265E9A;
}

/* ==========================================================================
   Site Header — Responsive (Mobile breakpoint)
   ========================================================================== */

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .header-social {
    display: none;
  }

  .header-right .btn-login {
    display: none;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ==========================================================================
   Blog Card Grid — geteilt von /blog/-Listing und Homepage-Widget
   ========================================================================== */

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 3.5rem;
  row-gap: 1.75rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(20px);
  animation: blog-card-fade-in 0.6s cubic-bezier(0.17, 0.55, 0.55, 1) forwards;
}

@keyframes blog-card-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Homepage-Variante: breitere Cards mit flacherem Bild — selbe Total-Cardhoehe */
.blog-card-grid--home .blog-card__image {
  aspect-ratio: 2 / 1;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a4a7f 0%, #1e3a5f 50%, #0f172a 100%);
  color: #fff;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.blog-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.blog-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.blog-card__title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0;
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0.25rem 0 0;
}

@media (max-width: 1024px) {
  .blog-card-grid { grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; row-gap: 1.5rem; }
}

@media (max-width: 640px) {
  .blog-card-grid { grid-template-columns: 1fr; column-gap: 1.25rem; row-gap: 1.25rem; }
}

/* Blog Carousel — Homepage "Was wir zu KI denken"
   ========================================================================== */
.blog-carousel {
  position: relative;
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 3.25rem;
  text-align: left;
}

.blog-carousel__viewport {
  overflow: hidden;
  border-radius: 12px;
}

.blog-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 4px 1.25rem;
}

.blog-carousel__track::-webkit-scrollbar { display: none; }

.blog-carousel__slide {
  flex: 0 0 calc((100% - 4 * 1rem) / 5);
  /* Override fade-in animation from .blog-card so all slides render solid */
  animation: none;
  transform: none;
  opacity: 1;
  filter: none;
  transition: opacity 0.6s ease, filter 0.6s ease, box-shadow 0.35s ease;
}

/* Outermost visible cards — softly dimmed for focus */
.blog-carousel__slide.is-edge {
  opacity: 0.45;
  filter: saturate(0.55);
}

/* Compact body: only image + title for the homepage carousel */
.blog-carousel__slide .blog-card__body {
  padding: 0.75rem 0.875rem 1rem;
}

.blog-carousel__slide .blog-card__title {
  font-size: 0.875rem;
  line-height: 1.3;
}

.blog-carousel__slide .blog-card__image {
  aspect-ratio: 16 / 10;
}


.blog-carousel__btn {
  position: absolute;
  top: calc(50% - 1.25rem); /* shift up to account for dots */
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.blog-carousel__btn svg {
  width: 22px;
  height: 22px;
}

.blog-carousel__btn:hover,
.blog-carousel__btn:focus-visible {
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
  outline: none;
}

.blog-carousel__btn--prev { left: 0; }
.blog-carousel__btn--next { right: 0; }

.blog-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.blog-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.blog-carousel__dot:hover { background: rgba(15, 23, 42, 0.34); }

.blog-carousel__dot.is-active {
  background: #ea580c;
  width: 22px;
  border-radius: 999px;
}

.blog-carousel__dot:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .blog-carousel { padding: 0 2.75rem; }
  .blog-carousel__slide { flex-basis: calc((100% - 2 * 1rem) / 3); }
}

@media (max-width: 640px) {
  .blog-carousel { padding: 0 0.5rem; }
  .blog-carousel__track { gap: 1rem; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
  .blog-carousel__slide { flex-basis: 100%; scroll-snap-align: center; }
  /* Pfeil-Buttons mobil weg — User swiped */
  .blog-carousel__btn { display: none; }
  .blog-carousel__viewport {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-carousel__btn,
  .blog-carousel__dot,
  .blog-carousel__slide { transition: none; }
}

/* Anchor-Scroll-Offset: sticky nav (72px) + breathing room */
[id^="faq-"] {
  scroll-margin-top: 110px;
}

/* ==========================================================================
   Hero Trust-Badges — "Sicherheit & Datenschutz"
   Zeile 1: 2 gruene Badges | Demo buchen | 2 gruene Badges (Demo fix mittig).
   Einzeilig ab 1300px, dabei breiter als die Textspalte via margin-inline-
   Breakout; darunter gestapelt. Google-Button zentriert unter Demo buchen.
   ========================================================================== */
.hero__actions--trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: calc(100vw - 3rem);
  margin-inline: calc((100% - (100vw - 3rem)) / 2);
  margin-top: clamp(1.44rem, 4.3vh, 3.6rem);
  margin-bottom: 0;
}
/* Gruppen loesen sich auf -> alle 5 Elemente sind direkte Flex-Items und
   werden per space-evenly GLEICHMAESSIG verteilt (kein 2er-Cluster). */
.hero__trust-group {
  display: contents;
}
.hero__actions--trust .badge {
  font-size: 0.9rem;
  padding: 0.35rem 0.95rem;
}
/* Der sichtbare CTA ist der Ghost-Klon (.fx-floating-book, 288px breit), der zentriert
   ueber dem echten Button (163px) sitzt und ~62px pro Seite drueber ragt. Damit der Ghost
   die Nachbar-Badges NICHT ueberlappt, per margin-inline extra Platz um den echten Button
   reservieren (48px Flex-Gap + 40px Margin = 88px Slot -> Ghost haelt ~25px Abstand). */
.hero__actions--trust .hero__btn-primary {
  margin-inline: 2.5rem;
}
.hero__google-row {
  display: flex;
  justify-content: center;
  margin-top: 3.25rem;
  margin-bottom: 2rem;
  animation: heroFadeIn 0.6s ease-out 0.55s both;
}
.hero__google-lg {
  font-size: 1.05rem;
  padding: 0.6rem 1.5rem;
  /* Demo buchen sitzt durch die breiteren rechten Badges ~32px links der Mitte;
     Google um denselben Betrag nach links ruecken -> exakt unter Demo. */
  transform: translateX(-32px);
}
/* Unter 1360px: stapeln (der breite Ghost-CTA + Badges passen nicht in eine Reihe) */
@media (max-width: 1360px) {
  .hero__actions--trust {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    width: auto;
    margin-inline: 0;
  }
  .hero__trust-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }
  .hero__actions--trust .hero__btn-primary {
    margin-inline: 0;
  }
  .hero__google-row {
    margin-top: 2rem;
  }
  /* Gestapelt ist Demo bereits mittig -> kein Google-Shift */
  .hero__google-lg {
    transform: none;
  }
}
