/* Standard-Reset */
body,
body.light,
body.theme1 {
  background: linear-gradient(90deg, #fef6e4 0%, #f8f6ff 100%);
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}
body.original {
    background: #ffffff;
    color: #222222;
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}
/*v2 ist anders

*/
/* Trennstrich h */
.FrageTrennung-original{
  max-width: 580px;
  /*top, right, bottom, left */
  margin-left: 0;
  margin-top: 20px;
  margin-bottom: 20px;
}
 .FrageTrennung-original{
  background-color: white;
}
.FrageTrennung-theme1,
.FrageTrennung-theme2,
.FrageTrennung-theme3{
  max-width: 580px;
  /*top, right, bottom, left */
  margin-left: 0;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: gray;
}

textarea {
  border-radius: 5px;
}
.question-s {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(80,40,120,0.10);
  padding: 15px 10px 15px 10px;
  margin: 10px auto 0 auto;
  max-width: 530px;
}
/* andere Fragetypen ds designSwitch */
.question-ds {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(80,40,120,0.10);
  padding: 15px 18px 15px 18px;
  margin: 10px auto 0 5px;
  max-width: 530px;
}
.question-m {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(80,40,120,0.10);
  padding: 10px 10px 10px 10px;
  margin: 40px auto 0 5px;
  max-width: 330px;
}
.label-s {
  /* font-size: 17px;
   font-weight: 600; */
  color: #191940;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.label-m {
 /* font-size: 17px; */
  color: #191940;
  display: block;
  margin-bottom: 5px;
}
/* Wrapper: relative, damit child .mw-indicator absolut positioniert werden kann */
.option-row-wrapper {
  position: relative;
  width: 100%;            /* wichtig: Prozentwerte beziehen sich auf diese Breite */
}

.option-row {
  display: flex;
  gap: 5px;
  /* justify-content: space-between; */
}

.radio-block {
  /* flex: 1; */
  position: relative;
  transition: transform 0.13s, box-shadow 0.15s;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column; /* colum-reverse --> Zahl über radio-Button*/
  align-items: center;
  background: #eee;
  padding: 10px 0 4px 0;
  min-width: 34px;
}

.radio-block:hover,
.radio-block input[type="radio"]:focus + .custom-radio {
  box-shadow: 0 2px 10px 0 rgba(130,160,250,0.12);
  transform: translateY(-2px) scale(1.03);
}

.custom-radio {
  width: 30px;
  height: 30px;
  /* border: 2px solid #adadad; */
  border-radius: 50%;
  margin-bottom: 4px;
  background: #f9f9f9b8;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.18s, box-shadow 0.12s;
}
.radio-block input[type="radio"] {
  display: none;
}
.radio-block input[type="radio"]:checked + .custom-radio {
  border: 5px solid #3f21c7;
  background: linear-gradient(120deg, #dacaff 45%, #fff 100%);
  box-shadow: 0 1px 6px 0 rgba(63,33,199,0.09);
}
.radio-label {
  font-size: 14px;
  font-weight: 600;
  color: #2c3948;
  margin-bottom: 1px;
  user-select: none;
}
.radio-desc { /* für theme2/3 schreibt unten drunter nie, manchmal usw. */
  font-size: 11px;
  color: #4e5674;
  opacity: 0.7;
  min-width: 55px;
  text-align: center;
}
/* FB beantworten Frage SC */
.radio-block-sc {
  /* flex: 1; */
  position: relative;
  transition: transform 0.13s, box-shadow 0.15s;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: row; /* colum-reverse --> Zahl über radio-Button*/
  align-items: center;
  padding: 10px 0 4px 0;
  min-width: 34px;
}
.radio-block-sc:hover,
.radio-block input[type="radio"]:focus + .custom-radio-sc {
  box-shadow: 0 2px 10px 0 rgba(130,160,250,0.12);
  transform: translateY(-2px) scale(1.03);
}
.radio-block-sc input[type="radio"] {
  display: none;
}
.radio-block-sc input[type="radio"]:checked + .custom-radio-sc {
  border: 5px solid #3f21c7;
  background: linear-gradient(120deg, #dacaff 45%, #fff 100%);
  box-shadow: 0 1px 6px 0 rgba(63,33,199,0.09);
}

.custom-radio-sc {
  width: 15px;
  height: 15px;
   border: 2px solid #adadad;
  border-radius: 50%;
  /* margin-bottom: 4px; */
  background: #f9f9f9b8;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.18s, box-shadow 0.12s;
}
.radio-label-sc {
  color: #2c3948;
  /*margin-bottom: 1px; */
  user-select: none;
  margin-left: 5px;
}
.question-ds .custom-radio-sc.filled {
  border: 5px solid #3f21c7;
  background: linear-gradient(120deg, #dacaff 45%, #fff 100%);
  box-shadow: 0 1px 6px 0 rgba(63,33,199,0.09);
  width: 10px;
  height: 10px;
  margin-right: 5px;
}
/* D0186 "Fake Checkbox" */
/* Input nur visuell verstecken, nicht mit display:none */
.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
/* Effekt für beide gleichzeitig */
.checkbox-wrapper:hover .custom-checkbox,
.checkbox-wrapper:hover,
.checkbox-wrapper input[type="checkbox"]:focus + .custom-checkbox {
  box-shadow: 0 2px 10px 0 rgba(130, 160, 250, 0.12);
  transform: translateY(-2px) scale(1.03);
  background-color: rgba(130, 160, 250, 0.05);
  border-color: #829ffb;
}

.checkbox-wrapper:hover .custom-checkbox,
.checkbox-wrapper input[type="checkbox"]:focus + .custom-checkbox {
  box-shadow: 0 2px 10px 0 rgba(130, 160, 250, 0.12);
  transform: translateY(-2px) scale(1.03);
}

.erg-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  position: relative;
}
.erg-checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.custom-checkbox{
  width: 10px;
  height: 10px;
  border: 2px solid #adadad;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.2s ease;
}
.checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox,
.erg-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox
{
  border: 5px solid #3f21c7;
  background: linear-gradient(120deg, #dacaff 45%, #fff 100%);
  box-shadow: 0 1px 6px 0 rgba(63,33,199,0.09);

}
/* Ende-D0186 "Fake Checkbox" */
/* Ende: FB beantworten Frage SC */

/* Für theme original: nebeneinander für FB*/
.original .question-s {
  margin-left: 5px;
}
.original .radio-block {
  display: flex;
  align-items: center; /* vertikal ausrichten */
  gap: 5px; /* Abstand zwischen Radio und Zahl */
  flex-direction: row;
  padding: 5px;
  justify-content: center;
}

.original .radio-label {
  display: inline-block;
}
.original .custom-radio {
  width: 15px;
  height: 15px;
}
.original .bg1 { background: #e53935; }
.original .bg2 { background: #fb8c00; }
.original .bg3 { background: #fdd835; }
.original .bg4 { background: #43a047; }
.original .bg5 { background: #00c853; }

/* Für theme1: für FB*/
.divs .theme1 .radio-block {
  flex-direction: row;
  justify-content: flex-start;
}
.theme1 .bg1 { background: #e53935; }
.theme1  .bg2 { background: #fb8c00; }
.theme1  .bg3 { background: #fdd835; }
.theme1  .bg4 { background: #43a047; }
.theme1  .bg5 { background: #00c853; }

.theme1 .question-s{
  margin-top: 5px;
  margin-left: 5px;
  margin-bottom: 5px;
}

.theme1 .radio-label {margin-left: 5px;}


/* blassere Farben theme1:

body.theme1 .bg1 { background: #ffc2ba; }
body.theme1 .bg2 { background: #ffd6b2; }
body.theme1 .bg3 { background: #fffaad; }
body.theme1 .bg4 { background: #d1fcb1; }
body.theme1 .bg5 { background: #97f5b4; }
*/


/* Ergebnis Anzeigen */
.theme2 .custom-radio {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #333;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.theme2 .custom-radio.filled {
  background: blue;
}
.original .radio-label-answer {
  margin: auto;

}
.radio-label-answer {
  font-size: 14px;
  font-weight: 600;
  color: #2c3948;
  margin-bottom: 1px;
  user-select: none;
}
.original .custom-radio.filled {
  border: 5px solid #3f21c7;
  background: linear-gradient(120deg, #dacaff 45%, #fff 100%);
  box-shadow: 0 1px 6px 0 rgba(63,33,199,0.09);
  width: 15px;
  height: 15px;
  position: absolute;
  margin: auto;
}
.original .custom-radio.empty {
  background: none;
  border: none;
  position: absolute;
}

/* speziell für theme1  */
.theme1 .custom-radio.filled {
  border: 5px solid #3f21c7;
  background: linear-gradient(120deg, #dacaff 45%, #fff 100%);
  box-shadow: 0 1px 6px 0 rgba(63,33,199,0.09);
  width: 20px;
  height: 20px;
}

.theme1 .custom-radio.empty {
  background: none;
  border: none;
}

.theme1 .mw-indicator {
  position: absolute;
 /*top: 20px; */
  transform: translateX(-50%);
  color: black;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 5;
  max-height: 25px;
  margin: auto;
  min-width: 64.1px;
  margin-left: 45px;

}
/* ENDE speziell für theme1  */

/* MW anzeigen orgiginal theme1  siehe weiter oben  */
.mw-indicator {
  position: absolute;
  /* top: -20px;  über den Radio-Buttons */
  transform: translateX(-50%);
  color: black;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap; /* kein Zeilenumbruch */
  z-index: 5;
  margin: auto;
  min-width: 64.1px;
  margin-left: 45px;
}
.mw-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;                /* Dicke des Strichs */
  background-color: #1E3A8A;    /* Farbe zuvor gray*/
  opacity: 0.9;              /* zuvor 0.6 leicht transparent */
  transform: translateX(-50%); /* Strich mittig zur Position setzen */
  z-index: 10;               /* vor der Skala, aber hinter evtl. MW-Label */
}
.mw-line-text{
position: absolute;
top: 27px;
opacity: 0.9; /*zuvor 0.6 und ohne color */
transform: translateX(-50%);
z-index: 10;
font-size: 10px;
white-space: nowrap; /* kein Zeilenumbruch */
color: #1E3A8A;
}
.theme1 .mw-line-text
{
  top: 67px;
}
/*
.question-s {
  padding-top: 25px; /* Platz für MW-Balken */
/* } */
/* ergebnisAnzeige2 Ende */

.erg{
  font-size: 0.8em;

}

/* D0185: Legende Ergebnis */
.legende-radio {
  border: 5px solid #3f21c7;
  background: linear-gradient(120deg, #dacaff 45%, #fff 100%);
  box-shadow: 0 1px 6px 0 rgba(63,33,199,0.09);
  border-radius: 50%;
  margin-bottom: 4px;
  width: 10px;
  height: 10px;
  transition: border 0.18s, box-shadow 0.12s;
}

.original .legende-radio {
  width: 15px;
  height: 15px;
}
.theme1 .legende-radio {
  width: 10px;
  height: 10px;
}
.legende-MW-line {
  width: 3px;                /* Dicke des Strichs */
  background-color: #1E3A8A;    /* Farbe zuvor gray*/
  opacity: 0.9;
  height: 17px;
  margin-left: 10px;
}
/* Ende-D0185: Legende Ergebnis */

/*Theme 3 Magdi */
.divs .theme3 .radio-block {
  flex-direction: row;
  justify-content: flex-start;
}
.theme3 .bg1 { background: #fff000; }
.theme3  .bg2 { background: #ffc800; }
.theme3  .bg3 { background: #ff7d00;; }
.theme3  .bg4 { background: #ff0500; }
.theme3  .bg5 { background: #ff00a0; }

.theme3 .question-s{
  margin-top: 5px;
  margin-left: 5px;
  margin-bottom: 5px;
}

.theme3 .radio-label {margin-left: 5px;}

/* speziell für theme3  */
.theme3 .custom-radio.filled {
  border: 5px solid #3f21c7;
  background: linear-gradient(120deg, #dacaff 45%, #fff 100%);
  box-shadow: 0 1px 6px 0 rgba(63,33,199,0.09);
  width: 20px;
  height: 20px;
}

.theme3 .custom-radio.empty {
  background: none;
  border: none;
}

.theme3 .mw-indicator {
  position: absolute;
  /*top: 20px; */
  transform: translateX(-50%);
  color: black;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 5;
  max-height: 25px;
  margin: auto;
  min-width: 64.1px;
  margin-left: 45px;

}
.theme3 .radio-block {
  flex-direction: column-reverse;
}
.theme3 .mw-line-text
{
  top: 67px;
}
/* ENDE speziell für theme1  */


/* Light/Dark */
/* Basis */
body {
  margin: 2rem;
  font-family: sans-serif;
  transition: background 0.3s, color 0.3s;
}

/* Light Theme siehe oben*/
body.light-weiß {
  background: #ffffff;
  color: #222222;
}

/* Dark Theme */
body.dark {
  background: #121212;
  /* color: #eeeeee; */
}

/* Button Style */
#themeToggle {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #888;
  color: white;
 /* font-size: 1rem; */
  margin-left: 5px;
}

body.dark .question-s {
  background: #1e1e1e;              /* dunkler Hintergrund, nicht ganz schwarz */
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4); /* dunkler, weicher Schatten */
  padding: 15px 10px;
  max-width: 530px;
  color: #e0e0e0;                   /* heller, neutraler Text */
}

body.dark .question-s h1,
body.dark .question-s h2,
body.dark .question-s h3,
body.dark .label-s,
body.dark .label-m{
  color: #ffffff;                   /* Überschriften etwas kräftiger */
}

body.dark .question-s p,
body.dark .radio-label-sc{
  color: #cccccc;                   /* Fließtext dezenter */
}

body.dark .question-s a {
  color: #8ab4f8;                   /* angenehmes Hellblau für Links */
  text-decoration: none;
}

body.dark .question-s a:hover {
  text-decoration: underline;
}
body.dark .question-ds {
  background: #1e1e1e;              /* dunkler Hintergrund, nicht ganz schwarz */
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4); /* dunkler, weicher Schatten */
  padding: 15px 10px;
  max-width: 530px;
  color: #e0e0e0;                   /* heller, neutraler Text */
}

body.dark textarea,
body.dark input[type="text"],
body.dark input[type="password"]{
  background-color: gray;
  color: #e0e0e0;
}
body.dark input[type="text"]::placeholder {
  color: #e0e0e0;  /* dezenteres Grau für Placeholder */
}

/*Frageypen - Infoseite */
body, html {
  margin: 0;
  font-family: Arial, sans-serif;

  overflow-x: hidden;
  background: linear-gradient(90deg, #fef6e4 0%, #f8f6ff 100%);
}



/* --- Sections --- */
section {
  /* min-height: 100vh;  Vollbild */ /*D0401 */
  padding:50px 20px 40px; /* Platz für Menü oben */
  box-sizing: border-box;
}

section:nth-child(even) {
  background: rgba(255,255,255,0.6);
}

section:nth-child(odd) {
  background: rgba(255,255,255,0.3);
}

/* Container für Bilder + Text nebeneinander */
.fragetypen-wrapper {
  display: flex;
  flex-wrap: wrap; /* bricht um, wenn zu schmal */
  gap: 20px;
  align-items: flex-start;
  margin-top: 10px;
  border-bottom: 1px solid #ddd; /* dezenter Strich */
  padding-bottom: 10px;
}

/* Bilder nebeneinander */
.image-row {
  display: flex;
  gap: 20px;         /* Abstand zwischen den Boxen */
  justify-content: center;
  flex-wrap: wrap;   /* Bilder umbrechen, wenn es auf Handy zu eng wird */
}

.image-box {
  text-align: center;
  max-width: 500px;  /* Bilder nicht zu groß */
}

.image-box img {
  max-width: 100%;
  height: auto;
}

.image-row img {
  max-width: 100%;
  height: auto;
  flex: 0 0 auto; /* verhindert Aufblasen */
}
.image-row img {
  object-fit: contain;
  border-radius: 8px;
}


/* Textbox rechts daneben, von .question-s/ds */
.fragetypen-text-box{
  /* margin-top: 20px; */
  flex:1;
  text-align: center;
}
.fragetypen-text {
  flex: 1; /* nimmt den restlichen Platz ein */
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
}
.question-ds {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(80,40,120,0.10);
  padding: 15px 18px 15px 18px;
  margin: 10px auto 0 5px;
  max-width: 530px;
}



/* für Handy */
@media (max-width: 768px) {
  /* Menüabstand fixen */
  section {
    scroll-margin-top: 70px; /* verhindert, dass das Menü die Überschrift überlappt */
    padding-top: 20px;
  }
  /*@media (max-width: 768px) {
    body {
      padding-top: 70px;  Höhe festen Menüleiste
    }
  }*/
  .fragetypen-wrapper {
    flex-direction: column; /* Bilder + Text untereinander */
  }
  .image-row {
    justify-content: center;
    gap: unset;
  }
  .image-row img {
    /*  max-width: 45%; Bilder teilen sich die Breite */
  }

  section {
    min-height: 100vh; /* Vollbild */
    padding:10px 20px 40px; /* Platz für Menü oben */
    box-sizing: border-box;
  }
  #themeToggle{
    margin-bottom: 5px;
  }

}
@media (max-width: 700px) {
  .image-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-row img {
    max-width: 90%;
  }
}
/*Scrollen der Webseite */
html, body {
  scroll-snap-type: y proximity; /* Vertikal einrasten mandatory */
  overflow-y: scroll;
  scroll-behavior: smooth;
  height: 100vh;
}

section {
  scroll-snap-align: none; /* Section beginnt am Viewport-Start *//*D0401 start in none*/
}

/* Für Handy: normales Durchscrollen */
@media (max-width: 768px) {
  html {
    scroll-snap-type: none; /* Snap deaktivieren */
  }
  section {
    scroll-snap-align: none;
    min-height: auto; /* nicht zwingend volle Höhe */
  }
}
.design-wrapper {
  display: flex;
  gap: 20px; /* Abstand zwischen den Blöcken */
  flex-wrap: wrap; /* sorgt dafür, dass sie umbrechen */
  margin-top: 20px;
}

.design-block {
  flex: 1 1 45%; /* zwei Blöcke nebeneinander, teilen sich Platz */
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.design-block h4 {
  margin-top: 0;
}

.designp-block p {
  margin-top: 10px;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .design-block {
    flex: 1 1 100%; /* untereinander */
    padding-left: 1px;
  }
}
h5 {
  margin-block-end: 0.5em;
}

#beschreibungErg .mw-line-text {
  top: 78px;
}
.uebersicht-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.uebersicht-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none; /* kein Unterstrich */
  color: inherit;        /* übernimmt Schriftfarbe vom Theme */
}

.uebersicht-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px; /* kleiner Abstand zwischen Icon & Text */
}

.uebersicht-card p {
  margin: 0 0 10px;
}

.uebersicht-card a {
  color: #3366cc;
  text-decoration: none;
  font-size: 0.9rem;
}

.uebersicht-card a:hover {
  text-decoration: underline;
}

.uebersicht-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

body.dark .uebersicht-card {
  background: #2c2c2c;
  color: #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark .uebersicht-card a {
  color: #99bbff;
}
.uebersicht-card {
  cursor: pointer;
}

.styled-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 15px 0;
}

.styled-list li {
  margin: 6px 0;
  padding-left: 1.2em;
  position: relative;
  font-size: 0.95rem;
}

.styled-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3366cc; /* oder passend zum Design */
  font-weight: bold;
}

.card-link {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #3366cc;
  text-decoration: underline;
}

/* styled-tabele (eigentlich in Haupt css - Für Kontaktformular) */
table#contactTable.styled-table {
  width: 100%;

}
.styled-table#contactTable td input:not([type="checkbox"]), textarea{
width: 100%;
box-sizing: border-box;
border-width: 1px;
padding: 5px;
border-style: solid;
}

/* Menü */
/* --- Menü oben --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  z-index: 1000;
  flex-wrap: wrap;
}
.nav-left {
  flex: 0 0 auto; /* Logo bleibt links */
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center; /* Links mittig */
  gap: 1rem; /* Abstand zwischen Links */
}



.nav-logo {
  height: 25px; /* Logo-Größe anpassen */
  width: auto;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  transition: background 0.2s;
  font-size: 0.9rem;
  background: none; /* explizit */
  outline: none;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
}

nav a.active {
  background: #0078d7;
  outline: none;
}
nav a:focus {
  background: none; /* oder gewünschte Farbe */
  outline: none;
}
/* --- Punkte rechts --- */
.dot-nav {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1001;
}

.dot-nav a {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  display: block;
  transition: background 0.3s, transform 0.2s;
}

.dot-nav a.active {
  background: #0078d7;
  transform: scale(1.2);
}

.dot-nav a:hover {
  background: #444;
}
@media (max-width: 768px) {
  nav {
    gap: 2px;
  }

  .nav-left { /* Logo nur auf Desktop anzeigen */
    display: none;
  }


  .nav-center {
    gap: unset;
    margin-left: -10px;
  }
nav a.active{
  background: none;
  color: orange;
}
  nav a.active::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('/images/favicon.ico');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto 4px auto; /* zentriert über Text */
  }
}
/* Handy Landscape: Logo links neben dem aktiven Link */
@media (min-width: 481px) and (max-width: 768px) {
  .nav-left {
    display: none; /* Standard-Logo links außen ausblenden */
  }

  nav a.active::before {
    /* content: url('/images/favicon.ico'); */
    display: inline-block;
     margin-right: 2px;
    vertical-align: middle;
   /* height: 16px; */
  }

  nav a.active {
    background: none; /* kein Hintergrund, nur Icon + Text */
    color: #0078d7;
  }
}
@media (max-width: 481px) {
  .nav-right { /* Logo nur auf Desktop anzeigen */
    display: none;
  }

}
/* Ende Menü */

h3 {
  scroll-margin-top: 70px;
}

.ansicht-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.ansicht-block {
  flex: 1 1 45%;
  min-width: 280px; /* sorgt dafür, dass es auf kleineren Geräten untereinander springt */
}

/* Abstand der h4-Überschriften innerhalb eines ansicht-block anpassen */
.ansicht-block h4 {
  margin-top: 0.5rem; /* kleiner Abstand nach oben */
}

/* Abstand zwischen dem h3 und dem Wrapper anpassen */
h3 + .ansicht-wrapper {
  margin-top: 1rem; /* rückt den Wrapper näher an das h3 */
}

/* Footer */
:root {
  --footer-bg: #f5f5f5;
  --footer-text: #555;
  --footer-border: #ddd;
  --footer-link: #0078d7;
}
body::after {
  content: '';
  display: block;
  height: 50px; /* Höhe der mobilen Tab-Leiste abschätzen */
}
body.dark {
  --footer-bg: #1e1e1e;
  --footer-text: #ccc;
  --footer-border: #333;
  --footer-link: #4da6ff;
}
/*
#abschluss {
  scroll-snap-align: start;
  min-height: calc(100vh - 80px); /* 80px = Footerhöhe */
/*} */
footer {
  height: 80px;
  scroll-snap-align: end; /* Optional: Snap am Ende */
}
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--footer-text);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  position: relative;

}

.site-footer a {
  color: var(--footer-link);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
body {
  display: flex;
  flex-direction: column;
  /* overflow-y: auto;  besser auto statt scroll, damit nicht immer ein leerer Scrollbalken angezeigt wird */
}

main {
  flex: 1; /* Füllt den verfügbaren Platz, Footer bleibt unten */
}
/*Anpassungen D0401*/
 :root {
   --bg: #f7f6f2;
   --surface: #ffffff;
   --surface-2: #f1efe9;
   --surface-ftyp: #f1efe9;
   --surface-strong: #ffffff;
   --text-color: #222018;
   --muted: #666258;
   --border: #ddd8cc;
   --primary: #0d6b6f;
   --primary-dark: #0a5255;
   --accent: #ed8722;
   --radius: 18px;
   --radius-lg: 18px;
   --shadow: 0 10px 30px rgba(0,0,0,.08);
   --max: 1120px;
   --header-offset: 90px;
 }

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text-color);
  line-height: 1.55;
}

[id] { scroll-margin-top: var(--header-offset); }

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 246, 242, 0.88);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-label strong {
  font-size: 1rem;
}

.brand-label small {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-inline a {
  text-decoration: none;
  color: var(--text-color);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
}

.nav-inline a:hover {
  background: rgba(13,107,111,.08);
  color: var(--primary-dark);
}

.hero-section,
.content-section {
  padding: 38px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}

.section-card,
.aside-card,
.mini-card,
.type-card,
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 0;
}

.section-card,
.aside-card {
  padding: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13,107,111,.08);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.08rem; color: var(--primary-dark); }

p {
  margin: 0 0 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: .2s ease;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:hover { background: var(--primary-dark); }

.button-secondary {
  background: rgba(237,135,34,.12);
  color: #8a4b0d;
  border: 1px solid rgba(237,135,34,.2);
}

.hero-points,
.mini-list,
.aside-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hero-points div,
.mini-list div,
.aside-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.04);
}

.aside-list a strong {
  display: block;
  margin-bottom: 4px;
}

.muted { color: var(--muted); }

.overview-grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mini-card,
.demo-card,
.type-card {
  padding: 20px;
}

.section-intro {
  margin-bottom: 22px;
}

.fragetypen-stack {
  display: grid;
  gap: 18px;
}

.fragetypen-wrapper {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-ftyp);
  border: 1px solid rgba(0,0,0,.05);
}

.image-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.image-box {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
}

.image-box p {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #f5f5f5;
}

.fragetypen-text-box {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
}

.fragetypen-text-box > p {
  font-weight: 700;
  margin-bottom: 10px;
}
.fragetypen-text {
  flex: 1; /* nimmt den restlichen Platz ein */
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: none;
  padding: 0;
}

.style-switcher {
  display: grid;
  gap: 16px;
}

.style-preview {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
}

.style-preview.is-clean { background: #ffffff; }
.style-preview.is-soft { background: linear-gradient(180deg, #fff7ef, #ffffff); }
.style-preview.is-dark { background: #1c2430; color: #eef3f8; }

.style-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.style-badges span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(13,107,111,.08);
  font-size: 0.88rem;
  font-weight: 700;
}

.style-preview.is-dark .style-badges span {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.demo-card a,
.aside-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.demo-card a:hover,
.aside-link:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 34px 0 46px;
  color: var(--muted);
}

@media (max-width: 900px) {
  :root { --header-offset: 74px; }
  .hero-grid,
  .info-columns,
  .overview-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .site-header-inner {
    min-height: 68px;
    align-items: flex-start;
    padding: 12px 0;
    flex-direction: column;
  }
  .nav-inline {
    width: 100%;
    justify-content: flex-start;
  }
  .hero-section,
  .content-section {
    padding: 26px 0;
  }
  .section-card,
  .aside-card,
  .mini-card,
  .type-card,
  .demo-card {
    padding-left: 18px;
    padding-right: 18px;
  }
  .image-row {
    grid-template-columns: 1fr;
  }
}
/*Ende D0401*/