/* Lokal gehostete Variable Fonts — Latin-Subset (Google Fonts v14/v19) */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSerif4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/SourceSans3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #1a5c3a;
  --green-light: #e8f5ee;
  --red: #c0392b;
  --red-light: #fdecea;
  --yellow: #c47c0a;
  --yellow-light: #fef8e7;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e0e0e0;
  --bg: #ffffff;
  --bg-light: #f8f8f6;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --max-width: 740px;
  --radius: 4px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.1rem; margin-bottom: 1rem; }
h2 { font-size: 1.55rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); }
a:hover { text-decoration: none; }

strong { font-weight: 600; }

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

/* ── Navigation ── */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-logo {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

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

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav a:hover { color: var(--green); }

/* ── Sections ── */

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

/* ── Hero ── */

.hero { padding: 4rem 0 3rem; }

.hero-thesis {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.steps {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 140px;
}

.step-number {
  background: var(--green);
  color: white;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-text {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  padding-top: 0.25rem;
}

/* ── Reference Box ── */

.reference-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.reference-box-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rate-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.rate-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.rate-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.reference-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Prompt Box ── */

.prompt-section {
  background: var(--bg-light);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.prompt-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  width: 100%;
}

input:focus, select:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.prompt-field {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  resize: vertical;
  min-height: 185px;
  margin-bottom: 1rem;
  cursor: text;
}

.prompt-field:focus { outline: 2px solid var(--green); }

.btn {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary { background: var(--green); color: white; }
.btn-primary:hover:not(:disabled) { background: #14472c; }
.btn-primary:disabled { opacity: 0.38; cursor: not-allowed; }

.prompt-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.domain-warning {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--red);
  display: none;
}

.copy-success {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  display: none;
}

.copy-success.visible { display: inline; }

.copy-hint {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.prompt-methodik {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Checker ── */

.checker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.toggle-group {
  display: flex;
  gap: 0.4rem;
}

.toggle-btn {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  flex: 1;
  text-align: center;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.toggle-btn.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.toggle-btn:hover:not(.active) {
  border-color: var(--green);
  color: var(--green);
}

.country-row {
  margin-bottom: 1.25rem;
}

.ch-hint {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.checkbox-label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.checker-warning {
  padding: 0.9rem 1rem;
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 1rem;
  display: none;
}

/* ── Ampel (Traffic Light) ── */

.ampel {
  display: none;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ampel.visible {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ampel-card {
  border-radius: var(--radius);
  padding: 1.1rem;
  border: 1px solid transparent;
}

.ampel-card.green { background: var(--green-light); border-color: var(--green); }
.ampel-card.red   { background: var(--red-light);   border-color: var(--red);   }
.ampel-card.yellow{ background: var(--yellow-light); border-color: var(--yellow);}

.ampel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.ampel-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.ampel-card.green  .ampel-dot  { background: var(--green); }
.ampel-card.red    .ampel-dot  { background: var(--red);   }
.ampel-card.yellow .ampel-dot  { background: var(--yellow);}

.ampel-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
}

.ampel-card.green  .ampel-title { color: var(--green); }
.ampel-card.red    .ampel-title { color: var(--red);   }
.ampel-card.yellow .ampel-title { color: var(--yellow);}

.ampel-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.4rem 0 0.5rem;
}

.ampel-card.green  .ampel-value { color: var(--green); }
.ampel-card.red    .ampel-value { color: var(--red);   }
.ampel-card.yellow .ampel-value { color: var(--yellow);}

.ampel-text {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ampel-disclaimer {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

/* ── FAQ ── */

.faq-list { list-style: none; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-question {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: 4rem;
}

.footer-inner {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover { color: var(--green); }

/* ── Consent Banner ── */

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--border);
  padding: 1rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
}

.consent-banner.visible { display: block; }

.consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.consent-text {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.consent-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.btn-consent-accept { background: var(--green); color: white; font-size: 0.9rem; padding: 0.55rem 1.1rem; }
.btn-consent-accept:hover { background: #14472c; }
.btn-consent-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
}
.btn-consent-reject:hover { border-color: var(--text-muted); }

/* ── Inner page hero ── */

.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: 1.75rem; }

.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

/* ── Article content ── */

.article-content h2 { margin-top: 2.5rem; }
.article-content h3 { margin-top: 1.75rem; }

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content li { margin-bottom: 0.4rem; }

.fill-marker {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 2px;
  padding: 0 0.3em;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: #856404;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  html { font-size: 16px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .prompt-inputs { grid-template-columns: 1fr; }
  .checker-grid { grid-template-columns: 1fr; }
  .ampel.visible { grid-template-columns: 1fr; }
  .rates-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
}

/* ── Schritt-2-Button ── */

.btn-step2 {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: #1a3a6e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.35s ease, box-shadow 0.35s ease;
  opacity: 0.4;
}

.btn-step2:focus-visible {
  outline: 3px solid #1a3a6e;
  outline-offset: 3px;
}

.btn-step2--dim {
  opacity: 0.4;
  filter: saturate(0.4);
}

.btn-step2--active {
  opacity: 1;
  filter: saturate(1);
}

@keyframes step2pulse {
  0%   { box-shadow: 0 0 0 0 rgba(26, 58, 110, 0.65); }
  65%  { box-shadow: 0 0 0 10px rgba(26, 58, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 58, 110, 0); }
}

.btn-step2--pulse {
  animation: step2pulse 0.65s ease-out;
}

@media (max-width: 600px) {
  .btn-step2 { width: 100%; justify-content: center; }
}

/* ── Disclaimer vor Eingabe ── */
.checker-predisclaimer {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #78350f;
}
