/* superusers.de - geteiltes CSS für alle Seiten
 * Header, Navigation, Logo, Footer, Buttons, gemeinsame Variablen.
 * Seitenspezifisches CSS bleibt inline in der jeweiligen HTML-Datei.
 */

:root {
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --text: #0c0c0c;
  --text-secondary: #5a5a5a;
  --border: #e0e0e0;
  --border-light: #ede8e2;
  --accent: #003049;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* ===== Container ===== */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Section ===== */
.section { padding: 3.5rem 0; }
@media (max-width: 700px) { .section { padding: 2.5rem 0; } }

/* Anchor-Targets sollen unter dem fixed Header landen (sticky-Header ~64px hoch).
 * Plus etwas Luft, damit Section-Anfang sichtbar ist statt direkt am Trenner. */
section[id], [id="ueber"], [id="zsf-akademie"] {
  scroll-margin-top: 5rem;
}

/* ===== Header ===== */
header,
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.97);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

/* ===== Logo ===== */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.logo span { color: var(--text); }

/* ===== Navigation ===== */
nav a {
  margin-left: 1.8rem;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }
nav a.active { color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
  }
  nav.active { display: flex; }
  nav a { margin: 0; padding: 0.75rem 0; display: block; }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.4rem; }

/* ===== Footer ===== */
footer {
  background: var(--text);
  color: #d3d3d3;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1.5rem;
}
.footer-links a {
  color: #d3d3d3;
  text-decoration: none;
  margin-left: 1.2rem;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
