/* ============================================================
   einblicke.css — Magazin-Reportage mit Marginboxen
   ============================================================ */

/* --- Hero --- */
.eb-hero {
  background:
    linear-gradient(135deg, rgba(0,51,102,0.9) 0%, rgba(26,82,118,0.86) 100%),
    url('../img/hero-bamberg.webp') center / cover no-repeat;
  color: white;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
}
.eb-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.eb-hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.eb-hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
  text-wrap: balance;
}

/* --- Links im Artikel --- */
.eb-article a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(41,128,185,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.eb-article a:hover {
  text-decoration-color: var(--accent);
}

/* ============================================================
   TOC — Mobile (horizontal pills, sticky)
   ============================================================ */
.eb-toc-mobile {
  display: none;
}
@media (max-width: 1100px) {
  .eb-toc-mobile {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 90;
  }
  .eb-toc-pill {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all var(--transition);
    white-space: nowrap;
  }
  .eb-toc-pill.active,
  .eb-toc-pill:hover {
    background: var(--uni-blau);
    color: white;
    border-color: var(--uni-blau);
  }
}

/* ============================================================
   TOC — Desktop (sticky sidebar, outside content flow)
   ============================================================ */
.eb-toc-sidebar {
  display: none;
}
@media (min-width: 1101px) {
  .eb-toc-sidebar {
    display: block;
    position: fixed;
    left: max(1rem, calc((100vw - 1100px) / 2 - 180px));
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 80;
  }
  .eb-toc-sidebar-inner {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .eb-toc-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    line-height: 1.3;
  }
  .eb-toc-link:hover {
    color: var(--uni-blau);
    background: var(--uni-blau-lighter);
  }
  .eb-toc-link.active {
    color: var(--uni-blau);
    font-weight: 700;
    background: var(--uni-blau-lighter);
  }
}

/* --- Main content (full width, sections have own backgrounds) --- */
.eb-main {
  width: 100%;
}

/* --- Sections (full viewport width backgrounds) --- */
.eb-section {
  padding: 3.5rem 1.5rem;
}
.eb-section--alt {
  background: var(--uni-blau-lighter);
}
.eb-section--dark {
  background: linear-gradient(135deg, var(--uni-blau) 0%, var(--uni-blau-light) 100%);
  color: white;
}

/* --- Article column (prose + aside boxes, centered) --- */
.eb-article {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.eb-container {
  max-width: 720px;
  margin: 0 auto;
}

/* --- Headings --- */
.eb-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--uni-blau);
  margin-bottom: 1.25rem;
}
.eb-heading--light {
  color: white;
}

/* --- Prose --- */
.eb-article p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.eb-article p strong {
  color: var(--uni-blau);
  font-weight: 700;
}

/* --- Pullquote --- */
.eb-pullquote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--uni-blau);
  border: none;
  padding: 1.5rem 0;
  margin: 1.5rem 0;
  text-align: center;
}
.eb-pullquote cite {
  display: block;
  font-style: normal;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ============================================================
   Aside boxes — float into margin
   ============================================================ */
.eb-aside {
  width: 240px;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.eb-aside--right {
  float: right;
  margin-left: 2rem;
  margin-right: -80px;
}
.eb-aside--left {
  float: left;
  margin-right: 2rem;
  margin-left: -80px;
}
.eb-section--alt .eb-aside {
  background: white;
}

/* Aside content */
.eb-aside-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.eb-aside-big {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--uni-blau);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.eb-aside-big-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--uni-blau);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.eb-aside-text {
  color: var(--text-light);
}
.eb-aside-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Person aside */
.eb-aside--person {
  transition: transform var(--transition), box-shadow var(--transition);
}
.eb-aside--person:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.eb-aside-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--uni-blau);
  margin-bottom: 0.1rem;
}
.eb-aside-mini {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* Quote aside */
.eb-aside--quote {
  background: var(--uni-blau-lighter);
  box-shadow: none;
}
.eb-aside-quote {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  color: var(--uni-blau);
  line-height: 1.45;
  margin-bottom: 0.4rem;
}
.eb-aside-cite {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Highlight aside */
.eb-aside--highlight {
  transition: transform var(--transition), box-shadow var(--transition);
}
.eb-aside--highlight:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   Images — Breaker (full article width) + Margin (portrait)
   ============================================================ */
.eb-breaker {
  margin: 2rem 0;
  clear: both;
}
.eb-breaker img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.eb-breaker figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}
.eb-breaker-placeholder {
  background: var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  aspect-ratio: 16 / 9;
}
.eb-breaker-placeholder--portrait {
  aspect-ratio: 3 / 4;
}

/* Margin image: 3:4 portrait, floats like aside boxes */
.eb-margin-img {
  width: 220px;
  margin-bottom: 1.25rem;
}
.eb-margin-img--right {
  float: right;
  margin-left: 2rem;
  margin-right: -60px;
}
.eb-margin-img--left {
  float: left;
  margin-right: 2rem;
  margin-left: -60px;
}
.eb-margin-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* ============================================================
   Parallax band (full viewport width)
   ============================================================ */
.eb-parallax {
  height: 280px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.eb-parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.25);
}

/* ============================================================
   Fakten-Grid
   ============================================================ */
.eb-fakten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.eb-fakt {
  text-align: center;
  padding: 1.25rem 0.75rem;
}
.eb-fakt-zahl {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.eb-fakt-label {
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0.85;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .eb-aside--right { margin-right: 0; }
  .eb-aside--left { margin-left: 0; }
  .eb-margin-img--right { margin-right: 0; }
  .eb-margin-img--left { margin-left: 0; }
}

@media (max-width: 700px) {
  .eb-hero { padding: 3rem 1.25rem 2.5rem; }
  .eb-section { padding: 2.5rem 1.25rem; }

  .eb-aside,
  .eb-margin-img {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem 0;
  }
  .eb-aside--right, .eb-aside--left { margin-left: 0; margin-right: 0; }
  .eb-margin-img--right, .eb-margin-img--left { margin-left: 0; margin-right: 0; }

  .eb-fakten-grid { grid-template-columns: repeat(2, 1fr); }
  .eb-parallax { height: 180px; background-attachment: scroll; }
}
