/* ============================================================
   Facturexa ZUGFeRD Engine .NET – Design-System
   ============================================================ */

:root {
  --f-primary: #14509e;
  --f-primary-dark: #0d3a75;
  --f-primary-light: #eaf1fb;
  --f-accent: #128577;
  --f-accent-dark: #0d6358;
  --f-ink: #10192e;
  --f-body: #3c4658;
  --f-muted: #667085;
  --f-border: #e3e8f0;
  --f-bg-soft: #f6f8fc;
  --f-bg-dark: #0b1b33;
  --f-bg-dark-2: #0f2444;
  --f-success: #1c8a5d;
  --f-danger: #c0392b;
  --f-warning: #b7791f;
  --f-radius: 14px;
  --f-radius-sm: 8px;
  --f-shadow: 0 8px 24px rgba(16, 25, 46, 0.06);
  --f-shadow-md: 0 16px 40px rgba(16, 25, 46, 0.1);
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  color: var(--f-body);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--f-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--f-primary);
  text-decoration: none;
}

a:hover {
  color: var(--f-primary-dark);
}

/* ---------- Navbar ---------- */

.f-navbar {
  background-color: #fff !important;
}

/* Produkt-Icon (favicon.svg), Groesse ueber width/height am img. */
.f-brand-mark {
  flex-shrink: 0;
}

.navbar-brand {
  color: var(--f-ink) !important;
}

.f-brand-suffix {
  font-size: 0.95rem;
}

.navbar-nav .nav-link {
  color: var(--f-body);
  font-weight: 500;
  padding-left: 0.9rem !important;
  padding-right: 0.9rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--f-primary);
}

.dropdown-menu {
  border: 1px solid var(--f-border);
  box-shadow: var(--f-shadow);
  border-radius: var(--f-radius-sm);
}

.dropdown-item:active,
.dropdown-item.active {
  background-color: var(--f-primary-light);
  color: var(--f-primary-dark);
}

.btn-primary {
  background-color: var(--f-primary);
  border-color: var(--f-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--f-primary-dark) !important;
  border-color: var(--f-primary-dark) !important;
}

.btn-outline-primary {
  color: var(--f-primary);
  border-color: var(--f-primary);
}

.btn-outline-primary:hover {
  background-color: var(--f-primary);
  border-color: var(--f-primary);
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(20, 80, 158, 0.25);
}

/* ---------- Hero ---------- */

.f-hero {
  background: linear-gradient(160deg, var(--f-bg-dark) 0%, var(--f-bg-dark-2) 55%, var(--f-primary) 130%);
  color: #fff;
  border-radius: 0 0 28px 28px;
  padding: 4rem 0 3.5rem;
  margin: 0 calc(50% - 50vw) 3rem;
}

.f-hero h1 {
  color: #fff;
}

.f-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.f-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.f-hero .btn-light {
  font-weight: 600;
}

/* DLL-Übersicht im Hero: Name links, Lizenzhinweis rechts */
.f-hero-dlls {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 1.5rem;
  row-gap: 0.35rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--f-radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.f-hero-dlls code {
  color: #fff;
  font-size: 0.95rem;
  background: none;
  overflow-wrap: anywhere;
}

.f-hero-dlls .badge {
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.f-hero-dlls .badge.f-hero-dll-free {
  background: #14b8a6;
  color: #04201c;
}

/* ---------- Sections & cards ---------- */

.f-section {
  padding: 3rem 0;
}

.f-section-title {
  margin-bottom: 0.5rem;
}

.f-section-subtitle {
  color: var(--f-muted);
  max-width: 720px;
}

.f-card {
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  box-shadow: var(--f-shadow);
  background: #fff;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.f-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--f-shadow-md);
}

.f-card-body {
  padding: 1.75rem;
}

.f-card-accent {
  border-top: 4px solid var(--f-primary);
}

.f-card-accent.f-accent-teal {
  border-top-color: var(--f-accent);
}

.f-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--f-primary-light);
  color: var(--f-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.f-icon-badge.f-icon-teal {
  background: rgba(18, 133, 119, 0.12);
  color: var(--f-accent-dark);
}

/* ---------- Profile table ---------- */

.f-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  background: #fff;
}

.f-profile-table {
  width: 100%;
  margin-bottom: 0;
  min-width: 640px;
}

.f-profile-table th {
  background: var(--f-bg-soft);
  color: var(--f-ink);
  font-weight: 700;
  white-space: nowrap;
}

.f-profile-table td, .f-profile-table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--f-border);
  vertical-align: middle;
}

.f-profile-table tr:last-child td {
  border-bottom: none;
}

.f-yes {
  color: var(--f-success);
  font-weight: 700;
}

.f-no {
  color: var(--f-muted);
}

.f-partial {
  color: var(--f-warning);
  font-weight: 600;
}

/* ---------- Code blocks ---------- */

.f-code {
  background: var(--f-bg-dark);
  color: #d6e4ff;
  border-radius: var(--f-radius);
  padding: 1.25rem 1.5rem;
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-x: auto;
}

.f-code .f-code-comment {
  color: #7d93bf;
  font-style: italic;
}

.f-code .f-code-keyword {
  color: #ff7ab6;
  font-weight: 600;
}

.f-code .f-code-type {
  color: #7ee7c7;
}

.f-code .f-code-string {
  color: #ffd479;
}

.f-code .f-code-number {
  color: #b39dff;
}

.f-code-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--f-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ---------- Stepper ---------- */

.f-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.f-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--f-muted);
}

.f-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--f-border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--f-muted);
  flex-shrink: 0;
}

.f-step-label {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.f-step.active .f-step-num {
  border-color: var(--f-primary);
  background: var(--f-primary);
  color: #fff;
}

.f-step.active .f-step-label {
  color: var(--f-ink);
}

.f-step.completed .f-step-num {
  border-color: var(--f-accent);
  background: var(--f-accent);
  color: #fff;
}

.f-step.completed .f-step-label {
  color: var(--f-ink);
}

.f-step-connector {
  flex: 1 1 auto;
  height: 2px;
  background: var(--f-border);
  min-width: 1.5rem;
}

.f-step-connector.completed {
  background: var(--f-accent);
}

/* ---------- Badges / status ---------- */

.f-badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--f-primary-light);
  color: var(--f-primary-dark);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.f-badge-soft.f-badge-teal {
  background: rgba(18, 133, 119, 0.12);
  color: var(--f-accent-dark);
}

.f-badge-soft.f-badge-amber {
  background: rgba(183, 121, 31, 0.12);
  color: var(--f-warning);
}

/* ---------- CTA band ---------- */

.f-cta-band {
  background: linear-gradient(135deg, var(--f-primary), var(--f-accent-dark));
  color: #fff;
  border-radius: var(--f-radius);
  padding: 2.5rem;
}

.f-cta-band .btn-light {
  font-weight: 600;
}

/* ---------- Preiskarte ---------- */

.f-price {
  color: var(--f-ink);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.f-checklist {
  list-style: none;
  padding: 0;
}

.f-checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
}

.f-checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--f-accent-dark);
  font-weight: 700;
}

/* ---------- Callouts ---------- */

.f-callout {
  border: 1px dashed var(--f-border);
  border-radius: var(--f-radius);
  background: var(--f-bg-soft);
  padding: 1.25rem 1.5rem;
}

.f-callout.f-callout-todo {
  background: #fff7ed;
  border-color: #fbd9a5;
}

/* ---------- Befundtabelle (Validator-Demo) ---------- */

.f-befunde {
  table-layout: fixed;
  min-width: 36rem;
}

.f-befund-feld {
  overflow-wrap: anywhere;
}

.f-befund-feld summary {
  list-style: none;
  cursor: pointer;
}

.f-befund-feld summary::-webkit-details-marker {
  display: none;
}

.f-befund-feld summary::after {
  content: "mehr";
  margin-left: 0.25rem;
  color: var(--f-primary);
  text-decoration: underline;
}

.f-befund-feld details[open] summary::after {
  content: "weniger";
  margin-left: 0;
}

.f-befund-feld details[open] .f-befund-kurz {
  display: none;
}

/* ---------- Demo-Seiten: Hinweis auf die gezeigte DLL ---------- */
.f-demo-dll {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  border-left: 4px solid var(--f-primary);
  background: var(--f-primary-light);
  color: var(--f-ink);
  font-size: 1.1rem;
}

.f-demo-dll-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.f-demo-dll a {
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-weight: 600;
  font-size: 0.95em;
  color: var(--f-primary);
  word-break: break-all;
}

/* ---------- Upload dropzone ---------- */

.f-upload-zone {
  position: relative;
  border: 2px dashed var(--f-border);
  border-radius: var(--f-radius);
  background: var(--f-bg-soft);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.f-upload-zone:hover {
  border-color: var(--f-primary);
  background: var(--f-primary-light);
}

.f-upload-zone.f-upload-dragover {
  border-color: var(--f-primary);
  background: var(--f-primary-light);
  transform: scale(1.01);
}

.f-upload-zone.f-upload-has-file {
  border-style: solid;
  border-color: var(--f-accent);
  background: rgba(18, 133, 119, 0.06);
}

.f-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.f-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--f-primary-light);
  color: var(--f-primary);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.f-upload-zone.f-upload-has-file .f-upload-icon {
  background: rgba(18, 133, 119, 0.12);
  color: var(--f-accent-dark);
}

.f-upload-title {
  font-weight: 600;
  color: var(--f-ink);
  margin-bottom: 0.25rem;
}

.f-upload-hint {
  color: var(--f-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.f-upload-filename {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--f-border);
  color: var(--f-ink);
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 100%;
}

.f-upload-filename span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-upload-submit {
  min-width: 200px;
}

.f-upload-submit .spinner-border {
  width: 1rem;
  height: 1rem;
}

/* ---------- Footer ---------- */

.f-footer {
  background: var(--f-bg-dark);
  color: rgba(255, 255, 255, 0.7);
}

.f-footer-muted {
  color: rgba(255, 255, 255, 0.6);
}

.f-footer-links li {
  margin-bottom: 0.5rem;
}

.f-footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.f-footer-links a:hover {
  color: #fff;
}

.f-footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- Misc ---------- */

.f-eyebrow-dark {
  color: var(--f-primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 767.98px) {
  .f-hero {
    border-radius: 0 0 20px 20px;
    padding: 2.75rem 0 2.25rem;
  }

  .f-cta-band {
    padding: 1.75rem;
    text-align: center;
  }
}

/* Reader – schreibgeschützte Formular-Ansicht (Schritt 3) */
.f-form-section {
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-sm);
  padding: 1rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}

.f-form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--f-primary-dark);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--f-primary-light);
}

.f-form-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--f-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 1rem 0 0.5rem;
}

.f-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 0.25rem;
}

.f-form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.f-form-label {
  font-size: 0.78rem;
  color: var(--f-body);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.f-form-code {
  font-size: 0.68rem;
  color: var(--f-muted);
  background: var(--f-bg-soft);
  border: 1px solid var(--f-border);
  border-radius: 4px;
  padding: 0 0.3rem;
  white-space: nowrap;
}

.f-form-input {
  font-size: 0.9rem;
  color: var(--f-ink);
  background: var(--f-bg-soft);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-sm);
  padding: 0.4rem 0.6rem;
  width: 100%;
  cursor: default;
}

.f-form-input:focus {
  outline: none;
  box-shadow: none;
}

.f-form-empty {
  color: var(--f-muted);
  font-style: italic;
  margin: 0;
}

/* ---------- Kompatibilitäts-Badges ---------- */

.f-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.f-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--f-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--f-ink);
  white-space: nowrap;
}

.f-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--f-primary);
  flex-shrink: 0;
}

.f-badge-dot-teal { background: var(--f-accent); }
.f-badge-dot-muted { background: var(--f-muted); }

.f-badge-strip-dark .f-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ---------- NuGet-Install-Block ---------- */

.f-install {
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  background: var(--f-bg-dark);
  overflow: hidden;
  box-shadow: var(--f-shadow);
}

.f-install-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.f-install-pkg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #d6e4ff;
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 600;
}

.f-install-nuget { color: #7ee7c7; flex-shrink: 0; }

.f-install-tabs {
  display: inline-flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.2rem;
}

.f-install-tab {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.f-install-tab:hover { color: #fff; }

.f-install-tab.active {
  background: var(--f-primary);
  color: #fff;
}

.f-install-pane {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.f-install-pane.active { display: flex; }

.f-install-pane code {
  color: #d6e4ff;
  font-family: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: nowrap;
}

.f-install-pane code::before {
  content: "$ ";
  color: #7d93bf;
}

.f-install-copy {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--f-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.f-install-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.f-install-copy.f-install-copied {
  background: var(--f-accent);
  border-color: var(--f-accent);
}

/* ---------- Dokumentation: Layout & Inhaltsverzeichnis ---------- */

.f-doc-lead {
  max-width: 760px;
}

.f-doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--f-bg-soft);
  border: 1px solid var(--f-border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--f-body);
}

.f-doc-meta .f-badge-dot {
  margin: 0;
}

.f-doc-toc {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

.f-doc-toc-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--f-muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.f-doc-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--f-border);
}

.f-doc-toc a {
  display: block;
  padding: 0.32rem 0 0.32rem 1rem;
  margin-left: -2px;
  color: var(--f-body);
  font-size: 0.9rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.f-doc-toc a:hover {
  color: var(--f-primary);
}

.f-doc-toc a.active {
  color: var(--f-primary);
  font-weight: 600;
  border-left-color: var(--f-primary);
}

/* Sprungmarken-Offset wegen der klebenden Navbar. */
.f-doc-section {
  scroll-margin-top: 5.5rem;
}

.f-doc-section + .f-doc-section {
  margin-top: 3.25rem;
}

@media (max-width: 991.98px) {
  .f-doc-toc {
    position: static;
    max-height: none;
    overflow: visible;
    border-bottom: 1px solid var(--f-border);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
  }

  .f-doc-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    border-left: none;
  }

  .f-doc-toc a {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  .f-doc-toc a.active {
    border-left: none;
  }
}

/* ---------- Code-Block mit Kopieren-Button ---------- */

.f-code-block {
  margin-bottom: 1.25rem;
}

.f-code-wrap {
  position: relative;
}

.f-code-copy {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d6e4ff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: var(--f-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.f-code-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.f-code-copy.f-install-copied {
  color: #7ee7c7;
  border-color: rgba(126, 231, 199, 0.5);
}

.f-code-wrap .f-code {
  padding-top: 2.75rem;
}

/* Referenz-Tabellen: schmalere Mindestbreite als die Profil-Tabelle. */
.f-ref-table {
  min-width: 520px;
}

.f-ref-table code {
  background: var(--f-primary-light);
  color: var(--f-primary-dark);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85em;
}

/* Prüfergebnis (Validator-Demo, Creator-Demo Schritt 4): Bezeichnung links, Wert rechts; schmal untereinander. */
.f-result-table {
  table-layout: fixed;
}

.f-result-table th {
  width: 34%;
  font-weight: 600;
  color: var(--f-muted);
  background: var(--f-bg-soft);
}

.f-result-table th,
.f-result-table td {
  border-color: var(--f-border);
}

.f-result-table td {
  overflow-wrap: anywhere;
}

.f-result-table tr:last-child > * {
  border-bottom: 0;
}

@media (max-width: 575.98px) {
  .f-result-table th,
  .f-result-table td {
    display: block;
    width: 100%;
  }

  .f-result-table th {
    border-bottom: 0;
    padding-bottom: 0.15rem;
  }
}

/* ---------- Admin-Bereich ---------- */

.f-badge-soft.f-badge-gray {
  background: var(--f-bg-soft);
  color: var(--f-muted);
}

.f-badge-soft.f-badge-red {
  background: rgba(192, 57, 43, 0.12);
  color: var(--f-danger);
}

/* Ruhige Kachel ohne Hover-Effekt (anders als .f-card). */
.f-stat {
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius);
  background: #fff;
  padding: 1rem 1.25rem;
  height: 100%;
}

.f-stat-label {
  color: var(--f-muted);
  font-size: 0.85rem;
}

.f-stat-value {
  color: var(--f-ink);
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.f-stat-sub {
  color: var(--f-muted);
  font-size: 0.8rem;
}

/* Umsatz-Balken: eine Spalte je Monat, Hoehe relativ zum staerksten Monat. */
.f-bars {
  display: flex;
  gap: 6px;
  height: 150px;
}

.f-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.f-bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid var(--f-border);
}

.f-bar {
  width: 100%;
  max-width: 26px;
  background: var(--f-primary);
  border-radius: 4px 4px 0 0;
}

.f-bar-label {
  color: var(--f-muted);
  font-size: 0.72rem;
  margin-top: 4px;
}

/* Besucherstatistik (/Admin/Visitors): Ranglisten mit schmalem Anteilsbalken unter der Bezeichnung. */
.f-visitor-table td, .f-visitor-table th {
  font-size: 0.88rem;
  vertical-align: top;
}

.f-visitor-label {
  overflow-wrap: anywhere;
}

.f-visitor-meter {
  height: 3px;
  margin-top: 3px;
  background: var(--f-border);
  border-radius: 2px;
}

.f-visitor-meter span {
  display: block;
  height: 100%;
  background: var(--f-primary);
  border-radius: 2px;
}

.f-admin-table td, .f-admin-table th {
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.f-log-exception {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
