:root {
  --primary: #0070f3;
  --primary-dark: #0059c9;
  --primary-light: #e6f0ff;
  --accent: #1a5276;
  --text: #2f2f2f;
  --bg: #f8f9fb;
  --white: #fff;
  --border: #e5e7eb;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --transition: all 0.25s ease;
}

/* --- Grundlayout & Schrift --- */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.8;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* --- Container --- */
.page-container {
  max-width: 860px;
  margin: 3.5rem auto;
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.page-container:hover {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.1);
}

/* --- Header --- */
.site-header {
  background-color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-logo {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--primary);
}

/* --- Überschriften --- */
h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(90deg, #004e92, #0070f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.7rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  color: #163b64;
  border-left: 4px solid var(--primary);
  padding-left: 0.8rem;
  position: relative;
}

h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  margin-bottom: 0.6rem;
  border-radius: 2px;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  color: #2f4f4f;
}

/* --- Textstruktur --- */
p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

ul {
  padding-left: 1.3rem;
}

ul li {
  margin-bottom: 0.8rem;
  padding-left: 0.2rem;
}

ul li::marker {
  color: var(--primary);
}

strong {
  color: #0d6657;
}

/* --- Hinweisboxen --- */
.highlight-box {
  background-color: var(--primary-light);
  border-left: 6px solid var(--primary);
  padding: 1.3rem 1.6rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  font-size: 1.05rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.warning-box {
  background-color: #fff9e6;
  border-left: 6px solid #f0ad4e;
  padding: 1.3rem 1.6rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  font-size: 0.96rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.warning-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

/* --- Buttons --- */
.button-container {
  text-align: center;
  margin: 2.5rem 0;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 112, 243, 0.25);
  isolation: isolate;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #0070f3, #00c6ff);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.button:hover::before {
  opacity: 1;
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 112, 243, 0.3);
}

/* --- FAQ --- */
.faq-section {
  margin-top: 2.5rem;
}

.faq-section h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--accent);
  position: relative;
}

.faq-section p {
  margin-top: 0.3rem;
  color: #444;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 3rem 0 2rem 0;
  margin-top: 4rem;
  font-size: 0.95rem;
  color: #555;
  border-top: 1px solid var(--border);
  background: #fdfdfd;
}

footer p {
  margin: 0.4rem 0;
}

footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Links allgemein --- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- Responsive Tabellen --- */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* sorgt dafür, dass Spalten lesbar bleiben */
}

table th, table td {
  padding: 0.8rem;
  border: 1px solid #e0e6ed;
  text-align: left;
  vertical-align: top;
}

table th {
  background-color: #f5f8fb;
  font-weight: 600;
  color: #1a5276;
}

/* --- Textumbruch für lange Wörter auf kleinen Displays --- */
h1, h2, h3, p, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}


/* --- Responsive --- */
@media (max-width: 700px) {
  .page-container {
    margin: 1.2rem;
    padding: 1.8rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .button {
    padding: 0.8rem 1.5rem;
  }
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e6ebf1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
  padding: 1.2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* dezente Glanzlinie am oberen Rand */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #004e92, #0070f3);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* Schriftzug / Logo */
.site-logo {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a5276;
  text-decoration: none;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #004e92, #0070f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.25s ease;
}

/* Hover-Effekt: heller Farbverlauf + leichtes Anheben */
.site-logo:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #0054a6, #339af0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 6px rgba(0, 112, 243, 0.15);
}

/* Optional: leichtes Unterstatement beim Scrollen (keine JS nötig) */
@supports (position: sticky) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
  }
}

/* Mobile Anpassung */
@media (max-width: 700px) {
  .site-header {
    padding: 1.2rem 1rem;
  }
  .site-logo {
    font-size: 1.7rem;
  }
}
