/* ============================================================
   SL Info — Stylesheet
   Kompaktes Frage-Antwort-Layout: Stahlgrau + Bernstein-Akzent
   Mobile-first · Breakpoints: 700px, 960px · Keine Webfonts
   ============================================================ */

:root {
  --primary: #2e3a46;        /* Stahl, dunkel: Header, Tabellenkopf */
  --secondary: #46586c;      /* Stahl, mittel */
  --accent: #f6a41c;         /* Bernstein-Orange: Flächen, Marker */
  --accent-strong: #b45309;  /* Bernstein, dunkel: Links, Text-Akzente */
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-alt: #e9edf1;
  --text: #1d2732;
  --muted: #55636f;
  --border: #d3dae1;
  --row-alt: #f2f5f8;
  --success: #1a7a3d;
  --danger: #b3261e;
  --radius: 4px;
  --on-dark: #f5f7fa;
  --on-dark-muted: #b8c4cf;
  --shadow: 0 1px 3px rgba(29, 39, 50, 0.12);
  --pad: 1rem;
}

/* ---------- Reset & Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ---------- Typografie ---------- */

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h1 {
  font-size: 1.65rem;
}

/* Frage-Rhythmus: jede H2 ist eine Frage mit Akzentmarke */
h2 {
  font-size: 1.3rem;
  margin-top: 2.2rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--accent);
  scroll-margin-top: 5rem;
}

h3 {
  font-size: 1.08rem;
  margin-top: 1.6rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

li::marker {
  color: var(--accent-strong);
  font-weight: 700;
}

a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--primary);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

strong {
  color: var(--primary);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  color: var(--muted);
  font-style: italic;
}

figure {
  margin: 1.4rem 0;
}

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

code,
kbd {
  font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

main {
  padding: 1.4rem 0 2.5rem;
}

article {
  max-width: 72ch;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.2rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--on-dark);
}

.brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  white-space: nowrap;
}

/* ---------- Navigation ---------- */

nav {
  font-size: 0.92rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.2rem;
  width: 100%;
}

.main-nav a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.main-nav a.active,
.active {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(150deg, var(--primary) 0%, #1f2933 100%);
  color: var(--on-dark);
  padding: 2rem 0 2.2rem;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.hero a {
  color: var(--accent);
}

.byline {
  font-size: 0.85rem;
  color: var(--on-dark-muted);
  margin-bottom: 1.1rem;
}

.byline strong {
  color: var(--on-dark);
}

/* Byline außerhalb des Hero (Unterseiten) */
article .byline,
main .byline {
  color: var(--muted);
}

article .byline strong,
main .byline strong {
  color: var(--text);
}

.intro-lead {
  font-size: 1.06rem;
  border-left: 4px solid var(--accent);
  padding: 0.2rem 0 0.2rem 0.9rem;
  margin-bottom: 1.3rem;
}

.intro-lead p {
  margin-bottom: 0;
}

.hero .intro-lead {
  color: var(--on-dark);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.3;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #1d2732;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #e0930e;
  border-color: #e0930e;
  color: #10161c;
}

.btn-secondary {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--on-dark-muted);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(246, 164, 28, 0.08);
}

/* Sekundär-Button auf hellem Grund (außerhalb des Hero) */
main .btn-secondary,
article .btn-secondary {
  color: var(--primary);
  border-color: var(--secondary);
}

main .btn-secondary:hover,
article .btn-secondary:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* ---------- Inhaltsverzeichnis ---------- */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 1.4rem 0 1.8rem;
  box-shadow: var(--shadow);
}

.toc-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.toc ol,
.toc ul {
  margin: 0;
  padding-left: 1.3rem;
}

.toc li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.toc a {
  text-decoration: none;
  font-weight: 600;
}

.toc a:hover {
  text-decoration: underline;
}

/* ---------- Callouts ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1.3rem 0;
  font-size: 0.97rem;
}

.callout strong {
  color: var(--accent-strong);
}

.callout.warn,
.warn {
  border-left-color: var(--danger);
  background: #fdf3f2;
}

.callout.warn strong,
.warn strong {
  color: var(--danger);
}

/* ---------- Tabellen ---------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

caption {
  text-align: left;
  font-weight: 700;
  padding: 0.6rem 0.75rem;
  color: var(--muted);
}

th,
td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

td {
  border-top: 1px solid var(--border);
}

thead th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: var(--row-alt);
}

tbody tr:hover {
  background: var(--surface-alt);
}

/* ---------- Illustrationen ---------- */

.illus {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- FAQ (details / summary) ---------- */

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
  margin: 0 0 0.55rem;
  box-shadow: var(--shadow);
}

details[open] {
  border-left-color: var(--accent);
}

summary {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  color: var(--primary);
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
  border-radius: var(--radius);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-strong);
  line-height: 1;
}

details[open] summary {
  border-bottom: 1px solid var(--border);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

details[open] summary::after {
  content: "\2212"; /* Minuszeichen */
}

summary:hover {
  background: var(--row-alt);
}

details > p,
details > div {
  padding: 0.7rem 0.9rem 0.2rem;
  margin-bottom: 0.6rem;
}

/* ---------- Autorenkasten ---------- */

.author-box {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin: 2.2rem 0 0.5rem;
  box-shadow: var(--shadow);
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

.author-name {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.1rem;
  color: var(--primary);
}

.author-role {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-strong);
  margin: 0 0 0.5rem;
}

.author-bio {
  font-size: 0.93rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Footer ---------- */

footer {
  font-size: 0.92rem;
}

.site-footer {
  background: var(--primary);
  color: var(--on-dark-muted);
  margin-top: 2.5rem;
  padding: 0 0 1.4rem;
  border-top: 3px solid var(--accent);
}

.footer-warn {
  background: #232d38;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  padding: 0.7rem 1rem;
  margin: 0 calc(-1 * var(--pad)) 1.4rem;
  letter-spacing: 0.01em;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-cols h3 {
  color: #ffffff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
}

.footer-cols p {
  margin: 0;
  color: var(--on-dark-muted);
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cols li {
  margin-bottom: 0.35rem;
}

.footer-cols a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-legal {
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  text-align: center;
}

/* ============================================================
   Breakpoint 700px
   ============================================================ */

@media (min-width: 700px) {
  :root {
    --pad: 1.5rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .site-header .container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .main-nav {
    width: auto;
    justify-content: flex-end;
  }

  .hero {
    padding: 2.8rem 0 3rem;
  }

  .intro-lead {
    font-size: 1.12rem;
  }

  th,
  td {
    padding: 0.65rem 0.9rem;
  }

  .author-box {
    flex-direction: row;
    align-items: flex-start;
  }

  .footer-cols {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }

  .footer-warn {
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
  }
}

/* ============================================================
   Breakpoint 960px
   ============================================================ */

@media (min-width: 960px) {
  body {
    font-size: 1.04rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  .container {
    max-width: 960px;
  }

  article {
    max-width: 76ch;
  }

  summary {
    font-size: 1.15rem;
  }

  .hero {
    padding: 3.4rem 0 3.6rem;
  }

  main {
    padding-top: 1.8rem;
  }
}

/* ---------- Druck & Bedienhilfen ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-cta {
    display: none;
  }

  body {
    background: #ffffff;
  }

  details {
    border: 1px solid #999999;
  }

  details > * {
    display: block;
  }
}
