:root {
  --olivgruen: #6B8230;
  --beige: #EDE6DB;
  --beige-gruen: #B2C1A1;
  --taupe: #CAB8A0;
  --text: #333333;
  --weiss: #FFFFFF;
}

* { box-sizing: border-box; }

/* Stellt sicher, dass [hidden] IMMER greift, auch wenn ein Element gleichzeitig
   eine Klasse mit eigenem "display" hat (z.B. .cta-button auf einem Button,
   der per JS ein- und ausgeblendet wird). */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background-color: var(--beige);
  color: var(--text);
  line-height: 1.65;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

body.dashboard .page,
body.login .page,
body.sc-page .page,
body.lp-page .page,
body.quiz-page .page {
  max-width: 960px;
}

.accent { color: var(--olivgruen); }

/* ---------- Landingpage: Kostenloses Beratungsgespraech ---------- */

.lp-hero {
  text-align: center;
  max-width: 720px;
  margin: 8px auto 40px;
}

.lp-eyebrow {
  color: var(--olivgruen);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.lp-headline {
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--text);
}

.lp-sub {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.lp-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin: 48px 0 32px;
}

.lp-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 16px;
  padding: 32px;
}

.lp-left-intro {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 20px;
}

.lp-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lp-bullets li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bullet-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--olivgruen);
  color: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.lp-right { display: flex; }

.lp-photo-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.lp-photo-caption {
  text-align: center;
  margin: 10px 0 0;
}

.lp-photo-caption strong {
  color: var(--olivgruen);
  font-size: 1.05rem;
}

.lp-photo-caption span {
  font-size: 0.9rem;
  opacity: 0.75;
}

.lp-photo-placeholder {
  flex: 1;
  background: var(--beige-gruen);
  border: 2px dashed var(--olivgruen);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  font-weight: 600;
  min-height: 320px;
}

.lp-photo-placeholder small { font-weight: 400; opacity: 0.8; margin-top: 6px; }

.lp-photo {
  flex: 1;
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.lp-cta-wrap {
  text-align: center;
  margin: 32px 0 8px;
}

.cta-button-large {
  font-size: 1.15rem;
  padding: 18px 36px;
}

.lp-cta-sub {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .lp-split { grid-template-columns: 1fr; }
  .lp-headline { font-size: 1.6rem; }
  .lp-left { padding: 24px; }
}

/* ---------- Bewerbungsformular ---------- */

.form-wrap { max-width: 600px; margin: 0 auto; }

.form-progress {
  height: 6px;
  background: var(--beige-gruen);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.form-progress-bar {
  height: 100%;
  background: var(--olivgruen);
  width: 16.6%;
  transition: width 0.2s ease;
}

.form-step-label {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0 0 28px;
}

.form-step h2 { font-size: 1.3rem; margin: 0 0 20px; }

.form-hint { font-size: 0.85rem; opacity: 0.7; margin: -12px 0 16px; }

.form-wrap label:not(.checkbox-option):not(.radio-option) {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
}

.form-wrap input[type="text"],
.form-wrap input[type="email"],
.form-wrap input[type="tel"],
.form-wrap select,
.form-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--taupe);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--weiss);
}

.checkbox-option, .radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 500;
}

.privacy-box {
  background: var(--beige);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.88rem;
  margin: 8px 0 20px;
}

.privacy-box p { margin: 0 0 8px; }
.privacy-box p:last-child { margin-bottom: 0; }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 0;
}

.form-error {
  color: #a33;
  text-align: center;
  margin-top: 20px;
}

/* ---------- Danke-Seite ---------- */

.danke-wrap {
  text-align: center;
  max-width: 560px;
  margin: 60px auto;
}

.danke-wrap h1 { color: var(--olivgruen); }
.danke-wrap p { font-size: 1.15rem; }

h1, h2, h3 {
  color: var(--olivgruen);
  font-weight: 700;
}

h1 { font-size: 2rem; margin-bottom: 0.6em; }
h2 { font-size: 1.2rem; margin-top: 1.8em; margin-bottom: 0.4em; }
h3 { font-size: 1.05rem; margin: 0 0 0.4em; color: var(--text); }

p { margin: 0 0 1em; }

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

ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

.site-footer {
  background-color: var(--olivgruen);
  color: var(--weiss);
  margin-top: 48px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--beige);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--weiss); }
.footer-links a:hover { color: var(--beige-gruen); }

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0;
}

/* ---------- Login ---------- */

body.login .page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.login-box {
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 14px;
  padding: 40px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.login-sub {
  color: var(--text);
  opacity: 0.75;
  margin-bottom: 1.5em;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.login-box label {
  font-weight: 600;
  font-size: 0.9rem;
}

.login-box input[type="password"] {
  padding: 10px 12px;
  border: 1px solid var(--taupe);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.login-box button,
.month-filter button {
  background: var(--olivgruen);
  color: var(--weiss);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.login-box button:hover,
.month-filter button:hover {
  opacity: 0.9;
}

/* ---------- Selbstcheck-Landingpage (Entwurf) ---------- */

.sc-topbar {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--beige-gruen);
  margin-bottom: 24px;
}

.draft-banner {
  background: #FFF3CD;
  border: 1px solid #E6C570;
  color: #6b5a20;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.sc-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.sc-eyebrow {
  display: inline-block;
  background: var(--beige-gruen);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sc-hero h1 { margin-top: 0; }

.sc-hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8em;
}

.sc-photo-placeholder {
  background: var(--beige-gruen);
  border: 2px dashed var(--olivgruen);
  border-radius: 16px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  padding: 20px;
}

.cta-button {
  display: inline-block;
  background: var(--olivgruen);
  color: var(--weiss) !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none !important;
  margin-top: 10px;
}

.video-placeholder {
  background: var(--weiss);
  border: 2px dashed var(--taupe);
  border-radius: 14px;
  padding: 32px 20px;
  text-align: center;
  margin: 32px 0;
}

.video-placeholder .play-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--olivgruen);
  color: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.2rem;
}

.sc-section-label {
  text-align: center;
  font-weight: 700;
  color: var(--olivgruen);
  margin-bottom: 8px;
}

.question-preview {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 24px 0 8px;
}

.question-block {
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 0 18px rgba(107, 130, 48, 0.22);
}

.question-block-open {
  box-shadow: 0 0 18px rgba(203, 168, 90, 0.28);
}

.question-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--olivgruen);
  margin-bottom: 8px;
}

.question-tag-open {
  color: #8a6d1f;
  opacity: 0.85;
}

.question-text {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.question-hint {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0 0 14px;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.option-pill {
  background: var(--beige);
  border: 1px solid var(--taupe);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.option-pill:hover {
  background: var(--beige-gruen);
  border-color: var(--olivgruen);
  transform: translateY(-1px);
}

.option-pill-pending {
  border-style: dashed;
  font-style: italic;
  opacity: 0.85;
}

.sc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 40px 0;
}

.sc-card {
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 12px;
  padding: 20px;
}

.sc-card h3 { color: var(--olivgruen); margin-top: 0; }

.sc-cta-center { text-align: center; margin: 36px 0; }

@media (max-width: 720px) {
  .sc-hero { grid-template-columns: 1fr; }
  .sc-photo-placeholder { aspect-ratio: 16/10; }
}

/* Rechtsseiten (Impressum, Datenschutz, AGB): dunkles Marken-Grau statt
   Olivgruen fuer Ueberschriften und Links, das gibt mehr Lesekontrast. */

body.legal h1,
body.legal h2,
body.legal h3 {
  color: var(--text);
}

body.legal a {
  color: var(--text);
  text-decoration: underline;
}

body.legal a:hover {
  opacity: 0.75;
}

.login-error {
  color: #a33;
  margin-top: 1em;
  font-size: 0.9rem;
}

/* ---------- Dashboard ---------- */

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--beige-gruen);
  margin-bottom: 8px;
}

.dash-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--olivgruen);
}

.dash-logout {
  font-size: 0.9rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.75;
  margin: 12px 0 0;
}

.month-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 10px;
  padding: 14px 16px;
}

.month-filter label { font-weight: 600; font-size: 0.9rem; }

.month-filter input[type="month"] {
  padding: 7px 10px;
  border: 1px solid var(--taupe);
  border-radius: 8px;
  font-family: inherit;
}

.filter-reset { font-size: 0.85rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.lead-card {
  position: relative;
  display: block;
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 14px;
  padding: 24px;
  color: var(--text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.lead-card:hover {
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(107, 130, 48, 0.18);
  transform: translateY(-2px);
}

.lead-card h3 { color: var(--olivgruen); }

.lead-card-total {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.lead-card-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 4px;
}

.badge-new {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--olivgruen);
  color: var(--weiss);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.funnel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text);
  flex-wrap: wrap;
}

.funnel-row:hover {
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(107, 130, 48, 0.15);
}

.funnel-row-name { font-weight: 700; color: var(--olivgruen); }

.funnel-row-meta {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 2px;
}

.funnel-url { color: var(--text); }
.funnel-url-missing { font-style: italic; }

.funnel-row-numbers {
  text-align: right;
  position: relative;
  min-width: 90px;
}

.funnel-row-total { font-size: 1.6rem; font-weight: 700; }

.funnel-row-numbers .badge-new {
  position: static;
  display: inline-block;
  margin-top: 6px;
}

.leads-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-row {
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 10px;
  padding: 14px 18px;
}

.lead-row-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lead-row-name { font-weight: 700; }
.lead-row-email { color: var(--text); opacity: 0.85; }

.lead-row-date {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 4px;
}

.lead-fields {
  margin-top: 10px;
  background: var(--beige);
  border-radius: 8px;
  padding: 4px 14px;
}

.lead-field {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--taupe);
  font-size: 0.9rem;
  word-break: break-word;
}

.lead-field:last-child {
  border-bottom: none;
}

.lead-field-label {
  flex: 0 0 150px;
  font-weight: 600;
  opacity: 0.85;
}

.lead-field-value {
  flex: 1;
}

.lead-field-value ul {
  margin: 0;
  padding-left: 18px;
}

.lead-field-value li {
  margin-bottom: 2px;
}

.lead-ampel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-ampel-list .ampel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .lead-field {
    flex-direction: column;
    gap: 2px;
  }
  .lead-field-label {
    flex: none;
  }
}

.empty-state {
  background: var(--weiss);
  border: 1px dashed var(--taupe);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  opacity: 0.8;
}

/* ---------- Wissensquiz ---------- */

.quiz-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.quiz-title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 16px;
}

#quiz-intro { text-align: center; }
#quiz-intro .lp-eyebrow { text-align: center; }
#quiz-intro .lp-sub { max-width: 560px; margin: 0 auto 28px; }

.quiz-card {
  background: var(--weiss);
  border: 1px solid var(--taupe);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 0 18px rgba(107, 130, 48, 0.15);
}

.quiz-card h2 {
  margin: 0 0 20px;
  font-size: 1.2rem;
  color: var(--text);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-btn {
  text-align: left;
  background: var(--beige);
  border: 1px solid var(--taupe);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quiz-option-btn:hover:not(:disabled) {
  background: var(--beige-gruen);
  border-color: var(--olivgruen);
}

.quiz-option-btn:disabled { cursor: default; }

.quiz-option-correct {
  background: var(--beige-gruen) !important;
  border-color: var(--olivgruen) !important;
  font-weight: 700;
}

.quiz-option-incorrect {
  border-color: #a33 !important;
  opacity: 0.7;
}

.quiz-option-selected {
  background: var(--beige-gruen) !important;
  border-color: var(--olivgruen) !important;
  font-weight: 700;
}

.quiz-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.quiz-feedback-correct {
  background: var(--beige-gruen);
  color: var(--text);
}

.quiz-feedback-incorrect {
  background: var(--beige);
  border: 1px solid #a33;
  color: var(--text);
}

.quiz-nav {
  margin-top: 22px;
  text-align: right;
}

.quiz-result-card {
  text-align: center;
  margin-bottom: 24px;
}

.quiz-score-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quiz-score-badge {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--olivgruen);
}

.quiz-tier {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 4px 0 18px;
}

.quiz-teaser {
  max-width: 460px;
  margin: 0 auto;
  opacity: 0.85;
}

.quiz-form-nav-center {
  justify-content: center;
}

/* ---------- Selbstcheck ---------- */

.sc-statement {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--taupe);
}

.sc-statement:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sc-statement-text {
  font-weight: 600;
  margin: 0 0 12px;
}

.sc-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-slider {
  flex: 1;
  accent-color: var(--olivgruen);
  height: 6px;
}

.sc-slider-hint {
  font-size: 0.78rem;
  opacity: 0.7;
  flex-shrink: 0;
  max-width: 90px;
}

.sc-slider-hint:last-child { text-align: right; }

.sc-slider-value {
  text-align: center;
  font-weight: 700;
  color: var(--olivgruen);
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.ampel-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 18px auto 0;
  text-align: left;
}

.ampel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

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

.ampel-rot { background: #a33; }
.ampel-gelb { background: #E6C570; }
.ampel-gruen { background: var(--olivgruen); }

@media (max-width: 600px) {
  .sc-slider-hint { max-width: 60px; font-size: 0.72rem; }
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .page { padding: 28px 16px 48px; }
  .cards-grid { grid-template-columns: 1fr; }
  .dash-brand { font-size: 1.1rem; }
  .lead-card-total { font-size: 2rem; }
  .funnel-row { flex-direction: column; align-items: flex-start; }
  .funnel-row-numbers { text-align: left; }
  .quiz-title { font-size: 1.5rem; }
  .quiz-card { padding: 20px; }
}
