/* ========= Basics ========= */
:root{
  --bg: #fafafa;
  --fg: #2b2b2b;
  --accent: #2a5298;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-left: 3px solid white;   /* eleganter Strich links */
  transition: all 0.3s ease;
  opacity: 0.85;
}

.back-button:hover {
  opacity: 1;
  transform: translateX(-5px);   /* leichter Slide-Effekt nach links */
}

/* ========= Header ========= */
header {
  background: linear-gradient(120deg, #1e3c72, #2a5298);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin: 0 0 20px;
}

header nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition:  0.3s ease;
}

header nav ul li a:hover {
  background: rgba(255,255,255,0.2);
}

/* ========= Main ========= */
main {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

/* ========= Content Sections ========= */
section {
  background: white;
  border-radius: 14px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1a1a1a;
  text-align: center;
}

h3 {
  position: relative;
  font-size: 1.3rem;
  margin-top: 30px;
  font-weight: 600;
  color: var(--accent);
  padding-left: 12px; /* Platz für den Strich */
}

h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;               /* ein Stück nach unten versetzt */
  width: 2px;               /* kurze Strich-Länge */
  height: 1.2em;            /* Höhe in Relation zur Schriftgröße */
  background: var(--accent);
  
}


p {
  font-size: 1.05rem;
  margin: 15px 0;
  color: #555;
}

ul {
  margin: 15px 0 25px 20px;
  line-height: 1.6;
  color: #555;
}

ul li {
  margin-bottom: 8px;
}

/* ========= Tabellen ========= */
.markdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
}

.markdown-table th, 
.markdown-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.markdown-table th {
  background: #f5f7fa;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.markdown-table tr:nth-child(even) {
  background: #fafafa;
}

/* ========= Codeblöcke ========= */
pre {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  color: #2c3e50;
}

/* ========= Links ========= */
.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.text-link:hover::after {
  width: 100%;
}

/* ========= Iframe ========= */
.iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}

/* ========= Responsive ========= */
@media (max-width: 900px) {
  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  header h1 {
    font-size: 2rem;
  }

  .iframe {
    height: 300px;
  }
}
