/* 3CX by BitBlade – 3cx.bitblade.io
   Design System: Theme-aware CSS with dark & light modes
   Colors: Dark (#060A14) and Light (#F8FAFC) themes with accent colors
   Fonts: Inter (body), Space Grotesk (headings)
   UPDATED: 2026-04-26 – Theme system with light mode support
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== DARK THEME (DEFAULT) ===== */
:root {
  --bg-primary: #060A14;
  --bg-surface: #0C1222;
  --bg-card: #101828;
  --bg-card-hover: #141F30;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --accent: #0EA5E9;
  --accent-secondary: #6366F1;
  --accent-cyan: #06B6D4;
  --border: rgba(56, 189, 248, 0.12);
  --border-hover: rgba(56, 189, 248, 0.35);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 32px rgba(14,165,233,0.25);
  --gradient-main: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(14,165,233,0.15) 0%, rgba(99,102,241,0.15) 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --nav-height: 72px;
  --max-width: 1200px;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-surface: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent: #0EA5E9;
  --accent-secondary: #6366F1;
  --accent-cyan: #06B6D4;
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 48px rgba(0,0,0,0.1);
  --shadow-accent: 0 0 32px rgba(14,165,233,0.15);
  --gradient-main: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(99,102,241,0.1) 100%);
}

/* ===== AUTO LIGHT THEME (system preference) ===== */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg-primary: #F8FAFC;
    --bg-surface: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent: #0EA5E9;
    --accent-secondary: #6366F1;
    --accent-cyan: #06B6D4;
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 48px rgba(0,0,0,0.1);
    --shadow-accent: 0 0 32px rgba(14,165,233,0.15);
    --gradient-main: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(99,102,241,0.1) 100%);
  }
}

/* ===== THEME TRANSITION ===== */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.8rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER / NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: #060A14;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background-color var(--transition);
}

[data-theme="light"] header {
  background-color: #FFFFFF;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  gap: 2rem;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.logo-dot {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  align-items: center;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.cta-button {
  padding: 0.5rem 1.5rem !important;
  background: var(--gradient-main) !important;
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  -webkit-text-fill-color: #fff !important;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: #fff !important;
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--transition);
  z-index: 1002;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.theme-icon-sun,
.theme-icon-moon {
  width: 20px;
  height: 20px;
  transition: display var(--transition);
}

/* Dark mode (default): show moon, hide sun */
.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: inline;
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-icon-sun {
  display: inline;
}

[data-theme="light"] .theme-icon-moon {
  display: none;
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #060A14;
  opacity: 1;
  flex-direction: column;
  padding: 2rem;
  gap: 0;
  border-top: 1px solid var(--border);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

[data-theme="light"] .mobile-nav {
  background-color: #FFFFFF;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-theme="light"] .mobile-nav a {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .cta-button {
  display: inline-block;
  margin-top: 1rem;
  text-align: center;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(14,165,233,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(99,102,241,0.06) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--gradient-subtle);
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 a {
  color: var(--text-primary);
}

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

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== FEATURE LIST ===== */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(14,165,233,0.06);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(14,165,233,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

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

/* ===== SEO CONTENT ===== */
.seo-content {
  max-width: 900px;
  margin: 0 auto;
}

.seo-content h2 {
  margin-top: 3rem;
}

.seo-content h3 {
  margin-top: 2rem;
  color: var(--accent);
}

.seo-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.seo-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.seo-content ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.seo-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + 3rem);
}

.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  color: var(--accent);
}

.legal-content p,
.legal-content address {
  color: var(--text-secondary);
  font-style: normal;
  line-height: 1.8;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(14,165,233,0.06) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(99,102,241,0.04) 0%, transparent 50%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 600px;
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

/* ===== UTILITY ===== */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col.reverse {
    direction: ltr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  section {
    padding: 4rem 0;
  }

  .cta-section {
    padding: 2.5rem 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
  }
}
/* style-patch.css – 3cx.bitblade.io
   Ergänzt fehlende Klassen für die Legacy .html-Anleitungen + /3cx-ai-edition/.
   Nutzt die in /style.css definierten CSS-Variablen.
   Erzeugt: 2026-06-03
*/

/* ========== ARTIKEL-LAYOUT ========== */
/* Fixed header (72px) braucht Padding-Top, sonst überdeckt der Header die ersten Inhalte */
.article-container,
main.article-container,
main.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2.5rem) 1.5rem 4rem;
}

.guide-article,
.article,
article {
  display: block;
}

.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  margin-top: -0.5rem;
}

.guide-article > section,
.article > section,
.guide-article > .content-section,
.article > .article-section {
  margin: 2.5rem 0;
}

/* ========== INTRO / CONTENT-SECTION ========== */
.intro-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0 2rem;
}

.intro-section p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

.content-section,
.article-section {
  padding: 0;
  margin: 2.5rem 0;
}

.content-section h2,
.article-section h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.content-section h3,
.article-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.content-section p,
.article-section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.content-section ol,
.content-section ul,
.article-section ol,
.article-section ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.content-section ol li,
.content-section ul li,
.article-section ol li,
.article-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.content-section ol li strong,
.content-section ul li strong {
  color: var(--text-primary);
}

/* ========== HIGHLIGHT-BOX ========== */
.highlight-box {
  background: var(--gradient-subtle);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 3px solid var(--accent-cyan);
}

.highlight-box p,
.highlight-box ul,
.highlight-box ol {
  margin: 0.5rem 0;
}

.highlight-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

/* ========== STEP-CARD ========== */
.step-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.step-card h3 {
  margin-top: 0;
  color: var(--accent);
}

/* ========== TABLES ========== */
.config-table,
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.config-table th,
.price-table th,
.config-table td,
.price-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.config-table th,
.price-table th {
  background: var(--bg-surface);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
}

.config-table tr:hover,
.price-table tr:hover {
  background: var(--bg-card-hover);
}

.config-table tbody tr:last-child td,
.price-table tbody tr:last-child td {
  border-bottom: none;
}

/* ========== DETAILS (FAQ) ========== */
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  transition: border-color var(--transition);
}

details:hover {
  border-color: var(--border-hover);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform var(--transition);
}

details[open] summary::after {
  content: "−";
}

details > p,
details > div {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== AI-COMPONENT (AI-Edition-spezifisch) ========== */
.ai-component {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.ai-component h3 {
  margin-top: 0;
  color: var(--accent);
}

/* ========== NEWS-BANNER ========== */
.news-banner {
  background: var(--gradient-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 1rem 0 2rem;
  border: 1px solid var(--border-hover);
}

.news-banner p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-trail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.breadcrumb-trail a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-trail a:hover {
  text-decoration: underline;
}

/* ========== HERO / VIDEO / FIGURES ========== */
.hero-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.inline-figure {
  margin: 1.5rem 0;
}

.inline-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  margin: 1.5rem 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.figure-caption,
figcaption.figure-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.5rem;
  text-align: center;
}

/* ========== HERO-SECTION (Anleitung-spezifisch) ========== */
.guide-article > .hero-section,
.article > .hero-section,
section.hero-section {
  padding: 0 !important;
  min-height: auto !important;
  text-align: left !important;
  align-items: flex-start !important;
  background: transparent !important;
}

section.hero-section h1 {
  text-align: left;
}

section.hero-section .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

section.hero-section .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ========== SECTION (im Anleitungs-Kontext) ========== */
.guide-article .section,
.article .section {
  margin: 2.5rem 0;
}

/* ========== BUTTON-GROUP + CTA-VARIANTS ========== */
.button-group,
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

/* Override für die .cta-button-Variante mit .primary / .secondary */
.cta-button.primary,
.cta-button:not(.secondary) {
  background: var(--gradient-main);
  color: #fff !important;
  border: 1px solid transparent;
}

.cta-button.secondary,
.secondary-button {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: all var(--transition);
}

.cta-button.secondary:hover,
.secondary-button:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--gradient-main);
  color: #fff;
  transition: all var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: #fff;
}

/* ========== INTERNAL-LINKS / LINKS-GRID ========== */
.internal-links {
  padding: 2.5rem 0 1rem;
}

.internal-links h2 {
  margin-bottom: 1.5rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}

.link-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
}

.link-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text-primary);
}

.link-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 1.1rem;
}

.link-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========== FOOTER (Anleitungs-Variante) ========== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== HEADER FALLBACK (site-header / main-nav) ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.site-header .header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  gap: 2rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
  margin-left: 2rem;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

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

.main-nav .cta-button {
  margin-left: auto;
}

/* ========== HEADER (Anrufberichte/Chat-Variante mit class="header") ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header > .container,
.header .navbar > .container {
  max-width: var(--max-width);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.header .header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.header .nav,
.header .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.header .nav a,
.header .nav-menu a,
.header .nav-menu li > a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.header .nav a:hover,
.header .nav-menu a:hover {
  color: var(--text-primary);
}

.header .nav-cta,
.header .nav-menu .nav-cta {
  list-style: none;
}

/* ========== RESPONSIVE (Mobile) ========== */
@media (max-width: 1024px) {
  .article-container,
  main.article-container,
  main.main-content {
    padding: calc(var(--nav-height) + 1.5rem) 1.25rem 3rem;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .article-container,
  main.article-container,
  main.main-content {
    padding: calc(var(--nav-height) + 1rem) 1rem 2rem;
  }

  .content-section,
  .article-section {
    margin: 1.75rem 0;
  }

  .content-section h2,
  .article-section h2 {
    font-size: 1.5rem;
  }

  .content-section h3,
  .article-section h3 {
    font-size: 1.2rem;
  }

  .ai-component,
  .intro-section,
  .highlight-box,
  .step-card {
    padding: 1.1rem;
  }

  .button-group,
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button-group a,
  .cta-buttons a,
  .cta-button,
  .cta-btn,
  .secondary-button {
    width: 100%;
    text-align: center;
  }

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

  /* Tabellen scrollbar machen */
  .config-table,
  .price-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .config-table thead,
  .price-table thead {
    background: var(--bg-surface);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .article-container,
  main.article-container,
  main.main-content {
    padding: calc(var(--nav-height) + 0.75rem) 0.85rem 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ========== UNIVERSAL FIX: Hero auf jeder Anleitungs-Seite NICHT mehr 100vh ========== */
.guide-article > section.hero-section,
.article > section.hero-section,
main > .hero-section {
  min-height: auto !important;
  padding: 0 !important;
}

/* ========== style-patch v2 — 2026-06-03T22:55 ========== */
/* Body-level Fallback: garantiert padding-top für jeden fixed header */
body {
  padding-top: 0; /* main hat schon padding-top via .article-container */
}

/* ========== Header-Variante: <header class="header"><div class="container"><div class="header-top">...</div></div></header> ========== */
header.header,
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--nav-height) !important;
  background-color: var(--bg-primary) !important;
  border-bottom: 1px solid var(--border) !important;
  z-index: 1000 !important;
  display: block !important;
}

header.header > .container,
.header > .container {
  max-width: var(--max-width);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  margin: 0 auto;
}

header.header .header-top,
.header .header-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 2rem;
}

header.header .navbar,
.header .navbar {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
}

header.header .navbar > .container,
.header .navbar > .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  margin: 0 auto;
}

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

header.header .logo a,
.header .logo a {
  color: inherit;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header.header .nav,
.header .nav,
header.header .nav-menu,
.header .nav-menu {
  display: flex !important;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

header.header .nav-menu li,
.header .nav-menu li {
  list-style: none;
}

header.header .nav a,
.header .nav a,
header.header .nav-menu a,
.header .nav-menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

header.header .nav a:hover,
.header .nav a:hover,
header.header .nav-menu a:hover,
.header .nav-menu a:hover {
  color: var(--text-primary);
}

header.header .nav .nav-cta a,
.header .nav .nav-cta a,
header.header .nav-menu .nav-cta a,
.header .nav-menu .nav-cta a,
header.header .nav-cta a,
.header .nav-cta a {
  background: var(--gradient-main);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* ========== Articles-Container-Padding gegen Header (stronger spec) ========== */
main.article-container,
main.main-content,
.article-container,
.main-content {
  padding-top: calc(var(--nav-height) + 2.5rem) !important;
}

/* ========== H1 in Hero-Section: Linker Rand + ordentliche Größe ========== */
section.hero-section h1,
.guide-article > h1,
.article > .article-header > h1,
.article > header.article-header > h1 {
  text-align: left !important;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ========== Mobile Nav-Hide unter 768px (statt 1024px) ========== */
@media (max-width: 1024px) {
  header.header .nav,
  .header .nav,
  header.header .nav-menu,
  .header .nav-menu,
  .main-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  header.header .nav,
  .header .nav,
  header.header .nav-menu,
  .header .nav-menu,
  .main-nav {
    display: none !important;
  }

  header.header .nav-cta,
  .header .nav-cta,
  header.header .header-top > .nav-cta {
    display: flex !important;
  }
}

/* ========== Anrufberichte: H1 in <main><section class="hero-section"><div class="container"> Struktur ========== */
main.main-content section.hero-section .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main.main-content section.hero-section .container h1 {
  margin-top: 0;
}

main.main-content section.content-section .container,
main.main-content section.cta-section .container,
main.main-content section.internal-links .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Robuste main.main-content Regel ========== */
main.main-content {
  display: block;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ========== Universal Logo-Punkt-Färbung ========== */
.logo .logo-dot {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background-clip: initial;
}

/* ========== style-patch v3 — 2026-06-03T23:10 ========== */
/* SIP-Trunk navbar: maximale Specificity */
body header.header > nav.navbar,
body header.header nav.navbar {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

body header.header nav.navbar > .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: var(--max-width) !important;
  height: 100% !important;
  padding: 0 1.5rem !important;
  margin: 0 auto !important;
}

body header.header ul.nav-menu,
body .header ul.nav-menu {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 1.75rem !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  flex: 0 0 auto !important;
}

body header.header ul.nav-menu > li,
body .header ul.nav-menu > li {
  list-style: none !important;
  list-style-type: none !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body header.header ul.nav-menu > li::before,
body .header ul.nav-menu > li::before {
  display: none !important;
  content: none !important;
}

body header.header ul.nav-menu > li > a,
body .header ul.nav-menu > li > a {
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body header.header ul.nav-menu > li > a:hover,
body .header ul.nav-menu > li > a:hover {
  color: var(--text-primary) !important;
}

body header.header ul.nav-menu > li.nav-cta > a,
body .header ul.nav-menu > li.nav-cta > a {
  background: var(--gradient-main) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
}

/* Logo-Dot färben (Anrufberichte) */
.header .logo .logo-dot,
header .logo .logo-dot,
.logo .logo-dot {
  -webkit-text-fill-color: var(--accent) !important;
  color: var(--accent) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  display: inline !important;
}

/* Anrufberichte: Logo-Inner-Anchor hat eigene Färbung */
.header .logo a {
  background: var(--gradient-main) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.header .logo a .logo-dot {
  -webkit-text-fill-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* Mobile Nav-Hide */
@media (max-width: 768px) {
  body header.header ul.nav-menu > li:not(.nav-cta),
  body .header ul.nav-menu > li:not(.nav-cta) {
    display: none !important;
  }
  body header.header ul.nav-menu > li.nav-cta,
  body .header ul.nav-menu > li.nav-cta {
    display: inline-flex !important;
  }
}

/* ========== style-patch v4 — 2026-06-03T23:25 ========== */
/* CRITICAL: Reset <header class="article-header"> die durch globales `header {position:fixed}` mit nach oben gezogen wird */
body header.article-header,
body .article-header,
article > header,
article header.article-header {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  height: auto !important;
  background: transparent !important;
  border-bottom: none !important;
  z-index: auto !important;
  margin-bottom: 2rem !important;
  padding: 0 !important;
  display: block !important;
}

/* Auch <article-meta>-Klasse-pattern sicherstellen */
.article-header h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.article-header .article-meta {
  margin-bottom: 1.5rem;
}

/* ========== style-patch v5 — 2026-06-04 — Tailwind lg:col-span-* fallback für Wiki-Pages ========== */
/* Die Tailwind-Build hatte lg:col-span-3 und lg:col-span-1 nicht im Bundle, deshalb wirken sie nicht. */
@media (min-width: 1024px) {
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
}
