/* novaflow – Komponenten-Styles (Light Theme) */

/* Basis: Bilder & SVGs */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* SVG-Bilder: scharfe Kanten */
img[src$=".svg"] {
  image-rendering: -webkit-optimize-contrast;
}

/* Panel */
.panel {
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panelHeader {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.06);
}

.panelHeader h3 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
}

.panelBody {
  padding: 1rem;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0.0625rem solid rgba(0, 0, 0, 0.10);
  background: #fff;
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: #f4f5f7;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

.btnPrimary {
  border-color: rgba(0, 200, 80, 1);
  background: linear-gradient(135deg, #00c850 0%, #3475dc 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0.25rem 1rem rgba(0, 200, 80, 0.25);
}

.btnPrimary:hover {
  background: linear-gradient(135deg, #00b848 0%, #2d66c4 100%);
}

.btnSecondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(52, 117, 220, 0.35);
}

.btnSecondary:hover {
  background: rgba(52, 117, 220, 0.08);
}

/* Formularelemente */
input[type='text'],
input[type='email'],
input[type='tel'],
select,
textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 200, 80, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(0, 200, 80, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

.label {
  color: var(--muted);
  font-size: 0.75rem;
  padding-top: 0.5rem;
  display: block;
}

/* Status-Meldungen */
.error {
  border: 0.0625rem solid rgba(229, 56, 59, 0.40);
  background: rgba(229, 56, 59, 0.06);
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: var(--text);
}

.ok {
  border: 0.0625rem solid rgba(43, 154, 111, 0.35);
  background: rgba(43, 154, 111, 0.06);
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: var(--text);
}

/* Brand / Logo */
.brand {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

/* ================================================================
   Header
   ================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 251, 0.92);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  border-bottom: 0.0625rem solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-img {
  height: 2.75rem;
  width: auto;
  backface-visibility: hidden;
}

/* Größeres Logo auf Desktop */
@media (min-width: 61.3125em) {
  .logo-img {
    height: 3.75rem;
  }
}

.nav-main {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-main a {
  color: var(--muted);
  font-size: 1.0625rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-main a:hover {
  color: var(--text);
}

/* Gut sichtbare Tastatur-Fokuszustände */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 0.125rem solid var(--accent-2);
  outline-offset: 0.1875rem;
  border-radius: 0.25rem;
}

/* Skip-Link für Tastatur-Navigation */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: #fff;
  border: 0.0625rem solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  padding: 3rem 0 0rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.hero-teaser {
  font-size: 1.3125rem;
  color: var(--text);
  margin: 0 0 1.75rem;
  line-height: 1.7;
}

.hero .btn {
  margin-top: 0.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-proof {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ================================================================
   Section Block
   ================================================================ */
.section-block {
  padding: 3rem 0 0rem;
}

.section-block h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  margin: 0 0 1rem;
}

.section-intro {
  color: var(--text);
  font-size: 1.1875rem;
  margin: 0 0 2rem;
}

/* ================================================================
   Services Grid (2x2)
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Einheitliche Header-Höhe für Service-Karten */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card details {
  width: 100%;
}

.service-card summary {
  list-style: none;
  cursor: pointer;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card summary::marker {
  display: none;
  content: '';
}

.service-card .panelHeader {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* Toggle-Chevron */
.service-toggle {
  margin-left: auto;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.service-toggle::before,
.service-toggle::after {
  content: '';
  position: absolute;
  background: var(--muted);
  border-radius: 0.0625rem;
  transition: transform 0.3s ease;
}

/* Horizontaler Strich */
.service-toggle::before {
  top: 50%;
  left: 15%;
  width: 70%;
  height: 0.125rem;
  transform: translateY(-50%);
}

/* Vertikaler Strich (wird zu + wenn geschlossen) */
.service-toggle::after {
  top: 15%;
  left: 50%;
  width: 0.125rem;
  height: 70%;
  transform: translateX(-50%);
}

/* Wenn offen: vertikaler Strich verschwindet (- statt +) */
details[open] .service-toggle::after {
  transform: translateX(-50%) scaleY(0);
}

/* Smooth Auf-/Zuklapp-Animation */
.service-card details {
  interpolate-size: allow-keywords;
}

.service-card .panelBody {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease,
              padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 1rem;
}

details[open] > .panelBody {
  height: auto;
  opacity: 1;
  padding: 1rem;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

.service-card .panelBody {
  color: var(--text);
  font-size: 1.0625rem;
}

/* ================================================================
   CTA Block
   ================================================================ */
.cta-block {
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.cta-headline {
  font-size: 1.45rem;
  margin: 0 0 1.5rem;
}

@media (max-width: 48em) {
  .cta-block .btn {
    display: inline-block;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(0.8125rem, 3.8vw, 0.9375rem);
    box-sizing: border-box;
  }
}

/* ================================================================
   USP List
   ================================================================ */
.usp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.usp-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.125rem;
}

.usp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  /* Zentriert den Punkt mit der ersten Textzeile (Mitte der Zeilenhöhe minus halbe Bullet-Höhe) */
  top: calc(0.5em * var(--line-height, 1.7) - 0.25rem);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ================================================================
   Kunden-Logo-Marquee
   ================================================================ */
.logo-marquee-section {
  padding: 2.5rem 0;
}

/* Marquee braucht keine Scroll-Animation – immer sichtbar halten */
html.js-loaded .logo-marquee-section {
  opacity: 1;
  transform: none;
}

.logo-marquee-section h3 {
  text-align: center;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

/* Overflow-Container mit Fade-Maske */
.logo-marquee {
  overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* Einziger Track: alle Logos (Original + Duplikate) in einer Reihe.
   padding-left = gap sorgt dafür, dass translateX(-50%) exakt eine Logo-Runde abdeckt. */
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-left: 3.5rem;
  width: max-content;
  animation: marquee 35s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

/* Zelle: Höhe fest, Breite wächst für längliche Logos (min = quadratisch, max = extra Platz) */
.logo-marquee-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 5rem;
  max-height: 9.5rem;
  max-width: 13.625rem;
  width: fit-content;
}

.logo-marquee-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(0.45);
  transition: filter 0.3s;
  backface-visibility: hidden;
}

.logo-marquee-track img:hover {
  filter: grayscale(0) opacity(1);
}

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

/* Marquee mobile: kleinerer Gap, kompaktere Darstellung, breitere Fade-Zonen */
@media (max-width: 48em) {
  .logo-marquee-section {
    padding: 2rem 0;
  }

  /* Auf schmalen Viewports: Fade-Zone vergrößern, damit Logos nicht zu früh ausblenden */
  .logo-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  }

  .logo-marquee-track {
    gap: 2.25rem;
    padding-left: 2.25rem;
    animation-duration: 25s;
  }

  .logo-marquee-cell {
    height: 3.5rem;
    min-width: 3.5rem;
    max-width: 6.875rem;
  }

  .logo-marquee-track img {
    max-width: 6.875rem;
    max-height: 3.5rem;
  }
}

/* ================================================================
   Stats / Kennzahlen
   ================================================================ */
.stats-section {
  padding: 3.5rem 0 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.stat-item:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.08);
}

.stat-value {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.0625rem;
  color: var(--text);
  font-weight: 300;
}

@media (max-width: 48em) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-item {
    padding: 1.5rem 0.75rem;
  }
}

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

  .stat-item {
    padding: 1.25rem 0.5rem;
  }
}

/* ================================================================
   Team Grid
   ================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.team-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0.25rem 1rem rgba(110, 110, 110, 0.25);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0.25rem 1rem rgba(110, 110, 110, 0.25);
}

.team-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
}

.team-card p {
  color: var(--text);
  margin: 0;
  font-size: 1rem;
}

/* ================================================================
   Ablauf Stepper (Grafik)
   ================================================================ */
.ablauf-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.ablauf-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Verbindungslinie zwischen den Schritten */
.ablauf-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.375rem;
  left: calc(50% + 1.5rem);
  width: calc(100% - 3rem);
  height: 0.125rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.35;
}

.ablauf-step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0.25rem 0.875rem rgba(0, 200, 80, 0.18);
}

.ablauf-step-number--symbol {
  font-size: 1.5625rem;
}

.ablauf-step-text {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.45;
  max-width: 8.75rem;
}

/* Ablauf Desktop: Hover auf Kreis */
.ablauf-step-number {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.ablauf-step:hover .ablauf-step-number {
  transform: scale(1.25);
  box-shadow: 0 0.375rem 1.25rem rgba(0, 200, 80, 0.3);
}

/* Ablauf mobile: vertikale Zeitleiste */
@media (max-width: 48em) {
  .ablauf-stepper {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .ablauf-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    padding-bottom: 1.75rem;
    position: relative;
    padding-left: 0;
  }

  .ablauf-step:not(:last-child)::after {
    top: 2.75rem;
    left: 1.3125rem;
    width: 0.125rem;
    height: calc(100% - 2.75rem);
  }

  .ablauf-step-text {
    margin-top: 0;
    max-width: none;
    padding-top: 0.625rem;
  }
}

/* ================================================================
   Contact Form (zentriert, volle Breite Desktop)
   ================================================================ */
.section-contact {
  padding: 3.75rem 0 5rem;
}

.section-contact .container {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-contact h2,
.section-contact .section-intro {
  text-align: center;
  max-width: 37.5rem;
}

.contact-proof {
  text-align: center;
  color: var(--muted);
  margin: -0.5rem 0 1.25rem;
  font-size: 0.95rem;
}

.section-contact .contact-form {
  width: 100%;
  max-width: 35rem;
  padding: 2rem;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row .label {
  margin-bottom: 0.375rem;
}

.contact-form .btn {
  margin-top: 0.5rem;
  width: 100%;
}

/* Honeypot-Feld: fuer Menschen unsichtbar, Bots fuellen es aus */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
}

/* ================================================================
   Legal Pages
   ================================================================ */
.legal-main {
  padding: 3.75rem 0 5rem;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: var(--text);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.legal-content h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.legal-content p {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.legal-content a {
  color: var(--accent-2);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ================================================================
   404 Page
   ================================================================ */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 11.25rem);
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.not-found-image {
  max-width: 35rem;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.not-found p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  max-width: 27.5rem;
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
  border-top: 0.0625rem solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 61.25em) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-main {
    margin-top: 0.5rem;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .nav-main a {
    font-size: clamp(0.75rem, 3vw, 0.9375rem);
  }

  .hero {
    padding: 2rem 0 2rem;
  }

  .section-block {
    padding: 2rem 0 2rem;
  }

  .label {
    padding-top: 0;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
    transform: none;
  }
}
