/* testtier.de – Landingpage */

:root {
  --bg: #f6f1eb;
  --bg-section: #faf7f3;
  --surface: #ffffff;
  --text: #1f1b17;
  --text-muted: #5c554d;
  --text-soft: #8a8178;
  --accent: #6b5344;
  --accent-hover: #543f33;
  --accent-soft: rgba(107, 83, 68, 0.1);
  --sage: #4a6b52;
  --border: rgba(31, 27, 23, 0.09);
  --success-bg: #e6efe8;
  --success-text: #2d5a3d;
  --radius: 12px;
  --max-width: 640px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ─── Notice & Header ────────────────────────────────────────────────────── */

.notice-bar {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.site-logo {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.site-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.site-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  gap: 0.15rem;
  padding: 0.15rem;
  background: var(--bg-section);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lang-switch a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-soft);
  border-radius: 999px;
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch a[aria-current="page"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 2.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  display: block;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
}

.hero-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sage);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 5.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-features {
  display: grid;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.75rem 1rem;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.feature:last-child {
  border-bottom: none;
}

.feature-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (min-width: 520px) {
  .hero-features {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 1rem;
  }

  .feature:last-child {
    border-right: none;
  }
}

/* ─── Sections ───────────────────────────────────────────────────────────── */

.section-scenarios {
  padding: 2.5rem 0;
}

.section-cta {
  padding: 0 0 2.75rem;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.section-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.scenario-block {
  margin-bottom: 1.75rem;
}

.scenario-block--more {
  margin-bottom: 0;
}

.block-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  gap: 0.65rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.card-meta {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.card-quote {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  font-style: italic;
}

.card-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ─── Auswertungsgrafik ──────────────────────────────────────────────────── */

.chart-box {
  margin: 0.85rem 0 0;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chart-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.chart-caption {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.chart-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  background: rgba(74, 107, 82, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.bar-chart {
  display: grid;
  gap: 0.55rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 3.25rem 1fr 2.5rem;
  align-items: center;
  gap: 0.6rem;
}

.bar-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.bar-track {
  height: 0.55rem;
  background: var(--bg-section);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: var(--value);
  border-radius: 999px;
  background: var(--accent);
}

.bar-fill--1 { background: #6b5344; }
.bar-fill--2 { background: #8a6f5c; }
.bar-fill--3 { background: #4a6b52; }
.bar-fill--4 { background: #a89888; }

.bar-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.chart-note {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Hint grid ──────────────────────────────────────────────────────────── */

.hint-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.hint-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hint-topic {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.hint-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── CTA ────────────────────────────────────────────────────────────────── */

.section-cta .container {
  padding-top: 2.5rem;
}

.interest-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.interest-box-head {
  margin-bottom: 1.25rem;
}

.interest-question {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.interest-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.btn-row {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 420px) {
  .btn-row {
    grid-template-columns: 1fr 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-section);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.btn-chosen {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Messages & Form ────────────────────────────────────────────────────── */

.message {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.message.visible {
  display: block;
}

.message-thanks {
  background: var(--success-bg);
  color: var(--success-text);
}

.message-error {
  background: #fce8e8;
  color: #8b2e2e;
}

.email-section {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.email-section.visible {
  display: block;
}

.email-intro {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 0.85rem;
}

.input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-section);
  color: var(--text);
}

.input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.checkbox-label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.45;
}

.checkbox-label input {
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.privacy-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ─── Legal pages ────────────────────────────────────────────────────────── */

.page-legal {
  padding: 2rem 0 3rem;
}

.page-legal h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.page-legal .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.page-legal .back-link:hover {
  text-decoration: underline;
}

.page-legal h2 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

.page-legal p,
.page-legal ul {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-legal ul {
  padding-left: 1.25rem;
}

.page-legal code {
  font-size: 0.85em;
  background: var(--bg-section);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.legal-warning {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: #fff8e6;
  border: 1px solid #e8d9a8;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: #6b5a20;
}

.legal-warning[hidden] {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
