/* EJBB Website — Gestaltung. Farben und Grundgrössen als CSS-Variablen in :root. */

  :root {
    --paper: #ffffff;
    --tint: #f4f4f5;
    --ink: #1f1f1f;
    --ink-2: #52525b;
    --muted: #8a8a90;
    --line: #e4e4e7;
    --accent: #e57729;
    --accent-dark: #c25c0c;
    --accent-light: #f5a860;
    --body: clamp(16px, 1.9vw, 18px);
    --mail: clamp(14px, 3.4vw, 18px);
    --h2: clamp(23px, 3.2vw, 30px);
    --pad: clamp(56px, 8vw, 104px);
  }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: "Schibsted Grotesk", Helvetica, Arial, sans-serif;
    font-size: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { margin: 0; }
  img { max-width: 100%; }
  a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  a:hover { color: var(--ink); }
  button { font: inherit; }
  table { border-collapse: collapse; }
  section[id] { scroll-margin-top: 88px; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
  .pad { padding-top: var(--pad); padding-bottom: var(--pad); }
  .tint { background: var(--tint); }
  h2 { font-size: var(--h2); font-weight: 700; letter-spacing: -0.02em; }
  .prose { display: grid; gap: 20px; max-width: 34em; }
  .prose p { margin: 0; text-wrap: pretty; }
  .caption { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
  .btn {
    display: inline-block; font-size: 15px; font-weight: 600; text-decoration: none;
    color: var(--ink); background: var(--accent); padding: 13px 22px; border-radius: 3px; border: 0; cursor: pointer;
  }
  .btn:hover { background: var(--accent-light); color: var(--ink); }
  .btn-ghost {
    font-size: 15px; font-weight: 600; color: var(--ink); background: none;
    border: 1px solid #d4d4d8; padding: 11px 18px; border-radius: 3px; cursor: pointer;
  }
  .btn-ghost:hover { background: var(--tint); }
  .split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
  figure { margin: 0; }
  figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--line); }

  /* Header */
  header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  header > .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
  .brand img { display: block; width: 150px; height: auto; }
  nav.desk { display: flex; align-items: center; gap: 24px; white-space: nowrap; font-size: 14px; font-weight: 500; }
  nav.desk a { color: var(--ink-2); text-decoration: none; }
  nav.desk a:hover { color: var(--accent-dark); }
  #menuBtn { display: none; background: none; border: 1px solid #d4d4d8; border-radius: 4px; padding: 8px 12px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
  nav.mob { display: none; border-top: 1px solid var(--line); }
  nav.mob.open { display: block; }
  nav.mob .wrap { display: grid; padding-top: 4px; padding-bottom: 18px; }
  nav.mob a { color: var(--ink); text-decoration: none; padding: 10px 0; border-top: 1px solid #ebebed; font-size: 16px; font-weight: 500; }

  /* Hero */
  .hero img { display: block; width: 100%; height: clamp(260px, 46vh, 520px); object-fit: cover; background: var(--ink); }
  .hero .titles { padding-top: clamp(32px, 5vw, 56px); }
  .hero .welcome { margin: 0 0 10px; font-size: clamp(16px, 2vw, 18px); color: var(--ink-2); }
  .hero h1 { font-size: clamp(38px, 9vw, 82px); line-height: 1.01; font-weight: 800; letter-spacing: -0.04em; max-width: 16em; text-wrap: balance; }
  .hero .next { margin-top: clamp(32px, 5vw, 56px); background: var(--accent); color: var(--ink); }
  .hero .next .wrap { padding-top: 24px; padding-bottom: 24px; }
  .hero .next .label { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
  .hero .next .what { margin: 0; font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; letter-spacing: -0.01em; }

  /* Erfolge */
  #erfolge { background: var(--ink); color: var(--paper); }
  #erfolge h2 { color: var(--paper); }
  #erfolge .lead { margin: 0 0 36px; color: #d4d4d8; max-width: 32em; text-wrap: pretty; }
  .scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { width: 100%; font-size: clamp(14px, 3.4vw, 17px); }
  th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid #3f3f46; padding: 0 10px 12px 0; }
  td { padding: 12px 10px 12px 0; border-bottom: 1px solid #2e2e33; color: #d4d4d8; }
  td.year { font-weight: 600; }
  td.rank { font-weight: 500; }
  td.cond { color: #a1a1aa; padding-right: 0; }
  tr.win td.year { color: var(--paper); }
  tr.win td.rank { color: var(--accent-light); font-weight: 700; }
  #moreBtn { margin-top: 28px; background: none; border: 1px solid var(--ink-2); color: var(--paper); font-size: 15px; font-weight: 600; padding: 12px 20px; border-radius: 3px; cursor: pointer; }
  #moreBtn:hover { background: #2e2e33; }

  /* Galerie */
  .albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
  .album { display: block; text-align: left; padding: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; overflow: hidden; cursor: pointer; }
  .album:hover { border-color: var(--accent-dark); }
  .album .thumb { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
  .album .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform: scale(1.02); }
  .album .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px; }
  .album .meta b { font-size: clamp(17px, 2.4vw, 20px); font-weight: 700; letter-spacing: -0.015em; }
  .gallery-more { margin-top: 24px; }

  #albumView { display: none; position: fixed; inset: 0; z-index: 50; background: var(--paper); overflow-y: auto; }
  #albumView.open { display: block; }
  #albumView .inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px 64px; }
  #albumView .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  #albumView h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
  #albumMeta { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
  #albumShots { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
  #albumShots button { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--ink); border-radius: 3px; overflow: hidden; cursor: zoom-in; }
  #albumShots button:hover { opacity: 0.9; }
  #albumShots img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform: scale(1.02); }

  #lightbox { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(20,20,20,0.95); flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; cursor: zoom-out; }
  #lightbox.open { display: flex; }
  #lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 3px; }
  #lightbox p { margin: 0; font-size: 12px; letter-spacing: 0.08em; color: #a1a1aa; text-align: center; }

  /* Vorstand */
  .board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .board li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .board .role { flex: 0 0 220px; font-weight: 500; color: var(--accent-dark); }
  .board .who { flex: 1 1 220px; font-weight: 600; }
  .board a { flex: 1 1 320px; font-size: var(--mail); word-break: break-word; }

  /* Leitung */
  #leitung .person { max-width: 300px; }
  #leitung .person img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; background: var(--line); }
  #leitung .person h3 { margin: 18px 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
  #leitung .person .where { margin: 0; font-size: 14px; color: #6b6b72; }
  #leitung .person .mail { margin: 8px 0 0; font-size: var(--mail); }

  /* Kontakt */
  #kontakt .card { display: grid; gap: 6px; }
  #kontakt .card p { margin: 0; }
  #kontakt .card .role { font-size: clamp(14px, 3vw, 16px); font-weight: 500; color: var(--accent-dark); }
  #kontakt .card .who { font-weight: 600; }
  #kontakt .card .mail { font-size: var(--mail); word-break: break-word; }

  footer { background: var(--ink); color: #a1a1aa; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-end; padding-top: 48px; padding-bottom: 48px; }
  footer p { margin: 0; }
  footer .mark { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--paper); margin-bottom: 8px !important; }
  footer .name { font-size: 16px; }
  footer .copy { font-size: 12px; letter-spacing: 0.06em; color: #6b6b72; }

  @media (min-width: 1080px) { nav.mob.open { display: none; } }
  @media (max-width: 1079px) {
    nav.desk { display: none; }
    #menuBtn { display: block; }
    body.menu-open { overflow: hidden; }
    nav.mob {
      position: fixed; inset: 0; z-index: 19; overflow-y: auto;
      background: var(--paper); padding-top: 95px; border: 0;
    }
    nav.mob .wrap {
      display: flex; flex-direction: column; align-items: stretch;
      min-height: calc(100dvh - 95px); padding: 24px;
    }
    nav.mob a {
      display: flex; align-items: center; min-height: 58px; padding: 12px 0;
      border-top: 1px solid var(--line); font-size: clamp(20px, 5.5vw, 26px);
      font-weight: 600; line-height: 1.2;
    }
    nav.mob a:last-child { border-bottom: 1px solid var(--line); }
  }
  @media (max-width: 619px) {
    .brand img { width: 120px; }
    nav.mob { padding-top: 80px; }
    nav.mob .wrap { min-height: calc(100dvh - 80px); }
    .board li { gap: 2px 16px; padding: 16px 0; }
    .board .role { flex: 0 0 100%; font-size: 14px; }
    .board .who { flex: 0 0 100%; }
  }

/* ---- Abschnitts-Bausteine ---- */
section h2 { margin-bottom: 22px; }
#ueber-uns h2 { margin-bottom: 20px; }
#leitung h2 { margin-bottom: 32px; }
#galerie h2, #vorstand h2 { margin-bottom: 14px; }
.bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { margin: 0 0 36px; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }
#kontakt .section-lead { color: var(--ink); }
.cta-row { margin: 28px 0 0; }
.split.center { align-items: center; }
.split.narrow-cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.thanks { font-weight: 700; letter-spacing: -0.01em; }
figcaption.caption { margin-top: 10px; }
