:root {
  --primary: #0f2942;
  --primary-light: #1d4ed8;
  --accent: #d97706;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Bar & Header */
.top-notice {
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  text-align: center;
}
.top-notice a { color: #fbbf24; font-weight: 600; }

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand h1, .brand .site-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.brand span { font-size: 0.85rem; color: var(--text-muted); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switch a {
  padding: 0.35rem 0.7rem;
  color: var(--text);
  text-decoration: none;
}
.lang-switch a.active {
  background: var(--primary);
  color: #fff;
}



/* Hero mit Hintergrundbild rechts */
.hero {
  position: relative;
  background-color: #0f2942;
  background-image: 
    linear-gradient(90deg, #0f2942 0%, rgba(15, 41, 66, 0.94) 55%, rgba(30, 58, 138, 0.45) 100%),
    url("https://info.dimmer.de/images/dimmer-doktor.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  color: #fff;
  padding: 3.5rem 0;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.hero-content {
  max-width: 65%;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.hero p {
  color: #e2e8f0;
  font-size: 1.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Optimierung für Smartphones & schmale Bildschirme */
@media (max-width: 768px) {
  .hero {
    background-image: 
      linear-gradient(180deg, rgba(15, 41, 66, 0.92) 0%, rgba(15, 41, 66, 0.85) 100%),
      url("https://info.dimmer.de/images/dimmer-doktor.jpg");
    background-position: center top;
  }
  .hero-content {
    max-width: 100%;
  }
}







/* Category Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-2px); }
.card h2 {
  font-size: 1.25rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.card ul { list-style: none; }
.card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.card li:last-child { border-bottom: none; }
.card li a {
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card li a::after { content: "→"; color: var(--accent); font-weight: bold; }
.card li a:hover { color: var(--primary-light); text-decoration: none; }

/* Subpage Article Layout */
.article-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.breadcrumb { font-size: 0.875rem; color: var(--text-muted); margin-top: 1.5rem; }

/* Consulting CTA Box */
.cta-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
}
.btn:hover { background: var(--primary-light); text-decoration: none; }

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
footer a { color: #cbd5e1; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}


/* Praxisbeispiele & Fallstudien */
.toc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}
.toc-pills a {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.toc-pills a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.ref-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}
.ref-section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.ref-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-light);
  border-radius: 8px;
  padding: 1.25rem;
}
.ref-item h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.ref-item p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.ref-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  background: #e0e7ff;
  color: #1e3a8a;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
