:root {
  --navy: #1e3a5f;
  --navy-dark: #142a45;
  --navy-light: #2b5082;
  --terracotta: #c0542b;
  --terracotta-hover: #a34523;
  --cream: #f8f6f3;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-muted: #5a5a5a;
  --border: #e2dfd9;
  --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}

.logo { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.2; cursor: pointer; }
.logo span { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links > li > a { font-size: 15px; font-weight: 600; color: var(--text); }
.nav-links > li > a:hover { color: var(--terracotta); }

.nav-cta {
  background: var(--terracotta) !important; color: var(--white) !important;
  padding: 10px 24px; border-radius: 6px; font-weight: 600; font-size: 14px !important;
}
.nav-cta:hover { background: var(--terracotta-hover) !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-trigger { cursor: pointer; }
.dropdown-trigger::after { content: ' \25BE'; font-size: 11px; color: var(--text-muted); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: -16px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 20px 0 8px; min-width: 300px; box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  list-style: none; z-index: 200;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 15px; font-weight: 400; color: var(--text); }
.dropdown-menu a:hover { background: var(--cream); color: var(--terracotta); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 6px 0; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  padding: 160px 24px 120px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.25; margin-bottom: 20px; }
.hero-sub { font-size: 20px; line-height: 1.65; color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; font-size: 14px; color: rgba(255,255,255,0.75);
  margin-bottom: 40px; letter-spacing: 0.02em;
}
.hero-badge a { color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.3); }
.hero-badge a:hover { color: var(--white); }

/* Sub-page hero */
.page-hero {
  padding: 140px 24px 56px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.page-hero .lead { font-size: 19px; line-height: 1.65; color: rgba(255,255,255,0.8); max-width: 640px; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; background: var(--terracotta); color: var(--white);
  padding: 16px 40px; border-radius: 6px; font-size: 17px; font-weight: 600;
  transition: background 0.2s, transform 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--terracotta-hover); color: var(--white); transform: translateY(-1px); }

.btn-outline {
  display: inline-block; border: 2px solid var(--navy); color: var(--navy);
  padding: 14px 36px; border-radius: 6px; font-size: 16px; font-weight: 600;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ===== SECTIONS ===== */
.section { padding: 96px 24px; }
.section-light { background: var(--cream); }
.section-dark { background: var(--navy); color: var(--white); }

.section-header { max-width: 640px; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-heading); font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700; color: var(--navy); margin-bottom: 16px; line-height: 1.3;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p { font-size: 18px; color: var(--text-muted); line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ===== CONTENT SECTIONS (subpages) ===== */
.content-section { padding: 80px 24px; }
.content-section.alt { background: var(--cream); }
.content-body { max-width: 720px; }
.content-body h2 {
  font-family: var(--font-heading); font-size: clamp(24px, 3vw, 32px);
  font-weight: 700; color: var(--navy); margin-bottom: 24px; line-height: 1.3;
}
.content-body h3 {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  color: var(--navy); margin: 36px 0 14px; line-height: 1.4;
}
.content-body p { margin-bottom: 18px; font-size: 18px; line-height: 1.75; }
.content-body p:last-child { margin-bottom: 0; }
.content-body .punchline { font-size: 20px; font-weight: 600; color: var(--navy); }
.content-body ul { margin: 0 0 24px 24px; }
.content-body li { margin-bottom: 8px; font-size: 17px; line-height: 1.65; }

/* ===== COMPLIANCE CARDS ===== */
.law-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.law-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--navy); border-radius: 6px; padding: 28px 24px;
}
.law-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.law-card p { font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 36px 32px; transition: box-shadow 0.3s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.service-card.featured { border-color: var(--navy); border-width: 2px; position: relative; }
.service-card.featured::before {
  content: 'Kernleistung'; position: absolute; top: -12px; left: 24px;
  background: var(--navy); color: var(--white); font-size: 12px; font-weight: 600;
  padding: 3px 12px; border-radius: 3px; letter-spacing: 0.04em; text-transform: uppercase;
}
.service-icon {
  width: 48px; height: 48px; background: var(--cream); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 22px;
}
.service-card h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.service-card p { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin-bottom: 20px; }
.service-link { font-size: 15px; font-weight: 600; color: var(--terracotta); cursor: pointer; }
.service-link:hover { color: var(--terracotta-hover); }

/* ===== PROCESS ===== */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-step { text-align: center; padding: 32px 24px; }
.step-number {
  width: 48px; height: 48px; background: var(--navy); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; margin: 0 auto 20px; font-family: var(--font-heading);
}
.process-step h3 { font-family: var(--font-heading); font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.process-step p { font-size: 16px; line-height: 1.65; color: var(--text-muted); }

/* ===== REFERENCE CARDS ===== */
.ref-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.ref-card { background: var(--cream); border-radius: 8px; padding: 32px 28px; border-left: 4px solid var(--navy); }
.ref-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ref-card .ref-client { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.ref-card p { font-size: 15px; line-height: 1.65; color: var(--text); }
.ref-logos { text-align: center; }
.ref-logos h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 24px; }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logo-wall span { display: inline-block; background: var(--cream); padding: 8px 18px; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

/* ===== CASE STUDY ===== */
.case-study { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.case-study:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.case-study .cs-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--terracotta); font-weight: 600; margin-bottom: 8px; }
.case-study h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.case-study .cs-client { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.case-study p { font-size: 17px; line-height: 1.75; margin-bottom: 14px; }
.case-study .cs-link { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--terracotta); }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: start; }
.about-text p { margin-bottom: 18px; font-size: 18px; line-height: 1.75; }
.about-text .opener { font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.5; }
.about-sidebar { background: var(--cream); border-radius: 8px; padding: 32px; }
.about-sidebar h3 { font-family: var(--font-heading); font-size: 16px; color: var(--navy); margin-bottom: 20px; }
.fact-list { list-style: none; }
.fact-list li { font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.fact-list li:last-child { border-bottom: none; }
.fact-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 2px; }
.about-photo-wrap {
  width: 75%; margin: 0 auto 24px; border-radius: 50%; overflow: hidden; aspect-ratio: 1/1;
}
.about-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }

/* ===== INDUSTRY TAGS ===== */
.industry-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.industry-tag {
  background: var(--cream); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 18px; font-size: 15px; font-weight: 600; color: var(--navy);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.testimonial-card {
  background: var(--cream); border-left: 4px solid var(--terracotta); border-radius: 6px;
  padding: 32px 28px; margin: 0;
}
.testimonial-text { font-size: 17px; line-height: 1.75; color: var(--text); margin-bottom: 20px; }
.testimonial-author strong { display: block; font-size: 15px; color: var(--navy); }
.testimonial-author span { display: block; font-size: 14px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--navy);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary:hover { color: var(--terracotta); }
.faq-item summary::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--text-muted); }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 0 24px; font-size: 16px; line-height: 1.75; color: var(--text-muted); }

/* ===== CTA ===== */
.cta-section { text-align: center; padding: 96px 24px; }
.cta-section h2 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 40px); color: var(--white); margin-bottom: 18px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 540px; margin: 0 auto 36px; line-height: 1.7; }
.cta-contact { margin-top: 32px; font-size: 15px; color: rgba(255,255,255,0.55); }
.cta-contact a { color: rgba(255,255,255,0.75); border-bottom: 1px solid rgba(255,255,255,0.3); }
.cta-contact a:hover { color: var(--white); }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-card { background: var(--cream); border-radius: 8px; padding: 40px 36px; }
.contact-card h3 { font-family: var(--font-heading); font-size: 18px; color: var(--navy); margin-bottom: 24px; }
.contact-card .contact-item { margin-bottom: 20px; }
.contact-card .contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.contact-card .contact-value { font-size: 18px; font-weight: 600; }
.contact-card .contact-value a { color: var(--navy); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.5); padding: 40px 24px; font-size: 14px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.site-footer a { color: rgba(255,255,255,0.5); }
.site-footer a:hover { color: rgba(255,255,255,0.8); }
.footer-links a { font-size: 14px; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== ARTICLE (Wissen) ===== */
.article-hero {
  padding: 140px 24px 48px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-breadcrumb a {
  color: var(--text-muted);
}

.article-breadcrumb a:hover {
  color: var(--terracotta);
}

.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 38px);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 15px;
  color: var(--text-muted);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--navy);
  margin: 48px 0 16px;
  line-height: 1.4;
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--navy);
  margin: 32px 0 12px;
  line-height: 1.4;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  font-weight: 700;
  color: var(--navy);
}

.stat-box {
  background: var(--cream);
  border-left: 4px solid var(--terracotta);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}

.stat-box .stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--terracotta);
  font-weight: 700;
  line-height: 1.2;
}

.stat-box .stat-label {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 4px;
}

.info-box {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 8px;
}

.info-box-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.comparison-box {
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .comparison-box {
    grid-template-columns: 1fr;
  }
}

.comparison-before, .comparison-after {
  padding: 24px 28px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.7;
}

.comparison-before {
  background: #fef3f0;
  border: 1px solid #e8c4b8;
}

.comparison-after {
  background: #f0f7f0;
  border: 1px solid #b8d4b8;
}

.comparison-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.comparison-before .comparison-label {
  color: var(--terracotta);
}

.comparison-after .comparison-label {
  color: #2d7a2d;
}

.comparison-before p, .comparison-after p {
  margin-bottom: 8px;
}

.comparison-after ul {
  margin: 8px 0 8px 20px;
}

.comparison-after li {
  margin-bottom: 4px;
}

.article-sources {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-sources h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 12px;
}

.article-sources ol {
  font-size: 15px;
  color: var(--text-muted);
  margin-left: 20px;
}

.article-sources a {
  color: var(--text-muted);
  text-decoration: underline;
}

.article-sources a:hover {
  color: var(--terracotta);
}

.article-author {
  margin-top: 48px;
  padding: 32px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.article-author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 4px;
}

.author-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.author-bio {
  font-size: 15px;
  line-height: 1.6;
}

.article-cta {
  margin-top: 48px;
  padding: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  text-align: center;
}

.article-cta h3 {
  font-family: var(--font-heading);
  color: var(--white);
  margin: 0 0 12px;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.article-cta a {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.article-cta a:hover {
  background: var(--terracotta-hover);
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--white);
    padding: 24px; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); gap: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .has-dropdown .dropdown-menu {
    display: block; position: static; border: none; box-shadow: none;
    background: none; padding: 0 0 0 16px; min-width: 0;
  }
  .dropdown-trigger::after { display: none; }
  .dropdown-menu a { padding: 8px 0; }

  .hero { padding: 130px 24px 80px; }
  .page-hero { padding: 120px 24px 48px; }
  .law-cards, .services-grid, .ref-highlights, .process-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; text-align: center; }

  .article-hero { padding: 110px 24px 40px; }

  .article-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .nav-toggle { display: none; }
  .hero, .page-hero { padding-top: 40px; background: var(--navy) !important; -webkit-print-color-adjust: exact; }
  .section, .content-section { padding: 40px 0; }
}
