/* =====================================================================
   alex-bierhaus.de — Editorial Design System
   Schriften: Source Serif 4 (Headlines), Archivo (Text/UI), Space Mono (Labels)
   Palette:  Cream #F3F1EC · Navy #14233A · Blau #1C4E80 · Linie #D8D3C9
   ---------------------------------------------------------------------
   Die alten Variablennamen bleiben erhalten, zeigen aber auf die neue
   Palette — dadurch übernehmen sämtliche bestehenden Inline-Styles
   (Landingpages, Guides, dynamische Inhalte) automatisch das neue Design.
   ===================================================================== */

:root {
  /* --- Neue Design-Tokens --- */
  --cream:        #F3F1EC;
  --ink:          #14233A;
  --accent:       #1C4E80;
  --muted:        #46556B;
  --faint:        #8a8578;
  --line:         #D8D3C9;
  --line-soft:    #E3DFD6;
  --card:         #FBFAF8;
  --dark-bg:      #14233A;
  --dark-ink:     #E8E5DD;
  --dark-muted:   #B9C4D2;
  --dark-faint:   #8FB0D4;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono:  'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1216px;
  --gutter: clamp(20px, 5vw, 56px);

  /* --- Kompatibilitäts-Aliase (auf neue Palette gemappt) --- */
  --primary-color:        #14233A;
  --secondary-color:      #2E3F58;
  --accent-color:         #1C4E80;
  --highlight-color:      #1C4E80;
  --accent-color-dark:    #1C4E80;
  --accent-color-darker:  #14233A;
  --warm-accent:          #1C4E80;
  --text-color:           #14233A;
  --text-light:           #46556B;
  --text-lighter:         #8a8578;
  --bg-light:             #ECEAE2;
  --bg-white:             #FBFAF8;
  --bg-gray:              #E3DFD6;
  --border-color:         #D8D3C9;
  --transition: all 0.2s ease;
  --font-heading: var(--serif);
}

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--cream); }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  margin-bottom: 1rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { margin-bottom: 1.25rem; color: var(--muted); }

strong { color: var(--ink); font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--ink); }

/* Editorial container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ===== Header / Navigation ===== */
.site-header {
  background: rgba(243, 241, 236, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .navbar { padding: 0.9rem 0; }

.navbar-brand {
  display: flex;
  flex-direction: column;
  color: var(--ink) !important;
  text-decoration: none;
  transition: var(--transition);
}
.navbar-brand:hover { color: var(--accent) !important; }

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-tagline {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2px;
}

.navbar-nav .nav-link {
  color: var(--muted) !important;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 0.4rem 0.7rem !important;
  border-radius: 0;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ink) !important;
  background: transparent;
}

.navbar-nav .nav-link-cta {
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  font-weight: 600;
  margin-left: 0.6rem;
  padding: 0.5rem 1.05rem !important;
  border-radius: 0;
}
.navbar-nav .nav-link-cta:hover {
  background: var(--ink) !important;
  color: var(--cream) !important;
  box-shadow: none;
  transform: none;
}

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.35rem 0.55rem;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(20,35,58,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== Editorial helpers (für überarbeitete Seiten) ===== */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}
.mono { font-family: var(--mono); }
.text-faint { color: var(--faint); }

/* Hairline-Grid für Statistiken */
.stat-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-bar .stat { padding: 2.1rem 2.2rem; border-right: 1px solid var(--line); }
.stat-bar .stat:first-child { padding-left: 0; }
.stat-bar .stat:last-child { padding-right: 0; border-right: none; }
.stat-bar .stat .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat-bar .stat .lbl { font-size: 0.84rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.4; }
.stat-bar.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Nummerierte Listenzeilen (Leistungen / Phasen) */
.row-list { border-top: 1px solid var(--line); }
.row-item {
  display: grid;
  grid-template-columns: 56px 1fr minmax(220px, 300px);
  gap: 2.2rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.row-item .idx { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); }
.row-item h3 { font-size: 1.35rem; margin-bottom: 0; }
.row-item p { font-size: 0.95rem; margin: 0.55rem 0 0; line-height: 1.6; }
.row-item .metric { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

/* Tag-Chips */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.55rem 0.95rem;
  display: inline-block;
}

/* Dunkles CTA-/Referenz-Band */
.dark-band { background: var(--dark-bg); color: var(--dark-ink); }
.dark-band .eyebrow { color: var(--dark-faint); }
.dark-band h2, .dark-band h3 { color: var(--dark-ink); }
.dark-band p { color: var(--dark-muted); }
.dark-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: clamp(2rem, 4vw, 3.5rem);
}
.dark-cta h2 { color: var(--dark-ink); margin-bottom: 0; }
.dark-cta p { color: var(--dark-muted); margin: 0.9rem 0 0; }

/* ===== Page Hero (sekundäre Seiten) ===== */
.hero-section {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(3rem, 7vw, 5rem) 0 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.hero-section::before,
.hero-section::after { content: none; }
.hero-section h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}
.hero-section .lead {
  font-size: 1.06rem;
  margin-bottom: 0;
  color: var(--muted);
  max-width: 44rem;
}
.hero-section .btn { margin-top: 1.75rem; }
.hero-section-sm { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }

/* Hero-Buttons im Hellen: dunkle Variante */
.hero-section .btn-light {
  background: var(--ink);
  color: var(--cream) !important;
  box-shadow: none;
}
.hero-section .btn-light:hover { background: var(--accent); color: var(--cream) !important; }
.hero-section .btn-outline {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}
.hero-section .btn-outline:hover { background: var(--ink); color: var(--cream) !important; }

/* ===== Sections ===== */
.content-section { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-title { margin-bottom: 2.5rem; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
.section-title::after { content: none; }
.section-title.text-start { text-align: left; }
.section-subtitle {
  color: var(--muted);
  max-width: 44rem;
  margin: 0.75rem auto 0;
  font-size: 1rem;
}
.section-title.text-start .section-subtitle { margin-left: 0; }

.bg-light-section { background-color: var(--bg-light); }

/* ===== Cards ===== */
.service-card, .case-study-card, .publication-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2rem;
  height: 100%;
  box-shadow: none;
  transition: var(--transition);
}
.service-card:hover, .case-study-card:hover, .publication-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--accent);
}
.card-accent { border-left: 2px solid var(--accent); }

.service-icon, .card-icon {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  color: var(--accent);
  box-shadow: none;
  transition: var(--transition);
}
.card-icon { width: 52px; height: 52px; font-size: 1.5rem; }
.service-card:hover .service-icon,
.case-study-card:hover .card-icon { transform: none; box-shadow: none; border-color: var(--accent); }

.card-title { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 0.75rem; font-weight: 600; }
.card-text { color: var(--muted); line-height: 1.65; }
.card-impact { font-style: normal; font-weight: 600; color: var(--ink); margin-top: 1rem; }
.card-badge { font-weight: 600; color: var(--accent); margin-bottom: 1rem; }
.card-text-sm { font-size: 0.92rem; }
.card-list { color: var(--muted); margin: 1.25rem 0 0; padding-left: 1.1rem; }
.card-list li { margin-bottom: 0.4rem; }
.card-result { font-style: normal; font-weight: 600; color: var(--accent); margin-bottom: 0; }

/* ===== Buttons ===== */
.btn {
  padding: 0.8rem 1.4rem;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ink);
  color: var(--cream) !important;
  border-color: var(--ink);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream) !important;
  transform: none;
  box-shadow: none;
}

.btn-outline, .btn-outline-primary {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  padding: 0.8rem 1.4rem;
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
}
.btn-outline:hover, .btn-outline-primary:hover {
  background: var(--ink);
  color: var(--cream) !important;
  transform: none;
}

.btn-light {
  background: var(--cream);
  color: var(--ink) !important;
  box-shadow: none;
  border-color: var(--cream);
}
.btn-light:hover { background: #fff; color: var(--ink) !important; transform: none; }

.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.84rem; }

/* Unterstrichener Text-Link (Editorial-Stil) */
.link-underline {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--accent); }

/* ===== Testimonial / Quote ===== */
.testimonial-card {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: transparent;
  border-left: 2px solid var(--accent);
  border-radius: 0;
}
.quote-text {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.quote-author { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ===== Step / Stat Numbers ===== */
.step-number {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.stat-number {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { color: var(--muted); margin-bottom: 0; }
.stat-detail { font-size: 0.84rem; color: var(--faint); }

/* ===== Utilities ===== */
.text-accent { color: var(--accent); }
.hero-section .text-accent,
[data-theme="dark"] .text-accent { color: var(--accent); }
.text-highlight { color: var(--accent); }
.text-warm { color: var(--accent); }
.text-muted-light { color: var(--muted); }
.text-meta { color: var(--faint); font-size: 0.9rem; }
.subsection-title { color: var(--ink); margin-top: 1.5rem; }
.feature-title { font-family: var(--serif); color: var(--ink); margin-bottom: 1rem; font-weight: 600; }

.checklist { list-style: none; padding: 0; color: var(--muted); }
.checklist li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}
.checklist li strong { color: var(--ink); }

.img-profile {
  border-radius: 2px !important;
  border: 1px solid var(--line);
  box-shadow: none !important;
}
.img-wrapper { max-width: 100%; margin: 0 auto; }

.lead { font-size: 1.06rem; color: var(--muted); }
.lead-muted, .lead.lead-muted { color: var(--muted); margin-bottom: 1.75rem; }

.mb-section { margin-bottom: 5rem; }
.mt-section { margin-top: 5rem; }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 { transition-delay: 0s; }
}

/* ===== Forms ===== */
.form-control, .form-select, textarea.form-control {
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 1rem;
  background: transparent;
  color: var(--ink);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  border-color: var(--accent);
  box-shadow: none;
  outline: none;
}
.form-label { font-family: var(--sans); font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }

/* Editorial-Formular (Kontakt) */
.field { display: block; }
.field > .field-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
}
.field-input {
  width: 100%;
  margin-top: 0.55rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid #C9C3B7;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.6rem 0;
}
.field-input:focus { outline: none; border-color: var(--accent); }
textarea.field-input { border: 1px solid #C9C3B7; padding: 0.85rem; line-height: 1.6; resize: vertical; }
.field-input::placeholder { color: #9a958a; }

/* ===== Note / Alert ===== */
.alert-info {
  background: transparent !important;
  border: none !important;
  border-left: 2px solid var(--accent) !important;
  padding: 1rem 1.25rem !important;
  border-radius: 0 !important;
  color: var(--muted);
}

/* ===== Footer (hell, editorial) ===== */
.site-footer {
  background: var(--cream);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 3rem 0 0;
  margin-top: 0;
}
.footer-section { margin-bottom: 2rem; }
.footer-section h5 {
  color: var(--faint);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0;
}
.footer-section h5::after { content: none; }
.footer-brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.footer-description { color: var(--muted); line-height: 1.6; font-size: 0.86rem; max-width: 17rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: var(--muted); transition: var(--transition); display: inline-block; font-size: 0.86rem; }
.footer-links a:hover { color: var(--ink); transform: none; }
.footer-meta { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); margin-top: 1rem; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: none; }

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.footer-bottom p { color: var(--faint); margin: 0; font-size: 0.78rem; }

/* ===== FAQ / Accordion (Bootstrap-Restyle) ===== */
.accordion { --bs-accordion-border-color: transparent; }
.accordion-item {
  border: none;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.accordion-item:last-of-type { border-bottom: 1px solid var(--line); }
.accordion-item:first-of-type .accordion-button { border-radius: 0; }
.accordion-button {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  background-color: transparent;
  border: none;
  font-size: 1.18rem;
  padding: 1.4rem 0;
}
.accordion-button:not(.collapsed) {
  color: var(--ink);
  background-color: transparent;
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231C4E80'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body { padding: 0 0 1.6rem; color: var(--muted); line-height: 1.7; max-width: 50rem; }
.accordion-body p { margin-bottom: 1rem; }
.accordion-body ul, .accordion-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.accordion-body li { margin-bottom: 0.5rem; }

/* Native <details>-Accordion (Design-Variante) */
details.faq > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary .q { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--ink); }
details.faq > summary .faq-plus { font-family: var(--mono); font-size: 1.25rem; color: var(--accent); transition: transform .2s; line-height: 1; }
details.faq[open] > summary .faq-plus { transform: rotate(45deg); }
details.faq > .a { font-size: 0.95rem; color: var(--muted); line-height: 1.7; padding: 0 0 1.6rem; max-width: 44rem; }

.btn-link, .card .btn.btn-link { color: var(--accent); text-decoration: none; }
.btn-link:hover, .card .btn.btn-link:hover { color: var(--ink); text-decoration: none; }

/* ===== Badges (Social Proof etc.) ===== */
.badge.bg-primary {
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 400;
  border-radius: 0;
}

/* ===== Bespoke-Layouts (Startseite / Über mich) ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  margin-top: 1.5rem;
}
.hero-grid h1 { font-size: clamp(2.3rem, 4.8vw, 3.75rem); margin-bottom: 0; max-width: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; align-items: center; }

.split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split.split-about { grid-template-columns: 360px 1fr; }
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: block;
}
.mini-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.mini-cols .mc-h { font-family: var(--serif); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.mini-cols .mc-p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0.4rem 0 0; }

/* Situative Karten (Startseite) – sauberes 3→1-Spalten-Raster */
.situation { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 2.5rem; }
.situation > div { padding: 2rem 2rem 2.25rem; border-right: 1px solid var(--line); }
.situation > div:first-child { padding-left: 0; }
.situation > div:last-child { padding-right: 0; border-right: none; }

.aside-block { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; }
.aside-block .ab-label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.aside-block .ab-list { font-size: 0.88rem; color: var(--ink); line-height: 1.9; margin-top: 0.6rem; }

.timeline { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.timeline .tl-row { display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.timeline .tl-when { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); }
.timeline .tl-h { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.timeline .tl-p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0.35rem 0 0; }

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .split, .split.split-about { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .mini-cols { grid-template-columns: 1fr; gap: 1rem; }
  .timeline .tl-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .situation { grid-template-columns: 1fr; }
  .situation > div { padding: 1.75rem 0; border-right: none; border-bottom: 1px solid var(--line); }
  .situation > div:first-child { padding-top: 1.75rem; }
  .situation > div:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .content-section { padding: 3rem 0; }
  .stat-bar, .stat-bar.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-bar .stat { border-bottom: 1px solid var(--line); }
  .stat-bar .stat:nth-child(2n) { border-right: none; padding-right: 0; }
  .stat-bar .stat:nth-child(2n+1) { padding-left: 0; }
  .row-item { grid-template-columns: 40px 1fr; gap: 1.25rem; }
  .row-item .metric { grid-column: 2; margin-top: 0.5rem; }
  .dark-cta { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 767px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.3rem; }
  .navbar-brand .brand-name { font-size: 1.15rem; }
  .service-card, .case-study-card, .publication-card { padding: 1.5rem; margin-bottom: 1rem; }
  .row.mb-5 { margin-bottom: 1.5rem !important; }
  .row > [class*="col-"].mb-4 { margin-bottom: 0.75rem !important; }
  .hero-section h1 { font-size: 1.8rem; max-width: none; }
  .hero-section .lead { font-size: 1rem; }
  .section-title { margin-bottom: 1.5rem; }
  .stat-number { font-size: 2rem; }
  .quote-text { font-size: 1.1rem; }
  .accordion-button { font-size: 1.05rem; padding: 1.1rem 0; }
  details.faq > summary .q { font-size: 1.05rem; }
  .btn-lg { width: 100%; text-align: center; }
  .btn-lg + .btn-lg, .btn-lg + .btn, .btn + .btn-lg { margin-top: 0.75rem; margin-left: 0 !important; }
  .text-center .btn.me-3 { margin-right: 0 !important; margin-bottom: 0.75rem; display: block; width: 100%; }
  .hero-section nav .btn { display: block; width: 100%; margin-bottom: 0.75rem; }
  .hero-section nav .btn.me-3 { margin-right: 0 !important; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: flex-start; }
  .site-footer { padding: 2.5rem 0 0; }
  .container { padding-inline: 1.25rem; }

  /* Sicherheitsnetz: inline definierte Mehrspalten-Grids (z. B. aus den
     überführten Seiten) stapeln auf dem Smartphone zu einer Spalte. */
  main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
  /* Gestapelte Spalten verlieren ihre seitliche Einrückung (Gutter zur Trennlinie) */
  main [style*="grid-template-columns"] > * { padding-left: 0 !important; padding-right: 0 !important; }
  /* Senkrechte Trennlinien entfallen beim Stapeln */
  main [style*="border-left:1px"], main [style*="border-left: 1px"] { border-left: none !important; padding-left: 0 !important; }
  main [style*="border-right:1px"], main [style*="border-right: 1px"] { border-right: none !important; }
}

@media (max-width: 375px) {
  .hero-section h1 { font-size: 1.6rem; }
  .service-card, .case-study-card, .publication-card { padding: 1.25rem; }
  .container { padding-inline: 1rem; }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--cream);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 30px rgba(20, 35, 58, 0.12);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-consent-banner.show { transform: translateY(0); }
.cookie-consent-container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.cookie-consent-content { margin-bottom: 1.5rem; }
.cookie-consent-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.cookie-consent-text { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }
.cookie-consent-text-small { font-size: 0.86rem; color: var(--faint); margin-bottom: 0; }
.cookie-consent-text-small a { color: var(--accent); text-decoration: underline; }
.cookie-consent-text-small a:hover { color: var(--ink); }
.cookie-consent-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; }
.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: none; }
.cookie-btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: none; box-shadow: none; }
.cookie-btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.cookie-btn-secondary:hover { background: var(--ink); color: var(--cream); transform: none; }
.cookie-consent-settings { border-top: 1px solid var(--line); padding-top: 2rem; animation: fadeIn 0.3s ease; }
.cookie-category { background: var(--card); border-radius: 2px; padding: 1.5rem; margin-bottom: 1rem; border: 1px solid var(--line); }
.cookie-category-header { margin-bottom: 0.75rem; }
.cookie-category-label { display: flex; align-items: center; cursor: pointer; margin: 0; }
.cookie-category-label input[type="checkbox"] { width: 20px; height: 20px; margin-right: 0.75rem; cursor: pointer; accent-color: var(--accent); }
.cookie-category-label input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.6; }
.cookie-category-label strong { color: var(--ink); font-size: 1.05rem; }
.cookie-category-description { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0 0 0 2rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 767px) {
  .cookie-consent-container { padding: 1.5rem; }
  .cookie-consent-title { font-size: 1.2rem; }
  .cookie-consent-text { font-size: 0.9rem; }
  .cookie-consent-buttons { flex-direction: column; gap: 0.5rem; }
  .cookie-btn { width: 100%; padding: 0.875rem 1rem; font-size: 0.875rem; }
  .cookie-category { padding: 1rem; }
  .cookie-category-description { margin-left: 0; margin-top: 0.5rem; }
}
