/* ==========================================
   COMPONENTS.CSS
   Reusable UI Components
   ========================================== */


/* ==========================================================
   A. PRIMITIVES
   ========================================================== */

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-md);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-light); /* ← WICHTIG */
  letter-spacing: 0.01em;                /* leicht luftiger */
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.button:focus-visible {
  outline: 3px solid var(--color-accent-cyan);
  outline-offset: 3px;
}

/* Button Variants */
.button--primary {
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.95),
    rgba(118, 75, 162, 0.95)
  );
  color: var(--color-text-inverted);
  box-shadow:
    0 10px 28px rgba(0, 217, 255, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

.button--primary:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 1),
    rgba(118, 75, 162, 1)
  );
  color: #ffffff; /* <-- bewusst hart, maximaler Kontrast */
  box-shadow:
    0 14px 36px rgba(0, 217, 255, 0.35);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.22); /* leichter, luftiger */
  /* backdrop-filter: none; bewusst entfernt */
  color: var(--color-text-primary);
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.05);
}

.button--secondary:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--color-text-primary);
  border-color: var(--color-accent-cyan-border);
  box-shadow:
    0 6px 16px rgba(118, 75, 162, 0.25);
}

/* Button Sizes */
.button--large {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-size-md);
}

/* --- Icons --- */
/* ==========================================
   ICON SYSTEM (Phosphor)
   - baseline reset
   - contextual sizing
   - color via currentColor
   ========================================== */

/* ICON CONTAINERS */
.icon,
i.ph-light,
i.ph-regular,
i.ph-bold {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  color: currentColor;
}

.icon--inline   { font-size: 1em; margin-inline-end: var(--space-2xs); }
.icon--leading  { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.icon--meta     { font-size: 1rem; opacity: 0.9; }
.icon--section  { font-size: 1.75rem; }
.icon--card     { font-size: 2rem; }


/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
}

.badge--pill {
  border-radius: var(--radius-round);
}

.badge--topic {
  background: rgba(15, 23, 42, 0.04);
  color: var(--color-text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge--method {
  background: var(--color-info-bg);
  color: var(--color-info-text);
  border-color: var(--color-info-border);
}

/* --- Meta Items --- */
/* META ITEMS (Credibility / Status) */
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  font-size: var(--font-size-sm);
  line-height: 1;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-secondary);
}

.meta-item.meta--success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-color: var(--color-success-border);
}

.meta-item.meta--info {
  background: var(--color-info-bg);
  color: var(--color-info-text);
  border-color: var(--color-info-border);
}

.meta-item.meta--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border-color: var(--color-warning-border);
}

.meta-item.meta--danger {
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border-color: var(--color-error-border);
}


/* ==========================================================
   B. CARD CORE
   ========================================================== */

/* --- Card Container --- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
/* --- Card Variants --- */
.card--glass {
  background: var(--color-bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
}
.card--outlined {
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}
.card--outlined .step-number {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}
/* --- Card Alignment --- */
.card--centered {
  text-align: center;
  align-items: center;
}
.card--centered p {
  text-align: center;
  line-height: var(--line-height-base);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}
.card--centered p strong {
  display: block;
  margin-bottom: var(--space-xs);
}
.card--centered .icon--leading {
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
}
.card--centered .icon--danger {
  color: var(--color-error);
  opacity: 0.9;
}
/* --- Card Navigation Variant --- */
.card--nav {
  text-align: center;
  align-items: center;
  min-height: 340px;
}
.card--nav p {
  text-align: center;
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
}



/* ==========================================================
   C. CARD SUBCOMPONENTS
   ========================================================== */

/* --- Card Media --- */
.card__media {
  /* (Definition ggf. an anderer Stelle, falls vorhanden) */
}

/* --- Card Header, Title, Eyebrow --- */
.card__header {
  /* (Definition ggf. an anderer Stelle, falls vorhanden) */
}
.card__title {
  /* (Definition ggf. an anderer Stelle, falls vorhanden) */
}
.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.eyebrow--hero {
  color: var(--color-text-secondary);
}

/* --- Card Toggle --- */
.card__toggle {
  position: relative;
  width: 100%;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}


/* --- Card Spacer --- */
.card__spacer {
  flex: 1 1 auto;
}

/* --- Card Footer, Divider, Actions --- */
.card__footer {
  margin-top: var(--space-lg);
  display: flex;
}
.card__footer .detail-highlight {
  width: 100%;
  margin-top: 0;
}

/* --- Card Link / Card Link Inline --- */
.card-link {
  margin-top: auto;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    text-decoration-color 0.2s ease;
}
.card-link:hover {
  color: var(--color-accent-cyan);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
p a.card-link--inline {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(102, 126, 234, 0.4);
}
p a.card-link--inline:hover {
  text-decoration-color: var(--color-text-primary);
}
.context-links .card-link--inline {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(0, 217, 255, 0.45);
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}
.context-links .card-link--inline:hover {
  color: var(--color-accent-cyan);
  text-decoration-color: var(--color-accent-cyan);
}

/* ==========================================================
   D. INTERACTIVE PATTERNS
   ========================================================== */

/* --- Accordion / .card--compact --- */
.card--compact .card__content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition:
    grid-template-rows 360ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 200ms ease;
}
.card--compact.is-open .card__content {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* --- FAQ --- */
.faq-section {
  padding-block: var(--space-5xl);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin-inline: auto;
}
.faq-item {
  background: var(--color-bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h3 {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--line-height-base);
}
.faq-item summary i {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary i {
  transform: rotate(180deg);
}
.faq-item p {
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-loose);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-light);
}
.faq-item p strong {
  display: block;
  margin-top: var(--space-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}
.faq-item p br {
  content: "";
  display: block;
  margin-top: 0.35rem;
}
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   E. LAYOUT GRIDS
   ========================================================== */

/* --- Listing Grid --- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 340px), 1fr)
  );
  gap: var(--space-xl);
}
.listing-grid--compact {
  gap: var(--space-lg);
}
.listing-grid--wide {
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 420px), 1fr)
  );
}



/* --- Deliverables Grid --- */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.deliverable-item {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.deliverable-item i {
  font-size: 2rem;
  color: var(--color-info-text);
  margin-bottom: var(--space-xs);
}
.deliverable-item strong {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}
.deliverable-item p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
}

/* ==========================================================
   F. CONTEXTUAL PATTERNS
   ========================================================== */

   /* ==========================================
   STICKY FILTER
   ========================================== */

   .section--filter {
  padding-top: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.filter-header {
  margin-bottom: var(--space-md);
  text-align: center;
}

.filter-title {
  font-size: var(--font-size-md);
  font-weight: 500;
}

.filter-hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  max-width: 42rem;
  margin-inline: auto;
}

.filter-dropzone {
  min-height: 4.5rem;
  padding: var(--space-lg);

  border: 2px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--radius-lg);

  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.95);
}

.filter-dropzone.drag-over {
  border-color: var(--color-accent);
  background: var(--color-surface-highlight);
}

.filter-placeholder {
  display: flex;
  align-items: center;
  gap: var(--space-xs);

  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.filter-placeholder i {
  font-size: 1.1rem;
  opacity: 0.7;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xxs);

  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);

  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);

  font-size: var(--font-size-sm);
}

.filter-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
}

.filter-sticky {
  position: sticky;
  top: var(--nav-height, 80px);
  z-index: 10;

  /* wichtig gegen Layout-Jumps */
  background: var(--color-bg-page);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}


   /* --- Filter / Context Links --- */
.context-links {
  max-width: 70ch;
  margin: var(--space-xl) auto 0;
  text-align: center;
}
.context-links p {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-secondary);
}





/* ==========================================
   STATUS MESSAGES
   ========================================== */

.status {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}

.status--info {
  background: rgba(33, 150, 243, 0.08);
  color: var(--color-info);
}

.status--success {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-success);
}

.status--error {
  background: rgba(220, 38, 38, 0.08);
  color: var(--color-error);
}

/* ==========================================
   SECTION HEADER WITH ICON
   ========================================== */

.section-header {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-header__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-md); /* statt 50% */

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.35);
  color: var(--color-accent-cyan);

  box-shadow:
    0 6px 18px rgba(0, 217, 255, 0.15);
}

.section-header__icon i {
  font-size: 1.75rem;
}

.section-header__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}


.section-header__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

/* ==========================================
   PROBLEM CONCLUSION (Index)
   ========================================== */

.problem-conclusion {
  max-width: 720px;
  margin: var(--space-xl) auto 0;
  text-align: center;

  font-size: var(--font-size-md);
  line-height: var(--line-height-base);
  color: var(--color-text-secondary);
}

.problem-conclusion strong {
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
}

/* ==========================================
   EYEBROW / OVERLINE (single source of truth)
   ========================================== */

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-xs);

  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: var(--color-text-muted);
}

/* Contextual modifier (e.g. Hero, prominent sections) */
.eyebrow--hero {
  color: var(--color-text-secondary);
}


/* ==========================================
   TESTIMONIAL
   ========================================== */

.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__meta {
  text-align: left;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.testimonial__meta a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--color-text-primary);
  text-decoration: none;
}

.testimonial__meta a .ph-linkedin-logo {
  color: currentColor;
  font-size: 1rem;
  position: relative;
  top: -1px;
}

.quote {
  position: relative;
  font-style: italic;
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-loose);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

.quote::before {
  content: "“";
  position: absolute;
  top: -0.4em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.25;
}

.quote--standalone {
  margin: var(--space-2xl) auto;
  padding-top: var(--space-xl);
}

.quote--standalone::before {
  top: -0.5em;
}

.quote--standalone cite {
  display: block;
  margin-top: var(--space-md);
  font-style: normal;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.quote--testimonial {
  padding-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}


/* ==========================================
   BANNER / PROOF SECTION
   ========================================== */

.section--banner {
  position: relative;
  overflow: hidden;
}

/* transparenter Gradient, WaveBG scheint durch */
.banner--gradient {
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.22),
    rgba(118, 75, 162, 0.22)
  );
  color: var(--color-text-primary);
}

/* optional: dezente Innenfläche */
.section--banner .container {
  padding: var(--space-3xl) var(--space-xl);
}

/* ==========================================
   STATS / KPI GRID
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-2xl);
  text-align: center;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--color-text-primary);
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.stat-sublabel {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

.stats-grid--3 {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 1024px) {
  .stats-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .stats-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* ==========================================
   SECTION SPACING & MODIFIERS
   ========================================== */

/* Default section spacing (visual rhythm) */
.section {
  padding-block: var(--space-4xl);
}

/* Hero section gets more breathing room */
.section--hero {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

/* Compact hero variant for content-heavy pages (e.g. Projects, Publications) */
.section--hero--compact {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

/* Slightly tighter typography rhythm inside compact hero */
.section--hero--compact .page-title {
  margin-bottom: var(--space-sm);
}

.section--hero--compact .page-subtitle {
  max-width: 72ch;
}

/* Center text inside compact hero */
.section--hero--compact .section-content.align-center {
  text-align: center;
}

.section--hero--compact .page-subtitle {
  margin-inline: auto;
}

/* Compact sections (e.g. tightly related content) */
.section--compact {
  padding-block: var(--space-3xl);
}

/* Compact sub-sections (e.g. tightly related content) */
.section--compact-top {
  padding-top: var(--space-xl);
}

/* Extra-loose sections (editorial / CTA-heavy) */
.section--loose {
  padding-block: var(--space-5xl);
}

/* Ensure clear separation between sections and headers */
.section-content > .section-header {
  margin-top: var(--space-xl);
}

/* Prevent headers from visually sticking to previous sections */
.section + .section .section-header {
  margin-top: var(--space-2xl);
}

/* --- Card Links --- */
.card-link {
  margin-top: auto;

  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 0.25em;

  transition:
    color 0.2s ease,
    transform 0.2s ease,
    text-decoration-color 0.2s ease;
}


p a.card-link--inline {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(102, 126, 234, 0.4);
}

p a.card-link--inline:hover {
  text-decoration-color: var(--color-text-primary);
}

.card-link:hover {
  color: var(--color-accent-cyan);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}



.context-links .card-link--inline {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(0, 217, 255, 0.45);

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.context-links .card-link--inline:hover {
  color: var(--color-accent-cyan);
  text-decoration-color: var(--color-accent-cyan);
}

/* ==========================================
   CONTEXT LINKS (Related Content Hint)
   ========================================== */

.context-links {
  max-width: 70ch;
  margin: var(--space-xl) auto 0;
  text-align: center;
}

.context-links p {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-secondary);
}

/* --- CTA Benefits --- */
.cta-benefits {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.benefit-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);

  padding: 0.4rem 0.75rem;
  border-radius: 12px;

  font-size: var(--font-size-sm);
  line-height: 1;

  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-secondary);

  width: max-content;
  min-width: 100%;
}

.benefit-item .icon {
  font-size: 1rem;
  color: var(--color-success);
}

/* Modifier: Center benefits in centered cards */
.card--centered .cta-benefits {
  align-items: center;
}

/* ==========================================
   ICON CONTAINERS (Cards, Pillars, Values)
   ========================================== */

.card-icon,
.pillar-icon,
.value-icon,
.client-icon {
  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto var(--space-md); /* center horizontally + spacing below */

  border-radius: var(--radius-md);

  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.18),
    rgba(118, 75, 162, 0.18)
  );

  color: var(--color-text-primary);

  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px rgba(0, 217, 255, 0.25);
}

.card--glass > h3 {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.card--glass > p {
  text-align: inherit;
}

.card--glass.card--nav > p {
  text-align: center;
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
}

.card--nav .card__spacer { 
  flex: 1; 
}

a.card {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   SERVICE LIST
   ========================================== */

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Arrow variant */
.service-list--arrow li {
  position: relative;
  padding-left: 1.75rem;
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
}

.service-list--arrow li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.1em;

  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

.service-list--check li {
  position: relative;
  padding-left: 1.75rem;
}

.service-list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--color-success);
  font-weight: var(--font-weight-medium);
}

/* ==========================================
   PINS (SVG) — CLICKABLE + HOVER SAFE
   ========================================== */

/* The interactive shape is the circle, not the <g> wrapper */
.map-pin {
    cursor: pointer;
}

/* Ensure the painted element receives pointer events (needed for <a> links) */
.pin-dot {
    pointer-events: all;
    transition: filter 0.25s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.with-reference .pin-dot {
    fill: var(--color-error);
    stroke: var(--color-text-inverted);
    stroke-width: 2;
}

.no-reference .pin-dot {
    fill: var(--color-neutral);
    stroke: var(--color-text-inverted);
    stroke-width: 2;
}

.map-pin:hover .pin-dot,
.map-pin:focus-within .pin-dot {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Tooltip */
.map-tooltip {
    position: fixed;
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 400;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: var(--z-overlay);
    white-space: nowrap;
    transform: none;
}

.map-tooltip.show {
    opacity: 1;
}

/* Legende */
.map-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-pin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legend-pin.with-reference {
    background: #dc2626;
}

.legend-pin.no-reference {
    background: #64748b;
}

/* ==========================================
   DETAIL HIGHLIGHT (Mini Card in Card)
   ========================================== */

.detail-highlight {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  border-left: 4px solid;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.04);
  box-shadow: var(--shadow-sm);
}

.detail-highlight--info    { background: var(--color-info-bg);    border-left-color: var(--color-info-text); }
.detail-highlight--success { background: var(--color-success-bg); border-left-color: var(--color-success-text); }
.detail-highlight--warning { background: var(--color-warning-bg); border-left-color: var(--color-warning-border); }
.detail-highlight--danger  { background: var(--color-error-bg);   border-left-color: var(--color-error-border); }




/* ==========================================
   DELIVERABLES GRID
   ========================================== */

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

/* ==========================================
   DELIVERABLE ITEM
   ========================================== */

.deliverable-item {
  padding: var(--space-lg);
  border-radius: var(--radius-md);

  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);

  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Icon */
.deliverable-item i {
  font-size: 2rem;
  color: var(--color-info-text);
  margin-bottom: var(--space-xs);
}

/* Title */
.deliverable-item strong {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

/* Description */
.deliverable-item p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
}

/* ==========================================
   CTA Card – Service Pricing
   ========================================== */

.card--cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-xl);

  align-items: start;
  padding: var(--space-xl) var(--space-2xl);
}

/* Icon */
.card--cta__icon {
  font-size: 2.5rem;
  color: var(--color-success-text);
  line-height: 1;
}

/* Text Content */
.card--cta__content strong {
  display: block;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.card--cta__content .pricing-note {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-light);
  color: var(--color-text-muted);
  margin: 0;
}

/* CTA Card – responsive fix */
@media (max-width: 768px) {
  .card--cta {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .card--cta__icon {
    justify-self: center;
  }

  .card--cta__content {
    text-align: center;
  }

  .card--cta .button {
    width: 100%;
    justify-content: center;
  }
}



/* ------------------------------------------
   Timeline Container
------------------------------------------ */

.process-timeline {
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
}

/* Vertical Timeline Line */
.process-timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-accent-cyan);
  opacity: 0.6;
}



/* ------------------------------------------
   Timeline Step
------------------------------------------ */

.timeline-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

/* Step Number */
.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent-cyan);
  color: var(--color-text-inverted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: var(--z-ui);
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.35);
}

/* ------------------------------------------
   Step Content
------------------------------------------ */

.step-content {
  flex: 1;
  padding-top: 0.5rem;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.75rem 0;
}

.step-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 1rem 0;
}

/* ------------------------------------------
   Step Output (Status-style Box)
------------------------------------------ */

.step-output {
  display: flex;                 /* statt inline-flex */
  align-items: center;
  gap: 0.5rem;

  width: 100%;                   /* volle Container-Breite */
  box-sizing: border-box;

  padding: 0.6rem 0.9rem;
  background: var(--color-success-bg);
  border-left: 4px solid var(--color-success-border);
  border-radius: 8px;

  font-size: 0.95rem;
}

.step-output strong {
  color: var(--color-success-text);
  font-weight: 600;
}

.step-output .detail-text {
  color: var(--color-text-primary);
}

/* ------------------------------------------
   Process Guarantees
------------------------------------------ */

.process-guarantees {
  margin-top: var(--space-4xl);
}

.guarantee-card {
  background: var(--color-bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.guarantee-card i {
  font-size: 2.75rem;
  color: var(--color-success-text);
  margin-bottom: var(--space-sm);
}

.guarantee-card h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0;
}

.guarantee-card p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--color-text-secondary);
  margin: 0;
  font-weight: var(--font-weight-light);
}
/* ==========================================
   FAQ SECTION (Accordion – Token-based)
   ========================================== */

.faq-section {
  padding-block: var(--space-5xl);
}

/* Grid layout */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin-inline: auto;
}

/* FAQ Item (details) */
.faq-item {
  background: var(--color-bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);

  padding: var(--space-xl);
}

/* Summary row */
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);

  cursor: pointer;
  list-style: none;
}

/* Remove default marker */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Question */
.faq-item summary h3 {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--line-height-base);
}

/* Caret icon */
.faq-item summary i {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

/* Open state */
.faq-item[open] summary i {
  transform: rotate(180deg);
}

/* Answer text */
.faq-item p {
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-loose);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-light);
}

/* Emphasis inside answers */
.faq-item p strong {
  display: block;
  margin-top: var(--space-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

/* Line breaks spacing */
.faq-item p br {
  content: "";
  display: block;
  margin-top: 0.35rem;
}

/* ------------------------------------------
   Responsive
------------------------------------------ */

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

/* ==========================================
   HEADER WITH MEDIA (Two-Column Pattern)
   ========================================== */

.header-with-media {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

@media (min-width: 768px) {
  .header-with-media {
    display: grid;
    grid-template-columns: minmax(0, 420px) 1fr;
    align-items: center;
    gap: var(--space-4xl);
  }
}

/* Media side (image, illustration, etc.) */
.header-media {
  position: relative;
}

.header-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Badge anchored to media */
.header-media .badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
}

/* Text side */
.header-copy {
  max-width: 60ch;
}

.header-copy h1 {
  margin-bottom: var(--space-md);
}

.header-copy p {
  margin-bottom: var(--space-lg);
}
@media (max-width: 480px) {
  .process-timeline::before {
    left: 40px;
  }
}


/* ==========================================
   RESULTS / LISTING FEEDBACK
   ========================================== */

.loading-message {
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-md);
}

/* teaching.html – Germany map */
.germany-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-container {
  width: 100%;
}

.map-container svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================
   LEGAL CONTENT (Impressum, Datenschutz, etc.)
   ========================================== */

.card--legal {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: var(--space-xl) var(--space-lg);
}

@media (min-width: 768px) {
  .card--legal {
    padding: var(--space-2xl);
  }
}

/* ==========================================
   LEGAL TYPOGRAPHY – subtle & unobtrusive
   ========================================== */

.card--legal {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
}

/* Page title */
.card--legal .page-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-xs);
}

/* Subtitle */
.card--legal .page-subtitle {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-light);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* Section headings */
.card--legal .legal-heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

/* Body text */
.card--legal .legal-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-loose);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

/* Reduce visual noise of line breaks */
.card--legal .legal-text br {
  display: block;
  margin-bottom: 0.15rem;
}

/* ==========================================
   FORM SYSTEM – Subtle & Accessible
   ========================================== */

/* --- Form container --- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 640px;
}

/* --- Form field wrapper --- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* --- Labels --- */
.form-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
}

/* --- Inputs & Textareas --- */
.form-input {
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-base);

  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);

  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-primary);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.form-input::placeholder {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-light);
}

/* --- Focus state --- */
.form-input:focus {
  outline: none;
  border-color: var(--color-accent-cyan-border);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.12);
  background: #ffffff;
}

/* --- Textarea tweaks --- */
textarea.form-input {
  resize: vertical;
  min-height: 6rem;
}

/* --- Select field --- */
.form-field--select {
  position: relative;
}

.form-field--select select.form-input {
  appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
}

/* Caret icon */
.form-field--select i {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

/* --- Form hint / privacy note --- */
.form-hint {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-light);
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.form-hint a {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(102, 126, 234, 0.35);
}

.form-hint a:hover {
  text-decoration-color: var(--color-text-primary);
}

/* --- Validation (optional future use) --- */
.form-input:invalid {
  border-color: var(--color-error-border);
}

.form-input:invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}