/* Lübeck — immersive Ortsseite auf Basis des site-weiten Designsystems */

.page-main--luebeck {
  background: var(--paper);
}

.page-main--luebeck [id] {
  scroll-margin-top: calc(var(--header) + 24px);
}

/* ── Lübeck: Eingang (Parlament-Stil) ─────────────────────── */

.jb-luebeck-stage {
  position: relative;
  min-height: 92svh;
  background-color: var(--forest-deep);
  background-image: var(--jb-luebeck-image, linear-gradient(160deg, #1a2820 0%, #2d4535 42%, #1c241b 100%));
  background-size: cover;
  background-position: center 42%;
  background-attachment: fixed;
  display: grid;
  align-items: end;
}

.jb-luebeck-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 18, 12, 0.94) 0%, rgba(18, 28, 20, 0.5) 55%, rgba(28, 36, 27, 0.3) 100%),
    linear-gradient(90deg, rgba(18, 24, 18, 0.82), transparent 65%);
}

.jb-luebeck-inner {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header) + 48px) clamp(48px, 7vw, 72px);
}

.jb-luebeck-hero__title {
  display: grid;
  gap: 0.1em;
  margin: 12px 0 20px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
}

.jb-luebeck-hero__title-main {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.jb-luebeck-hero__title-accent {
  font-style: italic;
  color: #a8d86a;
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.jb-luebeck-hero__lead {
  font-size: 1.05rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.68);
  max-width: 54ch;
  margin: 0;
}

.jb-luebeck-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 36px);
}

.luebeck-wahlkreis {
  overflow: hidden;
  background: var(--cream);
}

.luebeck-wahlkreis .jb-wk-explorer {
  background: transparent;
  margin-top: 0;
}

.luebeck-wk-intro {
  padding: clamp(48px, 6vw, 72px) 0 clamp(48px, 6vw, 72px);
}

.luebeck-wk-intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink-soft);
}

.luebeck-wk-intro__accent {
  color: var(--sun-bright);
}

.luebeck-wk-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: stretch;
  margin-top: clamp(16px, 2vw, 22px);
}

.luebeck-wk-intro__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 28px);
  min-width: 0;
}

.luebeck-wk-intro__copy {
  display: grid;
  gap: 0.7em;
}

.luebeck-wk-intro__copy > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.35vw, 1rem);
  line-height: 1.58;
}

/* Höhe = Überschrift + Text; Querformat durch Breite */
.luebeck-wk-intro__grid .luebeck-place-visual--landscape {
  min-height: 0;
  height: auto;
  aspect-ratio: unset;
  align-self: stretch;
}

.luebeck-place-visual--landscape > img,
.luebeck-place-visual--landscape > .jb-image-placeholder {
  object-position: center;
}

.luebeck-place-visual--landscape figcaption span {
  top: 12px;
  font-size: 0.56rem;
  padding: 5px 9px;
}

.luebeck-place-visual--landscape figcaption small {
  right: 10px;
  bottom: 10px;
  font-size: 0.56rem;
  padding: 5px 9px;
}

.luebeck-section h2,
.luebeck-posts h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.luebeck-section h2 em,
.luebeck-posts h2 em {
  color: var(--green);
  font-weight: inherit;
}

.luebeck-section {
  padding: clamp(82px, 10vw, 140px) 0;
}

.luebeck-section--paper { background: var(--paper); }
.luebeck-section--mist { background: var(--mist); }
.luebeck-section--cream { background: var(--cream); }

.luebeck-place-grid,
.luebeck-office-grid,
.luebeck-faction-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.luebeck-place-copy > p:not(.eyebrow),
.luebeck-office-copy > p:not(.eyebrow),
.luebeck-faction-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 28px;
  color: var(--muted);
  line-height: 1.72;
}

.luebeck-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px 0 0;
  border-top: 1px solid var(--line-strong);
}

.luebeck-facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 17px 10px 0 0;
}

.luebeck-facts dt {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.luebeck-facts dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1;
}

.luebeck-facts div:last-child dd { color: var(--green); }

.luebeck-place-visual {
  position: relative;
  min-height: clamp(480px, 62vw, 720px);
  margin: 0;
  overflow: hidden;
  background: #dfe5dc;
  box-shadow: var(--shadow-soft);
}

.luebeck-place-visual > img,
.luebeck-place-visual > .jb-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.luebeck-place-visual figcaption span,
.luebeck-place-visual figcaption small {
  position: absolute;
  z-index: 1;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.luebeck-place-visual figcaption span {
  top: 22px;
  left: 0;
  background: var(--sun-bright);
  color: var(--forest);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.luebeck-place-visual figcaption small {
  right: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest2);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.luebeck-office-grid { align-items: stretch; }

.luebeck-office-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.luebeck-office-copy > p:not(.eyebrow) {
  margin-top: 0;
}

.luebeck-office-copy > p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 1em;
}

.luebeck-office__title {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink-soft);
}

.luebeck-office__title-sub {
  display: block;
  margin-top: 0.08em;
  font-style: italic;
  color: #a8d86a;
  font-size: 0.58em;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.luebeck-office-copy .button {
  margin-top: auto;
  align-self: flex-start;
}

.luebeck-address-card {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 30px 0 20px;
  padding: 24px 26px 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  font-style: normal;
}

.luebeck-address-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
}

.luebeck-address-card--sun::before { background: var(--sun-bright); }

.luebeck-address-card span {
  margin-bottom: 7px;
  color: var(--sage);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.luebeck-address-card strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.15;
}

.luebeck-address-card__name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.luebeck-address-card small { color: var(--muted); }

.luebeck-office-map {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(35, 42, 34, 0.09);
  border-radius: 6px;
  background: #e9ece5;
  box-shadow: var(--shadow-soft);
}

.luebeck-office-map__leaflet {
  flex: 1 1 auto;
  min-height: 420px;
  width: 100%;
}

.luebeck-office-map__leaflet .leaflet-control-attribution {
  font-size: 0.58rem;
  background: rgba(255, 255, 255, 0.88);
}

.luebeck-office-map__link {
  display: block;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--forest-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--sun-bright);
  text-underline-offset: 3px;
  transition: background 0.18s ease, color 0.18s ease;
}

.luebeck-office-map__link:hover {
  background: var(--cream);
  color: var(--forest);
}

.luebeck-editorial .page-content {
  padding-block: 0;
}

.luebeck-kommunal__head {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.luebeck-kommunal__head h2 {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.luebeck-kommunal__intro {
  display: grid;
  gap: 1em;
  max-width: 78ch;
}

.luebeck-kommunal__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.luebeck-kommunal__grid {
  align-items: start;
}

.luebeck-kommunal__faction-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
}

.luebeck-faction-grid { align-items: start; }

.luebeck-faction-links {
  display: grid;
  gap: 14px;
}

.luebeck-faction-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  grid-template-areas:
    "number title action"
    "number copy action";
  gap: 6px 16px;
  align-items: center;
  padding: 23px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.luebeck-faction-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
}

.luebeck-faction-card--sun::before { background: var(--sun-bright); }
.luebeck-faction-card--sage::before { background: var(--sage); }

.luebeck-faction-card:hover {
  transform: translateX(5px);
  box-shadow: 0 18px 40px rgba(28, 36, 27, 0.09);
}

.luebeck-faction-card > span {
  grid-area: number;
  color: var(--sage);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.luebeck-faction-card h3 {
  grid-area: title;
  margin: 0;
  font-size: 1.3rem;
}

.luebeck-faction-card p {
  grid-area: copy;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.luebeck-faction-card > strong {
  grid-area: action;
  color: var(--forest);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.luebeck-posts {
  padding: clamp(76px, 10vw, 126px) 0;
  background: var(--paper);
}

.luebeck-posts .section-head { margin-bottom: 38px; }

.luebeck-posts__empty {
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--mist);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .jb-luebeck-stage {
    background-attachment: scroll;
    min-height: 72svh;
  }

  .luebeck-wk-intro__grid,
  .luebeck-place-grid,
  .luebeck-office-grid,
  .luebeck-faction-grid {
    grid-template-columns: 1fr;
  }

  .luebeck-wk-intro__grid .luebeck-place-visual--landscape {
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .luebeck-place-visual { min-height: 620px; }

  .luebeck-office-map__leaflet {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .jb-luebeck-inner {
    padding-block: calc(var(--header) + 32px) clamp(40px, 6vw, 56px);
  }

  .jb-luebeck-hero__title-main {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .jb-luebeck-hero__title-accent {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .jb-luebeck-hero__lead {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .jb-luebeck-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .jb-luebeck-hero__actions .button {
    justify-content: center;
  }

  .luebeck-section { padding-block: 72px; }

  .luebeck-place-visual { min-height: 480px; }

  .luebeck-facts { grid-template-columns: 1fr; }

  .luebeck-facts div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .luebeck-office-map__leaflet {
    min-height: 300px;
  }

  .luebeck-office-copy .button {
    width: 100%;
    justify-content: center;
  }

  .luebeck-faction-card {
    grid-template-columns: 34px 1fr;
    grid-template-areas:
      "number title"
      ". copy"
      ". action";
    align-items: start;
  }

  .luebeck-faction-card > strong { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .luebeck-faction-card { transition: none; }
}
