/* ==================== 1. Schriften ==================== */
/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/open-sans-v44-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/open-sans-v44-latin-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/open-sans-v44-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/open-sans-v44-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ==================== 2. Variablen ==================== */
:root {
  /* Farben */
  --color-accent: #337ab7;
  --color-border: #e5e7eb;
  --color-dark: #262626;
  --color-light: #ffffff;
  --color-line: #cccccc;
  --color-page-bg: #fafafa;
  --color-text-muted: #555555;
  --youtube-consent: #000000;
  --youtube-red: #ff0000;

  /* Gestaltung */
  --radius: 1rem;
  --radius-small: 7px;
  --shadow-card: 0 4px 8px 0 #262626, 0 6px 20px 0 #262626;
}

/* ==================== 3. Grundlagen ==================== */
* {
  box-sizing: border-box;
}

html {
  font-family: "Open Sans", sans-serif;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--color-page-bg);
  font-size: 1rem;
  margin-top: 20px;
}

h1 {
  color: var(--color-dark);
  font-size: clamp(1.25rem, 0.94rem + 1.36vw, 2rem);
  font-weight: 600;
  line-height: 100%;
}

h2,
.tagline {
  color: var(--color-dark);
  font-size: clamp(1rem, 0.79rem + 0.9vw, 1.5rem);
  font-weight: normal;
  line-height: 1.5;
}

h3 {
  font-size: clamp(0.88rem, 0.82rem + 0.23vw, 1rem);
  font-weight: bold;
}

img {
  height: auto;
  max-width: 100%;
}

ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: 2em 0;
}

address {
  font-style: normal;
}

/* ==================== 4. Seitenaufbau ==================== */
/* die großen Bereiche, die auf jeder Seite vorkommen */
header {
  background: var(--color-page-bg);
  color: var(--color-dark);
  font-size: clamp(0.75rem, 0.72rem + 0.11vw, 0.81rem);
  text-align: center;
}

header a {
  color: var(--color-dark);
  text-decoration: none;
}

header a[aria-current] {
  text-decoration: underline;
}

header,
main,
.main-nav {
  margin-inline: auto;
  width: min(100% - 3rem, 1000px);
}

nav {
  background: var(--color-page-bg);
  color: var(--color-dark);
  font-weight: normal;
  margin: 0 auto;
  text-align: center;
  width: 90%;
}

main {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-dark);
  font-size: clamp(0.88rem, 0.82rem + 0.23vw, 1rem);
  font-weight: normal;
  line-height: 175%;
  margin: 25px auto;
  padding: 25px;
  text-align: center;
}

main a,
main a:visited,
main a:hover,
main a:active {
  color: var(--color-dark);
}

footer {
  background: var(--color-page-bg);
  color: var(--color-dark);
  font-size: clamp(0.88rem, 0.82rem + 0.23vw, 1rem);
  font-weight: normal;
  margin: 0 auto;
  text-align: center;
  width: 90%;
}

footer a,
footer a:visited {
  color: var(--color-dark);
  text-decoration: none;
}

/* ==================== 5. Bausteine ==================== */
/* wiederverwendbare Teile, jeweils zusammen gruppiert */
article ol {
  text-align: left;
}

.dropdown {
  display: inline-block;
  position: relative;
  text-align: center;
}

.dropbtn {
  background-color: var(--color-dark);
  border: 1px solid var(--color-dark);
  border-radius: var(--radius);
  color: var(--color-light);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  list-style: none;
  margin-top: 20px;
  margin-bottom: 5px;
  min-width: 200px;
  padding: 12px;
}

.dropdown-content {
  background: var(--color-dark);
  border-radius: var(--radius);
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  display: none;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
  min-width: 200px;
  padding: 0;
  position: absolute;
  z-index: 1;
}

.dropdown[open] .dropdown-content,
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  border-radius: var(--radius);
  color: var(--color-light);
  display: block;
  padding: 6px 8px;
  text-decoration: none;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: bold;
}

.intro {
  font-style: italic;
  margin: 0 auto;
  max-width: 500px;
  padding-bottom: 20px;
}

.nach-oben:hover .nach-oben-text {
  text-decoration: underline;
}

.nach-oben-text {
  font-weight: bold;
}

.pfeil,
.nach-oben-text {
  display: block;
}

.footer-nav a:hover,
.footer-nav a:active {
  color: var(--color-dark);
  text-decoration: underline;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0;
}

.img {
  background-color: var(--color-dark);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  margin: 5px;
  width: clamp(200px, 50%, 600px);
}

.img2 {
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  margin: 5px;
  width: clamp(150px, 50%, 300px);
}

.galerie {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  margin: 0 auto;
  max-width: 800px;
}

.galerie .img {
  margin: 0;
  width: 100%;
}

.video-card {
  margin: 0 auto 2.5rem auto;
  max-width: 800px;
}

.video-container {
  align-items: center;
  aspect-ratio: 16 / 9;
  background-color: var(--color-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--color-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
  padding: 1.25rem;
  position: relative;
  text-align: center;
}

.video-container p {
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem);
  margin: 0;
  max-width: 45ch;
  text-wrap: pretty;
}

.video-container iframe {
  border: none;
  border-radius: var(--radius);
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.consent-button {
  background-color: var(--youtube-red);
  border: none;
  border-radius: 4px;
  color: var(--color-light);
  cursor: pointer;
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem);
  font-weight: bold;
  padding: 10px 20px;
}

.consent-button:hover {
  color: var(--youtube-consent);
}

/* ==================== 6. Einzelne Seiten ==================== */
.uebermich p {
  margin: 10px auto;
  max-width: 85ch;
  text-align: left;
}

.info {
  margin: 0 auto;
  max-width: 700px;
  padding: 0;
  text-align: left;
}

.teachers {
  margin: 0 auto;
  max-width: 800px;
  padding: 5px 0px;
}

.teacher-credits {
  color: var(--color-text-muted);
  display: block;
  font-size: clamp(0.75rem, 0.7rem + 0.23vw, 0.88rem);
  padding-bottom: 10px;
}

.list-heading {
  margin-bottom: 0;
}

.list-heading + ul {
  margin-top: 0;
}

.datenschutz {
  hyphens: auto;
  margin: 0 auto;
  max-width: 85ch;
  text-align: justify;
}

.datenschutz h3 {
  margin-bottom: 0;
}

.datenschutz h3 + p {
  margin-top: 0;
}

.datenschutz h4 {
  font-style: italic;
  font-weight: normal;
  margin-bottom: 0;
}

.datenschutz h4 + p {
  margin-top: 0;
}
