/* Self-gehostete Fonts (statt Google Fonts CDN – DSGVO/IP-Übertragung vermeiden) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-400-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-400.woff2') format('woff2');
}

.animate-on-scroll-hidden {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animate-on-scroll-visible {
  opacity: 1;
  transform: translateY(0);
}
.faq-item-open .faq-icon-vertical {
  transform: rotate(90deg);
}
.faq-item {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #111111;
}
.faq-icon-vertical {
  flex-shrink: 0;
  color: rgb(224,49,33);
  transition: transform 0.25s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  font-size: 14px;
  color: rgba(17,17,17,0.62);
  line-height: 1.6;
}
html,
body {
  margin: 0;
  padding: 0;
  /* Sicherheitsnetz gegen horizontales Scrollen durch einzelne zu breite
     Elemente – kaschiert das Symptom, nicht die Ursache. Falls neue
     Layout-Bugs schwer zu finden sind, hier testweise entfernen, um sie
     sichtbar zu machen. */
  overflow-x: hidden;
  max-width: 100vw;
  color-scheme: light;
}

/* Kritische Basis-Styles – korrekte Darstellung auch vor Tailwind */
#app-root {
  background-color: rgb(255,255,255);
  color: #111111;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app-root a {
  color: inherit;
}

/* Schwere Animationen pausieren bis Sektion sichtbar (CPU-Schutz) */
.perf-pause-anim {
  animation-play-state: paused !important;
}

.perf-pause-anim.is-in-view {
  animation-play-state: running !important;
}

@media (prefers-reduced-motion: reduce) {
  #app-root *,
  #app-root *::before,
  #app-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.nav-link-active {
  color: rgb(224,49,33) !important;
}

/* ── Wiederkehrende Inline-Style-Muster als Klassen ── */
.accent-italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  font-size: 14px;
  font-weight: 500;
  color: rgba(17,17,17,0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-cta-btn {
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: rgb(224,49,33);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta-btn:hover { background: rgb(190,38,24); }
.hamburger-bar {
  width: 22px;
  height: 2px;
  background: #111111;
  border-radius: 2px;
  display: block;
}
.text-body-sm {
  font-size: 14px;
  color: rgba(17,17,17,0.62);
  line-height: 1.6;
  margin: 0;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.125rem;
  font-size: 0.875rem;
  color: rgba(17,17,17,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 0 0 1rem;
}
.marquee-item {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgb(224,49,33);
  opacity: 0.35;
  text-transform: uppercase;
}

/* ── Pricing Cards (geteilt: websites.html, chatbots.html, crm.html) ── */
.pc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgb(245,245,246);
  border: 1px solid rgba(17,17,17,0.1);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.pc:hover {
  border-color: rgba(224,49,33,0.55);
  box-shadow: 0 0 36px rgba(224,49,33,0.14);
}
.pc--featured {
  border: 2px solid rgb(224,49,33);
  box-shadow: 0 0 40px rgba(224,49,33,0.18);
  overflow: visible;
}
.pc--featured:hover {
  border-color: rgb(224,49,33);
  box-shadow: 0 0 60px rgba(224,49,33,0.28);
}
.pc__glow {
  position: absolute;
  top: -2rem; right: -2rem;
  width: 10rem; height: 10rem;
  border-radius: 9999px;
  background: rgba(224,49,33,0.10);
  filter: blur(48px);
  pointer-events: none;
  transition: background 0.3s;
}
.pc:hover .pc__glow { background: rgba(224,49,33,0.22); }
.pc--featured .pc__glow { background: rgba(224,49,33,0.18); }

.pc__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: rgb(224,49,33);
  color:#fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 9999px;
  white-space: nowrap;
}

.pc__tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgb(224,49,33);
  margin-bottom: 6px;
}
.pc__name {
  font-size: 1.6rem;
  font-weight: 500;
  color:#111;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pc__name em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}
.pc__desc {
  font-size: 14px;
  color: rgba(17,17,17,0.62);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.pc__price {
  font-size: 2.2rem;
  font-weight: 700;
  color:#111;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pc__price-alt {
  font-size: 12px;
  color: rgba(17,17,17,0.5);
  margin-top: 4px;
  margin-bottom: 8px;
}
.pc__hosting {
  display: inline-block;
  font-size: 12px;
  color: rgb(5,150,105);
  background: rgba(5,150,105,0.10);
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 1.2rem;
}
.pc__divider {
  border: none;
  border-top: 1px solid rgba(17,17,17,0.1);
  margin: 0 0 0.8rem;
}
.pc__pages {
  font-size: 12px;
  color: rgba(17,17,17,0.45);
  margin-bottom: 0.9rem;
}
.pc__features {
  list-style: none;
  padding: 0; margin: 0 0 1.5rem;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
}
.pc__features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: rgba(17,17,17,0.72);
  line-height: 1.4;
}
.pc__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgb(22,163,74);
  flex-shrink: 0;
  margin-top: 1px;
}
.pc__check svg { display: block; }

.pc__btn {
  display: block;
  text-align: center;
  padding: 14px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  margin-top: auto;
}
.pc__btn--primary {
  background: rgb(224,49,33);
  color:#fff;
  border: none;
}
.pc__btn--primary:hover { background: rgb(190,38,24) !important; }
.pc__btn--outline {
  background: transparent;
  color:#111;
  border: 1px solid rgba(17,17,17,0.18);
}
.pc__btn--outline:hover {
  background: rgb(224,49,33) !important;
  color:#fff !important;
  border-color: rgb(224,49,33) !important;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .pc-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ── Mobile fullscreen menu, animiert (geteilt: websites.html, chatbots.html, crm.html) ── */
#mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgb(255,255,255);
  z-index: 200;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  pointer-events: none;
}
#mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── #nav-menu FOUC-Fix (datenschutz.html, impressum.html): Startzustand darf
   nicht von Tailwinds asynchroner CDN-Kompilierung abhängen. ID-Selektoren
   hier schlagen Tailwinds klassenbasierte Regeln unabhängig von der
   Ladereihenfolge, daher kein Konflikt sobald Tailwind nachlädt. ── */
#nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgb(255,255,255);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
  z-index: 40;
}
#nav-menu.translate-y-0 {
  transform: translateY(0);
}
@media (min-width: 768px) {
  #nav-menu {
    position: relative;
    width: auto;
    height: auto;
    flex-direction: row;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(17,17,17,0.1);
    background: rgba(255,255,255,0.8);
    box-shadow: 0 2px 14px rgba(17,17,17,0.06);
    transform: none;
    transition: none;
  }
}
#nav-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1rem;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) {
  #nav-toggle { display: none; }
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 1.5rem;
}
.mobile-menu-links a {
  width: 100%;
  max-width: 20rem;
  text-align: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(17,17,17,0.08);
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(17,17,17,0.72);
  text-decoration: none;
}
.mobile-menu-links a:first-child { border-top: 1px solid rgba(17,17,17,0.08); }
.mobile-menu-links a.active { color: rgb(224,49,33); }
.mobile-menu-links .nav-dropdown { border-bottom: 1px solid rgba(17,17,17,0.08); }
.mobile-menu-links .nav-dropdown__trigger {
  padding: 1.1rem 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(17,17,17,0.72);
}
.mobile-menu-cta { margin: 2rem 1.5rem 2.5rem; text-align: center; }

/* Kontaktformular – Interesse Multi-Select (Checkbox-Cards) */
#app-root .interesse-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  #app-root .interesse-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#app-root .interesse-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #111111;
  background: rgb(245,245,246);
  border: 1px solid rgba(17,17,17,0.16);
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

#app-root .interesse-option--wide {
  grid-column: 1 / -1;
  align-items: center;
}

@media (min-width: 640px) {
  #app-root .interesse-option--wide .interesse-option__text {
    white-space: nowrap;
  }
}

#app-root .interesse-option:hover {
  border-color: rgba(224,49,33, 0.35);
  background: rgb(239,239,240);
}

#app-root .interesse-option:has(.interesse-option__input:focus-visible) {
  outline: 2px solid rgba(224,49,33, 0.6);
  outline-offset: 2px;
}

#app-root .interesse-option:has(.interesse-option__input:checked) {
  border-color: rgba(224,49,33, 0.55);
  background: linear-gradient(
    135deg,
    rgba(224,49,33, 0.14) 0%,
    rgba(224,49,33, 0.04) 100%
  );
  box-shadow: 0 4px 18px rgba(224,49,33, 0.12);
}

#app-root .interesse-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#app-root .interesse-option__control {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border: 1px solid rgba(17,17,17,0.4);
  border-radius: 4px;
  background: rgb(255,255,255);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

#app-root .interesse-option__icon {
  width: 0.875rem;
  height: 0.875rem;
  color: transparent;
}

#app-root .interesse-option:has(.interesse-option__input:checked) .interesse-option__control {
  border-color: rgb(224,49,33);
  background: rgb(224,49,33);
}

#app-root .interesse-option:has(.interesse-option__input:checked) .interesse-option__icon {
  color: #ffffff;
}

#app-root .interesse-option__text {
  flex: 1;
  min-width: 0;
}

#app-root .interesse-picker.is-invalid {
  border-color: rgba(224,49,33, 0.45);
}

/* ── Mobile Header Bar ── */
#mobile-bar { display: none; }
@media (max-width: 767px) {
  #mobile-bar {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: rgb(255,255,255);
    border-bottom: 1px solid rgba(17,17,17,0.08);
    padding: 0 16px;
    z-index: 99;
  }
}

/* ── "Leistungen" Dropdown (Desktop) / Accordion (Mobile) ── */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: inherit;
  margin: 0;
}
.nav-dropdown__caret {
  font-size: 0.7em;
  display: inline-block;
  transition: transform 0.25s ease;
}
.nav-dropdown:hover .nav-dropdown__caret,
.nav-dropdown.open .nav-dropdown__caret { transform: rotate(180deg); }
.nav-dropdown__menu a {
  text-decoration: none;
  display: block;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .nav-dropdown { display: flex; align-items: center; }
  .nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid rgba(17,17,17,0.1);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(17,17,17,0.12);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 60;
  }
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-dropdown .nav-dropdown__menu a {
    padding: 0.55rem 0.75rem;
    font-size: 13px;
    font-weight: 500;
    color: rgba(17,17,17,0.72);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
  }
  .nav-dropdown .nav-dropdown__menu a:hover { background: rgba(17,17,17,0.06); color: #111; }
}
@media (max-width: 767px) {
  .nav-dropdown { width: 100%; max-width: 20rem; }
  .nav-dropdown__menu {
    max-height: 0;
    overflow: hidden;
    width: 100%;
    transition: max-height 0.3s ease;
  }
  .nav-dropdown.open .nav-dropdown__menu { max-height: 240px; }
  .nav-dropdown .nav-dropdown__menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    padding: 0.7rem 0;
    font-size: 0.75em;
    font-weight: 500;
    color: rgba(17,17,17,0.55);
  }
  .nav-dropdown .nav-dropdown__menu a:hover { color: #111; }
}

/* ── Back-to-Top Button (Mobile only) ── */
#back-to-top {
  display: none;
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 90;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgb(224,49,33);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(224,49,33,0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s;
}
#back-to-top:hover { background: rgb(190,38,24); }
@media (max-width: 767px) {
  #back-to-top { display: flex; }
  #back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

