/* ── CSS-Variablen ───────────────────────────────────────────────────────── */
:root {
  --teal:       #1a4a4a;
  --teal-dark:  #0d3b3b;
  --teal-light: #2a6060;
  --orange:     #f5a623;
  --orange-d:   #e8952a;
  --grau-hell:  #f5f5f5;
  --grau:       #e5e5e5;
  --text:       #1e2935;
  --text-m:     #4a5568;
  --weiss:      #ffffff;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --transition: .2s ease;
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--weiss);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--weiss);
  border-bottom: 1px solid var(--grau);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--teal);
  line-height: 1.3;
}
.logo span {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-m);
  letter-spacing: 0;
}
.header-phone a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--orange);
  color: var(--weiss);
  font-weight: 700;
  font-size: .88rem;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.header-phone a:hover {
  background: var(--orange-d);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Fortschrittsleiste ──────────────────────────────────────────────────── */
.progress-bar {
  background: var(--grau);
  height: 4px;
}
.progress-fill {
  height: 100%;
  background: var(--orange);
  transition: width .5s ease;
}

/* ── Banner (ready=1) ────────────────────────────────────────────────────── */
.ready-banner {
  background: linear-gradient(135deg, #1e7e34, #28a745);
  color: var(--weiss);
  padding: 1.2rem 1.5rem;
  text-align: center;
}
.ready-banner p { margin-bottom: .75rem; font-weight: 500; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #f0f7f7 0%, #e8f4f0 100%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid #ddeee8;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.25;
  margin-bottom: .6rem;
}
.hero-title .accent {
  color: var(--orange);
  display: block;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-m);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Layout / Container ──────────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-m);
  margin-bottom: 2rem;
}

/* ── Karte ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--weiss);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.card-title .icon {
  width: 28px;
  height: 28px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--weiss);
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Video-Platzhalter ───────────────────────────────────────────────────── */
.video-wrap {
  background: var(--weiss);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 2px dashed var(--grau);
  box-shadow: var(--shadow);
}
.video-play-icon {
  width: 72px;
  height: 72px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(245,166,35,.35);
}
.video-play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-label {
  font-size: .9rem;
  color: var(--text-m);
  font-weight: 500;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── FAQ-Akkordeon ───────────────────────────────────────────────────────── */
.faq-category {
  margin-bottom: 2rem;
}
.faq-category-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: .75rem;
  padding-left: .75rem;
  border-left: 3px solid var(--orange);
}
.faq-item {
  background: var(--weiss);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--grau-hell); }
.faq-question.open { color: var(--teal); }
.faq-arrow {
  width: 22px;
  height: 22px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .6rem;
  flex-shrink: 0;
  transition: transform var(--transition);
  font-style: normal;
}
.faq-question.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.2rem 1rem;
  color: var(--text-m);
  font-size: .93rem;
  line-height: 1.75;
  border-top: 1px solid var(--grau);
  padding-top: .85rem;
}
.faq-answer.show { display: block; }

/* ── Chatbot-Widget ──────────────────────────────────────────────────────── */
#chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}
#chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--weiss);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(245,166,35,.45);
  transition: transform var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
#chat-toggle:hover { background: var(--orange-d); transform: scale(1.07); }
#chat-box {
  display: none;
  flex-direction: column;
  width: 340px;
  height: 460px;
  background: var(--weiss);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: .75rem;
  border: 1px solid #eee;
}
#chat-box.open { display: flex; }
.chat-header {
  background: var(--teal);
  color: var(--weiss);
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.chat-header .dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.chat-header .close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.chat-header .close-btn:hover { color: #fff; }
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: #fafafa;
}
.msg {
  max-width: 88%;
  padding: .65rem .9rem;
  border-radius: var(--radius);
  font-size: .88rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.msg.bot {
  background: var(--weiss);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  border: 1px solid #eee;
}
.msg.user {
  background: var(--orange);
  color: var(--weiss);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.msg.typing { color: var(--text-m); font-style: italic; }
.chat-input-area {
  padding: .75rem;
  border-top: 1px solid var(--grau);
  display: flex;
  gap: .5rem;
  background: var(--weiss);
}
#chat-input {
  flex: 1;
  border: 1.5px solid var(--grau);
  border-radius: 50px;
  padding: .55rem 1rem;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
#chat-input:focus { border-color: var(--teal); }
#chat-send {
  background: var(--orange);
  color: var(--weiss);
  border: none;
  border-radius: 50px;
  padding: .55rem 1rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  transition: background var(--transition);
}
#chat-send:hover { background: var(--orange-d); }

/* ── CTA-Bereich ─────────────────────────────────────────────────────────── */
.cta-area {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: var(--grau-hell);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--grau);
}
.cta-area p {
  color: var(--text-m);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.btn-teal-full {
  display: block;
  width: 100%;
  background: var(--teal);
  color: var(--weiss);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.1rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(26,74,74,.25);
}
.btn-teal-full:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,74,74,.35);
  text-decoration: none;
  color: var(--weiss);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--weiss);
  box-shadow: 0 3px 12px rgba(245,166,35,.3);
}
.btn-primary:hover {
  background: var(--orange-d);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(245,166,35,.4);
  text-decoration: none;
  color: var(--weiss);
}
.btn-secondary {
  background: var(--weiss);
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: var(--weiss);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-full { width: 100%; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn-cta {
  background: var(--teal);
  color: var(--weiss);
  font-size: 1.1rem;
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(26,74,74,.25);
}
.btn-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,74,74,.35);
  text-decoration: none;
  color: var(--weiss);
}

/* ── Formular ────────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .4rem;
}
.form-group label .req { color: var(--orange); margin-left: .2rem; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--grau);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  font-size: .95rem;
  color: var(--text);
  background: var(--weiss);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,74,74,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.checkbox-group { display: flex; flex-direction: column; gap: .6rem; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  cursor: pointer;
  font-size: .93rem;
}
.checkbox-item input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}
.form-hint {
  font-size: .8rem;
  color: var(--text-m);
  margin-top: .3rem;
}

/* ── Ladeanimation ───────────────────────────────────────────────────────── */
.loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,59,59,.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--weiss);
  text-align: center;
}
.loader-overlay.show { display: flex; }
.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid rgba(255,255,255,.2);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 1.1rem; font-weight: 600; }
.loader-sub { font-size: .9rem; opacity: .8; }

/* ── Auswertungs-Tabelle ─────────────────────────────────────────────────── */
.kalk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.kalk-table th {
  background: var(--teal);
  color: var(--weiss);
  padding: .7rem 1rem;
  text-align: left;
  font-weight: 600;
}
.kalk-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--grau);
}
.kalk-table tr:last-child td { border-bottom: none; }
.kalk-table tr:nth-child(even) td { background: var(--grau-hell); }
.kalk-table tr.highlight td {
  background: #fff8e8;
  font-weight: 700;
  color: var(--teal);
}
.kalk-table .best { color: #1e7e34; font-weight: 700; }
.kalk-table .worst { color: #c0392b; }

.vergleich-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.vergleich-box {
  background: var(--grau-hell);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.vergleich-box .label { font-size: .8rem; color: var(--text-m); margin-bottom: .3rem; }
.vergleich-box .value { font-size: 1.4rem; font-weight: 700; color: var(--teal); }
.vergleich-box.mkb .value { color: var(--orange); }
.vergleich-box.diff .value { color: #1e7e34; }

.stundenlohn-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: var(--radius-lg);
  color: var(--weiss);
  margin-bottom: 1.5rem;
}
.stundenlohn-box .big {
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stundenlohn-box .label { font-size: .9rem; opacity: .85; }

.aufschluesselung {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.aufschluesselung .tag {
  background: var(--grau-hell);
  border: 1px solid var(--grau);
  border-radius: 20px;
  padding: .3rem .8rem;
  font-size: .82rem;
  color: var(--text-m);
}
.aufschluesselung .tag.positive { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }

.hinweis-box {
  background: #e8f4f0;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--teal);
  font-size: .93rem;
}

/* ── Button-Gruppe ───────────────────────────────────────────────────────── */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ── Danke-Seite ─────────────────────────────────────────────────────────── */
.danke-hero {
  text-align: center;
  padding: 4rem 2rem;
}
.danke-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--orange);
  color: var(--weiss);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-left: .4rem;
}

/* ── Telefon-CTA ─────────────────────────────────────────────────────────── */
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 1.1rem;
}
.phone-cta:hover { color: var(--orange); text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: .82rem;
  margin-top: 4rem;
}
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--orange); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { font-size: 1.6rem; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .vergleich-grid { grid-template-columns: 1fr; }
  #chat-box { width: calc(100vw - 3rem); }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
  .stundenlohn-box { flex-direction: column; text-align: center; }
  .section-title { font-size: 1.35rem; }
  .container { padding: 1.5rem 1rem; }
  .header-phone a { font-size: .78rem; padding: .45rem .85rem; }
  .logo { font-size: .9rem; }
}
