/* ==========================================================================
   1. VARIABLES & THEME CONFIGURATION
   ========================================================================== */
:root {
  color-scheme: light dark;
  
  /* Brand Colors */
  --sky: #0ea5e9;
  --cyan: #22d3ee;
  --emerald: #10b981;

  /* Spacing Variables */
  --card-format-heading-gap-base: .85rem;
  --card-format-heading-gap-min: 10px;
  --card-intro-gap: clamp(0px, 2vw, 0px);
  --gutter: clamp(18px, 2.4vw, 28px);
  --header-height: 56px;

  /* Light Theme Palette */
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #0f172a;
  --headline: #0b1f24;
  --lead: #000000;
  --muted: #667085;
  --border: #e6e7eb;
  --shadow: 0 18px 48px rgba(15, 23, 42, .18);
  --radius: 16px;

  /* Glassmorphism & Gradients */
  --bg1: #0ea5e9;
  --bg2: #22d3ee;
  --bg3: #10b981;
  --glass-strong: rgba(255, 255, 255, .88);
  --glass: rgba(255, 255, 255, .74);
  --glass-soft: rgba(255, 255, 255, .62);
  --border-glass: rgba(255, 255, 255, .45);
  
  /* Footer */
  --footer-bg: #ffffff;
  --footer-border: #e6e7f0;
  --footer-text: #0b1f24;
}

/* ==========================================================================
   2. RESET & GLOBAL BASICS
   ========================================================================== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  color: var(--text);
  font-family: "TexGyreHeros", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Animated Background */
  background-color: #04121f;
  background:
    radial-gradient(1200px 900px at 50% -18%, rgba(14, 165, 233, .28), transparent 62%),
    radial-gradient(1100px 820px at 50% 118%, rgba(16, 185, 129, .24), transparent 66%),
    conic-gradient(from 208deg at 50% 36%, var(--bg1), var(--bg2), var(--bg3), var(--bg1));
  background-size: 180% 180%, 170% 170%, 240% 240%;
  background-position: 50% -26%, 50% 106%, 50% 34%;
  animation: gradient-shift 10s ease-in-out infinite alternate;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: font-weight 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

/* Standard Link Hover (außer Buttons/Nav) */
a:hover:not(.btn):not(.nav a):not(.footer-link-list a),
a:focus-visible:not(.btn):not(.nav a):not(.footer-link-list a) {
  text-shadow: 0 0 0.5px currentColor;
}

/* ==========================================================================
   3. FONTS
   ========================================================================== */
@font-face { font-family: "TexGyreHeros"; src: url("./fonts/texgyreheros-regular-webfont.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TexGyreHeros"; src: url("./fonts/texgyreheros-italic-webfont.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "TexGyreHeros"; src: url("./fonts/texgyreheros-bold-webfont.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TexGyreHeros"; src: url("./fonts/texgyreheros-bolditalic-webfont.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

/* ==========================================================================
   4. UTILITIES & TYPOGRAPHY
   ========================================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0;
  overflow: hidden; white-space: nowrap; clip: rect(0 0 0 0); clip-path: inset(50%);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding: var(--gutter);
}

h1, h2, h3, h4 { line-height: 1.5; letter-spacing: 0.01em; }
h1 {
  font-weight: 700;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
h2, h3 { font-weight: 600; }
p { line-height: 1.3; }

.lead {
  color: var(--lead);
  font-size: 1.125rem;
  line-height: 1.3;
}

.kicker, .badge {
  color: var(--sky);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
}

.badge {
  display: inline-block;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: #e6f7fe;
  color: #0f172a;
  border: 1px solid rgba(2, 6, 23, .08);
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Zentriert Text auch bei fester Breite */
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--sky);
  color: #06222a;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
  
  /* NEU: Sorgt für gleichen Look bei <button> und <a> */
  border: none;           /* Entfernt den grauen Standard-Rahmen */
  cursor: pointer;        /* Zeigt die Hand beim Drüberfahren */
  font-family: inherit;   /* Übernimmt die Schriftart "TexGyreHeros" */
  font-size: 1rem;        /* Erzwingt die gleiche Textgröße wie im Fließtext */
  line-height: 1.5;       /* Einheitliche Zeilenhöhe */
  text-decoration: none;  /* Sicherheitshalber Unterstreichungen entfernen */
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, .24);
  filter: brightness(1.02);
  background-color: #0284c7;
}

.btn.small { padding: .55rem .8rem; font-size: 0.9rem; } /* Anpassung für kleine Buttons */

.btn-emerald { background: var(--emerald); color: #ecfdf5; }
.btn-emerald:hover { background: #059669; }

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  order: 0;
  border-radius: 12px;
  padding: 6px 10px;
  background: #ffffff;
}
.brand img { height: 40px; }

.nav { order: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }

.nav a {
  margin: 0 14px;
  font-weight: 600;
}
.nav .btn { margin-left: 8px; }

.nav a:hover:not(.btn),
.nav a:focus-visible:not(.btn) {
  color: color-mix(in srgb, var(--sky) 70%, black);
}

.menu { display: none; } /* Desktop Default */

/* ==========================================================================
   7. SECTIONS & LAYOUT SYSTEM
   ========================================================================== */
.section {
  padding-block: clamp(28px, 6vw, 64px);
  --card-bg: #ffffff;
  --card-border: rgba(2, 6, 23, .08);
  --card-color: var(--text);
  --card-shadow: 0 10px 24px rgba(2, 6, 23, .08);
}

.section .section-title { margin-bottom: .35em; line-height: 1.5; }
.section .lead { margin-top: 0; margin-bottom: clamp(18px, 4vw, 32px); }

/* Colored Bands (Sky, Cyan, Emerald) */
.bg-sky { background: #0ea5e9; --card-bg: #ffffff; }
.bg-cyan { background: #22d3ee; --card-bg: #ffffff; }
.bg-emerald { background: #10b981; --card-bg: #ffffff; }

/* Text colors on bands */
.bg-sky, .bg-sky :where(h1,h2,h3), .bg-sky .lead { color: #000; }
.bg-cyan, .bg-cyan :where(h1,h2,h3), .bg-cyan .lead { color: #000; }
.bg-emerald, .bg-emerald :where(h1,h2,h3), .bg-emerald .lead { color: #000; }

/* Buttons on bands */
.bg-sky .btn, .bg-cyan .btn, .bg-emerald .btn {
  background: #ffffff;
  color: #0b1f24;
  box-shadow: none;
}
.bg-sky .btn:hover, .bg-cyan .btn:hover, .bg-emerald .btn:hover {
  background: #f1f5f9;
}

/* Buttons inside Cards on bands */
.bg-sky .card .btn, .bg-cyan .card .btn, .bg-emerald .card .btn {
  background: #0ea5e9;
  color: #fff;
  box-shadow: var(--shadow);
}

/* Soft Sections (Glassy) */
.section.soft {
  background: var(--glass-soft);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ==========================================================================
   8. GLOBAL COMPONENTS (CARDS & GRIDS)
   ========================================================================== */
.card-grid {
  display: grid;
  gap: clamp(18px, 3vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card-grid.cols-1 { grid-template-columns: 1fr; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--card-stack-gap, .85rem);
  padding: clamp(18px, 3vw, 24px);
  border-radius: var(--radius);
  background: var(--card-bg, var(--glass-strong));
  border: 1px solid var(--card-border, var(--border-glass));
  color: var(--card-color, var(--text));
  box-shadow: var(--card-shadow, var(--shadow));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card h3 { margin-top: 0; }
.card .btn { align-self: flex-start; }
.card > :last-child { margin-bottom: 0; }

.card-title { display: block; font-weight: 600; line-height: 1.5; }
.card-subtitle { display: block; margin-top: .15rem; font-size: .95em; font-weight: 400; color: var(--muted); }

/* Spectrum Cards (Innovation Spectrum Section) */
.spectrum-card .offer-heading {
  align-items: flex-start;
}
.spectrum-card h3 {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  margin-bottom: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
}
.spectrum-card p {
  font-size: .95rem;
  margin: 0;
}

/* Spectrum Grid: 4 cols on desktop, 2×2 on tablet, 1 col on mobile */
.spectrum-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .spectrum-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .spectrum-grid { grid-template-columns: 1fr; }
}

/* Compact Text Card */
.card.card--text-tight {
  --card-stack-gap: .5rem;
  --card-paragraph-gap: .5rem;
}
.card.card--text-tight p { margin: 0; }
.card.card--text-tight p + p { margin-top: var(--card-paragraph-gap, .5rem); }

/* Format Spacing for Equal Heights */
.card-grid.equal-heights .card { min-height: 100%; }
.card-grid.equal-heights .card.card--format-spacing {
  --card-heading-gap: var(--card-format-heading-gap-base, .85rem);
}
.card-grid.equal-heights .card > h3:first-of-type {
  margin-bottom: var(--card-heading-gap);
}
.card-grid.equal-heights .card > .btn:last-child { margin-top: auto; }

/* Profile Block (About/Home) */
.profile-block {
  display: flex;
  gap: clamp(22px, 5vw, 48px);
  align-items: flex-start;
}
.profile-block img {
  flex: 0 0 50%;
  width: 100%; max-width: 50%; height: auto;
  border-radius: 18px; border: 1px solid var(--border-glass); box-shadow: var(--shadow);
}
/* Updated Profile Text Layout */
.profile-text {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  flex: 0 0 50%;
  max-width: 50%;
  width: 100%;
}
.profile-text > * { margin: 0; }

/* Fix: Adjust heading spacing for better grouping */
.profile-text h3 {
  margin-top: 1.5em;
  margin-bottom: 0.25em;
  line-height: 1.3;
}
/* Ensure paragraph immediately following heading pulls up tight */
.profile-text h3 + :where(p, ul) { margin-top: 0; }

.profile-subtitle {
  color: #0b1f24;
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  font-weight: 600;
  margin-top: 0;
}
.founder-quote { font-style: italic; font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--headline); }

/* ==========================================================================
   9. HERO MODULE
   ========================================================================== */
.hero { padding-block: clamp(32px, 8vw, 92px); position: relative; }

.hero-surface {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border-glass);
  background: var(--glass);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.hero-grid.hero-grid--split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hero-grid > *:only-child { grid-column: 1 / -1; }

.hero .hero-title {
  color: var(--headline);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  margin: .2em 0 .3em;
}

.cta-row { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-art, .hero-photo { margin: 0; }
.hero-art img, .hero-photo img {
  width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* Offerings: Portrait im Hero mit moderatem Zuschnitt */
.page-offerings .hero-art img{
  width: 100%;
  height: clamp(500px, 52vw, 580px); /* Desktop: sweet spot */
  object-fit: cover;
  object-position: center 12%;       /* Kopf/Schultern priorisieren */
}

/* <=980px: Hero wird einspaltig, daher weniger Höhe */
@media (max-width: 980px){
  .page-offerings .hero-art img{
    height: clamp(340px, 62vw, 420px);
    object-position: center 6%;
  }
}

/* About Page Specific Illustration */
.hero-photo--about img.about-illustration {
  height: auto; width: auto; max-height: 350px; max-width: 100%;
  object-fit: contain; display: block; margin: 0 auto;
}

/* ==========================================================================
   10. MODULE: OFFERINGS
   ========================================================================== */
.offerings-band > .container .lead,
.card-intro-band > .container .lead {
  margin-bottom: var(--card-intro-gap);
}

.offer-card {
  background: #ffffff;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.offer-card details { 
  display: flex;
  flex-direction: column;
  gap: 0; /* HIER GEÄNDERT: War vorher 1rem. Auf 0 setzen! */
  cursor: pointer;
}

/* Summary Area */
.offer-card summary {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}
.offer-card summary::-webkit-details-marker { display: none; }
.offer-card summary:focus-visible {
  outline: 2px solid rgba(14, 165, 233, .8);
  outline-offset: 4px; border-radius: 12px;
}

/* HIER GEÄNDERT: gap auf 0.75rem erhöht (war 0.6rem), damit es exakt wie bei Trainings aussieht */
.summary-text { 
  flex: 1; 
  min-width: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem; 
}

.summary-lead { margin: 0; color: var(--lead); line-height: 1.5; font-weight: 600; }

/* Heading & Icon Layout */
/* HIER GEÄNDERT: margin-bottom entfernt, damit der "gap" darüber den Abstand sauber regelt */
.offer-heading { 
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  margin-bottom: 0; 
}

.offer-heading h3 { margin: 0; line-height: 1.2; }

/* SVG Icons */
.offer-icon {
  width: auto; height: auto;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.offer-icon-svg { width: 32px; height: 32px; display: block; }

/* Expand (+) Icon */
.summary-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.summary-icon::before {
  content: "+"; font-weight: 700; font-size: 20px; line-height: 1; color: var(--ink);
}

/* Open State */
.offer-card details[open] .summary-icon {
  transform: rotate(45deg);
  background: rgba(14, 165, 233, .14);
}
.offer-card details[open] .summary-lead { color: var(--text); }

/* Body Content */
.offer-body {
  display: grid; gap: 1rem;
  border-top: 1px solid var(--border-glass);
  margin-top: 1.25rem;
  padding-top: 0.1rem;
}
.offer-card .offer-body .btn { margin-top: .25rem; align-self: flex-start; }
details[open] .offer-body { animation: fadeIn 0.3s ease-in-out; }

/* ==========================================================================
   11. MODULE: TRAININGS
   ========================================================================== */
.trainings .train-grid { grid-template-columns: 1fr; }
.train-card summary { align-items: flex-start; }

.train-card .summary-text { gap: .75rem; }
.train-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; padding: 6px 10px;
  border-radius: 999px; font-weight: 600; font-size: .85rem;
  background: #e6f6fe; color: #075985; border: 1px solid #c6e6f8;
}
.pill.outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }

/* Training Bullets */
.bullets { list-style: none; padding-left: 0; margin: 0; display: grid; gap: .65rem; }
.bullets li { padding-left: 20px; position: relative; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .45rem;
  width: 8px; height: 8px; border-radius: 50%; background: #000000;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
  display: inline-flex; padding: 6px 10px; border-radius: 8px;
  background: #eef2f6; color: #0b1f24; border: 1px solid var(--border);
  font-weight: 600; font-size: .85rem;
}

/* ==========================================================================
   12. MODULE: TESTIMONIALS
   ========================================================================== */
.testimonials-section { background: #e6fcff; }

/* Vertical Testimonials List */
.testimonial-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 20px;
}

.testimonial-list .testimonial-card {
  width: 100%;
  max-width: 100%;
  flex: initial;
}

/* Vertical Testimonials Carousel (2 visible cards)
   Uses a scrollable viewport with snap points; height is set dynamically by JS */
.testimonial-shell.is-vertical {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.testimonial-viewport {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  height: auto;
  transition: height .25s ease;
}
.testimonial-viewport::-webkit-scrollbar { display: none; }

.testimonial-track.is-vertical {
  display: grid;
  gap: 20px;
  overflow: visible;
  scroll-snap-type: none;
}

.testimonial-shell.is-vertical .testimonial-card {
  width: 100%;
  max-width: 100%;
  flex: initial;
  scroll-snap-align: start;
}

.testimonial-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
}

@media (max-width: 720px) {
  .testimonial-shell.is-vertical {
    grid-template-columns: 1fr;
  }
  .testimonial-controls {
    flex-direction: row;
    justify-content: center;
    margin-top: 12px;
  }
  /* Override: show nav buttons on mobile for the vertical carousel */
  .testimonials-section .testimonial-shell.is-vertical .testimonial-nav {
    display: inline-flex;
  }
}


.testimonial-shell {
  position: relative; display: flex; align-items: center; gap: 12px;
  margin-top: 1.5rem;
}

.testimonial-track {
  flex: 1;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 100%;
  max-width: 100%;
  background: var(--glass-soft);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

@media (min-width: 900px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
}

.testimonial-card:hover {
  border-color: rgba(15, 23, 42, .22);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

.testimonial-meta { font-size: .9rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.testimonial-name { font-weight: 600; color: var(--text); }

.testimonial-nav {
  border: none; background: rgba(255, 255, 255, 0.8); color: #0f172a;
  border-radius: 999px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer;
  backdrop-filter: blur(8px); transition: all .25s ease;
}
.testimonial-nav:hover { background: #fff; transform: translateY(-2px); }
.testimonial-nav:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.testimonial-dot {
  width: 10px; height: 10px; border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, .35); background: transparent;
  padding: 0; cursor: pointer; transition: all .25s ease; opacity: .5;
}
.testimonial-dot.is-active {
  background: #0b1f24; border-color: #0b1f24; opacity: 1; transform: scale(1.25);
}

/* ==========================================================================
   13. FORMS
   ========================================================================== */
.form-card { max-width: 760px; margin: 0 auto; }
.form-field {
  width: 100%; padding: .6rem; margin: .4rem 0 1rem;
  border-radius: 10px; border: 1px solid var(--border);
  font: inherit; background: #fff; color: inherit;
}
.form-footnote { margin-top: .6rem; font-size: 1rem; }

/* Honeypot (Bot Protection) */
.honeypot-field {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  height: 0 !important; width: 0 !important; overflow: hidden !important;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer h4 { color: inherit; margin-top: 0; }
.footer-link-list { list-style: none; padding-left: 0; margin: 0; display: grid; gap: .5rem; }
.footer-links a:hover, .footer-link-list a:hover { color: color-mix(in srgb, var(--sky) 70%, black); }
.footer .footnote { padding-top: 8px; font-size: .9rem; }

/* ==========================================================================
   15. ANIMATIONS
   ========================================================================== */
canvas.particles { position: fixed; inset: 0; z-index: -2; opacity: .35; pointer-events: none; }

@keyframes gradient-shift {
  0% { background-position: 50% -32%, 50% 112%, 50% 30% }
  100% { background-position: 48% 4%, 52% 88%, 50% 68% }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   16. MEDIA QUERIES & RESPONSIVE
   ========================================================================== */

/* Large Screens */
@media (min-width: 900px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tablet / Mobile Menu Breakpoint (980px) */
@media (max-width: 980px) {
  /* Navigation Mobile */
  .nav { position: relative; }
  .nav-links {
    position: absolute; top: calc(100% + 12px); right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 14px; background: #ffffff; border-radius: 12px;
    border: 1px solid var(--border-glass); box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    min-width: 200px; z-index: 100;
  }
  .nav.open .nav-links { display: flex; }
  .nav.open .nav-links a { margin: 0; display: block; }
  .nav.open .nav-links .btn { margin: 0; width: 100%; justify-content: center; }

  /* Burger Button Visible */
  .menu {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 40px; height: 40px; padding: 0;
    border-radius: 999px; border: 1px solid rgba(15, 23, 42, 0.16);
    background: #ffffff; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
    cursor: pointer; position: relative;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }
  .menu .burger-line {
    display: block; width: 20px; height: 2px; background: #0b1f24;
    border-radius: 999px; margin: 2px 0;
  }
  .menu:hover { background: #f1f5f9; transform: translateY(-1px); }
  .menu:active { transform: scale(0.96); }

  /* Layout Adjustments */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo img { min-height: 0; }
  .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  
  .profile-block { flex-direction: column; align-items: flex-start; }
  .profile-block img, .profile-text { flex: 0 1 auto; max-width: 100%; width: 100%; }
  .profile-block img { width: min(340px, 100%); }
}

/* Mobile (720px) */
@media (max-width: 720px) {
  .offer-card { padding: 1.5rem 1.25rem 1.75rem; }
  .offer-card summary { gap: 0.75rem; }
  .offer-heading { align-items: flex-start; }

  .card-grid.cols-2 { grid-template-columns: 1fr; }
  
  .hero-photo--about img.about-illustration { max-height: 220px; }

  /* Testimonials Mobile */
  .testimonials-section .testimonial-shell { gap: 8px; }
  .testimonial-nav { display: none; }
  .testimonial-card { flex: 0 0 100%; max-width: 100%; }
}

/* Small Mobile (560px) */
@media (max-width: 560px) {
  .card-grid.cols-2 { grid-template-columns: 1fr; }
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   17. DARK MODE
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111827;
    --text: #e5e7eb;
    --headline: #ffffff;
    --lead: #cbd5e1;
    --muted: #94a3b8;
    --border: #1f2937;
    --shadow: none;
    --glass-strong: rgba(15, 23, 42, .72);
    --glass: rgba(15, 23, 42, .62);
    --glass-soft: rgba(15, 23, 42, .55);
    --border-glass: rgba(148, 163, 184, .32);
  }

  .header { background: var(--surface); box-shadow: 0 12px 30px rgba(2, 6, 23, .45); }
  .nav-links { background: var(--surface); box-shadow: 0 18px 42px rgba(2, 6, 23, .6); }
  .nav a { color: var(--text); }
  
  .brand { background: #ffffff; border: 1px solid #334155; }
  
  .section.soft { background: var(--glass); }
  .card { background: var(--glass-strong); box-shadow: none; }
  
  .footer { background: var(--footer-bg); }
  .badge { color: #a5e1ff; }

  /* Fix Contrast on colored soft sections */
  .section.soft.bg-sky { background: #0ea5e9; }
  .section.soft.bg-cyan { background: #22d3ee; }
  .section.soft.bg-emerald { background: #10b981; }
  
  .bg-sky .card, .bg-cyan .card, .bg-emerald .card {
    background: #ffffff;
    color: #0f172a;
  }
  
  /* Force dark text inside cards on brand bands */
  .bg-sky .card :where(h1,h2,h3,p,li,span,strong,.lead),
  .bg-cyan .card :where(h1,h2,h3,p,li,span,strong,.lead),
  .bg-emerald .card :where(h1,h2,h3,p,li,span,strong,.lead) {
    color: #0f172a !important;
  }
}


/* ==========================================================================
   16. MODULE: THINK. SOLVE. CREATE. TEASER
   ========================================================================== */
.tsc-teaser-section {
  padding-block: clamp(22px, 4vw, 40px);
}

.tsc-teaser-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 28px;
  align-items: center;
  padding: clamp(20px, 3.2vw, 30px);
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tsc-teaser-copy > * {
  margin: 0;
}

.tsc-teaser-badge {
  margin-bottom: 12px;
}

.tsc-teaser-title {
  color: var(--headline);
  margin-bottom: 10px;
  line-height: 1.18;
}

.tsc-teaser-card .lead {
  max-width: 62ch;
  margin-bottom: 0;
}

.tsc-teaser-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .tsc-teaser-card {
    grid-template-columns: 1fr;
  }

  .tsc-teaser-actions {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   17. MODULE: THINK. SOLVE. CREATE. TEASER
   ========================================================================== */
.tsc-teaser-section {
  padding-block: clamp(20px, 3.8vw, 38px);
}

.tsc-teaser-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 2.8vw, 34px);
  align-items: stretch;
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: clamp(18px, 2vw, 24px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, .18) 0%, rgba(34, 211, 238, .14) 38%, rgba(16, 185, 129, .12) 100%),
    rgba(255, 255, 255, .96);
  border: 1px solid rgba(14, 165, 233, .18);
  box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
  isolation: isolate;
}

.tsc-teaser-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--sky), var(--emerald));
}

.tsc-teaser-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.tsc-teaser-copy {
  position: relative;
  z-index: 1;
  padding-left: 6px;
  display: grid;
  gap: 10px;
}

.tsc-teaser-copy > * {
  margin: 0;
}

.tsc-teaser-badge {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(14, 165, 233, .18);
  box-shadow: 0 10px 24px rgba(14, 165, 233, .08);
}

.tsc-teaser-title {
  color: var(--headline);
  max-width: 26ch;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.12;
  text-wrap: balance;
}

.tsc-teaser-kicker {
  margin: 0;
  color: var(--headline);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .88rem;
  opacity: .82;
}

.tsc-teaser-card .lead {
  max-width: 60ch;
  margin-bottom: 0;
  color: #153244;
}

.tsc-teaser-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: end;
}

.tsc-teaser-actions .btn {
  box-shadow: 0 16px 32px rgba(15, 23, 42, .14);
}

@media (max-width: 820px) {
  .tsc-teaser-card {
    grid-template-columns: 1fr;
  }

  .tsc-teaser-title {
    max-width: none;
  }

  .tsc-teaser-actions {
    justify-content: flex-start;
    align-self: start;
  }
}
