:root { --maxw: 1100px; --gap: 1rem; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: #0f172a; background: #f8fafc; }


/* Sticky footer layout */
html, body { height: 100%; }

body {
  /* Viewport-Varianten für mobile Browser */
  min-height: 100vh;     /* Fallback */
  min-height: 100svh;    /* iOS/modern */
  display: flex;
  flex-direction: column;
}

/* Dein <main class="container"> soll den Restplatz einnehmen */
main.container {
  flex: 1 0 auto;
  width: 100%;
}

.container { 
  max-width: var(--maxw); 
  margin: 1.5rem auto;     /* vorher 2rem */
  padding: 0 1rem 1.5rem;  /* unten etwas Padding statt großem Außenabstand */
}

.site-header, .site-footer {
  background: #0b1020; color: #fff; padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header a { color: #fff; text-decoration: none; margin-right: 1rem; }
.brand { font-weight: 700; letter-spacing: .3px; }
.container { max-width: var(--maxw); margin: 2rem auto; padding: 0 1rem; }

.hero { margin-bottom: 2rem; }
.quote { font-size: 1.4rem; font-weight: 500; padding: 1.25rem 1.5rem; background: #e2e8f0; border-radius: 12px; }
.quote cite { display: block; font-size: .9rem; margin-top: .5rem; color: #475569; }

.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.tile {

  display: flex; flex-direction: column; gap: .5rem;
  background: #fff; border-radius: 14px; padding: .75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  text-decoration: none; color: inherit; transition: transform .08s ease;
}
.tile:hover { transform: translateY(-2px); }
.tile img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px;  object-position: center 70%;}
.tile h3 { margin: .25rem 0 0; }
.tile p { margin: 0 0 .25rem; color: #475569; }

@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }


.tabs { display:flex; gap:.5rem; margin: .5rem 0 1rem; }
.tab { padding:.4rem .7rem; border-radius:10px; background:#e2e8f0; text-decoration:none; }
.tab.active { background:#0b1020; color:#fff; }
.panel { background:#fff; border-radius:14px; padding:1rem; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.stats { display:flex; gap:1rem; flex-wrap:wrap; margin-bottom: .75rem; color:#334155; }
.feedback { padding:.75rem; border-radius:10px; margin:.5rem 0 1rem; }
.feedback.ok { background:#e6ffed; }
.feedback.warn { background:#fff1f2; }
.qa-form .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.qa-form input { width:100%; padding:.5rem; }
.actions { display:flex; gap:.5rem; margin-top:.75rem; }
button { padding:.5rem .8rem; border-radius:10px; border:0; background:#0b1020; color:#fff; cursor:pointer; }
button.secondary { background:#475569; }
.question { font-weight:600; margin:.8rem 0 0.0rem; }
.ok { color:#047857; }
.warn { color:#b91c1c; }


.history-log {
  margin-top: 2rem;
}
.history-log h2 {
  margin-bottom: 1rem;
}

/* ... (bestehende Stile) ... */

/* Neue Stile */
.plot-container { text-align: center; margin-bottom: 1rem; margin-top: 1.5rem;}
.plot-container img { max-width: 100%; height: auto; border-radius: 10px; background: #f8fafc; }
.stats.prominent { margin-bottom: 1.5rem; text-align: center; display: flex; justify-content: center; gap: 2rem; }
.subtitle { text-align: center; color: #475569; margin-top: -0.5rem; margin-bottom: 1.5rem; }
.history-log { margin-top: 2rem; }
.history-log h2 { margin-bottom: 1rem; }
.history-line-1 { font-weight: 600; margin-bottom: 0.25rem; }
.history-line-2 { font-size: 0.9rem; color: #334155; }


/* Neue Stile für die Warnmeldung und zum Entfernen der Pfeile */
.confidence-alert {
  text-align: center;
  padding: 0.75rem;
  border-radius: 10px;
  margin: 0.75rem 0;
  font-weight: 500;
}
.confidence-alert.over { background-color: #fff1f2; color: #b91c1c; } /* Warnung bei Overconfidence */
.confidence-alert.under { background-color: #f0f9ff; color: #0284c7; } /* Hinweis bei Underconfidence */

/* Entfernt die Pfeile aus den Nummerneingabefeldern in Webkit-Browsern (Chrome, Safari) */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

/* Entfernt die Pfeile in Firefox */
input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}



.qa-form .actions {
  margin-top: 0.75rem;
}

.form-actions-wrapper {
  display: flex;
  align-items: flex-end; /* Richtet die Buttons an der Unterkante aus */
  
}

.reset-form button {
    margin-bottom: 0; /* Stellt sicher, dass der Button auf gleicher Höhe ist */
}


/* Stile für den Gamification Platzhalter */
.plot-locked {
  text-align: center;
  background-color: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px dashed #e2e8f0;
  margin-bottom: 1.5rem;
}
.lock-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.plot-locked h3 {
  margin: 0 0 0.25rem 0;
  color: #0f172a;
}
.plot-locked p {
  margin: 0;
  color: #475569;
}


/* Landing: blurb, badges, CTAs, flash */
.hero { display: grid; gap: 1rem; }           /* fügt Layout für Quote + Textblock hinzu */

.blurb { display: grid; gap: .75rem; }
.blurb p { margin: 0; color: #1f2937; }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .85rem;
  color: #0b1020;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cta {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #0b1020;
  padding: .55rem .9rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform .08s ease, opacity .08s ease;
}
.cta:hover { transform: translateY(-1px); opacity: .95; }
.cta.secondary { background: #1e293b; }
.cta.ghost { background: #e2e8f0; color: #0b1020; }

/* Optional: Flash-Hinweis auf der Startseite */
.flash {
  background: #fff7ed;
  border-left: 4px solid #ea580c;
  padding: .6rem .8rem;
  border-radius: 8px;
  margin: .5rem 0 1rem;
}

/* NEU: Stile für die Value Proposition Section */
.value-proposition {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.value-proposition .header h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  color: #0b1020;
}

.value-proposition .header p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.value-item {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.value-item .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.value-item h3 {
  margin: 0 0 0.25rem 0;
  color: #0f172a;
}

.value-item p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

/* Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
  .value-proposition .header h2 {
    font-size: 2rem;
  }
}


/* Accent tokens */
:root { --accent: #f59e0b; --ink-subtle: #475569; }

/* Make the quote slimmer + accent bar */
.quote.quote-accent {
  position: relative;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 1rem 1.25rem 1rem 1.1rem;
  margin-bottom: 2rem;
  margin-top: 3rem;
}
.quote.quote-accent::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px; border-radius: 12px 0 0 12px;
  background: var(--accent);
}

/* Hero: compact, structured */
.narrow { max-width: 800px; margin: 0 auto; }
.hero-unit { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.hero-title { font-size: clamp(28px, 3.6vw, 36px); margin: 0; }
.hero-subtitle { margin: 0; color: var(--ink-subtle); }

/* Chips row */
.chip-row { display: flex; gap: .4rem; margin-top: .25rem; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: #0b1020; color: #fff; font-size: 18px;
}

/* Features: tight cards */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: .5rem;
}
.feature {
  display: grid; grid-template-columns: 34px 1fr; gap: .5rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: .6rem .7rem;
}
.feature .icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px; background: #f8fafc; font-size: 18px;
}
.feature p { margin: 0; color: #0f172a; }

/* Section label above tiles */
.section-kicker {
  margin: 1.25rem 0 .75rem;
  font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-subtle);
}

/* Tighten tiles spacing a bit */
.tiles { gap: .9rem; }
.tile { padding: .7rem; }

/* Responsive */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .chip { width: 34px; height: 34px; }
}



/* Centered quote */
.quote-center { text-align: center; }
.quote-center cite { text-align: center; }

/* Optional: Quote noch schmaler führen */
.narrow { max-width: 800px; margin: 0 auto; }

/* Headline block */
.hero-unit { display: grid; gap: .4rem; margin: 1rem auto 1rem; }
.hero-title { font-size: clamp(28px, 3.6vw, 36px); margin: 0; }
.hero-subtitle { margin: 0; color: #475569; }

/* 2x2 value proposition */
.vp-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; margin-bottom: 1rem; }
.vp-card {
  display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: .75rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: .9rem 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: transform .08s ease, box-shadow .08s ease;
}
.vp-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.vp-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: #f8fafc; font-size: 22px;
}
.vp-text h3 { margin: 0 0 .25rem; font-size: 1rem; }
.vp-text p  { margin: 0; color: #475569; }

/* Section label above tiles */
.section-kicker { margin: 1rem auto .6rem; font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #475569; }

/* Responsive */
@media (max-width: 900px) { .vp-grid { grid-template-columns: 1fr; } }


/* Center utilities */
.center { text-align: center; }

/* Quote: dual accent bars */
.quote.quote-accent { position: relative; }
.quote.quote-accent::before,
.quote.quote-accent::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 4px; background: var(--accent, #f59e0b);
  border-radius: 12px;
}
.quote.quote-accent::before { left: 0; }
.quote.quote-accent::after  { right: 0; }

/* Hero center */
.hero-unit.center .hero-title { margin: 0; font-size: clamp(28px, 3.6vw, 36px); }
.hero-unit.center .hero-subtitle { margin: .25rem 0 0; color: #475569; }

/* CTA banner */
.cta-banner {
  display: grid; place-items: center;
  background: #0b1020; color: #fff;
  border-radius: 14px; padding: .9rem 1rem; margin: 1.2rem auto .8rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.cta-banner .cta-emoji { font-size: 24px; line-height: 1; margin-bottom: .15rem; }
.cta-banner .cta-label {
  font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; font-size: .95rem;
}
.cta-banner .cta-sub {
  margin-top: .15rem; font-size: .9rem; opacity: .9; text-align: center;
}

/* Spacing tune so banner doesn't collide with tiles */
.tiles { margin-top: .6rem; }




/* Quote kompakter + schmaler */
.quote.quote-accent {
  padding: .7rem 1rem;               /* weniger Höhe */
}
.quote.quote-accent cite {
  margin-top: .3rem;                  /* enger */
  font-size: .85rem;
}
.quote {                               /* optional: etwas kleiner */
  font-size: 1.25rem;
}

/* Headline + Subheadline zentriert mit mehr Luft */
.hero-unit.center {
  text-align: center;
  margin-top: 2.5rem;                 /* mehr Platz nach oben */
  margin-bottom: 2.5rem;              /* etwas Luft nach unten */
}
.hero-unit.center .hero-title {
  line-height: 1.15;                  /* mehr Präsenz */
}
.hero-unit.center .hero-subtitle {
  margin-top: .25rem;                  /* atmen lassen */
}

/* 2×2 Grid: kleine Luft nach der Headline */
.vp-grid { margin-top: .6rem; }

/* CTA-Banner: weniger dominant, Finger zuletzt */
.cta-banner {
  display: grid; place-items: center;
  background: #fff7ed;                /* helles Amber statt Schwarz */
  border: 1px solid #f59e0b;          /* Akzent-Rand */
  color: #0b1020;
  border-radius: 14px;
  padding: .85rem 2rem;
  margin: 2rem auto 2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.06); /* sanfter Schatten */
}
.cta-banner .cta-label {
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .95rem;
}
.cta-banner .cta-sub {
  margin-top: .05rem;
  font-size: .9rem;
  opacity: .9;
  text-align: center;
}
.cta-banner .cta-emoji {
  font-size: 22px;
  line-height: 1;
  margin-top: .35rem;                 /* Finger unten */
}

/* Quote: Akzent links & rechts – schon vorhanden. */
.longform { max-width: 800px; margin: 1.2rem auto 2rem; }
.longform h2 { margin: 1.2rem 0 .5rem; }
.longform h3 { margin: 1rem 0 .4rem; }
.longform p, .longform li { color:#1f2937; }
.longform ul { padding-left: 1.1rem; }



/* Footer layout tweak (nur Footer, Header bleibt wie gehabt) */
.site-footer { 
  flex-direction: column;           /* statt space-between in einer Zeile */
  align-items: flex-start; 
  gap: .3rem;
  padding: .25rem 1.25rem .25rem  1.25rem ;
  margin-top: auto;

}

/* Inhaltlich dezente, aber klare Darstellung */
.footer-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.footer-disclaimer {
  margin: .10rem 0 0;
  max-width: var(--maxw);
  font-size: .65rem;
  line-height: 1.25;
  opacity: .95;
}

/* Auf sehr kleinen Screens: bessere Lesbarkeit */
@media (max-width: 600px) {
  .footer-disclaimer { font-size: .8rem; }
}


/* Legal page */
.legal { max-width: 800px; margin: 1.25rem auto 2rem; }
.legal h1 { margin: 0 0 .6rem; }
.legal h2 { margin: 1.2rem 0 .4rem; font-size: 1.05rem; }
.legal p, .legal address { color: #1f2937; }
.legal address { font-style: normal; line-height: 1.5; }

/* Footer links */
.footer-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: #fff; text-decoration: underline; opacity: .95; }
.footer-links a:hover { opacity: 1; }


/* Quiz page title */
h1.quiz {
  text-align: left;
  margin: 1.2rem 0 .6rem;       /* statt 5rem */
  line-height: 1.15;
  letter-spacing: .01em;
  font-size: clamp(24px, 3.2vw, 34px);
}

/* How-to panel */
.howto { margin-bottom: 1.2rem; }
.howto h3 { margin: 0 0 .2rem; }
.howto ol { margin: 0 0 .2rem; padding-left: 1.2rem; }
.howto .tip { margin: 0; color: #334155; font-style: italic;  }

/* Chart help / legend */
.chart-help { margin: .5rem 0 1rem; color: #334155; }
.chart-help ul { margin: .25rem 0 .4rem; padding-left: 1.1rem; }
.legend { display:inline-block; width:14px; height:10px; margin-right:.35rem; vertical-align:middle; border-radius:2px; }
.legend.target { width:22px; height:2px; border-bottom:2px dashed #047857; background: transparent; }
.legend.dot { width:10px; height:10px; border-radius:50%; background:#0b1020; }
.legend.band { background: rgba(71,86,105,.35); }

/* Micro copy */
.micro { font-size: .85rem; color:#64748b; }

/* Inputs small hint line spacing */
.qa-form label { display: grid; gap: .25rem; }


/* Frage-Panel konsistent zum Rest */
.qa-panel { margin: 0 0 1rem; }

/* Panel-Header: Titel + Subtext */
.panel-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem; margin: 0 0 .5rem;
}
.panel-header h3 { margin: 0; }
.panel-header .sub { font-size: .9rem; color: #475569; }

/* Eingaben im Panel etwas präsenter */
.qa-form .grid2 { margin-top: .8rem; }
.qa-form input {
  width: 100%;
  height: 42px;
  padding: .5rem .6rem;
  border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff;
}
.qa-form input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148,163,184,.25);
}

/* Aktionen: Check + Reset nebeneinander, bündig links */
.qa-actions {
  display: flex; gap: .5rem; margin-top: .6rem;
}
button.primary { background: #0b1020; color: #fff; }
button.secondary { background: #e2e8f0; color: #0b1020; }


.confidence-alert.ok {
  background-color: #ecfdf5; /* soft green */
  color: #047857;
}


/* Contact block */
.contact .contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 1rem;
}
@media (max-width: 800px) {
  .contact .contact-grid { grid-template-columns: 1fr; }
}

.contact-copy h3 { margin: 0 0 .35rem; }
.contact-copy p { margin: .25rem 0; }
.contact .micro { font-size: .85rem; color: #64748b; }

.contact-form { display: grid; gap: .6rem; }
.contact-form label { display: grid; gap: .3rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148,163,184,.25);
}

/* Flash message */
.flash {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #bbf7d0;
  padding: .6rem .8rem;
  border-radius: 10px;
  margin: .75rem 0 1rem;
}


.helptext {
  margin: .0rem 0 .0rem;
  color: #475569;
  font-size: .95rem;
}

.help-inline { color:#64748b; font-size:.9rem; margin-left:.25rem; }
