
/* ================== TABMENU RESPONSIVE ================== */

/* === Basis-Container === */
.tabgroup {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 5em 0;
}

.tabgroup h1{}
.tabgroup h2{}
.tabgroup h3{font-size: clamp(1.2rem, 1vw + 0.5rem, 1.4rem);}
.tabgroup h4{}



.tabbed {
  width: 100%;
  max-width: 960px;
  min-width: 320px;
  margin: 0 auto;
  padding: 0 1%;
  box-sizing: border-box;
}

/* === Eingabefelder (Radio Buttons) ausblenden === */
.tabgroup input[type="radio"] {
  display: none;
}

/* === Reiterleiste === */
.tabnav {
  display: flex;
  flex-wrap: wrap;       /* Tabs umbrechen bei kleinen Screens */
  justify-content: center;
  border-bottom: 2px solid #ccc;
  margin-bottom: 0;
}

/* === Reiter-Labels === */
.tabnav label {
  flex: 1 1 30%;         /* wächst, schrumpft, Basis 30% */
  text-align: center;
  padding: 12px 8px;
  cursor: pointer;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: -2px;
  color: #0089af;
  user-select: none;
  border: solid 3px silver;
  background-color: white;
  transition: filter 0.3s ease;
}

/* Hover-Effekt */
.tabnav label:hover {
  filter: brightness(110%);
}

/* Aktiver Tab */
#tab1:checked ~ .tabnav label[for="tab1"],
#tab2:checked ~ .tabnav label[for="tab2"],
#tab3:checked ~ .tabnav label[for="tab3"] {
  border-bottom: none;
  filter: none;
}

/* === Inhaltsbereich Tabs === */
.tabmenu {
  margin-top: -5px;
  padding: 0;
  overflow: hidden;
  background: inherit;
}

/* Tab-Inhalt standardmäßig verstecken */
.tabmenu > li {
  display: none;
  list-style: none;
  padding: 20px;
  border: solid 3px silver;
  border-radius: 0 0 12px 12px;
  background-color: white;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Zeige den aktiven Tab */
#tab1:checked ~ .tabmenu .tab1,
#tab2:checked ~ .tabmenu .tab2,
#tab3:checked ~ .tabmenu .tab3 {
  display: block;
}

/* === Definition Lists dl/dt/dd === */
.tabmenu dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5em 1em;
}

.tabmenu dt {
  font-size: clamp(1.1rem, 1vw + 0.5rem, 1.2rem); 
  grid-column: 1;
  align-self: start;
  font-weight: 400;
  margin: 0;
}

.tabmenu dd {
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.2rem); 
  grid-column: 2;
  position: relative;
  padding-left: 1.5em;
  margin: 0;
}

.tabmenu dd::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #0098af;
}

/* Wortumbruch und Silbentrennung */
.tabmenu dd, .tabmenu dt,
.tabmenu li ul, .tabmenu li ol, .tabmenu li p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  box-sizing: border-box;
}

/* Listen in Tab-Inhalt einrücken */
.tabmenu > li ul {
  margin-left: 2em;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 600px) {
  /* Reiter untereinander auf kleinen Screens */
  .tabnav label {
    flex: 1 1 100%;
    padding: 10px 5px;
  }

  /* dl/dt/dd untereinander */
  .tabmenu dl {
    display: block;
  }

  .tabmenu dt {
      margin-top: 1em;
  }

  .tabmenu dd {
    padding-left: 1em;
    margin-left: 0.5em;
  }

  .tabmenu > li {
    padding: 10px;
  }

  .tabgroup a{font-size: 1.1rem;}

}
