/* ==========================================================
   Mieter-/Sozial-/Kassen-Lotse – Generatoren Premium Design (2025)
   ========================================================== */

:root {
  --primary: #0070f3;
  --primary-dark: #0059c9;
  --primary-light: #e6f0ff;
  --accent: #1a5276;
  --text: #2f2f2f;
  --bg: #f8f9fb;
  --white: #fff;
  --border: #e0e6ed;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --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;
}


.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: color 0.25s ease;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--primary);
}


.page-container {
 max-width: 1000px;
  width: 95% !important;
  margin: 0 auto !important;
  margin: 3rem auto;
  background: var(--white);
  padding: 3rem 2.8rem;
  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 14px 40px rgba(0,0,0,0.1);
}


h1 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  line-height: 1.3;
  text-align: center;
  font-weight: 700;
  background: linear-gradient(90deg, #004e92, #0070f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 600;
 
  padding-left: 0.8rem;
}

strong {
  color: black;
}


fieldset {
  border: 1px solid #e4e8ec;
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  transition: var(--transition);
  background-color: #fcfdff;
}

fieldset:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

legend {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--accent);
  padding: 0 0.6em;
}


label {
  display: block;
  margin-top: 1.2rem;
  font-weight: 500;
  color: #444;
}

label small {
  display: block;
  font-weight: normal;
  font-size: 0.85em;
  color: #666;
  margin-top: 0.2rem;
}

input[type="text"],
input[type="date"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-top: 0.4rem;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea {
  min-height: 110px;
  resize: vertical;
}


.checkbox-group {
  margin-top: 1.2rem;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  margin-top: 0.4rem;
  color: #333;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}


.sub-details {
  display: none;
  margin-left: 1.3rem;
 
  padding-left: 1.2rem;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  background: #fdfefe;
  border-radius: 6px;
}


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

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

.warning-box {
  background-color: #fff9e6;
  
}


.button-group {
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid #eee;
  text-align: center;
}

button {
  padding: 12px 26px;
  font-size: 1.05rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin: 0.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}


.button-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 112, 243, 0.25);
}

.button-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #0070f3, #00c6ff);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.button-primary:hover::before {
  opacity: 1;
}

.button-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 112, 243, 0.3);
}

.button-secondary {
  background-color: #7f8c8d;
  color: #fff;
}

.button-secondary:hover {
  background-color: #626f70;
}

.button-danger {
  background-color: #d9534f;
  color: #fff;
}

.button-danger:hover {
  background-color: #c9302c;
}


#createPdfBtn {
  background-color: var(--primary) !important;
  color: #fff !important;
  border: none !important;
}

#createPdfBtn:hover {
  background-color: var(--primary-dark) !important;
  box-shadow: 0 6px 15px rgba(0, 112, 243, 0.3) !important;
  transform: translateY(-2px);
}

.popup-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 1000; justify-content: center; align-items: center; padding: 1rem; box-sizing: border-box;}
    .popup-content { background: white; padding: 2rem; border-radius: 10px; max-width: 450px; width: 100%; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.25);}
    .popup-content h2 { font-size: 1.5em; margin-top: 0; margin-bottom: 1rem; color: #333; border-bottom: none; padding-bottom: 0;}
    .popup-content p { margin-bottom: 1.5rem; color: #444; }
    .popup-content form { margin-top: 1rem; }
    .popup-content input[type="submit"] { background:#ffc439; border:none; padding:0.9rem 1.8rem; font-weight:bold; border-radius:5px; cursor: pointer; color: #333; font-size: 1em;}
    .popup-content input[type="submit"]:hover { background-color: #f0b429; }
    .popup-close-button { margin-top: 1.5rem; background: none; border: 1px solid #ccc; color: #555; font-weight: normal; cursor: pointer; padding: 0.6rem 1.2rem; border-radius: 5px; font-size: 0.9em;}
    .popup-close-button:hover { background-color: #f0f0f0; }


footer {
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: #555;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

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

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



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


@media (max-width: 700px) {
  .page-container {
    margin: 1rem;
    padding: 1.6rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  legend {
    font-size: 1.15rem;
  }

  button {
    width: 100%;
    margin: 0.6rem 0;
  }
}

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



.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-color: #f4f9ff !important;
  padding: 20px !important; 
  margin-top: 20px !important; 
  border-radius: 8px; 
}

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




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


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




/* =========================================
   Generatoren – Angleichung an das neue Design
   Neu 03.10.2026
   ========================================= */

:root {
  --hairline: #e2e7ee;
  --hairline-blue: #d8e3f0;
  --hairline-neutral: #dfe3e8;
  --soft-shadow: 0 1px 2px rgba(16, 24, 40, 0.03),
                 0 8px 24px rgba(16, 24, 40, 0.05);
}

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



.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid #edf1f6 !important;
  box-shadow: none !important;
}

.site-header::before { display: none !important; }

.site-logo {
  background-image: linear-gradient(90deg, #004e92, #0070f3) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700 !important;
}

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

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



.page-container {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(23, 37, 60, 0.05),
              var(--soft-shadow) !important;
  border-radius: 12px !important;
}

.page-container:hover {
  transform: none !important;
  box-shadow: inset 0 0 0 1px rgba(23, 37, 60, 0.06),
              var(--soft-shadow) !important;
}



h1 {
  animation: none !important;
  background-image: linear-gradient(90deg, #004e92, #0070f3) !important;
  background-size: auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-wrap: balance !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;
}

h2 {
  padding-left: 0 !important;
  color: #163b64 !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;
}


.popup-content h2::after { display: none !important; }



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

fieldset:hover {
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
}

legend {
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #5a7186 !important;
  font-weight: 600 !important;
  padding: 0 0.45rem !important;
}



label { color: #3d4753 !important; }
label small { color: #6b7683 !important; }

input[type="text"],
input[type="date"],
input[type="number"],
textarea,
select {
  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;
}

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

.checkbox-group label { border-radius: 8px !important; }
.checkbox-group label:hover { background: #f7fafc !important; }
.checkbox-group input[type="checkbox"] {
  accent-color: #0070f3 !important;
  width: 18px !important;
  height: 18px !important;
}


.sub-details {
  background: #fbfcfd !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  border-radius: 8px !important;
  padding: 1rem 1.2rem !important;
}



.info-box,
.highlight-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;
  color: #2f2f2f !important;
}

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

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

.info-box strong,
.highlight-box strong,
.warning-box strong { color: #10243e !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;
  letter-spacing: 0.02em !important;
}

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



.button-group { border-top: 1px solid #e8edf2 !important; }

button {
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
}

button:active { transform: none !important; }

.button-primary {
  background: #0070f3 !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 1px 2px rgba(0, 89, 201, 0.22) !important;
}

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

.button-primary:hover {
  background: #0059c9 !important;
  transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 4px 12px rgba(0, 89, 201, 0.24) !important;
}

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

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


.button-danger {
  background: #c4453e !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
              0 1px 2px rgba(150, 40, 35, 0.22) !important;
}

.button-danger:hover {
  background: #ad3a34 !important;
  transform: none !important;
}

#createPdfBtn {
  background: #0070f3 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 1px 2px rgba(0, 89, 201, 0.22) !important;
}

#createPdfBtn:hover {
  background: #0059c9 !important;
  transform: none !important;
  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 {
  background: #0070f3 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(0, 112, 243, 0.18) !important;
}

.button.jump-button:hover {
  background: #0059c9 !important;
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.22) !important;
}

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



.popup-overlay {
  background: rgba(16, 24, 40, 0.45) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.popup-content {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px var(--hairline),
              0 20px 50px rgba(16, 24, 40, 0.18) !important;
}

.popup-content h2 { color: #16324f !important; }
.popup-content p { color: #3d4753 !important; }

.popup-content input[type="submit"] {
  background: #0070f3 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 1px 2px rgba(0, 89, 201, 0.22) !important;
}

.popup-content input[type="submit"]:hover {
  background: #0059c9 !important;
}

.popup-close-button {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
  color: #4a5560 !important;
}

.popup-close-button:hover {
  background: #f7f9fb !important;
  color: #2f2f2f !important;
}



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

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

summary { color: #16324f !important; }
details[open] summary { color: #0f2a43 !important; }
summary::after { color: #7d94ab !important; }
details[open] summary::after { color: #0070f3 !important; }
details p { color: #3d4753 !important; }



.kl-sources-box a { color: #0070f3 !important; font-weight: 500 !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;
  font-weight: 600 !important;
  letter-spacing: 0.01em !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: #4a6785 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  padding: 0.35rem 0.8rem !important;
}

.category-badge:hover {
  transform: none !important;
  background: #f7fafc !important;
  box-shadow: inset 0 0 0 1px var(--hairline) !important;
}



footer {
  background: transparent !important;
  border-top: 1px solid #eceff3 !important;
  color: #68727f !important;
}

footer a { color: #33546f !important; }
footer a:hover { color: #0070f3 !important; }



@media (min-width: 900px) {
  .page-container { padding: 3.5rem 3.25rem !important; }
  h2 { margin-top: 3.2rem !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; }


/* =========================================
   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; }



/* ==========================================================
   Checkbox-Gruppen – mobil sauber umbrechend
   Ersatz für problematische ältere Checkbox-Regeln
   ========================================================== */

.checkbox-group {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}


.checkbox-group label {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  margin-top: 0.4rem !important;
  padding: 0.8rem 0.8rem 0.8rem 2.7rem !important;

  border-radius: 8px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  white-space: normal !important;

  overflow-wrap: anywhere !important;
  word-break: break-word !important;

  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}


.checkbox-group input[type="checkbox"] {
  position: absolute !important;
  left: 0.85rem !important;
  top: 0.95rem !important;

  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;

  margin: 0 !important;
  accent-color: #0070f3 !important;
  cursor: pointer;
}


.checkbox-group input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(0, 112, 243, 0.5) !important;
  outline-offset: 2px !important;
}


@media (hover: hover) {
  .checkbox-group label:hover {
    background: #f7fafc !important;
  }
}


@media (max-width: 768px) {
  .checkbox-group label:active {
    background-color: rgba(0, 102, 204, 0.08) !important;
    border-radius: 6px !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;
}


.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],
  [style*="ff9800" i], [style*="e53935" 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; }


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


/* =========================================
   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; }
}