:root {
  --accent: #006699;
  --accent-light: #e8f1f8;
  --border: #ccc;
  --text: #222;
  --bg: #fff;
  --bg-alt: #f4f7f9; /* Sehr sanftes blaugrau für die Sections */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  max-width: 54em;
  margin: 0 auto;
  padding: 1.5em 2em 6em;
}
h1 {
  color: var(--accent);
  font-size: 1.55em;
  border-bottom: 3px solid var(--accent);
  padding-bottom: .3em;
  margin-bottom: .6em;
}
h2 {
  color: var(--accent);
  font-size: 1.25em;
  margin-top: 2em;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: .2em;
}
h3 {
  font-size: 1.05em;
  margin-top: 1.4em;
  margin-bottom: .3em;
  color: var(--accent);
}
h4 { font-size: 1em; margin-top: 1.2em; }
p, ul, ol { margin-top: .6em; }
ul { padding-left: 1.6em; }
a { color: var(--accent); }

/* Subpages */
.subpage-nav {
  padding: .7em 1em;
}
.subpage-nav a {
  font-weight: 600;
}

/* Copyable prompts */
.prompt-section {
  padding-top: 1.4em;
  padding-bottom: 1.4em;
}
.prompt-heading {
  align-items: flex-start;
  display: flex;
  gap: 1em;
  justify-content: space-between;
  margin-bottom: .8em;
}
.prompt-heading h2 {
  border-bottom: 0;
  margin-top: 0;
}
.prompt-section summary {
  color: var(--accent);
  cursor: pointer;
}
.copy-button {
  appearance: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  flex: 0 0 auto;
  margin: 0;
  padding: .45em .8em;
}
.copy-button:hover {
  background: #005580;
}
.copy-button:focus-visible {
  outline: 3px solid #f9a825;
  outline-offset: 2px;
}
.prompt-text {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: .9em;
  line-height: 1.5;
  max-height: 32em;
  overflow: auto;
  padding: 1em;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Navigation */
nav {
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.2em;
  margin: 1em 0 1.5em;
}
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5em;
}
.nav-grid h4 {
  margin-top: 0;
  margin-bottom: 0.4em;
  color: var(--accent);
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2em;
}
nav ul { list-style: none; padding: 0; }
nav li { margin: .3em 0; font-size: 0.95em; }

/* Tables */
table.grading {
  border-collapse: collapse;
  margin: .6em 0;
  width: 100%;
}
@media (max-width: 700px) {
  table.grading {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
table.grading td, table.grading th {
  border: 1px solid var(--border);
  padding: .35em .7em;
  text-align: left;
}
table.grading th {
  background: var(--accent-light);
}
.test-week {
  background-color: #fff8e1;
}
.break-week {
  text-align: center;
  background: var(--accent-light);
  font-style: italic;
}

/* Team Layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin-bottom: 1em;
}
.team-grid h3 {
  margin-top: 1.4em;
}

/* Highlight boxes */
.hinweis {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  padding: .7em 1em;
  margin: .8em 0;
  border-radius: 2px;
}
.wichtig {
  background: #fce4ec;
  border-left: 4px solid #c62828;
  padding: .7em 1em;
  margin: .8em 0;
  border-radius: 2px;
}
.termin-box {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1.2em;
  margin: 1.5em 0;
}
.termin-box ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.termin-box li {
  margin-bottom: 0.4em;
}

/* Alternierende Sektionen */
section {
  padding: 2em;
  margin: 1em -2em; /* Zieht die Box an den Rand des Body-Paddings */
  border-radius: 8px;
}
section:nth-of-type(even) {
  background-color: var(--bg-alt);
}
section h2:first-child {
  margin-top: 0;
}

/* Team Layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin-bottom: 1em;
}
.team-grid h3 {
  margin-top: 1.4em;
}

/* Responsive */
@media (max-width: 600px) {
  body { padding: 1em; }
  section {
    padding: 1.5em 1em;
    margin: 1em -1em;
  }
  .prompt-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .copy-button {
    align-self: flex-start;
  }
}
