/* =====================================================
   N.E.C.C.
   Version: 1.0
   Dark Mode: Auto (System Preferences)
   ===================================================== */

/* ----------------------------- */
/* ROOT / TOKENS                 */
/* ----------------------------- */

:root {
  /* Corporate Colors */
  --brand-primary: #01859E;
  --brand-primary-hover: #026e84;
  --brand-dark: #03495F;

  /* Light Mode - Liquid Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: rgba(0, 0, 0, 0.08);
  --glass-shadow-hover: rgba(0, 0, 0, 0.15);

  /* Surface Colors */
  --surface-primary: #ffffff;
  --surface-secondary: #f5f7fa;
  --surface-tertiary: #e8eef5;

  /* Text Colors */
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-on-brand: #ffffff;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  --gradient-accent: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);

  /* Blur & Effects */
  --blur-amount: 40px;
  --blur-saturate: 180%;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Timing */
  --ease-default: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0.0, 1, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(30, 30, 32, 0.72);
    --glass-bg-strong: rgba(30, 30, 32, 0.88);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-shadow-hover: rgba(0, 0, 0, 0.5);

    --surface-primary: #1d1d1f;
    --surface-secondary: #2c2c2e;
    --surface-tertiary: #3a3a3c;

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;

    --gradient-hero: #0B3645;
  }
}

/* ----------------------------- */
/* BASE / LAYOUT                 */
/* ----------------------------- */

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;      
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  position: relative;

  background: var(--gradient-hero);
  background-attachment: fixed;
  transition: background 0.6s var(--ease-default);
}

@media (prefers-color-scheme: dark) {
  body,
  main,
  .container-component,
  #content,
  .site-grid,
  [role="main"] {
    background: #1A232E !important;
  }
}

.container-fluid, .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

/* ----------------------------- */
/* TYPOGRAPHY                    */
/* ----------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body, p, h1, h2, h3, h4, h5, h6, a, button, input {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--brand-dark);
}

@media (prefers-color-scheme: dark) {
  h2 { color: #5eb8d1; }
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-primary);
}

/* ----------------------------- */
/* HEADER                        */
/* ----------------------------- */

header#header,
header.header.container-header {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  position: sticky !important;
  top: 0;
  z-index: 1000;
  transition: all 0.4s var(--ease-default);
}

header#header.scrolled,
header.header.container-header.scrolled {
  background: var(--glass-bg-strong) !important;
  box-shadow: 0 4px 20px var(--glass-shadow);
}

@media (prefers-color-scheme: dark) {
  header.header.container-header {
    background: rgba(26, 35, 46, 0.75) !important;
    backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate)) !important;
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate)) !important;
  }
  header.header.container-header.scrolled {
    background: rgba(26, 35, 46, 0.75) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
}

.header .brand-logo img,
.header .brand-logo svg {
  max-height: 100px;
  height: auto;
  width: auto;
  margin: 1.5rem 0;
  transition: all 0.3s var(--ease-default);
}

/* ----------------------------- */
/* BUTTONS (GENERIC)             */
/* ----------------------------- */

a.btn, .btn, button, .button {
  background: var(--gradient-accent);
  color: var(--text-on-brand) !important;
  border-radius: var(--radius-sm);
  padding: clamp(0.625rem, 1.5vw, 0.875rem) clamp(1.25rem, 3vw, 2rem);
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(1, 133, 158, 0.25);
  transition: all 0.3s var(--ease-default);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

a.btn::before, .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-default);
}

a.btn:hover, .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(1, 133, 158, 0.35);
}
a.btn:hover::before, .btn:hover::before { opacity: 1; }
a.btn:active, .btn:active { transform: translateY(0) scale(0.98); }

/* ----------------------------- */
/* HR (VISUALLY HIDDEN)          */
/* ----------------------------- */

hr {
  border: none;
  height: 1px;
  background: transparent;
  margin: var(--space-xl) 0;
  opacity: 0;
}

/* ----------------------------- */
/* ICON GRID / CARDS             */
/* ----------------------------- */

.icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: var(--space-xl) 0;
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.icon-row:hover,
.icon-row:focus-within {
  z-index: 10;
}

.icon-row.dark-cards,
.icon-row.webinar-highlight {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 12px 40px var(--glass-shadow);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.icon-row.dark-cards::before,
.icon-row.webinar-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(1, 133, 158, 0.05), transparent 70%);
  pointer-events: none;
  border-radius: var(--radius-xl);
}

@media (prefers-color-scheme: dark) {
  .icon-row.dark-cards,
  .icon-row.webinar-highlight {
    background: rgba(20, 20, 22, 0.85);
  }
}

.icon-col {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 24px var(--glass-shadow);
  transition: all 0.4s var(--ease-default);
  cursor: pointer;
  z-index: 1;
}

.icon-col:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 60px var(--glass-shadow-hover);
  border-color: rgba(1, 133, 158, 0.4);
  z-index: 100;
}

.tile-icon {
  display: block;
  width: clamp(52px, 7vw, 72px);
  height: auto;
  margin-bottom: var(--space-md);
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(3,72,95,0.75));
}

.why-icon {
  width: clamp(52px, 7vw, 72px);
  height: clamp(52px, 7vw, 72px);
  display: block;
  margin: 0 auto var(--space-sm) auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(3,72,95,0.75));
}

@media (prefers-color-scheme: dark) {
  .tile-icon,
  .why-icon {
    filter: drop-shadow(0 4px 8px rgba(1,133,158,0.75));
  }
}

.icon-col h3 {
  color: var(--brand-dark);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  font-weight: 700;
  margin: var(--space-xs) 0;
  letter-spacing: -0.02em;
}

.icon-col h3 span {
  display: block;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 0.25rem;
}

@media (prefers-color-scheme: dark) {
  .icon-col h3 { color: #7dd3e8; }
  .icon-col h3 span { color: #5eb8d1; }
}

.icon-col p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.icon-row a.icon-col {
  text-decoration: none;
  color: inherit;
}

/* ----------------------------- */
/* TOOLTIP                       */
/* ----------------------------- */

.tooltip-container { position: relative; }

.tooltip-box {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px var(--glass-shadow-hover);

  padding: var(--space-md);
  width: clamp(300px, 40vw, 450px);
  max-width: 90vw;
  text-align: left;
  z-index: 9999;

  transition: all 0.4s var(--ease-out);
}

.tooltip-container:hover .tooltip-box,
.icon-col:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.tooltip-box strong {
  color: var(--brand-primary);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .tooltip-box strong { color: #5eb8d1; }
}

/* ----------------------------- */
/* SECTION TITLE (PILL)          */
/* ----------------------------- */

h2.section-title {
  position: relative;
  display: block;
  width: fit-content;
  margin: var(--space-2xl) auto var(--space-xl);
  padding: 0.75rem 2.5rem;

  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 32px var(--glass-shadow);

  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  h2.section-title {
    background: rgba(20, 20, 22, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
    color: #7dd3e8;
  }
}

/* ----------------------------- */
/* WHY HEADER (Landingpage)      */
/* ----------------------------- */

.why-header-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-2xl) 0 var(--space-xl);
  z-index: 2; /* wichtig: eigener Stacking Context */
}

.why-header-wrapper .section-title {
  margin: 0;
  z-index: 1;
}

/* Desktop: Button schwebt links im Wrapper */
.why-left-cta {
  position: absolute;
  left: clamp(2rem, 4vw, 6rem); /* FIX: clamp korrekt */
  top: 50%;
  transform: translateY(-10%); /* optisch wie vorher, aber stabiler */

  width: 56px;
  height: 56px;
  z-index: 5; /* FIX: über Pill */

  background: var(--gradient-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(1,133,158,0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all .25s var(--ease-default);
}

.why-left-cta:hover {
  transform: translateY(-20%) scale(1.06);
  box-shadow: 0 12px 32px rgba(1,133,158,0.4);
}

.why-left-cta-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Subpage-Hero: Button im Fluss (wie bei dir) */
.hero-subpage .hero-text .why-left-cta {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  margin-top: var(--space-md);
}
.hero-subpage .hero-text .why-left-cta:hover {
  transform: translateY(-2px) scale(1.05);
}

/* ----------------------------- */
/* EXPECT SECTION                */
/* ----------------------------- */

.expect-section {
  margin: var(--space-2xl) 0 var(--space-xl);
}

.expect-section .glass-pill.expect-pill {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.expect-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.expect-actions .why-left-cta {
  position: static;
  transform: none;
  margin: 0;
  display: inline-flex;
}

/* ----------------------------- */
/* HERO SUBPAGE                  */
/* ----------------------------- */

.hero-subpage { margin: var(--space-xl) 0; }

.hero-subpage-shell {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-2xl);

  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));

  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 48px var(--glass-shadow);

  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 4vw, 3rem);
}

.hero-image-pill {
  flex: 0 1 280px;
  max-width: 320px;
  align-self: center;

  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));

  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px var(--glass-shadow);

  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.hero-image-pill img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
}

/* ----------------------------- */
/* FOOTER                        */
/* ----------------------------- */

.site-footer {
  background: transparent;
  padding: 0 var(--space-md) var(--space-xl);
  margin-top: var(--space-2xl);
}

.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px var(--glass-shadow);

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

@media (prefers-color-scheme: dark) {
  .site-footer .footer-content {
    background: rgba(20, 20, 22, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.site-footer .footer-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.site-footer .footer-center p {
  margin: 0;
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
}

.site-footer .footer-nav {
  display: flex;
  gap: var(--space-md);
  margin-top: 0.5rem;
}

.site-footer .footer-nav a {
  color: var(--text-primary) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover {
  color: var(--brand-primary) !important;
}

/* Podcast-Badges: Desktop nebeneinander */
.site-footer .podcast-links {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.site-footer .podcast-link {
  width: 160px;
  display: block;
}

.site-footer .podcast-link img,
.site-footer .podcast-link picture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition:
    transform 0.2s var(--ease-default),
    box-shadow 0.2s var(--ease-default),
    opacity 0.2s var(--ease-default);
}

.site-footer .podcast-link:hover img,
.site-footer .podcast-link:hover picture {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  opacity: 0.95;
}

/* Kontakt-Button */
.footer-contact-btn {
  background: var(--gradient-accent);
  color: var(--text-on-brand);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(1, 133, 158, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    transform 0.2s var(--ease-default),
    box-shadow 0.2s var(--ease-default),
    opacity 0.2s var(--ease-default);
}

.footer-contact-icon {
  width: 26px;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.footer-contact-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(1, 133, 158, 0.4);
  opacity: 0.95;
}

/* ----------------------------- */
/* BACK TO TOP                   */
/* ----------------------------- */

#back-top {
  background: var(--gradient-accent);
  color: var(--text-on-brand);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(1, 133, 158, 0.3);
  transition: all 0.3s var(--ease-default);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ----------------------------- */
/* RESPONSIVE                     */
/* ----------------------------- */

@media (max-width: 1024px) {
  .icon-row {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --radius-xl: 24px;
  }

  h2.section-title {
    width: 95%;
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
  }

  .icon-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Footer Mobile */
  .site-footer .footer-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  .site-footer .footer-center {
    align-items: center;
    text-align: center;
  }
  .site-footer .podcast-links {
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
  }
  .site-footer .podcast-link {
    width: 135px;
  }

  /* ✅ Landingpage: Kalender-Button über der Pill, ohne in die Headline zu ragen */
  .why-header-wrapper{
    z-index: 5;
    padding-top: 3.75rem;   /* Reserve für Button */
  }
  .why-left-cta{
    z-index: 20;
    left: 1rem;
    top: -1rem;             /* sitzt im Reservoir */
    transform: none;
  }
  .why-header-wrapper .section-title{
    z-index: 10;
  }
}

/* iPhone small */
@media (max-width: 428px) {
  .header .brand-logo img { max-height: 80px; margin: 1rem 0; }
  .icon-col { padding: var(--space-md); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .glass-card, .icon-col, .dashboard-tile {
    background: white !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
  header#header, .site-footer, #back-top { display: none !important; }
}

/* Safari fallback */
@supports (-webkit-backdrop-filter: blur(1px)) {
  .glass-card,
  .icon-col,
  header#header,
  .dashboard-tile,
  .site-footer .footer-content {
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  }
}

/* =========================================
   Cassiopeia: Desktop + Dark – No extra bottom space
   ========================================= */

@media (min-width: 769px) and (prefers-color-scheme: dark) {
  :root {
    --header-offset: 170px; /* ggf. feinjustieren */
  }

  html, body {
    background: #1A232E !important;
  }

  /* FIX: min-height darf NICHT 100vh + padding erzeugen */
  body {
    min-height: 0 !important;
    padding-top: var(--header-offset) !important;

    /* falls Cassiopeia body flex setzt: ok, aber ohne Stretch */
    display: flex;
    flex-direction: column;
  }

  /* Cassiopeia-Wrapper darf keine Mindesthöhe erzwingen */
  .site-grid {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
    background: #1A232E !important;
  }

  /* oft sind diese die Übeltäter (white background / min-height) */
  main,
  .container-component,
  #content,
  .site-grid,
  [role="main"] {
    min-height: 0 !important;
    background: #1A232E !important;
  }

  header.header.container-header {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 10000;
  }
}

/* === HARD FIX: Back-to-top darf niemals Layout-Höhe erzeugen === */
#back-top.back-to-top-link,
#back-top {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 20000 !important;

  /* rein defensiv */
  margin: 0 !important;
}

/* === HARD FIX: Kein künstlicher Raum unter dem Footer (Desktop + Dark) === */
@media (min-width: 769px) and (prefers-color-scheme: dark) {

  /* Cassiopeia setzt gern min-height / flex-grow auf Wrapper */
  body { min-height: 0 !important; }

  .site-grid,
  .container-component,
  main {
    min-height: 0 !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  /* Sehr oft kommt der “leere Bauch” aus Padding/Margin am Wrapper */
  .site-grid,
  .container-component,
  main,
  .com-content-article,
  .com-content-article__body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Footer selbst: nur noch “normale” Luft */
  .site-footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* === Tooltip images: never exceed preview size === */
.tooltip-box .tooltip-image,
.tooltip-box img.tooltip-image,
.tooltip-box img {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* =========================================================
   HARD FIX: Back-Nav Button muss immer floating + klein bleiben
   ========================================================= */

/* 1) Button selbst: fixed, rund, links unten */
a.back-nav-btn,
.back-nav-btn {
  position: fixed !important;
  left: 15px !important;
  bottom: 15px !important;
  z-index: 20000 !important;

  width: 56px !important;
  height: 56px !important;

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

  border-radius: 50% !important;
  text-decoration: none !important;

  /* gegen Theme-Styles */
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* 2) Icon im Button: niemals „responsive“ aufblasen */
.back-nav-btn img,
.back-nav-btn svg,
.back-nav-btn picture,
.back-nav-btn .back-nav-icon {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;

  display: block !important;
  object-fit: contain !important;

  /* killt Bootstrap/Cassiopeia responsive image */
  flex: 0 0 auto !important;
}

/* 3) Falls Cassiopeia dir "img { width: 100% }" reindrückt */
.back-nav-btn img {
  width: 26px !important;
  height: 26px !important;
}

/* 4) Optional: nur anzeigen wenn JS die Klasse setzt */
.back-nav-btn:not(.visible) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.back-nav-btn.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* =========================================================
   BACK NAV: echter runder Button statt nur Icon
   ========================================================= */

/* Wenn du den Link eigentlich als .back-nav-btn hast: erzwingen */
a.back-nav-btn,
.back-nav-btn {
  position: fixed !important;
  left: 18px !important;
  bottom: 18px !important;
  z-index: 25000 !important;

  width: 56px !important;
  height: 56px !important;

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

  border-radius: 50% !important;
  background: var(--gradient-accent) !important;

  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 8px 24px rgba(1,133,158,0.30) !important;

  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;

  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

/* Icon im Button: klein + weiß */
.back-nav-btn svg,
.back-nav-btn img {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
}

.back-nav-btn svg {
  stroke: #fff !important;
  fill: none !important;
}

/* =========================================================
   Tooltips: auf Touch/Mobile deaktivieren
   ========================================================= */

/* 1) Geräte ohne echtes Hover (Touch): Tooltip nie anzeigen */
@media (hover: none), (pointer: coarse) {
  .tooltip-box {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Falls du Show-Regeln über hover/focus-within hast: neutralisieren */
  .tooltip-container:hover .tooltip-box,
  .tooltip-container:focus-within .tooltip-box,
  .icon-col:hover .tooltip-box,
  .icon-col:focus-within .tooltip-box {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;
  }
}

/* 2) Optional: Tooltip nur auf Geräten mit echtem Hover zulassen */
@media (hover: hover) and (pointer: fine) {
  .tooltip-box { display: block; } /* rein dokumentierend/defensiv */
}

/* Mobile: Bild unter Text statt rechts daneben */
@media (max-width: 768px) {
  .hero-subpage-shell{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
  }

  /* Bild über Text */
  .hero-subpage-shell .hero-image-pill{
    order: 0;
    align-self: center;
    width: min(260px, 85%);
    max-width: 260px;
    margin: 0 auto var(--space-md);
  }

  .hero-subpage-shell .hero-text{
    order: 1;
  }
}

/* =========================================
   Mobile Headline – controlled line break
   ========================================= */

/* Desktop: inline */
.mobile-line {
  display: inline;
}

/* Mobile: forced line break + perfect centering */
@media (max-width: 768px) {

  .hero-title {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 22ch;
    line-height: 1.2;
  }

  .mobile-line {
    display: block;
  }
}

/* =========================================================
   Calendly Embed – Größe erzwingen
   ========================================================= */

#booking-calendly .booking-frame{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  /* Optik wie eure Pills */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 48px var(--glass-shadow);

  padding: var(--space-lg);
  overflow: hidden;

  /* wichtig: verhindert Kollaps */
  min-height: 450px;
}

#booking-calendly iframe.calendly-embed{
  width: 100% !important;
  height: 450px !important;
  border: 0 !important;
  display: block !important;
  max-width: 100% !important;
}

/* Mobile: mehr Höhe */
@media (max-width: 768px){
  #booking-calendly .booking-frame{ min-height: 350px; }
  #booking-calendly iframe.calendly-embed{ height: 350px !important; }
}

/* =========================================================
   CTA Cluster: Kalender (rund) + Pill (Brand Style)
   ========================================================= */

.why-header-wrapper { position: relative; }

/* Pill im selben Style wie Kalender-Button (Gradient + gleiche Höhe) */
.why-header-wrapper > a.why-cta-pill{
  position: absolute !important;
  top: 50% !important;
  left: calc(clamp(2rem, 4vw, 6rem) + 72px) !important;
  transform: translateY(-10%) !important;

  height: 56px !important;              /* = Kalender */
  padding: 0 18px !important;           /* horizontale Luft */
  border-radius: 999px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  background: var(--gradient-accent) !important;
  color: var(--text-on-brand) !important;

  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 8px 24px rgba(1,133,158,0.30) !important;

  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;

  text-decoration: none !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  white-space: nowrap !important;

  z-index: 30 !important;
  transition: transform .25s var(--ease-default), box-shadow .25s var(--ease-default), opacity .25s var(--ease-default);
}

.why-header-wrapper > a.why-cta-pill:hover{
  transform: translateY(calc(-20% - 2px)) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(1,133,158,0.40) !important;
  opacity: 0.98 !important;
}

/* optional: Fokus sichtbar (Accessibility) */
.why-header-wrapper > a.why-cta-pill:focus-visible{
  outline: 2px solid rgba(125, 211, 232, 0.9) !important;
  outline-offset: 3px !important;
}

/* Tooltip: bei Pill nicht mittig über dem Link, sondern darunter links */
.why-header-wrapper > a.why-cta-pill .tooltip-box{
  left: 0 !important;
  transform: translate(0, 8px) !important;
}
.why-header-wrapper > a.why-cta-pill:hover .tooltip-box{
  transform: translate(0, 0) !important;
}

/* Mobile: im Reservoir rechts neben Kalender */
@media (max-width: 768px){
  .why-header-wrapper > a.why-cta-pill{
    top: -1rem !important;
    left: calc(1rem + 72px) !important;
    transform: none !important;

    height: 56px !important;
    padding: 0 16px !important;
    font-size: 0.95rem !important;
  }
}

/* =========================================
   Articles – Glass Cards im Landing-Stil
   ========================================= */

.articles-section{
  margin: var(--space-2xl) 0 var(--space-xl);
}

/* optionaler Intro-Block wie eine Glass-Pill */
.articles-intro.glass-pill{
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px var(--glass-shadow);
}

/* Grid */
.articles-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* Card */
.article-card{
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(var(--blur-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px var(--glass-shadow);

  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  overflow: visible;

  transition: transform .35s var(--ease-default), box-shadow .35s var(--ease-default), border-color .35s var(--ease-default);
}

.article-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--glass-shadow-hover);
  border-color: rgba(1, 133, 158, 0.35);
  z-index: 50;
}

/* Meta-Zeile */
.article-meta{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: .75rem;
}
.article-dot{ opacity: .55; }

/* Titel/Teaser */
.article-title{
  margin: 0 0 .6rem 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.article-teaser{
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

/* Tags */
.article-tags{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.1rem;
}

.tag{
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.12);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark){
  .tag{
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.10);
  }
}

/* Button-Wrapper */
.article-actions{
  display: flex;
  gap: .75rem;
  align-items: center;
}

/* Button nutzt dein bestehendes .btn; nur kleine Anpassung */
.article-btn{
  width: 100%;
  justify-content: center;
  border-radius: 999px;
}

/* Responsive */
@media (max-width: 900px){
  .articles-grid{ grid-template-columns: 1fr; }
}

/* Tooltips sind bei Touch bereits deaktiviert durch deine globalen Regeln */


/* =========================================
   N.E.C.C. – Neuer Einstiegsbereich
   ========================================= */

.necc-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.necc-home-hero,
.necc-home-hero * {
  box-sizing: border-box;
}

.necc-home-hero__text {
  min-width: 0;
}

.necc-home-hero .necc-home-hero__eyebrow {
  margin: 0 0 1.5rem;
  color: #01859E;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.necc-home-hero h1 {
  margin: 0 0 1.5rem;
  color: #00485C;
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.necc-home-hero h1 em {
  color: #01859E;
  font-family: Georgia, serif;
  font-weight: 400;
}

.necc-home-hero .necc-home-hero__intro {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.necc-home-hero a.necc-home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.4rem;
  border: 1px solid #00485C;
  border-radius: 6px;
  background: #00485C;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s ease;
}

.necc-home-hero a.necc-home-hero__cta:hover {
  border-color: #01859E;
  background: #01859E;
}

.necc-home-hero a.necc-home-hero__cta:focus-visible {
  outline: 3px solid #01859E;
  outline-offset: 4px;
}

.necc-home-hero__portrait {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 100px 6px 6px 6px;
  background: #00485C;
}

.necc-home-hero__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.necc-home-hero__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 4rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 72, 92, 0.92));
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.5;
}

.necc-home-hero__caption small {
  display: block;
  margin-top: 0.25rem;
  color: #deeff4;
  font-size: 0.8rem;
}

@media (prefers-color-scheme: dark) {
  .necc-home-hero h1 {
    color: #f5f5f7;
  }

  .necc-home-hero h1 em,
  .necc-home-hero .necc-home-hero__eyebrow {
    color: #7dd3e8;
  }
}

@media (max-width: 768px) {
  .necc-home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem 0;
  }

  .necc-home-hero h1 {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

  .necc-home-hero__portrait {
    width: 100%;
    max-width: 28rem;
    justify-self: center;
    border-top-left-radius: 75px;
  }

  .necc-home-hero__portrait img {
    aspect-ratio: 1 / 1;
    object-position: center 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .necc-home-hero a.necc-home-hero__cta {
    transition: none;
  }
}

/* =========================================
   N.E.C.C. – Mein Ansatz
   ========================================= */

.necc-home-approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin: 2rem 0;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-top: 1px solid rgba(0, 72, 92, 0.18);
}

.necc-home-approach > div {
  min-width: 0;
}

.necc-home-approach .necc-home-approach__label {
  margin: 0 0 1.5rem;
  color: #01859E;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.necc-home-approach h2 {
  margin: 0;
  color: #00485C;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.necc-home-approach h2 em {
  color: #01859E;
  font-family: Georgia, serif;
  font-weight: 400;
}

.necc-home-approach .necc-home-approach__lead {
  margin: 0 0 1.25rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.65;
}

.necc-home-approach .necc-home-approach__copy {
  margin: 0 0 2rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.necc-home-approach__links {
  display: flex;
  flex-direction: column;
}

.necc-home-approach__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 72, 92, 0.18);
  color: #00485C;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.necc-home-approach__links a:hover {
  color: #01859E;
}

.necc-home-approach__links a:focus-visible {
  outline: 3px solid #01859E;
  outline-offset: 4px;
}

@media (prefers-color-scheme: dark) {
  .necc-home-approach,
  .necc-home-approach__links a {
    border-color: rgba(125, 211, 232, 0.2);
  }

  .necc-home-approach h2,
  .necc-home-approach__links a {
    color: #f5f5f7;
  }

  .necc-home-approach h2 em,
  .necc-home-approach .necc-home-approach__label,
  .necc-home-approach__links a:hover {
    color: #7dd3e8;
  }
}

@media (max-width: 768px) {
  .necc-home-approach {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

/* =========================================
   N.E.C.C. – Zusammenarbeit
   ========================================= */

.necc-home-services {
  margin: 2rem 0;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 18px;
  background: rgba(1, 133, 158, 0.06);
}

.necc-home-services .necc-home-services__label {
  margin: 0 0 1rem;
  color: #01859E;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.necc-home-services h2 {
  margin: 0 0 1rem;
  color: #00485C;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.necc-home-services h2 em {
  color: #01859E;
  font-family: Georgia, serif;
  font-weight: 400;
}

.necc-home-services .necc-home-services__intro {
  margin: 0 0 2.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.necc-home-services details {
  border-top: 1px solid rgba(0, 72, 92, 0.2);
}

.necc-home-services details:last-child {
  border-bottom: 1px solid rgba(0, 72, 92, 0.2);
}

.necc-home-services summary {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  color: #00485C;
  cursor: pointer;
  list-style: none;
}

.necc-home-services summary::-webkit-details-marker {
  display: none;
}

.necc-home-services summary::after {
  content: "+";
  font-size: 1.6rem;
  text-align: center;
}

.necc-home-services details[open] > summary::after {
  content: "−";
}

.necc-home-services__number {
  color: #01859E;
  font-size: 0.8rem;
}

.necc-home-services__title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

.necc-home-services__body {
  max-width: 42rem;
  padding: 0 0 1.75rem 3rem;
}

.necc-home-services__body p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.necc-home-services__body a {
  color: #00485C;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.necc-home-services__body a:hover {
  color: #01859E;
}

.necc-home-services summary:focus-visible,
.necc-home-services__body a:focus-visible {
  outline: 3px solid #01859E;
  outline-offset: 4px;
}

@media (prefers-color-scheme: dark) {
  .necc-home-services {
    background: rgba(1, 133, 158, 0.08);
  }

  .necc-home-services h2,
  .necc-home-services summary,
  .necc-home-services__body a {
    color: #f5f5f7;
  }

  .necc-home-services h2 em,
  .necc-home-services .necc-home-services__label,
  .necc-home-services__number,
  .necc-home-services__body a:hover {
    color: #7dd3e8;
  }

  .necc-home-services details {
    border-color: rgba(125, 211, 232, 0.2);
  }
}

@media (max-width: 768px) {
  .necc-home-services {
    padding: 2rem 1.25rem;
  }

  .necc-home-services summary {
    grid-template-columns: 1.5rem minmax(0, 1fr) 1rem;
    gap: 0.5rem;
  }

  .necc-home-services__body {
    padding-left: 2rem;
  }
}

/* =========================================
   N.E.C.C. – Impulse
   ========================================= */

.necc-home-impulses {
  align-items: center;
}

.necc-home-impulses .necc-home-approach__copy {
  max-width: 30rem;
  margin: 1.5rem 0 0;
}

.necc-home-impulses .necc-home-approach__links a {
  padding: 1.4rem 0;
}

.necc-home-impulses .necc-home-approach__links a:first-child {
  border-top: 1px solid rgba(0, 72, 92, 0.18);
}

.necc-home-impulses__meta {
  display: block;
  margin-bottom: 0.35rem;
  color: #01859E;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.necc-home-impulses__title {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
  .necc-home-impulses__meta {
    color: #7dd3e8;
  }

  .necc-home-impulses .necc-home-approach__links a:first-child {
    border-color: rgba(125, 211, 232, 0.2);
  }
}

/* =========================================
   Podcast – Spotify und Apple Podcasts
   ========================================= */

.necc-home-podcast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(0, 72, 92, 0.18);
}

.necc-home-podcast__text {
  min-width: 0;
}

.necc-home-podcast__platforms {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.necc-home-impulses
.necc-home-approach__links
.necc-home-podcast
a.necc-home-podcast__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.necc-home-podcast__platform picture {
  display: flex;
  align-items: center;
}

.necc-home-podcast__platform img {
  display: block;
  width: auto;
  height: 28px;
  max-width: 110px;
  object-fit: contain;
}

.necc-home-podcast__platform:hover img {
  opacity: 0.75;
}

.necc-home-podcast__arrow {
  color: #00485C;
  font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
  .necc-home-podcast {
    border-color: rgba(125, 211, 232, 0.2);
  }

  .necc-home-podcast__arrow {
    color: #f5f5f7;
  }
}

@media (max-width: 600px) {
  .necc-home-podcast {
    gap: 1rem;
  }

  .necc-home-podcast__text {
    grid-column: 1 / -1;
  }

  .necc-home-podcast__platforms {
    grid-column: 1 / 3;
    justify-self: end;
  }

  .necc-home-podcast__arrow {
    grid-column: 3;
  }
}

/* =========================================
   N.E.C.C. – Kontakt
   ========================================= */

.necc-home-contact {
  margin: 3rem 0;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: 18px;
  background: #00485C;
  color: #ffffff;
  text-align: center;
}

.necc-home-contact .necc-home-contact__label {
  margin: 0 0 1.5rem;
  color: #b8e2ec;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.necc-home-contact h2 {
  margin: 0 0 1.5rem;
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.necc-home-contact h2 em {
  color: #8dd5e3;
  font-family: Georgia, serif;
  font-weight: 400;
}

.necc-home-contact .necc-home-contact__copy {
  max-width: 38rem;
  margin: 0 auto 2rem;
  color: #cce5ed;
  font-size: 1rem;
  line-height: 1.8;
}

.necc-home-contact a.necc-home-contact__booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  background: #d1eef4;
  color: #00485C;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.necc-home-contact a.necc-home-contact__booking:hover {
  background: #ffffff;
}

.necc-home-contact a.necc-home-contact__email {
  display: table;
  margin: 1.5rem auto 0;
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.necc-home-contact a:focus-visible {
  outline: 3px solid #8dd5e3;
  outline-offset: 5px;
}

/* =========================================
   N.E.C.C. – Neuer Footer
   ========================================= */

.necc-home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 72, 92, 0.18);
  background: transparent;
}

.necc-home-footer__brand {
  color: #00485C;
  text-decoration: none;
}

.necc-home-footer__brand strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.necc-home-footer__brand small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.necc-home-footer__info {
  text-align: right;
}

.necc-home-footer .necc-home-footer__copyright {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.necc-home-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.necc-home-footer nav a {
  color: #00485C;
  font-size: 0.85rem;
  text-decoration: none;
}

.necc-home-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.necc-home-footer a:focus-visible {
  outline: 3px solid #01859E;
  outline-offset: 5px;
}

@media (prefers-color-scheme: dark) {
  .necc-home-footer {
    border-color: rgba(125, 211, 232, 0.2);
  }

  .necc-home-footer__brand,
  .necc-home-footer nav a {
    color: #f5f5f7;
  }
}

@media (max-width: 768px) {
  .necc-home-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .necc-home-footer__info {
    text-align: left;
  }

  .necc-home-footer nav {
    justify-content: flex-start;
  }
}

/* =========================================
   Mein Ansatz – aufklappbare Vertiefungen
   ========================================= */

.necc-home-approach__detail {
  border-bottom: 1px solid rgba(0, 72, 92, 0.18);
}

.necc-home-approach__detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: #00485C;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.necc-home-approach__detail > summary::-webkit-details-marker {
  display: none;
}

.necc-home-approach__detail > summary::after {
  content: "+";
  font-size: 1.4rem;
}

.necc-home-approach__detail[open] > summary::after {
  content: "−";
}

.necc-home-approach__body {
  padding: 0.5rem 0 1.5rem;
}

.necc-home-approach__body p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.necc-home-approach__body p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.necc-home-approach__links .necc-home-approach__body a {
  display: inline-flex;
  padding: 0;
  border: 0;
  color: #00485C;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.necc-home-approach__detail > summary:focus-visible {
  outline: 3px solid #01859E;
  outline-offset: 4px;
}

.necc-home-contact h2 {
  scroll-margin-top: 190px;
}

@media (prefers-color-scheme: dark) {
  .necc-home-approach__detail {
    border-color: rgba(125, 211, 232, 0.2);
  }

  .necc-home-approach__detail > summary {
    color: #f5f5f7;
  }

  .necc-home-approach__links .necc-home-approach__body a {
    color: #7dd3e8;
  }
}

/* =========================================
   N.E.C.C. – Artikel & Essays
   ========================================= */

.necc-reading {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.necc-reading__back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: #00485C;
  font-size: 0.9rem;
  text-decoration: none;
}

.necc-reading .necc-reading__label {
  margin: 0 0 1.5rem;
  color: #01859E;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.necc-reading h1 {
  margin: 0 0 1.5rem;
  color: #00485C;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.necc-reading h1 em {
  color: #01859E;
  font-family: Georgia, serif;
  font-weight: 400;
}

.necc-reading .necc-reading__intro {
  max-width: 44rem;
  margin: 0 0 3.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.necc-reading__article {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0, 72, 92, 0.2);
}

.necc-reading__article:last-child {
  border-bottom: 1px solid rgba(0, 72, 92, 0.2);
}

.necc-reading__number {
  padding-top: 0.15rem;
  color: #01859E;
  font-size: 0.8rem;
}

.necc-reading__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.necc-reading h2 {
  max-width: 48rem;
  margin: 0 0 1rem;
  color: #00485C;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.necc-reading .necc-reading__teaser {
  max-width: 48rem;
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.necc-reading__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.necc-reading__tags span {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(0, 72, 92, 0.18);
  border-radius: 999px;
  color: #00485C;
  font-size: 0.75rem;
}

.necc-reading a.necc-reading__pdf {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #00485C;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.necc-reading__feedback {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 18px;
  background: rgba(1, 133, 158, 0.06);
}

.necc-reading__feedback p {
  max-width: 44rem;
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.necc-reading__feedback a {
  color: #00485C;
  font-weight: 600;
  text-underline-offset: 5px;
}

.necc-reading a:hover {
  color: #01859E;
}

.necc-reading a:focus-visible {
  outline: 3px solid #01859E;
  outline-offset: 5px;
}

@media (prefers-color-scheme: dark) {
  .necc-reading h1,
  .necc-reading h2,
  .necc-reading__back,
  .necc-reading__tags span,
  .necc-reading a.necc-reading__pdf,
  .necc-reading__feedback a {
    color: #f5f5f7;
  }

  .necc-reading h1 em,
  .necc-reading .necc-reading__label,
  .necc-reading__number,
  .necc-reading a:hover {
    color: #7dd3e8;
  }

  .necc-reading__article,
  .necc-reading__tags span {
    border-color: rgba(125, 211, 232, 0.2);
  }

  .necc-reading__feedback {
    background: rgba(1, 133, 158, 0.08);
  }
}

@media (max-width: 768px) {
  .necc-reading__article {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 2rem 0;
  }

  .necc-reading__feedback {
    padding: 1.5rem;
  }
}

/* =========================================
   Artikel – Layout wie „Mein Ansatz“
   ========================================= */

.necc-reading .necc-essay {
  align-items: start;
  margin: 0;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.necc-reading .necc-essay h2 {
  margin: 0;
  color: #00485C;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.necc-reading .necc-essay h2 em {
  color: #01859E;
  font-family: Georgia, serif;
  font-weight: 400;
}

.necc-reading .necc-essay__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.necc-reading .necc-essay .necc-home-approach__copy {
  margin-bottom: 2rem;
}

@media (prefers-color-scheme: dark) {
  .necc-reading .necc-essay h2 {
    color: #f5f5f7;
  }

  .necc-reading .necc-essay h2 em {
    color: #7dd3e8;
  }
}

@media (max-width: 768px) {
  .necc-reading .necc-essay {
    gap: 2rem;
  }
}

/* =========================================
   N.E.C.C. – Animierter Buchungsdialog
   ========================================= */

dialog.necc-booking {
  box-sizing: border-box;
  width: min(1000px, calc(100vw - 24px));
  max-width: none;
  height: min(860px, 92vh);
  height: min(860px, 92dvh);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(1, 133, 158, 0.25);
  border-radius: 20px;
  background: #ffffff;
  color: #00485C;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

dialog.necc-booking[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: necc-booking-in 900ms cubic-bezier(.22, .61, .36, 1);
}

dialog.necc-booking::backdrop {
  background: rgba(0, 24, 38, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.necc-booking__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #f5f9fb;
  border-bottom: 1px solid #d8e6eb;
}

.necc-booking .necc-booking__label {
  margin: 0 0 0.25rem;
  color: #01859E;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.necc-booking h2 {
  margin: 0;
  color: #00485C;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
}

.necc-booking button.necc-booking__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #00485C;
  color: #ffffff !important;
  box-shadow: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.necc-booking button.necc-booking__close:hover {
  background: #01859E;
}

.necc-booking__calendar {
  position: relative;
  min-height: 0;
  background: #ffffff;
}

.necc-booking__calendar iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.necc-booking .necc-booking__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  color: #00485C;
  font-size: 0.95rem;
  pointer-events: none;
}

.necc-booking .necc-booking__loading[hidden] {
  display: none;
}

.necc-booking__footer {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid #d8e6eb;
  background: #f5f9fb;
  text-align: center;
}

.necc-booking__footer a {
  color: #00485C;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.necc-booking a:focus-visible,
.necc-booking button:focus-visible {
  outline: 3px solid #01859E;
  outline-offset: 3px;
}

@keyframes necc-booking-in {
  from {
    opacity: 0;
    transform: translate(-25vw, 25vh) scale(0.55);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@media (max-width: 600px) {
  dialog.necc-booking {
    border-radius: 14px;
  }

  .necc-booking__header {
    padding: 1rem;
  }

  .necc-booking__footer {
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.necc-booking[open] {
    animation: none;
  }
}

/* =========================================
   N.E.C.C. – Artikel im Lesedialog
   ========================================= */

dialog.necc-booking.necc-articles-dialog {
  width: min(1180px, calc(100vw - 24px));
}

.necc-articles-dialog__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.necc-articles-dialog__body .necc-reading {
  padding: 2rem 0;
}

.necc-articles-dialog__body .necc-reading__intro {
  margin-bottom: 2rem;
}

.necc-articles-dialog__body .necc-essay {
  gap: clamp(1.5rem, 4vw, 3rem);
}

.necc-articles-dialog__body .necc-reading__feedback {
  margin-bottom: 1rem;
}

.necc-articles-dialog .necc-articles-dialog__status {
  padding: 2rem 0;
  color: #00485C;
  font-size: 1rem;
  line-height: 1.7;
}

@media (prefers-color-scheme: dark) {
  dialog.necc-booking.necc-articles-dialog {
    background: #1A232E;
    color: #f5f5f7;
  }

  .necc-articles-dialog .necc-booking__header,
  .necc-articles-dialog .necc-booking__footer {
    background: #1A232E;
    border-color: rgba(125, 211, 232, 0.2);
  }

  .necc-articles-dialog .necc-booking__header h2,
  .necc-articles-dialog .necc-booking__footer a,
  .necc-articles-dialog .necc-articles-dialog__status {
    color: #f5f5f7;
  }

  .necc-articles-dialog .necc-booking__label {
    color: #7dd3e8;
  }
}

/* Kontaktbereich innerhalb eines Lesedialogs */

.necc-booking .necc-home-contact h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.necc-booking .necc-home-contact h2 em {
  color: #8dd5e3;
}

/* =========================================
   N.E.C.C. – Rechtliche Informationen
   ========================================= */

dialog.necc-booking.necc-legal-dialog {
  width: min(900px, calc(100vw - 24px));
}

.necc-legal-copy {
  padding: 2rem 0;
}

.necc-legal-copy p,
.necc-legal-copy li {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.8;
}

.necc-legal-copy p {
  margin: 0 0 1.5rem;
}

.necc-legal-copy h2,
.necc-legal-copy h3 {
  margin: 2rem 0 1rem;
  color: #00485C;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.4;
}

.necc-legal-copy a {
  color: #00485C;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.necc-legal-copy a:hover {
  color: #01859E;
}

@media (prefers-color-scheme: dark) {
  .necc-legal-copy h2,
  .necc-legal-copy h3 {
    color: #f5f5f7;
  }

  .necc-legal-copy a {
    color: #7dd3e8;
  }
}

/* N.E.C.C. – Artikel online lesen. Am Ende der user.css ergänzen. */
.necc-reading .necc-essay--online {
  --necc-online-accent: #00485C;
  --necc-online-rule: rgba(1, 133, 158, .3);
}
.necc-reading .necc-essay--online > .necc-online {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--necc-online-rule);
  border-bottom: 1px solid var(--necc-online-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-primary, #202528);
  text-align: left;
}
.necc-reading .necc-online > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.3rem 0;
  list-style: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.necc-reading .necc-online > summary::-webkit-details-marker { display: none; }
.necc-reading .necc-online > summary::marker { content: ''; }
.necc-reading .necc-online > summary::before { content: none; }
.necc-reading .necc-online > summary::after {
  content: '+';
  flex: 0 0 auto;
  font: 400 1.8rem/1 Arial, sans-serif;
  color: var(--necc-online-accent);
}
.necc-reading .necc-online[open] > summary::after { content: '−'; }
.necc-reading .necc-online > summary:hover { color: var(--necc-online-accent); }
.necc-reading .necc-online > summary:focus-visible {
  outline: 2px solid #01859E;
  outline-offset: 5px;
}
.necc-reading .necc-online__content {
  box-sizing: border-box;
  width: 100%;
  max-width: 70ch;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem) 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, .98rem + .25vw, 1.2rem);
  line-height: 1.8;
  color: var(--text-primary, #202528);
  text-align: left;
  overflow-wrap: anywhere;
}
.necc-reading .necc-online__header {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 2.5rem;
  padding: 0 0 2rem;
  border: 0;
  border-bottom: 1px solid var(--necc-online-rule);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}
.necc-reading .necc-online__content p {
  margin: 0 0 1.2em;
  font: inherit;
  line-height: inherit;
  color: inherit;
}
.necc-reading .necc-online__content .necc-online__label {
  margin: 2.75rem 0 .6rem;
  font: 600 .78rem/1.6 Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--necc-online-accent);
}
.necc-reading .necc-online__header .necc-online__label { margin-top: 0; }
.necc-reading .necc-online__header h3 {
  margin: 0 0 1rem;
  font: 500 clamp(1.9rem, 5vw, 3.1rem)/1.15 Arial, sans-serif;
  letter-spacing: -.035em;
  color: var(--text-primary, #202528);
}
.necc-reading .necc-online__header .necc-online__subtitle {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--necc-online-accent);
}
.necc-reading .necc-online__header .necc-online__byline,
.necc-reading .necc-online__content .necc-online__end {
  font: 400 .85rem/1.6 Arial, sans-serif;
  color: var(--text-secondary, #43555C);
}
.necc-reading .necc-online__text h4 {
  margin: 0 0 1.2rem;
  font: 500 clamp(1.35rem, 3vw, 1.75rem)/1.3 Arial, sans-serif;
  letter-spacing: -.02em;
  color: var(--text-primary, #202528);
}
.necc-reading .necc-online__text .necc-online__lead,
.necc-reading .necc-online__text .necc-online__emphasis {
  font-weight: 700;
  color: var(--necc-online-accent);
}
.necc-reading .necc-online__text blockquote {
  margin: 1.8rem 0;
  padding: .3rem 0 .3rem 1.25rem;
  border: 0;
  border-left: 2px solid #01859E;
  background: transparent;
  box-shadow: none;
  color: var(--necc-online-accent);
  font: italic 1.1em/1.65 Georgia, 'Times New Roman', serif;
}
.necc-reading .necc-online__text blockquote p { margin: 0; }
.necc-reading .necc-online__text cite {
  display: block;
  margin-top: .65rem;
  font: normal .78rem/1.6 Arial, sans-serif;
  color: var(--text-secondary, #43555C);
}
.necc-reading .necc-online__content .necc-online__end {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--necc-online-rule);
}
.necc-reading .necc-online-pdf-pending {
  margin: 0;
  padding: 1.25rem 0;
  font-size: .9em;
  color: var(--text-secondary, #43555C);
}
@media (prefers-color-scheme: dark) {
  .necc-reading .necc-essay--online { --necc-online-accent: #79D0E3; }
}

/* N.E.C.C. – Kompakte Artikelübersicht. Am Ende der user.css ergänzen. */
.necc-reading .necc-article-entry {
  --necc-entry-accent: #00485C;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--text-primary, #202528);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(1, 133, 158, .3);
  border-radius: 0;
  box-shadow: none;
}
.necc-reading .necc-article-entry:first-of-type {
  border-top: 1px solid rgba(1, 133, 158, .3);
}
.necc-reading .necc-article-entry > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding: 1.4rem 0;
  color: inherit;
  font: inherit;
  list-style: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}
.necc-reading .necc-article-entry > summary::-webkit-details-marker {
  display: none;
}
.necc-reading .necc-article-entry > summary::marker { content: ''; }
.necc-reading .necc-article-entry > summary::before { content: none; }
.necc-reading .necc-article-entry > summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--necc-entry-accent);
  font: 400 1.8rem/1 Arial, sans-serif;
}
.necc-reading .necc-article-entry[open] > summary::after { content: '−'; }
.necc-reading .necc-article-entry > summary:hover .necc-article-entry__title {
  color: var(--necc-entry-accent);
}
.necc-reading .necc-article-entry > summary:focus-visible {
  outline: 2px solid #01859E;
  outline-offset: 4px;
}
.necc-reading .necc-article-entry__heading {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.necc-reading .necc-article-entry__category {
  color: var(--necc-entry-accent);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.necc-reading .necc-article-entry__title {
  color: var(--text-primary, #202528);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.necc-reading .necc-article-entry__body { min-width: 0; }
.necc-reading .necc-article-entry__body > .necc-essay {
  margin: 0;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-top: 0;
  border-bottom: 0;
}
@media (prefers-color-scheme: dark) {
  .necc-reading .necc-article-entry { --necc-entry-accent: #79D0E3; }
}
@media (max-width: 600px) {
  .necc-reading .necc-article-entry > summary {
    gap: 1rem;
    padding: 1.15rem 0;
  }
  .necc-reading .necc-article-entry__category {
    font-size: .65rem;
    letter-spacing: .08em;
  }
}

/* Geöffnet: Überschrift nur für Screenreader erhalten */
.necc-reading .necc-article-entry[open]
> summary > .necc-article-entry__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sichtbare Beschriftung zum Zuklappen */
.necc-reading .necc-article-entry[open] > summary::before {
  content: "Artikel schließen";
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-secondary, #43555C);
}

/* N.E.C.C. – Zum Anfang des geöffneten Artikels */
#necc-articles-dialog .necc-article-top {
  position: absolute;
  right: 1.25rem;
  bottom: 4.5rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: linear-gradient(135deg, #01859E, #00485C);
  color: #fff;
  box-shadow: 0 8px 28px rgba(1, 133, 158, .25);
  cursor: pointer;
  appearance: none;
  transform: none;
  transition: box-shadow .2s ease;
}
#necc-articles-dialog .necc-article-top[hidden] {
  display: none !important;
}
#necc-articles-dialog .necc-article-top:hover {
  box-shadow: 0 8px 32px rgba(1, 133, 158, .45);
}
#necc-articles-dialog .necc-article-top:focus-visible {
  outline: 2px solid #79D0E3;
  outline-offset: 4px;
}
#necc-articles-dialog .necc-article-top svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  pointer-events: none;
}
@media (max-width: 600px) {
  #necc-articles-dialog .necc-article-top {
    right: .9rem;
    bottom: 4.5rem;
    width: 3rem;
    height: 3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  #necc-articles-dialog .necc-article-top { transition: none; }
}

.necc-home-footer .necc-home-footer__social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
}

.necc-home-footer .necc-home-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  box-sizing: border-box;
  text-decoration: none;
  border-radius: 6px;
}

.necc-home-footer .necc-home-footer__social img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.necc-home-footer .necc-home-footer__social a:focus-visible {
  outline: 2px solid #01859E;
  outline-offset: 3px;
}

/* Footer: Infos mittig, Social Media rechts */
.necc-home-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.necc-home-footer > .necc-home-footer__info {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.necc-home-footer__info > nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.necc-home-footer > .necc-home-footer__social {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin: 0;
}

/* Smartphone: Logos unter den Infos */
@media (max-width: 760px) {
  .necc-home-footer {
    grid-template-columns: 1fr;
  }

  .necc-home-footer > .necc-home-footer__info {
    grid-column: 1;
    grid-row: 1;
  }

  .necc-home-footer > .necc-home-footer__social {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }
}

/* N.E.C.C. – Navigation im vorhandenen transparenten Header */
.container-header.necc-with-nav > .grid-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
}
.container-header.necc-with-nav .necc-header-nav {
  margin-left: auto;
  color: var(--text-primary, #1d1d1f);
}
.container-header.necc-with-nav .necc-header-nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(.75rem, 2vw, 2rem);
}
.container-header.necc-with-nav .necc-header-nav__links[hidden] {
  display: none;
}
.container-header.necc-with-nav .necc-header-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .01em;
  text-decoration: none;
  transition: border-color .2s ease;
}
.container-header.necc-with-nav .necc-header-nav__links a:hover,
.container-header.necc-with-nav .necc-header-nav__links a[aria-current] {
  border-bottom-color: #01859E;
}
.container-header.necc-with-nav .necc-header-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: .5rem .65rem;
  border: 1px solid rgba(1, 133, 158, .4);
  border-radius: .35rem;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  transform: none;
}
.container-header.necc-with-nav .necc-header-nav__toggle svg {
  width: 19px;
  height: 19px;
}
.container-header.necc-with-nav .necc-header-nav__close-icon { display: none; }
.container-header.necc-with-nav .necc-header-nav__toggle[aria-expanded="true"] .necc-header-nav__menu-icon { display: none; }
.container-header.necc-with-nav .necc-header-nav__toggle[aria-expanded="true"] .necc-header-nav__close-icon { display: block; }
.container-header.necc-with-nav .necc-header-nav a:focus-visible,
.container-header.necc-with-nav .necc-header-nav button:focus-visible {
  outline: 2px solid #01859E;
  outline-offset: 5px;
}
#necc-approach-title,
#necc-services-title,
#necc-impulses-title,
#necc-contact-title {
  scroll-margin-top: var(--necc-nav-offset, 194px);
}
@media (max-width: 1000px) {
  .container-header.necc-with-nav .navbar-brand {
    min-width: 0;
    max-width: calc(100% - 7.5rem);
  }
  .container-header.necc-with-nav .brand-logo img {
    max-width: 100%;
    height: auto !important;
    max-height: 100px;
    object-fit: contain;
  }
  .container-header.necc-with-nav .necc-header-nav {
    display: contents;
  }
  .container-header.necc-with-nav .necc-header-nav__toggle {
    display: inline-flex;
    margin-left: auto;
    color: var(--text-primary, #1d1d1f);
  }
  .container-header.necc-with-nav .necc-header-nav__links {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem 1.5rem;
    margin: .5rem 0;
    padding: .75rem .5rem;
    border-top: 1px solid rgba(1, 133, 158, .3);
    color: var(--text-primary, #1d1d1f);
  }
}
@media (prefers-reduced-motion: reduce) {
  .container-header.necc-with-nav .necc-header-nav__links a {
    transition: none;
  }
}

#necc-approach-title:focus,
#necc-services-title:focus,
#necc-impulses-title:focus,
#necc-contact-title:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* N.E.C.C. – Artikel-Link kopieren */
.necc-reading .necc-article-share {
  margin: 0;
  padding: 0;
  color: var(--text-primary, #202528);
}
.necc-reading .necc-article-share__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 1.25rem 0;
  border: 0;
  border-bottom: 1px solid rgba(1, 133, 158, .3);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: none;
}
.necc-reading .necc-article-share__button svg {
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
}
.necc-reading .necc-article-share__button:focus-visible,
.necc-reading .necc-article-share__fallback input:focus-visible {
  outline: 2px solid #01859E;
  outline-offset: 4px;
}
.necc-reading .necc-article-share__fallback {
  display: block;
  margin: .75rem 0 1.25rem;
  font-size: .85em;
}
.necc-reading .necc-article-share__fallback[hidden] { display: none; }
.necc-reading .necc-article-share__fallback input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: .5rem;
  padding: .6rem;
  border: 1px solid rgba(1, 133, 158, .4);
  border-radius: .25rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.necc-reading .necc-article-share__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.necc-article-route-status {
  margin: 0 0 1.5rem;
  color: var(--text-secondary, #43555C);
}

/* NECC Artikel: normale Editor-Ueberschriften und Tabellen */
.necc-reading .necc-library__intro > :first-child{margin-top:0}.necc-reading .necc-library__intro > :last-child{margin-bottom:0}
.necc-reading .necc-online__text h2,.necc-reading .necc-online__text h3{margin:1.5em 0 .65em;font:500 clamp(1.35rem,3vw,1.75rem)/1.3 Arial,sans-serif;color:inherit;letter-spacing:-.02em}
.necc-reading .necc-online__text table{width:100%;table-layout:fixed;margin:1.5em 0;border-collapse:collapse;font:400 .85em/1.55 Arial,sans-serif}
.necc-reading .necc-online__text caption{caption-side:top;color:inherit;text-align:left;padding-bottom:.7em;font-weight:600}
.necc-reading .necc-online__text th,.necc-reading .necc-online__text td{padding:.7em;border-bottom:1px solid currentColor;vertical-align:top;overflow-wrap:anywhere}
.necc-reading .necc-online__text th:first-child{width:35%}.necc-reading .necc-online__text th{font-weight:600}.necc-reading .necc-online__text li{margin-block:.5em}.necc-reading .necc-online__text a{overflow-wrap:anywhere}
@media(max-width:600px){.necc-reading .necc-online__text table{font-size:.78em}.necc-reading .necc-online__text th,.necc-reading .necc-online__text td{padding:.5em}}

/* Lange Tabellen auf Mobilgeraeten; Fensterkopf bleibt im Sichtbereich. */
dialog.necc-booking.necc-articles-dialog{overflow:clip}
@media(max-width:600px){.necc-reading .necc-online__text th:first-child{width:44%}}
