:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #eef2f5;
  --text: #15202b;
  --muted: #596574;
  --line: #d9e0e6;
  --accent: #2f6f78;
  --accent-dark: #1f5158;
  --shadow: 0 18px 40px rgba(12, 25, 38, 0.08);
  --radius: 22px;
}

/* =========================
   BASIS = index.php
   ========================= */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.navbar {
  background: rgba(246, 247, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 224, 230, 0.7);
}

.navbar-brand img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text);
}

.hero {
  padding: 7rem 0 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #e7eff1;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

h1 {
  font-size: clamp(2.35rem, 4.7vw, 4.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero p.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  max-width: 44rem;
  margin-bottom: 2rem;
}

.btn-primary-custom,
.btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s ease;
}

.btn-primary-custom:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary-custom {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-custom:hover {
  background: #fff;
  color: var(--text);
}

.hero-card,
.section-card,
.service-card,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(217, 224, 230, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle at center, rgba(47,111,120,0.13), rgba(47,111,120,0));
  pointer-events: none;
}

.hero-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-list li,
.check-list li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.hero-list li::before,
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.02rem;
  color: var(--accent);
  font-weight: 800;
}

.badge-strip {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.soft-badge {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
}

section {
  padding: 2rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--muted);
  max-width: 48rem;
  margin: 0;
}

.service-card {
  padding: 1.5rem;
  height: 100%;
}

.service-card .service-kicker {
  display: inline-block;
  background: #eef2f5;
  color: var(--accent-dark);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-card {
  padding: 1.6rem;
}

.quote-band {
  background: linear-gradient(135deg, #2b3948, #41566d);
  color: #fff;
  border-radius: 22px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0 0;
  box-shadow: var(--shadow);
}

.quote-band p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.example-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  height: 100%;
}

.example-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.example-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-card {
  padding: 1.75rem;
  height: 100%;
}

.contact-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}

.mini-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border-radius: 14px;
  border-color: var(--line);
  padding: 0.9rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(47,111,120,0.45);
  box-shadow: 0 0 0 0.22rem rgba(47,111,120,0.14);
}

footer {
  padding: 2.2rem 0 2.8rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* =========================
   SERVICE-SEITEN
   Automatisch erkannt über .list-clean
   ========================= */

body:has(.list-clean) {
  line-height: 1.6;
}

body:has(.list-clean) .navbar {
  background: rgba(246, 247, 248, 0.92);
  border-bottom: 1px solid rgba(217, 224, 230, 0.75);
}

body:has(.list-clean) .hero {
  padding: 7rem 0 3rem;
}

body:has(.list-clean) h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.7rem);
  line-height: 1.04;
  margin-bottom: 1.2rem;
}

body:has(.list-clean) .lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
  max-width: 45rem;
}

body:has(.list-clean) .hero-card,
body:has(.list-clean) .section-card,
body:has(.list-clean) .service-card,
body:has(.list-clean) .contact-card,
body:has(.list-clean) .info-card,
body:has(.list-clean) .blog-card,
body:has(.list-clean) .visual-card,
body:has(.list-clean) .visual-text {
  background: var(--surface);
  border: 1px solid rgba(217, 224, 230, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body:has(.list-clean) .hero-card {
  padding: 1.7rem;
  height: 100%;
}

body:has(.list-clean) .hero-card::before {
  background: radial-gradient(circle at center, rgba(47,111,120,0.12), rgba(47,111,120,0));
}

body:has(.list-clean) .hero-card h2,
body:has(.list-clean) .info-card h3,
body:has(.list-clean) .section-card h3,
body:has(.list-clean) .blog-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

body:has(.list-clean) .list-clean,
body:has(.list-clean) .check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body:has(.list-clean) .list-clean li,
body:has(.list-clean) .check-list li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
}

body:has(.list-clean) .list-clean li::before,
body:has(.list-clean) .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.02rem;
  color: var(--accent);
  font-weight: 800;
}

body:has(.list-clean) .soft-badge {
  background: rgba(255,255,255,0.82);
}

body:has(.list-clean) .section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

body:has(.list-clean) .section-head p {
  max-width: 49rem;
}

body:has(.list-clean) .info-card,
body:has(.list-clean) .section-card,
body:has(.list-clean) .contact-card,
body:has(.list-clean) .blog-card {
  padding: 1.6rem;
  height: 100%;
}

body:has(.list-clean) .service-card {
  padding: 1.45rem;
  height: 100%;
}

body:has(.list-clean) .service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

body:has(.list-clean) .service-card p,
body:has(.list-clean) .blog-card p {
  color: var(--muted);
  margin-bottom: 0;
}

body:has(.list-clean) .quote-band {
  margin-top: 2rem;
}

body:has(.list-clean) .visual-card {
  overflow: hidden;
  height: 100%;
}

body:has(.list-clean) .visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

body:has(.list-clean) .visual-text {
  padding: 1.6rem;
  height: 100%;
}

body:has(.list-clean) .visual-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

body:has(.list-clean) .visual-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #eef2f5;
  color: var(--text);
  font-weight: 600;
}

body:has(.list-clean) .blog-link {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-dark);
}

/* =========================
   BLOG / ARTIKEL
   Automatisch erkannt über .article-shell
   ========================= */

body:has(.article-shell) {
  line-height: 1.7;
}

body:has(.article-shell) .navbar {
  background: rgba(246, 247, 248, 0.92);
  border-bottom: 1px solid rgba(217, 224, 230, 0.75);
}

body:has(.article-shell) main {
  padding: 7rem 0 3rem;
}

body:has(.article-shell) .article-shell {
  background: var(--surface);
  border: 1px solid rgba(217, 224, 230, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

body:has(.article-shell) .eyebrow {
  display: inline-block;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

body:has(.article-shell) .eyebrow::before {
  content: none;
}

body:has(.article-shell) h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.3rem;
}

body:has(.article-shell) h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

body:has(.article-shell) h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.7rem;
  margin-bottom: 0.75rem;
}

body:has(.article-shell) p,
body:has(.article-shell) li {
  color: var(--muted);
}

body:has(.article-shell) strong {
  color: var(--text);
}

body:has(.article-shell) a {
  color: var(--accent-dark);
}

body:has(.article-shell) .summary,
body:has(.article-shell) .example {
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}

body:has(.article-shell) .summary {
  margin-bottom: 1.5rem;
}

body:has(.article-shell) ul {
  padding-left: 1.25rem;
}

body:has(.article-shell) li {
  margin-bottom: 0.55rem;
}

body:has(.article-shell) .cta-box {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #2b3948, #41566d);
  color: #fff;
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

body:has(.article-shell) .cta-box p,
body:has(.article-shell) .cta-box li {
  color: rgba(255,255,255,0.9);
}

body:has(.article-shell) .cta-box strong {
  color: #fff;
}

body:has(.article-shell) .back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-dark);
}

body:has(.article-shell) .example {
  margin: 1.1rem 0;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 38px;
  }

  .hero {
    padding-top: 6rem;
  }

  body:has(.article-shell) main {
    padding-top: 6rem;
  }

  body:has(.article-shell) .article-shell {
    padding: 1.35rem;
  }
}

.zammad-form-group label {
  margin-bottom: .5rem;
}