: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;
}


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;
}


.page-container {
 max-width: 1000px;
  width: 95% !important;
  margin: 0 auto !important;
  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);
}


.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);
}


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;
 
  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;
}


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: black;
}


.highlight-box {
  background-color: var(--primary-light);
  
  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;
  
  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);
}


.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-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 {
  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;
}


a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}


.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; 
}

table th, table td {
  padding: 0.8rem;
  border: 1px solid #e0e6ed;
  text-align: left;
  vertical-align: top;
}

table th {
  background-color: #f5f8fb;
  font-weight: 600;
  color: #1a5276;
}


h1, h2, h3, p, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}



@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;
}


.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;
}


.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;
}


.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);
}


@supports (position: sticky) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
  }
}


@media (max-width: 700px) {
  .site-header {
    padding: 1.2rem 1rem;
  }
  .site-logo {
    font-size: 1.7rem;
  }
}



.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);
}


.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;
}


.button-secondary {
  background: #eef1f7;
  color: var(--accent) !important;
  box-shadow: none;
  margin-left: 0.6rem;
}

.button-secondary:hover {
  background: #dde3f0;
}


#ergebnis .hinweis {
  font-size: 0.9rem;
  color: #666;
}



.pflegegrad-fieldset {
  display: none; 
}

.pflegegrad-fieldset.active-step {
  display: block; 
}

.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;
}


.pflegegrad-form.wizard-enabled .pflegegrad-fieldset { display: none; }
.pflegegrad-form.wizard-enabled .pflegegrad-fieldset.active-step { display: block; }


.pflegegrad-form:not(.wizard-enabled) .pflegegrad-fieldset { display: block; }

.pflegegrad-label input[type="number"] { max-width: 260px; }




.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;
    }

    
    .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-sources-box {
  background-color: var(--primary-light);
  
  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;
}

.kl-sources-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}


.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; }
}

.kl-fallbeispiele { margin:20px 0; padding:12px; border-radius:6px; background:#f6fbff; border:1px solid #e0eefb; }
.kl-fallbeispiele h2 { margin-top:0; }
.kl-fall-intro { color:#334; margin-bottom:10px; }
.kl-fall { background:#fff; border:1px solid #e9f2fb; padding:12px; border-radius:6px; margin-bottom:12px; }
.kl-fall h3 { margin:0 0 6px 0; font-size:1rem; }
.kl-fall p { margin:6px 0; color:#222; font-size:0.95rem; }
.kl-fall-note { font-size:0.9rem; color:#555; margin-top:8px; }


.highlight-box.pruefdatum-box {
  font-size: 0.75rem;        
  padding: 0.4rem 0.6rem;    
  margin: 0.5rem 0;          
  max-width: fit-content;   
}

.highlight-box.pruefdatum-box p {
  margin: 0;
  line-height: 1.3;
}


.category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #eef6ff, #e3f2fd);
    color: #1565c0;

    padding: 4px 10px;
    border-radius: 999px;

    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.3px;

    text-decoration: none;

    margin: 8px auto 18px auto;
    display: flex;
    width: fit-content;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid rgba(25,118,210,0.12);

    transition: all 0.2s ease;
}

.category-badge:hover {
    background: linear-gradient(135deg, #e3f2fd, #d6ecff);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.category-badge .icon {
    margin-right: 5px;
    font-size: 0.95em;
}

.button.jump-button {
  display: block !important;          
  width: fit-content;
  max-width: 90%;

  margin: 20px auto !important;      
  padding: 12px 20px;

  background-color: #4da3ff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-align: center;

  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}


@media (hover: hover) {
  .button.jump-button:hover {
    background-color: #3390ff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  }
}


.button.jump-button:active {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}



@media (max-width: 600px) {
  .button.jump-button {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;   

    font-size: 15px;
    padding: 14px;
  }
}
details {
  background: #f4f9ff;
  border: 1px solid #d6e9ff;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

details[open] {
  background: #eaf4ff;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #2a6fb5;
  position: relative;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}


summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

details p {
  margin-top: 10px;
  color: #333;
  line-height: 1.5;
}

.highlight-box {
  background: #f4f9ff;
  border: 1px solid #d6e9ff;
  
  border-radius: 10px;
  padding: 20px;
}


.button.button-secondary {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 10px 14px;

  background: #eaf4ff;
  color: #2a6fb5;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;

  border-radius: 6px;
  border: 1px solid #cfe4ff;

  transition: all 0.2s ease;
}

.button.button-secondary:hover {
  background: #d6e9ff;
  color: #1d5c99;
}

.kl-sources-box {
  background: #f4f9ff;
  border: 1px solid #d6e9ff;
  border-radius: 10px;
  padding: 16px 20px;
}

.kl-sources-box ul {
  padding-left: 18px;
  margin: 0;
}

.kl-sources-box li {
  margin-bottom: 10px;
}

.kl-sources-box a {
  color: #2a6fb5;
  text-decoration: none;
  font-weight: 500;
}

.kl-sources-box a:hover {
  text-decoration: underline;
  color: #1d5c99;
}
.info-box.warning {
  
  background: #f4f9ff;
  border-radius: 8px;
}

.info-box,
.highlight-box,
.warning-box {
  font-size: 0.96rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.8rem 0;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.info-box {
  background-color: #eef9ff;
  
}

@media (max-width: 600px) {
  .button.button-secondary {
    display: block;
    width: 100%;
    text-align: center;
  }
}

.usp-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px 0 25px 0;
    font-family: sans-serif;
}

.usp-item {
    display: flex;
    align-items: center;
    background: #f0f7ff; 
    color: #0056b3;      
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #d0e3ff;
}

.usp-item svg {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    fill: #2e7d32; 
}


.usp-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0 25px 0;
}


@media (max-width: 600px) {
    .usp-bar {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 8px;
        padding: 0 10px;
    }

    .usp-item {
        justify-content: center; 
        font-size: 0.75rem;      
        padding: 8px 4px;
        text-align: center;
    }
    
    .usp-item svg {
        width: 14px;
        height: 14px;
    }
}


div[style*="background-color: #f8f9fa"][style*="border-top: 2px solid #e0e0e0"] {
  background-color: #ffffff !important;
  border-top: none !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  max-width: 680px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 28px 32px !important;
}

div[style*="background-color: #f8f9fa"][style*="border-top: 2px solid #e0e0e0"] h3 {
  font-size: 0.75em !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #888 !important;
  margin-bottom: 12px !important;
}

div[style*="background-color: #f8f9fa"][style*="border-top: 2px solid #e0e0e0"] p {
  color: #444 !important;
}

div[style*="background-color: #f8f9fa"][style*="border-top: 2px solid #e0e0e0"] a {
  color: #4da3ff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #4da3ff !important;
  padding-bottom: 1px !important;
}

div[style*="background-color: #f8f9fa"][style*="border-top: 2px solid #e0e0e0"] a:hover {
  color: #3390ff !important;
  border-bottom-color: #3390ff !important;
}

/* =========================================
  Lotse – Design-Erweiterung (Modern Upgrade)
   
   ========================================= */


:root {
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-blue: 0 8px 24px rgba(0, 112, 243, 0.22);
  --shadow-blue-sm: 0 3px 10px rgba(0, 112, 243, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --glass: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.7);
  --primary-glow: rgba(0, 112, 243, 0.12);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}


body {
  background: linear-gradient(155deg, #eef5ff 0%, #f4f7fc 40%, #f8f9fb 100%);
  
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


.page-container {
  background: var(--glass);
  
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.07),
    0 20px 48px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}


.page-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #003d80 0%, #0070f3 50%, #3b9eff 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.page-container:hover {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.09),
    0 24px 56px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  transition: all 0.4s var(--ease-smooth);
}


h1 {
  background: linear-gradient(135deg, #003d80 0%, #0070f3 40%, #3b9eff 70%, #0059c9 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: h1-gradient 8s ease infinite;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

@keyframes h1-gradient {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}


h2 {
  scroll-margin-top: 5rem;
  text-wrap: balance;
  letter-spacing: -0.015em;
}


h2::before {
  display: none;
}

h2::after {
  content: "";
  display: block;
  margin-top: 0.5rem;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(0, 112, 243, 0));
  border-radius: 99px;
}


h3 {
  letter-spacing: -0.01em;
  font-weight: 600;
}


p {
  text-wrap: pretty;
}


:focus-visible {
  outline: 2.5px solid rgba(0, 112, 243, 0.5);
  outline-offset: 3px;
  border-radius: 5px;
  transition: outline-offset 0.15s ease;
}

select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3.5px rgba(0, 112, 243, 0.18) !important;
}


.button {
  border-radius: 10px;
  letter-spacing: 0.01em;
  font-size: 1rem;
  position: relative;
  will-change: transform;
}

.button:hover {
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.985);
  box-shadow: var(--shadow-blue-sm);
  transition: all 0.1s ease;
}


.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
}

.button:hover::after {
  opacity: 1;
  animation: shimmer 0.6s ease forwards;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}


.button.jump-button {
  border-radius: 12px;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #2e8eff, #0070f3);
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.3);
}

.button.jump-button:hover {
  background: linear-gradient(135deg, #3b9eff, #0060d9);
  box-shadow: 0 8px 20px rgba(0, 112, 243, 0.38);
}


.highlight-box {
  background: linear-gradient(135deg, rgba(230, 242, 255, 0.9), rgba(240, 248, 255, 0.95));
  border: 1px solid rgba(0, 112, 243, 0.15);
  
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.highlight-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


.warning-box {
  background: linear-gradient(135deg, #fffdf0, #fff9e3);
  border: 1px solid rgba(240, 173, 78, 0.2);
  
  box-shadow: 0 2px 8px rgba(240, 173, 78, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
}

.warning-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(240, 173, 78, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


details {
  background: linear-gradient(135deg, #f4f9ff, #eef5ff);
  border: 1px solid rgba(100, 160, 255, 0.2);
  border-radius: var(--radius-md);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}

details[open] {
  background: linear-gradient(135deg, #eaf4ff, #e3f0ff);
  box-shadow: 0 4px 18px rgba(0, 100, 220, 0.1);
}

details p {
  animation: detail-fade-in 0.28s var(--ease-smooth);
}

@keyframes detail-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

summary {
  transition: color 0.2s ease;
  padding-right: 1.5rem;
}

summary:hover {
  color: var(--primary);
}


summary::after {
  content: "›";
  font-size: 1.3rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.25s var(--ease-spring);
  top: 50%;
  translate: 0 -50%;
}

details[open] summary::after {
  transform: rotate(270deg);
}


.usp-item {
  background: linear-gradient(135deg, #f0f7ff, #e5f1ff);
  box-shadow: 0 1px 4px rgba(0, 80, 180, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  border: 1px solid rgba(0, 112, 243, 0.12);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.usp-item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 14px rgba(0, 80, 180, 0.14);
}


.category-badge {
  background: linear-gradient(135deg, #eef6ff, #deeeff);
  box-shadow: 0 2px 8px rgba(0, 80, 200, 0.1), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all 0.25s var(--ease-spring);
}

.category-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 80, 200, 0.16);
}


.kl-sources-box {
  background: linear-gradient(135deg, #f4f9ff, #eef5ff);
  border: 1px solid rgba(0, 112, 243, 0.12);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.kl-sources-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


.kl-checklist {
  background: linear-gradient(135deg, #fafbff, #f4f8ff);
  border: 1px solid rgba(0, 80, 200, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.kl-checklist li {
  transition: background 0.15s ease;
  border-radius: 6px;
  padding: 2px 4px;
}

.kl-checklist li:hover {
  background: rgba(0, 112, 243, 0.04);
}


.kl-checklist input[type="checkbox"] {
  accent-color: var(--primary);
  transform: scale(1.2);
}

.kl-btn {
  background: linear-gradient(135deg, #fff, #f4f8ff);
  border: 1px solid rgba(0, 80, 200, 0.15);
  border-radius: var(--radius-sm);
  color: #2a6fb5;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-smooth);
}

.kl-btn:hover {
  background: linear-gradient(135deg, #eef5ff, #e0edff);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kl-btn:active {
  transform: translateY(0);
  box-shadow: none;
}


.pflegegrad-fieldset {
  background: linear-gradient(135deg, #fafbff, #f5f9ff);
  border: 1px solid rgba(0, 80, 200, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.pflegegrad-fieldset:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1), var(--shadow-sm);
}

.pflegegrad-label select,
.pflegegrad-label input {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  color: var(--text);
  appearance: auto;
}

.pflegegrad-label select:hover,
.pflegegrad-label input:hover {
  border-color: rgba(0, 112, 243, 0.4);
}


.pflegegrad-result-card {
  background: linear-gradient(135deg, rgba(230, 242, 255, 0.95), rgba(215, 235, 255, 0.9));
  border: 1px solid rgba(0, 112, 243, 0.2);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  animation: result-appear 0.4s var(--ease-spring);
}

@keyframes result-appear {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


.pflegegrad-tabelle {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pflegegrad-tabelle th {
  background: rgba(0, 112, 243, 0.05);
}

.pflegegrad-tabelle tr:hover td {
  background: rgba(0, 112, 243, 0.03);
}


.promo-teaser {
  background: linear-gradient(135deg, #eef7ff 0%, #e5f2ff 100%);
  border: 1px solid rgba(0, 112, 243, 0.12);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}


.promo-teaser::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.08), transparent 70%);
  pointer-events: none;
}


.kl-fall {
  background: #fff;
  border: 1px solid rgba(0, 80, 200, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s ease;
}

.kl-fall:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.kl-fallbeispiele {
  background: linear-gradient(135deg, #f6fbff, #eef5ff);
  border: 1px solid rgba(0, 112, 243, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}


footer {
  background: linear-gradient(180deg, #fdfdff 0%, #f4f7fb 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}


.site-header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.6) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}


a:not(.button):not(.site-logo):not(.category-badge) {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:not(.button):not(.site-logo):not(.category-badge):hover {
  text-decoration-thickness: 2px;
}




@keyframes page-fade-up {
  from { opacity: 0.4; transform: translateY(16px); }
  to   { opacity: 1;   transform: translateY(0); }
}


::selection {
  background: rgba(0, 112, 243, 0.15);
  color: inherit;
}


::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 80, 200, 0.18);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 80, 200, 0.32);
}



/* =========================================
   Kassen-Lotse – Upgrade v2
   H2 + Header-Verbesserungen
   Ans Ende der style.css hängen (nach der ersten Extension)
   ========================================= */




h2 {
  border-left: none !important;       
  padding-left: 0 !important;         
  margin-bottom: 1.4rem;
}

h2::before {
  display: none !important;           
}

h2::after {
  content: "";
  display: block;
  margin-top: 0.45rem;
  width: 36px;
  height: 2.5px;
  background: linear-gradient(90deg, #0070f3 0%, rgba(0, 112, 243, 0) 100%);
  border-radius: 99px;
  transition: width 0.4s ease;
}

h2:hover::after {
  width: 64px;
}




.site-header {
  padding: 0 !important;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.site-header::before {
  height: 3px !important;
  background: linear-gradient(90deg, #003d80 0%, #0070f3 50%, #60b0ff 100%) !important;
  opacity: 0.85;
}


.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem 0.55rem 1rem;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;

  
  background: linear-gradient(135deg, #003d80 0%, #0070f3 55%, #3b9eff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;

  
  position: relative;
  border-radius: 999px;
  transition: all 0.3s ease !important;
}


.site-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 112, 243, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(0, 112, 243, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-logo:hover::before {
  opacity: 1;
}




.site-logo:hover::after {
  opacity: 0.9;
  transform: rotate(-12deg);
}

.site-logo:hover {
  letter-spacing: -0.025em !important;
  transform: translateY(-1px) !important;
}



.header-tagline {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b8cba;
  -webkit-text-fill-color: #6b8cba;
  background: none;
  margin-top: -2px;
}



@media (max-width: 700px) {
  .site-logo {
    font-size: 1.35rem !important;
    padding: 0.45rem 1rem 0.45rem 0.8rem;
  }
}

h2::after {
  content: "";
  display: block;
  margin-top: 0.5rem;
  width: 80px;
  height: 1.5px;
  background: linear-gradient(90deg, #0070f3 0%, rgba(0, 112, 243, 0.15) 100%);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease;
  opacity: 0.85;
}
 
h2:hover::after {
  width: 120px;
  opacity: 1;
}


.wizard-buttons {
  display: flex;
  flex-wrap: wrap;        
  gap: 8px;
}

.wizard-buttons .button {
  flex: 1 1 auto;         
  min-width: min-content; 
  white-space: normal;    
  word-break: break-word; 
  text-align: center;
}



/* ==========================================
   UNIVERSAL-RECHNER RESPONSIVE FIX
   ========================================== */


.pflegegrad-result-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden; 
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


.pflegegrad-tabelle {
  display: block !important;    
  width: 100% !important;
  overflow-x: auto !important;  
  -webkit-overflow-scrolling: touch; 
  border-collapse: collapse;
  margin: 20px 0;
}


.pflegegrad-tabelle th,
.pflegegrad-tabelle td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  white-space: nowrap; 
}


.pflegegrad-tabelle th:first-child,
.pflegegrad-tabelle td:first-child {
  white-space: normal !important;
  min-width: 170px; 
}


@media (max-width: 600px) {
  .pflegegrad-result-card {
    padding: 15px 10px !important; 
  }

  .pflegegrad-tabelle th,
  .pflegegrad-tabelle td {
    padding: 10px 8px !important;
    font-size: 13px !important; 
  }
  
  
  .pflegegrad-tabelle {
    box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.15);
  }
}

/* ==========================================
   UNIVERSAL-FIX FÜR FIELDSET & TEXTUMBRÜCHE
   ========================================== */


.pflegegrad-fieldset {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important; 
  box-sizing: border-box !important;
}


.pflegegrad-fieldset legend {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}


.pflegegrad-label,
.pflegegrad-label span,
.pflegegrad-fieldset p,
.pflegegrad-fieldset .hinweis {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;      
  overflow-wrap: break-word !important; 
  word-break: break-word !important;     
  box-sizing: border-box !important;
}


.pflegegrad-fieldset select,
.pflegegrad-fieldset input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}


.pflegegeld-prozent-wrapper {
  display: flex !important;
  flex-wrap: wrap !important; 
  gap: 10px;
  align-items: center;
  max-width: 100% !important;
}


.info-box, 
.warning-box, 
.highlight-box {
  border-left: none !important;
}

header, .site-header {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 15px !important;  
  padding-right: 15px !important; 
  box-sizing: border-box !important;
}

html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important; 
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

*, *:before, *:after {
  box-sizing: inherit !important; 
}

/* ==========================================
   DER BUCHSTABEN-STAPEL-FIX (INPUT-REDUZIERUNG)
   ========================================== */


.pflegegrad-form input[type="checkbox"],
.pflegegrad-form input[type="radio"] {
  width: 22px !important;       
  height: 22px !important;      
  min-width: 22px !important;   
  min-height: 22px !important;
  flex-shrink: 0 !important;    
  margin: 0 !important;         
  margin-top: 2px !important;   
}


.pflegegrad-form label span {
  flex: 1 !important;
  width: auto !important;
  display: inline-block !important;
}


/* =========================================
   Schlichtes Neues Design
   Neu 03.10.2026
   ========================================= */



h1 {
  animation: none !important;
  background-size: auto !important;
}

.page-container::before,
.site-header::before,
.site-logo::before,
.site-logo::after { display: none !important; }

.site-logo,
.site-logo:hover { transform: none !important; text-shadow: none !important; }

.button::before { display: none !important; }

.page-container:hover,
.highlight-box:hover,
.info-box:hover,
.warning-box:hover,
.kl-fall:hover,
.usp-item:hover,
.category-badge:hover { transform: none !important; }


.highlight-box > :first-child,
.info-box > :first-child,
.warning-box > :first-child,
.kl-sources-box > :first-child,
.promo-teaser > :first-child,
.highlight-box h2,
.info-box h2,
.warning-box h2,
.kl-sources-box h2 { margin-top: 0 !important; }

.highlight-box p, .info-box p, .warning-box p, .kl-sources-box p,
.highlight-box li, .info-box li, .warning-box li, .kl-sources-box li {
  color: #2f2f2f !important;
}

.highlight-box strong,
.info-box strong,
.warning-box strong { color: #10243e !important; }




h1::before {
  content: "" !important;
  display: block !important;
  width: 44px !important;
  height: 2px !important;
  margin: 0 auto 1.15rem auto !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #0070f3, rgba(0, 112, 243, 0.25)) !important;
}

h1 { text-wrap: balance !important; }


h2::before { display: none !important; }
h2::after {
  content: "" !important;
  display: block !important;
  width: 72px !important;
  height: 2px !important;
  margin-top: 0.55rem !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #0070f3, rgba(0, 112, 243, 0)) !important;
  opacity: 0.75 !important;
  transition: none !important;
}
h2:hover::after { width: 72px !important; }

h3 {
  color: #1f3a58 !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}


a:not(.button):not(.site-logo):not(.category-badge) {
  text-underline-offset: 2.5px !important;
  text-decoration-thickness: 1px !important;
}
a:not(.button):not(.site-logo):not(.category-badge):hover {
  text-decoration-color: rgba(0, 112, 243, 0.55) !important;
}

::selection {
  background: rgba(0, 112, 243, 0.14) !important;
  color: #10243e !important;
}

:focus-visible {
  outline: 2px solid rgba(0, 112, 243, 0.5) !important;
  outline-offset: 2px !important;
}




.pflegegrad-result-card {
  box-shadow: inset 0 2px 0 0 rgba(0, 112, 243, 0.85),
              inset 0 0 0 1px #d8e3f0 !important;
}


.pflegegrad-fieldset legend,
.wizard-progress {
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #5a7186 !important;
  font-weight: 600 !important;
}

.pflegegrad-fieldset legend { padding: 0 0.45rem !important; }


.category-badge {
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: #4a6785 !important;
  padding: 0.35rem 0.8rem !important;
}



.pflegegrad-tabelle th {
  background: transparent !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #5a7186 !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #dfe6ee !important;
  padding: 0.55rem 0.65rem !important;
}

.pflegegrad-tabelle td {
  border-bottom: 1px solid #edf1f5 !important;
  padding: 0.8rem 0.65rem !important;
  color: #38424e !important;
  font-variant-numeric: tabular-nums !important;
}

.pflegegrad-tabelle tbody tr:nth-child(even) td {
  background: #fafcfe !important;
}

.pflegegrad-tabelle tr:last-child td {
  border-bottom: 0 !important;
}



.pflegegrad-label select,
.pflegegrad-fieldset select,
.pflegegrad-fieldset input[type="number"],
.pflegegrad-fieldset input[type="text"] {
  background: #fcfdfe !important;
  border: 1px solid #d7dfe9 !important;
  border-radius: 8px !important;
  padding: 0.6rem 0.7rem !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.pflegegrad-label select:focus,
.pflegegrad-fieldset select:focus,
.pflegegrad-fieldset input:focus {
  outline: none !important;
  border-color: #0070f3 !important;
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.12) !important;
}



details { border-radius: 10px !important; }

summary {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #16324f !important;
}

details[open] summary { color: #0f2a43 !important; }

summary::after {
  color: #7d94ab !important;
  font-weight: 400 !important;
}

details[open] summary::after { color: #0070f3 !important; }

details p { animation: none !important; }



.button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 1px 2px rgba(0, 89, 201, 0.22) !important;
}

.button:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 4px 12px rgba(0, 89, 201, 0.24) !important;
}


.button.jump-button::after {
  display: inline-block !important;
  content: "→" !important;
  margin-left: 0.5rem !important;
  background: none !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  transition: transform 0.15s ease !important;
}

.button.jump-button:hover::after {
  animation: none !important;
  transform: translateX(3px) !important;
}



.usp-item {
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  padding: 0.45rem 0.85rem !important;
}

.usp-item:hover { background: #f7fafc !important; }

.highlight-box.pruefdatum-box {
  letter-spacing: 0.02em !important;
}



@media (min-width: 900px) {
  .page-container { padding: 3.5rem 3.25rem !important; }
  h2 { margin-top: 3.6rem !important; }
}



::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #d3dbe4;
  border-radius: 999px;
  border: 2px solid #f8f9fb;
}
::-webkit-scrollbar-thumb:hover { background: #bcc7d3; }

/* =========================================
   Feinschliff 2 – H1-Signatur unter dem Titel
   & Jump-Button ohne Pfeil
   (ans ENDE der CSS hängen)
   ========================================= */


h1::before {
  content: none !important;
  display: none !important;
}


h1::after {
  content: "" !important;
  display: block !important;
  width: 120px !important;
  height: 2px !important;
  margin: 1.15rem auto 0 auto !important;
  border-radius: 999px !important;
  background: linear-gradient(
    90deg,
    rgba(0, 112, 243, 0),
    rgba(0, 112, 243, 0.9) 50%,
    rgba(0, 112, 243, 0)
  ) !important;
}


.button.jump-button::after {
  content: none !important;
  display: none !important;
}

/* =========================================
   Oberflächen-Update: Schluss mit Pastell-"Knete"
   Weiße Flächen + feine Hairline + kleinere Radien
   (ans ENDE der CSS hängen)
   ========================================= */

:root {
  --hairline: #e2e7ee;
  --hairline-blue: #d8e3f0;
  --hairline-neutral: #dfe3e8;
}


.page-container {
  border-radius: 12px !important;
}


.highlight-box,
.info-box,
.warning-box,
.info-box.warning,
.info-box.danger,
.info-box.error,
.error-box,
.kl-sources-box {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline-blue) !important;
  border-radius: 8px !important;
}


.warning-box,
.info-box.warning,
.info-box.danger,
.info-box.error,
.error-box {
  background: #fcfcfd !important;
  box-shadow: inset 0 0 0 1px var(--hairline-neutral) !important;
}


.highlight-box:hover,
.info-box:hover,
.kl-sources-box:hover {
  transform: none !important;
  box-shadow: inset 0 0 0 1px var(--hairline-blue) !important;
}

.warning-box:hover,
.info-box.warning:hover {
  transform: none !important;
  box-shadow: inset 0 0 0 1px var(--hairline-neutral) !important;
}


.highlight-box.pruefdatum-box {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0.5rem 0 0 !important;
  border-radius: 0 !important;
  color: #8a939e !important;
}

.highlight-box.pruefdatum-box p {
  margin: 0 !important;
}


.usp-item {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 6px !important;
  color: #33546f !important;
}

.usp-item:hover {
  transform: none !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
}

.usp-item svg {
  fill: #0070f3 !important;
}


.category-badge {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 6px !important;
  color: #33546f !important;
}

.category-badge:hover {
  transform: none !important;
}


details {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 8px !important;
}

details[open] {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px var(--hairline-blue) !important;
}


.promo-teaser {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 10px !important;
}

.promo-teaser .free-help {
  background: #fbfcfd !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 8px !important;
}


.kl-checklist {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 8px !important;
}

.kl-fallbeispiele {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 10px !important;
}

.kl-fall {
  background: #fbfcfd !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 8px !important;
}

.pflegegrad-fieldset {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 10px !important;
}

.pflegegrad-result-card {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline-blue) !important;
  border-radius: 10px !important;
}


.button-secondary,
.button.button-secondary {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
}

.button-secondary:hover,
.button.button-secondary:hover {
  background: #f7f9fb !important;
}

/* =========================================
   Vertrauens- & Lesbarkeits-Feinschliff
   (ans ENDE beider Dateien)
   ========================================= */


a:visited:not(.button):not(.site-logo):not(.category-badge) {
  color: #0059c9 !important;
}
a:visited:not(.button):not(.site-logo):not(.category-badge):hover {
  color: #004e92 !important;
}


.highlight-box.pruefdatum-box,
.highlight-box.pruefdatum-box p {
  color: #6b7280 !important;
}


ul li::marker {
  color: rgba(0, 112, 243, 0.7) !important;
}


fieldset { padding-top: 1.6rem !important; }
fieldset > label:first-of-type,
fieldset > .checkbox-group:first-child,
fieldset > p:first-of-type { margin-top: 0.2rem !important; }


legend {
  line-height: 1.6 !important;
  max-width: 100% !important;
  text-wrap: balance !important;
}


input::placeholder,
textarea::placeholder { color: #9aa4af !important; }
details p:last-child { margin-bottom: 0 !important; }


h1::after { width: 160px !important; height: 2px !important; }
h2::after { width: 112px !important; height: 2px !important; }

h3::after {
  content: "" !important;
  display: block !important;
  width: 56px !important;
  height: 2px !important;
  margin-top: 0.5rem !important;
  border-radius: 999px !important;
  opacity: 0.55 !important;
  background: linear-gradient(90deg, #0070f3, rgba(0, 112, 243, 0)) !important;
}
/* =========================================
   H3: Punkt statt Linie – unaufällig, aber wahrnehmbar
   ========================================= */

h1::after { width: 160px !important; height: 2px !important; }
h2::after { width: 112px !important; height: 2px !important; }


h3::after { display: none !important; }


h3::before {
  content: "" !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: rgba(0, 112, 243, 0.5) !important;
  margin-right: 0.55rem !important;
  vertical-align: 0.12em !important;
}


.faq-section h3::before,
.kl-fall h3::before { display: none !important; }


h3::before {
  width: 14px !important;
  height: 2px !important;
  border-radius: 999px !important;
  vertical-align: 0.3em !important;
}


/* =========================================
   Lesespalte + blaue Anker-Punkte
   
   ========================================= */


.page-container p, .page-container li,
.info-box p, .info-box li,
.highlight-box p, .highlight-box li,
.warning-box p, .warning-box li,
.kl-sources-box li {
  max-width: none !important;
 
}

.page-container ul,
.info-box ul,
.highlight-box ul,
.warning-box ul {
  list-style: none !important;
  padding-left: 0.2rem !important;
}

.page-container ul li,
.info-box ul li,
.highlight-box ul li,
.warning-box ul li {
  position: relative !important;
  padding-left: 1.15rem !important;
}

.page-container ul li::before,
.info-box ul li::before,
.highlight-box ul li::before,
.warning-box ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.62em !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 2px !important;
  background: rgba(0, 112, 243, 0.85) !important;
}

.kl-checklist li::before { display: none !important; }

/* =========================================
   Text-Struktur: Register-Optik & Ruhe
  
   ========================================= */

.page-container li,
.info-box li,
.highlight-box li,
.warning-box li {
  line-height: 1.7 !important;
  margin-bottom: 0.7rem !important;
}

.page-container li:last-child,
.info-box li:last-child,
.highlight-box li:last-child,
.warning-box li:last-child {
  margin-bottom: 0 !important;
}

.page-container li strong,
.info-box li strong,
.highlight-box li strong,
.warning-box li strong {
  display: inline !important;
  font-weight: 650 !important;
  color: #1f2933 !important;
}


.page-container li > strong:first-child:has(+ br),
.info-box li > strong:first-child:has(+ br) {
  display: inline-block !important;
  margin-bottom: 0.15rem !important;
}

.page-container p { margin-bottom: 1.45rem !important; }
.page-container ul,
.page-container ol { margin-bottom: 1.6rem !important; }



/* =========================================
   Hinweis-Boxen: eine ruhige Box-Familie
   Inhalt = normaler Text, Disclaimer = Fußnoten-Typografie
   ========================================= */

/* Stufe 1: Inhalts-Boxen – weiße Karte, normale Textgröße
   (stellt zugleich unbeabsichtigt geschrumpfte Texte zurück) */
.info-box,
.highlight-box,
.kl-sources-box {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px #d8e3f0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 1.45rem 1.6rem !important;
  margin: 2rem 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
  color: #2f2f2f !important;
}

/* Stufe 2: Disclaimer & Meta-Hinweise – BLEIBEN Boxen,
   aber mit Fußnoten-Typografie (kleiner, grauer, enger) */
.warning-box,
.info-box.warning,
.page-container :is(.info-box, .highlight-box):is(
  [style*="fff8e1" i], [style*="fff3f3" i],
  [style*="ffebee" i], [style*="fce4ec" i]
),
.page-container .info-box:not([style]):not(:has(h2, h3, ul, ol, table, p + p)) {
  background: #fbfcfd !important;
  box-shadow: inset 0 0 0 1px #e4e8ee !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 1rem 1.25rem !important;
  margin: 1.4rem 0 !important;
  font-size: 0.86rem !important;
  line-height: 1.6 !important;
  color: #55606c !important;
}

.warning-box strong,
.info-box.warning strong,
.page-container :is(.info-box, .highlight-box):is(
  [style*="fff8e1" i], [style*="fff3f3" i]
) strong,
.page-container .info-box:not([style]):not(:has(h2, h3, ul, ol, table, p + p)) strong {
  color: #3c4650 !important;
}


.warning-box:has(h2, h3, ul, ol, table),
.info-box.warning:has(h2, h3, ul, ol, table) {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px #d8e3f0 !important;
  padding: 1.45rem 1.6rem !important;
  margin: 2rem 0 !important;
  font-size: 0.98rem !important;
  color: #2f2f2f !important;
}



details, details[open] { background: #ffffff !important; }
summary { background: transparent !important; }

/* =========================================
   Editorial-Footer: "Wer hat diese Inhalte erstellt?"
   greift per Inline-Signatur ODER Klasse editorial-footer
   ========================================= */

:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) {
  background: transparent !important;
  border-top: 1px solid #e6ebf1 !important;
  padding: 2.5rem 1.25rem 0.5rem !important;
  margin-top: 4rem !important;
  text-align: center !important;
  font-family: inherit !important;
}


:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) h3 {
  margin: 0 0 0.9rem 0 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #5a7186 !important;
}


:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) h3::before {
  display: none !important;
}


:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) p {
  margin: 0 auto 1rem auto !important;
  max-width: 68ch !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  color: #55606c !important;
}

:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) p strong {
  color: #3c4650 !important;
}

:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) p em {
  color: #6b7280 !important;
}


:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) a {
  color: #0070f3 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) a:hover {
  color: #0059c9 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}


:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) div[style*="d1d5db" i] {
  max-width: 560px !important;
  margin: 1.5rem auto !important;
  background: #fbfcfd !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px #e4e8ee !important;
  border-radius: 10px !important;
  padding: 1rem 1.25rem !important;
}

:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) div[style*="d1d5db" i] p {
  margin: 0 !important;
}


:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) p[style*="eaeaea" i] {
  margin: 1.5rem auto 0 auto !important;
  padding-top: 1.1rem !important;
  border-top: 1px solid #e6ebf1 !important;
  max-width: 560px !important;
  font-size: 0.8rem !important;
  color: #6b7280 !important;
}

:is(.editorial-footer, div[style*="2px solid #e0e0e0" i]) p[style*="eaeaea" i] a {
  color: #4a5560 !important;
  text-decoration: underline !important;
}

/* =========================================
   Ausgleichs-Block: gleicht beide Dateien ab
   (ans ENDE BEIDER Dateien)
   ========================================= */

/* 1) H3: Mini-Strich VOR der Überschrift, Linie darunter aus
      (der content-Teil fehlte in der generator.css komplett) */
h3::after { display: none !important; }
h3::before {
  content: "" !important;
  display: inline-block !important;
  width: 14px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: rgba(0, 112, 243, 0.5) !important;
  margin-right: 0.55rem !important;
  vertical-align: 0.3em !important;
}

/* 2) Boxen mit alter roter/oranger Inline-Kante ABER echtem Inhalt
      (Überschrift/Liste) bleiben volle Karten – Farbe allein entscheidet nicht */
.page-container :is(.info-box, .highlight-box):is(
  [style*="fff8e1" i], [style*="fff3f3" i],
  [style*="ffebee" i], [style*="fce4ec" i],
  [style*="ff9800" i], [style*="e53935" i]
):has(h2, h3, ul, ol, table) {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px #d8e3f0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 1.45rem 1.6rem !important;
  margin: 2rem 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
  color: #2f2f2f !important;
}


.highlight-box.pruefdatum-box {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0.6rem 0 0 !important;
  max-width: fit-content !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  color: #6b7280 !important;
}
.highlight-box.pruefdatum-box p { margin: 0 !important; }
.highlight-box.pruefdatum-box strong { color: #46515c !important; }


a:visited:not(.button):not(.site-logo):not(.category-badge) { color: #0059c9 !important; }
a:visited:not(.button):not(.site-logo):not(.category-badge):hover { color: #004e92 !important; }
ul li::marker { color: rgba(0, 112, 243, 0.7) !important; }
fieldset { padding-top: 1.6rem !important; }
fieldset > label:first-of-type,
fieldset > .checkbox-group:first-child,
fieldset > p:first-of-type { margin-top: 0.2rem !important; }
legend { line-height: 1.6 !important; max-width: 100% !important; text-wrap: balance !important; }
input::placeholder,
textarea::placeholder { color: #9aa4af !important; }
details p:last-child { margin-bottom: 0 !important; }


/* =========================================
   iOS-Zoom-Fix: alle Inputs auf 16px
   (ans ENDE beider Dateien)
   ========================================= */

input, select, textarea {
  font-size: 16px !important;
}

/* =========================================
   Lesefluss: Desktop (volle Breite) + Smartphone
   ========================================= */



/* --- Desktop --- */
:is(.page-container, .info-box, .highlight-box, .kl-sources-box)
:is(p, li):not(
  :is(.warning-box, .info-box.warning, .pruefdatum-box, .editorial-footer,
      div[style*="2px solid #e0e0e0" i], fieldset, details, .checkbox-group,
      .kl-checklist, table,
      .info-box:not([style]):not(:has(h2, h3, ul, ol, table, p + p))) *
):not([style*="color" i]):not([style*="font-size" i]) {
  hyphens: manual !important;
  -webkit-hyphens: manual !important;
  font-size: 1.02rem !important;
  line-height: 1.8 !important;
  color: #2b3440 !important;
  text-wrap: pretty !important;
  overflow-wrap: break-word !important;
}

.page-container > p { margin-bottom: 1.6rem !important; }

.info-box p + p,
.highlight-box p + p { margin-top: 1.1rem !important; }

/* Abstand nur, wenn die Überschrift nicht am Anfang eines Containers steht */
.page-container h2:not(:first-child) { margin-top: 3rem !important; }
.page-container h3:not(:first-child) { margin-top: 2.4rem !important; }

.page-container strong,
.info-box strong,
.highlight-box strong {
  font-weight: 600 !important;
}

/* --- Smartphone --- */
@media (max-width: 600px) {

  :is(.page-container, .info-box, .highlight-box, .kl-sources-box)
  :is(p, li):not(
    :is(.warning-box, .info-box.warning, .pruefdatum-box, .editorial-footer,
        div[style*="2px solid #e0e0e0" i], fieldset, details, .checkbox-group,
        .kl-checklist, table,
        .info-box:not([style]):not(:has(h2, h3, ul, ol, table, p + p))) *
  ):not([style*="color" i]):not([style*="font-size" i]) {
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    hyphenate-limit-chars: 7 3 3;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    text-align: left !important;
  }

  .page-container > p { margin-bottom: 1.3rem !important; }

  .info-box p + p,
  .highlight-box p + p { margin-top: 0.9rem !important; }

  .page-container h2:not(:first-child) { margin-top: 2.2rem !important; }
  .page-container h3:not(:first-child) { margin-top: 1.8rem !important; }
}



