/* =========================================
   Mieter-Lotse – Premium Info-Seiten Design (2025)
   ========================================= */

:root {
  --primary: #0070f3;
  --primary-dark: #0059c9;
  --primary-light: #e6f0ff;
  --accent: #1a5276;
  --text: #2f2f2f;
  --bg: #f8f9fb;
  --white: #fff;
  --border: #e5e7eb;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --transition: all 0.25s ease;
}

/* --- Grundlayout & Schrift --- */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.8;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* --- Container --- */
.page-container {
  max-width: 860px;
  margin: 3.5rem auto;
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.page-container:hover {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.1);
}

/* --- Header --- */
.site-header {
  background-color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-logo {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--primary);
}

/* --- Überschriften --- */
h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(90deg, #004e92, #0070f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.7rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  color: #163b64;
  border-left: 4px solid var(--primary);
  padding-left: 0.8rem;
  position: relative;
}

h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  margin-bottom: 0.6rem;
  border-radius: 2px;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  color: #2f4f4f;
}

/* --- Textstruktur --- */
p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

ul {
  padding-left: 1.3rem;
}

ul li {
  margin-bottom: 0.8rem;
  padding-left: 0.2rem;
}

ul li::marker {
  color: var(--primary);
}

strong {
  color: #0d6657;
}

/* --- Hinweisboxen --- */
.highlight-box {
  background-color: var(--primary-light);
  border-left: 6px solid var(--primary);
  padding: 1.3rem 1.6rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  font-size: 1.05rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.warning-box {
  background-color: #fff9e6;
  border-left: 6px solid #f0ad4e;
  padding: 1.3rem 1.6rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  font-size: 0.96rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.warning-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

/* --- Buttons --- */
.button-container {
  text-align: center;
  margin: 2.5rem 0;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 112, 243, 0.25);
  isolation: isolate;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #0070f3, #00c6ff);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.button:hover::before {
  opacity: 1;
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 112, 243, 0.3);
}

/* --- FAQ --- */
.faq-section {
  margin-top: 2.5rem;
}

.faq-section h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--accent);
  position: relative;
}

.faq-section p {
  margin-top: 0.3rem;
  color: #444;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 3rem 0 2rem 0;
  margin-top: 4rem;
  font-size: 0.95rem;
  color: #555;
  border-top: 1px solid var(--border);
  background: #fdfdfd;
}

footer p {
  margin: 0.4rem 0;
}

footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Links allgemein --- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .page-container {
    margin: 1.2rem;
    padding: 1.8rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .button {
    padding: 0.8rem 1.5rem;
  }
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e6ebf1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
  padding: 1.2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* dezente Glanzlinie am oberen Rand */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #004e92, #0070f3);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* Schriftzug / Logo */
.site-logo {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a5276;
  text-decoration: none;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #004e92, #0070f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.25s ease;
}

/* Hover-Effekt: heller Farbverlauf + leichtes Anheben */
.site-logo:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #0054a6, #339af0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 6px rgba(0, 112, 243, 0.15);
}

/* Optional: leichtes Unterstatement beim Scrollen (keine JS nötig) */
@supports (position: sticky) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
  }
}

/* Mobile Anpassung */
@media (max-width: 700px) {
  .site-header {
    padding: 1.2rem 1rem;
  }
  .site-logo {
    font-size: 1.7rem;
  }
}

/* Pflegegrad-Rechner*/

.pflegegrad-form {
  margin-top: 2rem;
}

.pflegegrad-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin-bottom: 1.8rem;
  background: #fafbff;
}

.pflegegrad-fieldset legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: #163b64;
}

.pflegegrad-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.pflegegrad-label select {
  display: block;
  margin-top: 0.3rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  width: 100%;
  max-width: 360px;
}

.pflegegrad-label select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.15);
}

/* Ergebniskarte / Tabelle */
.pflegegrad-result-card {
  margin-top: 1.8rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow);
}

.pflegegrad-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.3rem 0;
  font-size: 0.95rem;
}

.pflegegrad-tabelle th,
.pflegegrad-tabelle td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--border);
}

.pflegegrad-tabelle th {
  text-align: left;
  font-weight: 600;
  color: #163b64;
}

/* Sekundärer Button */
.button-secondary {
  background: #eef1f7;
  color: var(--accent) !important;
  box-shadow: none;
  margin-left: 0.6rem;
}

.button-secondary:hover {
  background: #dde3f0;
}

/* Hinweistext im Ergebnis */
#ergebnis .hinweis {
  font-size: 0.9rem;
  color: #666;
}


/* --- Pflegegrad-Wizard --- */
.pflegegrad-fieldset {
  display: none; /* standardmäßig ausblenden */
}

.pflegegrad-fieldset.active-step {
  display: block; /* nur aktueller Schritt sichtbar */
}

.wizard-progress {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.wizard-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.wizard-buttons .button-secondary {
  margin-left: 0;
}

.pflegegrad-label input[type="number"] {
  max-width: 260px;
}

/* Wizard nur, wenn das Formular wizard-enabled hat */
.pflegegrad-form.wizard-enabled .pflegegrad-fieldset { display: none; }
.pflegegrad-form.wizard-enabled .pflegegrad-fieldset.active-step { display: block; }

/* Alle anderen Formulare ohne Wizard sind immer sichtbar */
.pflegegrad-form:not(.wizard-enabled) .pflegegrad-fieldset { display: block; }

.pflegegrad-label input[type="number"] { max-width: 260px; }

/*CLERION DESIGN*/

.promo-teaser {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background-color: #eef7ff;
      color: #1a5276;
      border-radius: 12px;
      padding: 20px 16px;
      margin: 24px 0;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }
    .promo-teaser h2 {
      font-size: 1.6rem;
      margin: 0 0 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .promo-teaser h2 span.icon {
      font-size: 1.8rem;
    }
    .promo-teaser p {
      font-size: 1rem;
      margin: 0 0 16px;
      line-height: 1.5;
    }
    .promo-teaser .btn {
      display: inline-block;
      text-decoration: none;
      border-radius: 8px;
      padding: 10px 16px;
      font-weight: 600;
      margin: 4px 6px;
      transition: background 0.2s, color 0.2s;
      font-size: 0.95rem;
    }
    .promo-teaser .btn-primary {
      background-color: #22c55e;
      color: #052e16;
    }
    .promo-teaser .btn-primary:hover {
      background-color: #16a34a;
    }
    .promo-teaser .btn-secondary {
      background-color: #1a5276;
      color: #eef7ff;
    }
    .promo-teaser .btn-secondary:hover {
      background-color: #154360;
    }

    /* Kostenlose Hilfen: hellere Outline-Buttons */
    .promo-teaser .free-help {
      margin-top: 20px;
      padding: 14px 12px;
      background-color: #fff;
      border-radius: 10px;
      border: 1px solid #cbd5e1;
      color: #1a5276;
      font-size: 0.95rem;
    }
    .promo-teaser .free-help p {
      margin: 0 0 10px;
    }
    .promo-teaser .free-help .btn-outline {
      background-color: transparent;
      color: #1a5276;
      border: 1px solid #1a5276;
    }
    .promo-teaser .free-help .btn-outline:hover {
      background-color: #1a5276;
      color: #eef7ff;
    }

    @media (max-width:600px){
      .promo-teaser h2 { font-size: 1.4rem; }
      .promo-teaser p { font-size: 0.95rem; }
    }


    .kl-highlight {
  background:#fff9e6;
  border-left:4px solid #ff9800;
  padding:12px 14px;
  margin:14px 0;
  border-radius:4px;
  color:#222;
}
.kl-author-box { display:flex; gap:8px; align-items:center; font-size:0.95rem; }
.kl-author-box .kl-sep { color:#aaa; margin:0 6px; }
.kl-sources-box h3 { margin:0 0 6px; font-size:1rem; }
.kl-sources-box ul { margin:6px 0 0 18px; padding:0; }
.kl-sources-box li { margin:6px 0; }

.kl-checklist { background:#fbfbfb; border:1px solid #eee; padding:12px; border-radius:8px; }
.kl-checklist ul { list-style:none; padding:0; margin:0; }
.kl-checklist li { margin:8px 0; font-size:0.97rem; }
.kl-checklist input[type="checkbox"]{ transform:scale(1.05); margin-right:8px; }

.kl-checklist-actions { margin-top:10px; display:flex; gap:8px; align-items:center; }
.kl-btn{ border:1px solid #ccc; background:#fff; color:#222; padding:6px 10px; border-radius:6px; cursor:pointer; font-size:0.95rem; }
.kl-btn:active{ transform:translateY(1px); }

@media print {
  .kl-checklist-actions, .kl-checklist input[type="checkbox"] { display:none; }
  .kl-highlight { page-break-inside: avoid; }
}