/* Rechnungsschmiede – minimalistisches Marketing (Sysnetcom-Anlehnung) */

:root {
  --rs-primary: #2563eb;
  --rs-ink: #0f172a;
  --rs-muted: #64748b;
  --rs-surface: #f8fafc;
  --rs-line: #e2e8f0;
  --rs-white: #ffffff;
  --bs-primary: var(--rs-primary);
  --bs-primary-rgb: 37, 99, 235;
}

html {
  scroll-behavior: smooth;
}

body.marketing-body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--rs-ink);
  background: var(--rs-white);
}

/* Schmaler Content-Bereich */
.marketing-body .container-narrow {
  max-width: 1080px;
}

.marketing-body .container-plans {
  max-width: 1440px;
}

.py-7 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

@media (min-width: 992px) {
  .py-lg-8 {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
  }
}

.section-tint {
  background: var(--rs-surface);
}

.section-band {
  background-color: transparent;
  transition: background-color 0.85s ease;
}

.section-band-a.is-inview {
  background-color: var(--rs-surface);
}

.section-band-a.is-inview.is-active {
  background-color: #f1f5f9;
}

.section-band-b.is-inview {
  background-color: #f4f7fc;
}

.section-band-b.is-inview.is-active {
  background-color: #eef3fb;
}

@media (prefers-reduced-motion: reduce) {
  .section-band {
    transition: none;
  }

  .section-band-a {
    background-color: var(--rs-surface);
  }

  .section-band-b {
    background-color: #f4f7fc;
  }
}

/* Dezente Hero-Textur (kein Farbverlauf) */
.hero-dots {
  background-color: var(--rs-white);
  background-image: radial-gradient(var(--rs-line) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Hero: Produkt-Karussell (einheitlich 16∶9, keine Hoehenspruenge beim Wechsel) */
.hero-product-carousel {
  max-width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 2.75rem;
}

.hero-product-carousel .carousel-inner {
  border-radius: 0.75rem;
  border: 1px solid var(--rs-line);
  box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.06);
  overflow: hidden;
  background: #f8fafc;
}

.hero-product-carousel .ratio > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.hero-product-carousel .carousel-indicators {
  bottom: -2.25rem;
  margin-bottom: 0;
}

.hero-product-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: var(--rs-muted);
  opacity: 0.35;
}

.hero-product-carousel .carousel-indicators .active {
  opacity: 1;
  background-color: var(--rs-primary);
}

.hero-product-carousel .carousel-control-prev,
.hero-product-carousel .carousel-control-next {
  width: 10%;
  min-width: 2.5rem;
}

@media (max-width: 575.98px) {
  .hero-product-carousel .carousel-control-prev,
  .hero-product-carousel .carousel-control-next {
    width: 15%;
  }
}

/* USP: 2×2 unter lg, ab lg eine Zeile à vier; Text umbrechend, kein Horizontal-Scroll */
.hero-usp-strip .hero-usp-inner {
  max-width: 16rem;
}

@media (min-width: 992px) {
  .hero-usp-strip .hero-usp-inner {
    max-width: none;
  }
}

.hero-usp-strip .small {
  font-size: 0.875rem;
  line-height: 1.4;
  text-wrap: balance;
}

@media (max-width: 991.98px) {
  .hero-usp-strip .small {
    font-size: 0.8125rem;
  }
}

/* Navbar */
.marketing-body .navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--rs-line);
}

.marketing-body .navbar-brand img {
  height: 34px;
  width: auto;
}

@media (min-width: 992px) {
  .marketing-body .navbar-brand img {
    height: 38px;
  }
}

.marketing-body .nav-link {
  color: var(--rs-ink);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
}

.marketing-body .nav-link.is-active,
.marketing-body .nav-link:hover,
.marketing-body .nav-link:focus {
  color: var(--rs-primary);
}

.marketing-body .nav-link.is-active {
  font-weight: 600;
}

.public-nav .nav-link {
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
}

.nav-profile-menu {
  min-width: 16rem;
  padding: 0.5rem 0;
  border: 1px solid var(--rs-line);
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.08);
}

.nav-profile-menu .dropdown-item-text {
  white-space: normal;
}

.nav-profile-name {
  font-weight: 600;
  color: var(--rs-ink);
}

.nav-profile-email {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--rs-muted);
}

.nav-profile-menu .dropdown-item {
  padding: 0.45rem 1rem;
}

.nav-profile-menu form .dropdown-item {
  width: 100%;
}

@media (max-width: 991.98px) {
  .navbar-collapse .nav-profile-menu {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 0.35rem;
    box-shadow: none;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--rs-line);
  color: var(--rs-ink);
}

.split-list li:last-child {
  border-bottom: 0;
}

.split-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rs-primary);
}

.comparison-table-wrap {
  border: 1px solid var(--rs-line);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.comparison-table {
  margin-bottom: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.comparison-table thead th {
  background: var(--rs-surface);
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table tbody th {
  font-weight: 500;
  width: 10rem;
}

.faq-accordion .accordion-item {
  border-color: var(--rs-line);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--rs-surface);
  color: var(--rs-ink);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

@media (max-width: 991.98px) {
  .comparison-table thead th,
  .comparison-table td,
  .comparison-table tbody th {
    font-size: 0.8125rem;
  }
}


/* Headlines */
.display-tight {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

/* Feature-Cards: nur Haarline, kein Hover-Lift */
.feature-card {
  border: 1px solid var(--rs-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.feature-card .h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.feature-grid > [class*="col"] {
  min-width: 0;
}

.feature-card .feature-icon {
  font-size: 1.35rem;
  color: var(--rs-primary);
  margin-bottom: 0.75rem;
}

#funktionen,
#funktionen [id],
#preise,
#faq {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 575.98px) {
  .feature-card {
    padding: 1rem 0.9rem;
  }

  .feature-card .feature-icon {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }

  .feature-card .h6 {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .feature-card .small {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

.order-facts {
  display: grid;
  gap: 0.65rem 1rem;
}

.order-facts-row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.5rem 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rs-line);
}

.order-facts-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.order-facts dt {
  font-weight: 600;
  color: var(--rs-muted);
  font-size: 0.875rem;
}

.order-facts dd {
  margin: 0;
  font-size: 0.9375rem;
}

.order-newsletter {
  background: var(--rs-surface);
}

.order-confirm-box {
  border: 1px solid var(--rs-line);
  border-radius: 1rem;
  background: var(--rs-surface);
  padding: 1.5rem;
}

.order-confirm-price {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .order-facts-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .order-confirm-box {
    padding: 1.15rem;
  }
}

/* Download-Seite im Stil der Startseite */
.download-legacy {
  background: #fff;
}

.download-legacy-title {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.download-legacy-copy {
  max-width: 52rem;
  color: #334155;
  font-size: 1.06rem;
  line-height: 1.55;
}

.download-legacy-notes-btn {
  width: 100%;
  max-width: 16.5rem;
  border-width: 2px;
  border-color: #1f2937;
  border-radius: 0.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.65rem 1rem;
}

.download-legacy-subtitle {
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.download-legacy-accordion .accordion-button {
  background: #fff;
  color: #374151;
  box-shadow: none;
  font-size: 1.22rem;
  line-height: 1.35;
}

.download-legacy-accordion .accordion-button:not(.collapsed) {
  color: #0f172a;
  background: #fff;
}

.download-legacy-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

.download-legacy-accordion .accordion-item {
  border-color: var(--rs-line) !important;
}

.download-inline-changelog-item summary {
  cursor: pointer;
  list-style: none;
}

.download-inline-changelog-item summary::-webkit-details-marker {
  display: none;
}

.download-inline-changelog-body {
  overflow-x: auto;
}

.download-inline-changelog-body .changelog-ul {
  padding-left: 1.1rem !important;
}

/* Pricing-Teaser: Mini-Cards */
.teaser-mini {
  border: 1px solid var(--rs-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem 1.25rem 1.35rem;
  height: 100%;
}

.teaser-mini-title {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.teaser-mini-price {
  line-height: 1.4;
}

.teaser-mini-bullets {
  border-top: 1px solid var(--rs-line);
}

.teaser-mini-bullets li + li {
  margin-top: 0.45rem;
}

.teaser-mini .teaser-mini-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pricing-Seite */
.plan-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .plan-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .plan-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

.plan-card {
  position: relative;
  border: 1px solid var(--rs-line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.75rem 1.5rem;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .plan-card.is-recommended {
    border-width: 2px;
    border-color: var(--rs-primary);
    transform: translateY(-6px);
  }
}

@media (min-width: 1200px) {
  .plan-grid-5 .plan-card {
    padding: 1.25rem 1rem;
  }

  .plan-grid-5 .plan-card.is-recommended {
    transform: none;
  }

  .plan-grid-5 .plan-card .h5 {
    font-size: 1.05rem;
  }

  .plan-grid-5 .plan-card .plan-price {
    font-size: 1.35rem;
  }

  .plan-grid-5 .plan-card .small,
  .plan-grid-5 .plan-card .plan-audience {
    font-size: 0.8rem;
  }

  .plan-grid-5 .plan-card .btn {
    font-size: 0.875rem;
    padding: 0.45rem 0.6rem;
  }
}

.plan-card .plan-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.plan-card .plan-price {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--rs-ink);
  letter-spacing: -0.02em;
}

.plan-card .plan-audience {
  font-size: 0.875rem;
  color: var(--rs-muted);
  margin-top: auto;
  padding-top: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rs-line);
  background: var(--rs-surface);
}

.site-footer .footer-logo {
  height: 32px;
  width: auto;
}

.site-footer .footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rs-ink);
  margin-bottom: 0.85rem;
}

.site-footer .footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-nav li + li {
  margin-top: 0.45rem;
}

.site-footer .footer-nav a,
.site-footer .footer-address a {
  color: var(--rs-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-address a:hover {
  color: var(--rs-primary);
}

.site-footer .footer-address {
  font-style: normal;
  line-height: 1.55;
}

.site-footer-bar {
  border-top: 1px solid var(--rs-line);
}

/* Portal */
.portal-topbar {
  background: #fff;
  border-bottom: 1px solid var(--rs-line);
}

.portal-topbar .navbar-brand img {
  height: 32px;
}

.portal-topbar .navbar-toggler {
  border-color: var(--rs-line);
}

.portal-shell {
  min-height: calc(100vh - 56px);
  background: var(--rs-surface);
}

.portal-card {
  border-radius: 1rem;
  border: 1px solid var(--rs-line);
  background: #fff;
}

.totp-qr {
  display: inline-block;
  padding: 0.75rem;
  border: 1px solid var(--rs-line);
  border-radius: 0.5rem;
  background: #fff;
}

.totp-qr img,
.totp-qr svg {
  display: block;
  width: 232px;
  height: 232px;
  max-width: 100%;
  image-rendering: pixelated;
}

/* Lange Rechtstexte */
.legal-doc {
  max-width: 42rem;
}

.legal-doc h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-doc p,
.legal-doc li {
  color: #334155;
  line-height: 1.65;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-doc .legal-meta {
  color: var(--rs-muted);
  font-size: 0.875rem;
}

.legal-doc .legal-form {
  border: 1px solid var(--rs-line);
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: var(--rs-surface);
}

.download-captcha-img {
  display: block;
  width: 220px;
  height: 72px;
}

.download-release-notes h1,
.download-release-notes h2,
.download-release-notes h3,
.download-release-notes h4,
.download-release-notes h5,
.download-release-notes h6 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.download-release-notes p {
  margin-bottom: 0.75rem;
}

/* Login-/Registrierungs-Overlay */
.auth-modal .modal-content {
  border: 1px solid var(--rs-line);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.12);
}

.auth-modal-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.75rem;
  background: var(--rs-surface);
}

.auth-modal-tab {
  flex: 1;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--rs-muted);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.55rem 0.75rem;
}

.auth-modal-tab.is-active {
  background: var(--rs-white);
  color: var(--rs-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.auth-modal .modal-body {
  padding-bottom: 1.5rem;
}
