/* ============================================================
   1. GOOGLE FONT + VARIABLEN
   ============================================================ */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --brand-blue: #0078D4;
  --link-blue: #2a4ebd;
  --link-hover: #0056a3;
  --grey-100: #f9fbff;
  --grey-300: #ddd;
  --grey-400: #ccc;
  --grey-text: #666;
}

/* ============================================================
   2. RESET & LAYOUT
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.7;
  max-width: 1200px;
  margin: auto;
  padding-block: 40px;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ============================================================
   3. TYPOGRAFIE
   ============================================================ */
h1, h2, h3 {
  font-weight: 700;
  margin: 2rem 0 1rem;
}

h1 {
  font-size: 2rem;
  background: var(--brand-blue);
  color: white;
  border-radius: 6px;
  padding: 12px 20px;
}

h2 {
  font-size: 1.5rem;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
  border-radius: 6px;
  padding: 10px 15px;
  background: var(--grey-100);
}

h3 {
  font-size: 1.2rem;
  color: #444;
  margin-top: 1.5rem;
}

p {
  margin: 1rem 0;
}

/* ============================================================
   4. NAVIGATION & HEADER
   ============================================================ */
.site-header {
  background: var(--brand-blue);
  color: white;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 40px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover {
  text-decoration: underline;
}

.main-nav a.active {
  text-decoration: underline;
  font-weight: 700;
}

/* ============================================================
   5. BREADCRUMB & BACK-LINK
   ============================================================ */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--link-blue);
}

.breadcrumb a:hover {
  color: var(--link-hover);
}

.back-link {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--grey-text);
}

.back-link a {
  color: var(--link-blue);
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

/* ============================================================
   6. LISTEN, LINKS, CODE, BILDER
   ============================================================ */
a {
  color: var(--link-blue);
  text-decoration: underline;
}

a:hover {
  color: var(--link-hover);
}

ul {
  margin: 1rem 0 2rem 1.5rem;
  list-style: disc;
}

li {
  margin-bottom: 0.4rem;
}

code, pre {
  background: #f0f0f0;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: Consolas, monospace;
}

pre {
  overflow-x: auto;
}

img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ============================================================
   7. TABELLEN
   ============================================================ */
table {
  margin: 2rem 0;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--grey-400);
  padding: 12px;
}

th {
  background: #f0f4ff;
  font-weight: 600;
  color: #222;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--grey-text);
  font-size: 0.9rem;
  border-top: 1px solid #eee;
  opacity: 0.8;
}

footer a {
  color: var(--link-blue);
}

/* ============================================================
   9. MEDIA QUERIES
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding-inline: 20px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  table, th, td {
    font-size: 0.9rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
  }
}
