/* ============================================================
   MARCO THEIS — Design System
   Gold · Navy · Dark
   ============================================================ */

:root {
  --gold:       #E8A020;
  --gold-soft:  rgba(232,160,32,0.12);
  --gold-mid:   rgba(232,160,32,0.6);
  --navy:       #1A3C6E;
  --navy-dark:  #0D2448;
  --dark:       #1A1A2E;
  --muted:      #6A7487;
  --border:     #DDE2EC;
  --bg:         #F0F2F7;
  --white:      #ffffff;
  --text:       #1A1A2E;
  --font-serif: Georgia, serif;
  --font-sans:  Arial, sans-serif;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(26,60,110,0.08);
  --shadow-md:  0 4px 24px rgba(26,60,110,0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 0.9rem;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--page-width, 1200px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}
.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}
.container--form {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--white  { background: var(--white); }
.section--bg     { background: var(--bg); }
.section--navy   { background: linear-gradient(135deg, #1A3C6E, #0D2448); }
.section--dark   { background: var(--dark); }
.section-header  { margin-bottom: clamp(2rem, 4vw, 3rem); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--gold);
  flex-shrink: 0;
  border-radius: 2px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-heading em { color: var(--navy); font-style: normal; }

.section-lead {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  text-decoration: none;
  padding: 1rem 2.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #f0b030;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,160,32,0.4);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 1rem 2.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(232,160,32,0.08);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: linear-gradient(135deg, #1A3C6E, #0D2448);
  border-bottom: 3px solid var(--gold);
  padding: 0 clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(13,36,72,0.35);
}
.header-inner {
  max-width: var(--page-width, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

/* Logo */
.logo-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 50px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
.logo-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 50px;
  flex-shrink: 0;
}
.logo-bar { width: 7px; border-radius: 2px 2px 0 0; }
.logo-bar-1 { background: #E8A020; height: 16px; }
.logo-bar-2 { background: rgba(255,255,255,0.42); height: 30px; }
.logo-bar-3 { background: rgba(255,255,255,0.90); height: 50px; }

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding-bottom: 1px;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
}
.main-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: #ffffff; background: rgba(255,255,255,0.1); }
.main-nav a.active { color: var(--gold); }

.header-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  font-family: var(--font-sans);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.header-cta:hover {
  background: #f0b030;
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,160,32,0.4);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================================================
   HERO — Hauptseite
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0B1826 0%, #1A3C6E 100%);
  padding: clamp(4rem,8vw,7rem) clamp(1rem,5vw,3rem) clamp(4rem,8vw,6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(232,160,32,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(26,60,110,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: 2px;
}
.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem,5vw,3.6rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.hero-heading em { color: var(--gold); font-style: normal; display: block; }
.hero-claim {
  font-family: var(--font-serif);
  font-size: clamp(1rem,2.2vw,1.3rem);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-br { display: none; }
@media (min-width: 640px) { .hero-br { display: inline; } }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Zäsur — stille Trennlinie zwischen Hero und Leistungen */
.hero-zäsur {
  background: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.zäsur-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
}
.zäsur-text strong {
  color: var(--navy);
  font-style: normal;
}

/* LP Hero (Landingpages — kein Header) */
.lp-hero {
  background: linear-gradient(135deg, #0B1826 0%, #1A3C6E 100%);
  padding: clamp(3.5rem,7vw,6rem) clamp(1rem,5vw,3rem) clamp(3rem,6vw,5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.lp-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: 2px;
}
.lp-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem,4.5vw,3rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lp-heading em { color: var(--gold); font-style: normal; }
.lp-sub {
  font-size: clamp(0.9rem,2vw,1.05rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Hero (Unterseiten) */
.page-hero {
  background: linear-gradient(135deg, #0B1826 0%, #1A3C6E 100%);
  padding: clamp(3rem,6vw,5rem) clamp(1rem,5vw,3rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem,4vw,3rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   LEISTUNGS-CARDS
   ============================================================ */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.leistung-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.leistung-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.leistung-card:hover::before { transform: scaleX(1); }
.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232,160,32,0.25);
}
.leistung-card--ki {
  border-color: rgba(232,160,32,0.4);
  background: linear-gradient(135deg, #ffffff 0%, rgba(232,160,32,0.04) 100%);
}
.leistung-card--ki::before { transform: scaleX(1); }

.leistung-icon {
  width: 44px; height: 44px;
  background: var(--gold-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.leistung-card-num {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-mid);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.leistung-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.leistung-card--ki h3 { color: var(--navy); }
.leistung-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}
.leistung-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.leistung-card-link:hover { color: var(--gold); gap: 0.7rem; }
.leistung-card--ki .leistung-card-link { color: var(--gold); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.blog-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.blog-date {
  font-size: 0.72rem;
  color: var(--muted);
}
.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}
.blog-card-teaser {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s, color 0.2s;
}
.blog-card-link:hover { color: var(--gold); gap: 0.7rem; }
.blog-more {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   USP SECTION
   ============================================================ */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.usp-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.usp-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-mid);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  min-width: 2.5rem;
}
.usp-content h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.usp-content p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ============================================================
   FEATURE LIST
   ============================================================ */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}
.feature-list li::before { content: '▸'; color: var(--gold); flex-shrink: 0; font-size: 0.8rem; margin-top: 0.1rem; }

/* ============================================================
   KI / DARK FEATURE SECTION
   ============================================================ */
.ki-section {
  background: linear-gradient(135deg, #0D2448 0%, #1A3C6E 100%);
  padding: clamp(3.5rem,7vw,6rem) 0;
  position: relative;
  overflow: hidden;
}
.ki-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
}
.ki-inner { position: relative; z-index: 1; }
.ki-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.ki-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem,3vw,2.4rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.ki-heading em { color: var(--gold); font-style: normal; }
.ki-text { font-size: 0.95rem; color: rgba(255,255,255,0.75); line-height: 1.8; max-width: 560px; margin-bottom: 2rem; }
.ki-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin-bottom: 2.5rem;
}
.ki-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.ki-feature::before { content: '▸'; color: var(--gold); flex-shrink: 0; font-size: 0.8rem; margin-top: 0.15rem; }
.ki-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ki-visual { display: flex; flex-direction: column; gap: 1rem; }
.ki-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.ki-card-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.ki-card-text { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #1A3C6E 0%, #0D2448 100%);
  padding: clamp(3rem,6vw,5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem,3vw,2.2rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FORM — Contact Card Style
   ============================================================ */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.form-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  padding: clamp(1.5rem,3vw,2.5rem) clamp(1.5rem,3vw,3rem);
  border-bottom: 4px solid var(--gold);
}
.form-card-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}
.form-card-header p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.form-card-body {
  padding: clamp(1.5rem,3vw,2.8rem) clamp(1.5rem,3vw,3rem);
}

/* Form fields — matches .field / .lead-form classes in templates */
.lead-form { /* pure container, styling comes from parent .form-card-body */ }

.field,
.form-group { margin-bottom: 1.25rem; }

.field-row,
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field-row .field,
.form-row .form-group { margin-bottom: 1.25rem; }

.field label,
.form-group label,
label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.field input,
.field select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  appearance: none;
}
input::placeholder { color: #A8B3C5; }
.field input:focus,
.field select:focus,
input:focus,
select:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.08);
}

/* DSGVO Checkbox */
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.field-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.field-checkbox label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.field-checkbox label a { color: var(--navy); font-weight: 600; }

.legal-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Submit button */
.lead-form button[type="submit"],
.form-submit {
  width: 100%;
  background: var(--navy);
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}
.lead-form button[type="submit"]::after,
.form-submit::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.lead-form button[type="submit"]:hover,
.form-submit:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,60,110,0.25);
}
/* Use .btn-primary style for form buttons in LPs */
.lead-form .btn-primary {
  width: 100%;
  text-align: center;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px; top: -9999px;
  height: 0; width: 0;
  overflow: hidden; opacity: 0;
}

/* HTMX Indicator */
.htmx-indicator                { display: none; }
.htmx-request .htmx-indicator  { display: inline; }
.htmx-request .btn-text        { display: none; }
.htmx-request button           { opacity: 0.7; cursor: wait; }

/* ============================================================
   SUCCESS / ERROR
   ============================================================ */
.success-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.success-box-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  padding: 2rem 2.5rem;
  border-bottom: 3px solid #28a745;
  text-align: center;
}
.success-box .icon-large { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.success-box h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.success-box-body {
  padding: 2rem 2.5rem;
  text-align: center;
}
.success-box p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-bottom: 0.5rem; }
.success-box .small { font-size: 0.82rem; }

.error-box {
  background: rgba(232,160,32,0.08);
  border-left: 3px solid var(--gold);
  color: var(--dark);
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  border-top: 3px solid var(--gold);
  padding: 2.5rem clamp(1rem,5vw,3rem) 2rem;
}
.footer-inner {
  max-width: var(--page-width, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}
.footer-brand .logo-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-brand .logo-sub {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}
.footer-claim {
  font-size: 0.58rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 6px;
}
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
  text-align: right;
  margin-top: 1.5rem;
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1rem;
}

/* LP Footer (Landingpages) */
.lp-footer {
  background: var(--dark);
  border-top: 2px solid rgba(232,160,32,0.3);
  padding: 1.25rem 2rem;
  text-align: center;
}
.lp-footer p { font-size: 0.72rem; color: rgba(255,255,255,0.25); letter-spacing: 0.08em; }
.lp-footer a { color: rgba(255,255,255,0.4); text-decoration: none; margin: 0 0.5rem; }
.lp-footer a:hover { color: var(--gold); }

/* ============================================================
   CONTENT CARD (Unterseiten — Datenschutz, Impressum)
   ============================================================ */
.content-section { padding: clamp(2.5rem,5vw,4rem) 0; }
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem,4vw,3rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.content-card + .content-card { margin-top: 1.5rem; }
.content-card h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.content-card h2::before {
  content: '';
  display: inline-block;
  width: 28px; height: 3px;
  background: var(--gold);
  flex-shrink: 0;
  border-radius: 2px;
}
.content-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.content-card p:last-child { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ki-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
    gap: 0;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.85rem 1.5rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 0.85rem 0; position: relative; }
  .header-cta { font-size: 0.66rem; padding: 0.55rem 1rem; }
  .ki-features { grid-template-columns: 1fr; }
  .field-row, .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
  .footer-copy { text-align: left; }
}
@media (max-width: 600px) {
  .leistungen-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
}

/* ── Blog (Index, Tag-Seiten, Artikel-Kopf) ─────────────────────────── */
.cms-blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 1000px) { .cms-blog-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cms-blog-list { grid-template-columns: 1fr; } }
.cms-blog-card {
  background: #fff; border: 1px solid #e2e4e8; border-radius: 10px;
  padding: 1.4rem 1.5rem; transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.cms-blog-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,0.08); transform: translateY(-2px); }
.cms-blog-thumb { display: block; border-radius: 6px; overflow: hidden; margin: -0.4rem -0.5rem 1rem; }
.cms-blog-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .25s; }
.cms-blog-card:hover .cms-blog-thumb img { transform: scale(1.04); }
.cms-blog-card h2 { margin: 0.5rem 0 0.5rem; font-size: 1.15rem; line-height: 1.35; }
.cms-blog-card h2 a { color: var(--navy); text-decoration: none; }
.cms-blog-card h2 a:hover { color: var(--gold); }
.cms-blog-card p {
  margin: 0; font-size: 0.9rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cms-blog-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.cms-blog-foot time { font-size: 0.78rem; color: #8a93a1; letter-spacing: 0.04em; }
.cms-blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: #8a93a1; }
.cms-blog-meta a { color: #8a93a1; text-decoration: none; }
.cms-blog-meta a:hover { color: var(--gold); }
.cms-blog-tag {
  display: inline-block; background: rgba(232,160,32,0.12); color: var(--gold) !important;
  border-radius: 20px; padding: 0.1rem 0.7rem; font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; width: fit-content;
}
.cms-blog-more { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 0.88rem; }
.cms-blog-more:hover { text-decoration: underline; }
.cms-post-head { margin: 0.5rem 0 1.5rem; }
.cms-post-head .cms-blog-tag { text-transform: none; letter-spacing: 0; }
.cms-blog-tag-head a { color: var(--gold); text-decoration: none; font-weight: 700; }
.cms-blog-empty { color: #8a93a1; }
