/* ============================================================
   Berichtsheftbot – Shared Stylesheet
   Fonts: Inter (lokal in /fonts/)
   Icons: Lucide (lokal in /js/lucide.min.js)
   Kein externes CDN – DSGVO-konform
   ============================================================ */

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --color-navy:       #1a4d8c;
  --color-teal:       #3ab0c4;
  --color-teal-light: #7dd4dc;
  --color-bg:         #f8fbff;
  --color-surface:    #ffffff;
  --color-text:       #1a2d40;
  --color-text-muted: #5a7a9a;
  --color-border:     #d0e4f0;
  --color-error:      #c0392b;
  --color-success-bg: #e8f5e9;
  --color-success-fg: #2e7d32;
  --radius-card:      12px;
  --radius-button:    8px;
  --shadow-card:      0 4px 20px rgba(26, 77, 140, 0.10);
  --font-main:        'Inter', system-ui, -apple-system, sans-serif;
}

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

/* ── Base ──────────────────────────────────────────────────── */
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--color-teal); transition: color 0.2s; }
a:hover { color: var(--color-navy); }
h1, h2, h3, h4 { color: var(--color-navy); font-weight: 700; line-height: 1.25; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; }
code {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

/* ── Layout ────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Header / Nav ──────────────────────────────────────────── */
header {
  background: var(--color-surface);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-navy);
  gap: 10px;
}
.logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--color-text); font-weight: 600; }
.nav-links a:hover { color: var(--color-teal); }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    padding: 10px;
    z-index: 110;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--color-navy);
    height: 2px;
    width: 24px;
    position: relative;
    transition: all 0.3s;
  }
  .nav-toggle-label span::before { content: ''; position: absolute; bottom: 8px; }
  .nav-toggle-label span::after  { content: ''; position: absolute; top: 8px; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: none;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none !important;
  line-height: 1;
}
.btn-primary { background-color: var(--color-navy); color: #fff !important; }
.btn-primary:hover:not(:disabled) { background-color: var(--color-teal); transform: translateY(-2px); color: #fff !important; }
.btn-secondary { background-color: var(--color-surface); color: var(--color-navy) !important; border: 2px solid var(--color-navy); }
.btn-secondary:hover:not(:disabled) { background-color: var(--color-bg); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }
.btn-lg { font-size: 1.125rem; padding: 16px 36px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(26, 77, 140, 0.15); }

/* ── Grid ──────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--color-navy); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(58, 176, 196, 0.2);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; }

/* ── Alert ─────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 0.925rem; }
.alert-error { background: #ffebee; color: var(--color-error); border: 1px solid #ffcdd2; }
.alert-success { background: var(--color-success-bg); color: var(--color-success-fg); }

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--color-teal);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Legal pages ───────────────────────────────────────────── */
.legal-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.legal-header { border-bottom: 1px solid var(--color-border); padding-bottom: 20px; margin-bottom: 30px; }
.legal-meta { color: var(--color-text-muted); font-size: 0.875rem; margin-top: 4px; margin-bottom: 0; }
.legal-container h2 { margin-top: 2.5rem; font-size: 1.2rem; }
.legal-container ul, .legal-container ol { padding-left: 24px; }
.legal-container li { margin-bottom: 8px; }

/* ── Article / Ratgeber ────────────────────────────────────── */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 48px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
@media (max-width: 768px) { .article-content { padding: 24px 20px; } }
.article-content h1 { font-size: 2rem; margin-bottom: 24px; }
.article-content .article-meta { margin: -14px 0 26px; font-size: 0.82rem; color: var(--color-text-muted); }
.article-content h2 { margin: 40px 0 16px; font-size: 1.4rem; }
.article-content h3 { margin: 28px 0 12px; font-size: 1.15rem; }
.article-content p, .article-content ul, .article-content ol { color: var(--color-text); }
.article-content ul, .article-content ol { padding-left: 22px; }
.article-content li { margin-bottom: 10px; }
.cta-box {
  background: var(--color-bg);
  padding: 28px;
  border-radius: var(--radius-card);
  margin: 36px 0;
  border-left: 5px solid var(--color-navy);
}
.cta-box h3 { margin-bottom: 10px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.back-link:hover { color: var(--color-navy); }

/* ── Info box ──────────────────────────────────────────────── */
.info-box {
  background: #e8f4fb;
  border: 1px solid #b3d9ee;
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 28px 0;
}
.info-box p { margin-bottom: 0; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--color-surface);
  padding: 40px 0 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 80px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-navy); }
.disclaimer {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  text-align: center;
  font-size: 0.75rem;
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.mt-4  { margin-top:  1rem; }
.mt-8  { margin-top:  2rem; }
.mt-12 { margin-top:  3rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.w-full { width: 100%; }

/* ============================================================
   BETA ANNOUNCEMENT BAR
   ============================================================ */

@keyframes beta-badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.beta-bar {
  position: relative;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1c1002;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 11px 52px 11px 16px;
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(180, 100, 0, 0.30);
  z-index: 200;
}

.beta-bar__badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.15);
  color: #1c1002;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 9px;
  vertical-align: middle;
  animation: beta-badge-pulse 2.4s ease-in-out infinite;
}

.beta-bar__count {
  font-weight: 700;
}

.beta-bar__close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.40);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.beta-bar__close:hover {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
  .beta-bar {
    font-size: 0.8rem;
    padding: 10px 44px 10px 12px;
  }
  .beta-bar__badge {
    margin-right: 6px;
  }
}
