/* ===========================
   Webinar-Trend | styles.css
   Bunny Fonts – DSGVO-konform
   =========================== */

@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700|source-serif-4:400,600,700');

/* ── CSS-Variablen ── */
:root {
  --clr-bg:        #f8f7f5;
  --clr-surface:   #ffffff;
  --clr-border:    #e3e1dc;
  --clr-text:      #1e1c1a;
  --clr-muted:     #5f5b55;
  --clr-accent:    #2563b0;
  --clr-accent-lt: #dce9f8;
  --clr-accent-dk: #1a4a8a;
  --clr-hero-bg:   #0f2545;
  --clr-tag:       #e8f0fb;

  --ff-serif: 'Source Serif 4', Georgia, serif;
  --ff-sans:  'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  --max-w: 1100px;
  --section-gap: 4rem;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
}

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

a { color: var(--clr-accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--clr-accent-dk); }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .4rem; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  line-height: 1.25;
  color: var(--clr-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.8vw, 2rem);  font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; margin-bottom: .6rem; }

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

.lead {
  font-size: 1.15rem;
  color: var(--clr-muted);
  line-height: 1.8;
  max-width: 70ch;
}

/* ── Layout ── */
.container {
  width: 92%;
  max-width: var(--max-w);
  margin-inline: auto;
}

section { padding: var(--section-gap) 0; }

/* ── Header & Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-hero-bg);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--clr-accent); text-decoration: none; }

.site-logo span {
  color: var(--clr-accent);
}

.main-nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }

.main-nav a {
  display: inline-block;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--clr-accent-lt);
  color: var(--clr-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: var(--clr-hero-bg);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 50%, rgba(37,99,176,.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(37,99,176,.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(37,99,176,.35);
  border: 1px solid rgba(255,255,255,.2);
  color: #c0d9f5;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 22ch;
}

.hero .lead {
  color: #b8cde8;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.hero-cta:hover {
  background: #1a4a8a;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-visual {
  flex-shrink: 0;
}

/* Hero SVG Illustration */
.hero-svg {
  width: 340px;
  height: 240px;
  opacity: .9;
}

/* ── Stat Bar ── */
.stat-bar {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 1.5rem 0;
}

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

.stat-item strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--clr-accent);
}

.stat-item span {
  font-size: .82rem;
  color: var(--clr-muted);
}

/* ── Section Intro ── */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: .6rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--clr-accent-lt);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-accent-lt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg { width: 24px; height: 24px; stroke: var(--clr-accent); fill: none; }

.card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.card p { color: var(--clr-muted); font-size: .92rem; flex-grow: 1; margin-bottom: 1rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-accent);
}
.card-link::after { content: '→'; }
.card-link:hover { text-decoration: none; gap: .55rem; }

/* ── Intro Section ── */
.intro-section { background: var(--clr-surface); }

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.intro-text h2 { margin-bottom: 1rem; }

.highlight-box {
  background: var(--clr-accent-lt);
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; color: var(--clr-accent-dk); font-weight: 500; }

.info-list {
  list-style: none;
  padding: 0;
}
.info-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .65rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: .95rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before {
  content: '✓';
  color: var(--clr-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .15rem;
}

.sidebar-card {
  background: var(--clr-hero-bg);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  position: sticky;
  top: 80px;
}
.sidebar-card h3 { color: #fff; margin-bottom: 1rem; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li {
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .92rem;
  color: #b8cde8;
  display: flex;
  gap: .5rem;
}
.sidebar-card ul li::before { content: '▸'; color: var(--clr-accent); flex-shrink: 0; }
.sidebar-card ul li:last-child { border-bottom: none; }

/* ── FAQ Section ── */
.faq-section { background: var(--clr-bg); }

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .15s;
}
.faq-question:hover { background: var(--clr-accent-lt); }
.faq-question .faq-icon { flex-shrink: 0; transition: transform .25s; font-size: 1.2rem; color: var(--clr-accent); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p { margin: .5rem 0 0; color: var(--clr-muted); }

/* ── Article Content (Unterseiten) ── */
.page-hero {
  background: var(--clr-hero-bg);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}
.page-hero .page-tag { color: #90b8e0; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; display: block; }
.page-hero h1 { color: #fff; max-width: 22ch; margin-bottom: .75rem; }
.page-hero .lead { color: #b8cde8; }

.breadcrumb {
  font-size: .82rem;
  color: #7a9bc0;
  margin-bottom: 1rem;
}
.breadcrumb a { color: #90b8e0; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 .4rem; }

.article-layout {
  padding: 3rem 0;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 { margin-top: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1rem; }
.article-body li { margin-bottom: .5rem; color: var(--clr-muted); }

.tip-box {
  background: var(--clr-accent-lt);
  border: 1px solid #b3d0f5;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.tip-box strong { display: block; color: var(--clr-accent-dk); margin-bottom: .4rem; }
.tip-box p { margin: 0; color: #2a4a72; font-size: .95rem; }

.summary-box {
  background: var(--clr-hero-bg);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2.5rem;
}
.summary-box h3 { color: #fff; margin-bottom: 1rem; }
.summary-box ul { list-style: none; padding: 0; }
.summary-box ul li { padding: .4rem 0; color: #b8cde8; font-size: .93rem; display: flex; gap: .5rem; }
.summary-box ul li::before { content: '✓'; color: #5ba8f5; flex-shrink: 0; }

.article-sidebar { }

.sidebar-nav {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.sidebar-nav h4 { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--clr-muted); margin-bottom: 1rem; }
.sidebar-nav ul { list-style: none; padding: 0; }
.sidebar-nav ul li { margin-bottom: 0; }
.sidebar-nav ul li a {
  display: block;
  padding: .5rem .75rem;
  font-size: .88rem;
  color: var(--clr-muted);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.sidebar-nav ul li a:hover { background: var(--clr-accent-lt); color: var(--clr-accent); text-decoration: none; }
.sidebar-nav ul li a.current { background: var(--clr-accent-lt); color: var(--clr-accent); font-weight: 600; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-dk) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 0 auto;
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 55ch; margin: 0 auto 1.75rem; }
.cta-banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-light {
  display: inline-block;
  background: #fff;
  color: var(--clr-accent);
  font-weight: 700;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-light:hover { background: var(--clr-accent-lt); color: var(--clr-accent-dk); text-decoration: none; }

.btn-outline-light {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  font-weight: 600;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; border-color: #fff; }

/* ── Table ── */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}
.styled-table thead { background: var(--clr-hero-bg); }
.styled-table thead th { color: #fff; padding: .85rem 1rem; text-align: left; font-weight: 600; }
.styled-table tbody tr { border-bottom: 1px solid var(--clr-border); }
.styled-table tbody tr:last-child { border-bottom: none; }
.styled-table tbody td { padding: .85rem 1rem; color: var(--clr-muted); }
.styled-table tbody tr:hover { background: var(--clr-accent-lt); }

/* ── Rechner (Interaktiver Margen-Rechner) ── */
.calc-section { background: var(--clr-surface); }

.calc-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.form-row {
  margin-bottom: 1.25rem;
}
.form-row label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--clr-text);
}
.form-row input[type="number"],
.form-row select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: var(--ff-sans);
  font-size: 1rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color .15s;
}
.form-row input[type="number"]:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--clr-accent);
}
.form-row small { display: block; margin-top: .3rem; color: var(--clr-muted); font-size: .8rem; }

.calc-result {
  background: var(--clr-hero-bg);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
}
.calc-result h3 { color: #fff; margin-bottom: 1.25rem; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.result-item {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}
.result-item .val {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #5ba8f5;
}
.result-item .lbl {
  display: block;
  font-size: .78rem;
  color: #90b8e0;
  margin-top: .2rem;
}

.btn-calc {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--ff-sans);
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background .2s;
}
.btn-calc:hover { background: var(--clr-accent-dk); }

.calc-disclaimer { font-size: .8rem; color: var(--clr-muted); margin-top: 1rem; }

/* ── Footer ── */
.site-footer {
  background: var(--clr-hero-bg);
  color: #90b8e0;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .site-logo { color: #fff; font-size: 1.1rem; display: inline-block; margin-bottom: .75rem; }
.footer-brand p { font-size: .88rem; line-height: 1.6; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--ff-sans);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: #90b8e0; font-size: .88rem; text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: .82rem;
}
.footer-bottom a { color: #90b8e0; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── Legal Pages ── */
.legal-page { padding: 3rem 0; }
.legal-page h1 { margin-bottom: .5rem; }
.legal-page .lede { color: var(--clr-muted); margin-bottom: 2rem; font-size: .92rem; }
.legal-content { max-width: 780px; }
.legal-content h2 { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--clr-border); font-size: 1.2rem; }
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.placeholder {
  display: inline-block;
  background: #fef3c7;
  border: 1px dashed #f59e0b;
  color: #92400e;
  padding: .1rem .4rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: .9em;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar-card { position: static; }
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: .5rem 1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: .6rem .75rem; font-size: .95rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .calc-card { padding: 1.5rem; }
  h1 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
