/* Marthas S(ch)nackbar on Tour – Microsite
   Farben, Schriften und Formsprache nach dem Stylesheet von martha-stiftung.de */

@font-face {
  font-family: "Glypha";
  src: url("assets/glypha-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Unica";
  src: url("assets/unica.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --lila: #64227d;
  --lila-dark: #4a185b;
  --lavendel: #bfabd3;
  --pflege: #e5ddee;
  --pflege-bg: #ece6f2;
  --sucht: #c6e1dc;
  --sucht-bg: #d7eae6;
  --erlen: #fbcb9a;
  --erlen-bg: #fdedcc;
  --gelb: #efeea7;
  --grau: #e9edea;
  --ink: #212529;
  --muted: #50575d;
  --focus: #005aa0;
  --tile: 40px;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: "Unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--lila); }
a:hover { color: var(--lila-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

h1, h2, h3 {
  font-family: "Glypha", "Rockwell", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  color: var(--lila);
  hyphens: manual;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; }

/* Links im Martha-Stil: fett, mit >> */
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " >>"; }
.more:hover { text-decoration: underline; }
.back-link { font-weight: 700; text-decoration: none; }
.back-link::before { content: "<< "; }
.back-link:hover { text-decoration: underline; }

.skip { position: absolute; left: 12px; top: -80px; background: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { top: 12px; }

/* Buttons: eckig wie auf der Stiftungsseite */
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  background: var(--lila); color: #fff; font-weight: 700; font-size: 17px;
  text-decoration: none; border: 2px solid var(--lila);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--lila-dark); border-color: var(--lila-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--lila); }
.btn.ghost:hover { background: var(--lila); color: #fff; }
.btn.light { background: #fff; color: var(--lila); border-color: #fff; }
.btn.light:hover { background: var(--pflege); border-color: var(--pflege); color: var(--lila); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Kopfbereich */
.topbar { background: var(--lila); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #d5ebfa; text-decoration: underline; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img:first-child { width: 52px; height: auto; }
.brand .wordmark { width: 184px; height: auto; }
.site-nav { display: flex; gap: 28px; font-size: 16px; font-weight: 700; }
.site-nav a { text-decoration: none; color: var(--ink); padding: 8px 0; }
.site-nav a:hover { color: var(--lila); text-decoration: underline; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: 24px; padding-bottom: 80px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.series { font-family: "Glypha", Georgia, serif; font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--ink); margin: 0; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tile) 0 0 var(--tile); }
.photo-caption {
  position: absolute; left: 0; bottom: 28px; max-width: 70%;
  background: var(--lila); color: #fff; padding: 14px 18px;
  border-radius: 0 0 15px 0; font-size: 14px; line-height: 1.45; opacity: .94;
}
.photo-caption strong { display: block; font-family: "Glypha", Georgia, serif; font-size: 17px; }
.credit { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Lila Band mit den Leitfragen */
.questions { background: var(--lila); color: #fff; }
.questions .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); padding-top: 88px; padding-bottom: 88px; }
.questions .intro p { font-size: 20px; }
.questions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.questions li { font-family: "Glypha", Georgia, serif; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; }
.questions .invite { margin-top: 22px; color: var(--erlen-bg); font-size: 20px; }

/* Ablauf */
.steps { padding-top: 96px; padding-bottom: 24px; }
.steps h2 { margin-bottom: 36px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step-list li { counter-increment: step; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.step-list li::before { content: counter(step); font-family: "Glypha", Georgia, serif; font-weight: 700; font-size: 44px; line-height: 1; color: var(--lila); }
.step-list li:nth-child(1) { background: var(--pflege-bg); border-radius: 0 var(--tile) var(--tile) 0; }
.step-list li:nth-child(2) { background: var(--sucht-bg); border-radius: var(--tile); }
.step-list li:nth-child(3) { background: var(--erlen-bg); border-radius: var(--tile) 0 0 var(--tile); }
.step-list h3 { font-size: 1.35rem; }
.step-list p { font-size: 17px; }

/* Stationen */
.stations { padding-top: 88px; padding-bottom: 96px; }
.stations-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 18px; }
.stations-note { color: var(--muted); max-width: 720px; margin-bottom: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; padding: 0 16px;
  border: 2px solid transparent; cursor: pointer; color: var(--ink);
}
.filters button[data-filter="alle"] { background: #e3e8f6; }
.filters button[data-filter="pflege"] { background: var(--pflege); }
.filters button[data-filter="sucht"] { background: var(--sucht); }
.filters button[data-filter="teilhabe"] { background: var(--erlen); }
.filters button[aria-pressed="true"] { background: var(--lila); color: #fff; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.tile[hidden] { display: none; }
.tile[data-area="pflege"] { --bg: var(--pflege-bg); --strong: var(--pflege); }
.tile[data-area="sucht"] { --bg: var(--sucht-bg); --strong: var(--sucht); }
.tile[data-area="teilhabe"] { --bg: var(--erlen-bg); --strong: var(--erlen); }
/* Kachel-Rundungen wie auf martha-stiftung.de: links, Mitte, rechts */
.tiles .tile.pos-1 { border-radius: 0 var(--tile) var(--tile) 0; }
.tiles .tile.pos-2 { border-radius: var(--tile); }
.tiles .tile.pos-3 { border-radius: var(--tile) 0 0 var(--tile); }
.tile-media { position: relative; aspect-ratio: 3 / 2; background: var(--strong); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-in-out, filter .5s; }
.tile:hover .tile-media img { transform: scale(1.06); filter: saturate(1.3); }
.tile-media .num {
  position: absolute; left: 22px; bottom: 16px; font-family: "Glypha", Georgia, serif; font-weight: 700;
  font-size: 64px; line-height: 1; color: var(--lila);
}
.tile-media .demo { position: absolute; right: 12px; bottom: 12px; background: #fff; font-size: 12px; padding: 3px 8px; }
.tile-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.tile-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.status { font-size: 13px; padding: 2px 9px; border: 1.5px solid var(--ink); white-space: nowrap; }
.status.live { background: var(--lila); border-color: var(--lila); color: #fff; }
.tile h3 { font-size: 1.3rem; }
.tile .place { font-size: 15px; color: var(--muted); margin: 0; }
.tile p { font-size: 16px; line-height: 1.5; }
.tile .foot { margin-top: auto; padding-top: 6px; font-size: 16px; }
.tile .foot span { color: var(--muted); }
.tile a.cover { color: inherit; text-decoration: none; }

/* Coffee Bike */
.bike { background: var(--erlen-bg); }
.bike .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: 88px; padding-bottom: 88px; }
.bike figure { margin: 0; }
.bike img { border-radius: 0 var(--tile) var(--tile) 0; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.bike h2 { margin-bottom: 20px; }

/* Stiftung */
.facts { padding-top: 88px; padding-bottom: 88px; }
.facts-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact-list li { background: var(--grau); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.fact-list li:first-child { border-radius: 0 var(--tile) var(--tile) 0; }
.fact-list li:last-child { border-radius: var(--tile) 0 0 var(--tile); }
.fact-list li:not(:first-child):not(:last-child) { border-radius: var(--tile); }
.fact-list strong { font-family: "Glypha", Georgia, serif; font-size: 2.6rem; line-height: 1.1; color: var(--lila); }

/* Abschluss */
.closing { background: var(--lila); color: #fff; }
.closing .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.closing h2 { color: #fff; margin-bottom: 8px; }

footer.site-footer { background: var(--grau); font-size: 15px; }
footer.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
footer.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site-footer a { color: var(--ink); text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
footer.site-footer small { flex-basis: 100%; color: var(--muted); font-size: 13px; }

/* Detailseite */
.crumb { font-size: 14px; padding-top: 4px; }
.article-head .wrap { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(28px, 4vw, 56px); padding-top: 28px; padding-bottom: 64px; align-items: start; }
.article-head .kicker { display: inline-block; background: var(--sucht); padding: 6px 14px; border-radius: 0 0 10px 0; font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.article-head h1 { margin-bottom: 24px; }
.facts-box { background: var(--sucht-bg); border-radius: var(--tile) 0 0 var(--tile); padding: 30px; margin-top: 12px; }
.facts-box dl { margin: 0; }
.facts-box dt { font-size: 14px; font-weight: 700; margin-top: 18px; }
.facts-box dt:first-child { margin-top: 0; }
.facts-box dd { margin: 2px 0 0; font-size: 16px; line-height: 1.45; }
.facts-box dd b { font-family: "Glypha", Georgia, serif; color: var(--lila); font-size: 18px; }
.jump { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 2px solid #fff; font-size: 16px; }

.media { padding-bottom: 88px; }
.media h2 { margin-bottom: 12px; }
.media .note { font-size: 15px; color: var(--muted); border-left: 3px solid var(--lila); padding-left: 14px; margin: 0 0 26px; max-width: 760px; }
.media-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.video { grid-row: span 2; position: relative; border-radius: 0 var(--tile) var(--tile) 0; overflow: hidden; min-height: 420px; background: #2c1834; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-copy { position: relative; height: 100%; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; color: #fff; }
.video-copy h3 { color: #fff; font-size: 2rem; }
.video .play { width: 76px; height: 76px; border-radius: 50%; background: var(--lila); display: grid; place-items: center; border: 3px solid #fff; }
.thumb { margin: 0; }
.thumb button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.thumb img { width: 100%;  object-fit: cover; }
.thumb:nth-of-type(2) img { border-radius: var(--tile) 0 0 var(--tile); }
.thumb:nth-of-type(3) img { border-radius: var(--tile) 0 0 0; }
.thumb figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

.lead-in { background: var(--sucht-bg); }
.lead-in .wrap { display: grid; grid-template-columns: 3fr 9fr; gap: 28px; padding-top: 80px; padding-bottom: 80px; }
.lead-in p { font-family: "Glypha", Georgia, serif; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.4; color: var(--ink); }

.interview .wrap { display: grid; grid-template-columns: 3fr 9fr; gap: 28px; padding-top: 96px; padding-bottom: 88px; }
.draft-flag { display: block; background: var(--erlen-bg); border-radius: 0 0 15px 0; padding: 14px 16px; font-size: 15px; line-height: 1.45; margin-top: 18px; }
.qa { max-width: 760px; }
.qa .q { font-weight: 700; margin-top: 34px; }
.qa .q:first-child { margin-top: 0; }
.qa .q span, .qa .a span { font-family: "Glypha", Georgia, serif; }
.qa .q span { color: var(--lila); }
.qa blockquote {
  margin: 44px 0 10px; padding: 34px 40px; background: var(--pflege-bg); border-radius: 0 var(--tile) var(--tile) 0;
  font-family: "Glypha", Georgia, serif; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; color: var(--lila);
}

.facility { padding-bottom: 88px; }
.facility .box { background: var(--sucht); border-radius: 0 var(--tile) var(--tile) 0; padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.facility h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 14px; }
.link-list { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.link-list a { display: flex; align-items: center; min-height: 54px; padding: 0 22px; background: #fff; font-weight: 700; text-decoration: none; }
.link-list a::after { content: " >>"; margin-left: 6px; }
.link-list a:first-child { background: var(--lila); color: #fff; }
.link-list a:hover { text-decoration: underline; }

.next { padding-bottom: 96px; }
.next .box { background: var(--pflege-bg); border-radius: var(--tile) 0 0 var(--tile); padding: 34px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.next h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }

dialog.lightbox { border: 0; padding: 20px; max-width: 94vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(40, 14, 52, .85); }
dialog.lightbox img { max-width: 88vw; max-height: 76vh; object-fit: contain; }
dialog.lightbox p { font-size: 14px; margin: 10px 0 0; }
dialog.lightbox button { display: block; margin: 0 0 12px auto; font: inherit; font-weight: 700; color: var(--lila); background: #fff; border: 2px solid var(--lila); padding: 8px 14px; cursor: pointer; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .questions .wrap, .bike .wrap, .article-head .wrap, .facility .box { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile { border-radius: var(--tile) !important; }
  .step-list, .fact-list { grid-template-columns: 1fr 1fr; }
  .lead-in .wrap, .interview .wrap { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .video { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar .wrap > div:first-child { display: none; }
  .site-nav { gap: 18px; font-size: 15px; width: 100%; }
  .brand .wordmark { width: 150px; }
  .hero .wrap { padding-bottom: 56px; }
  .photo-caption { position: static; max-width: none; border-radius: 0 0 15px 0; }
  .hero-photo img { border-radius: var(--tile) 0 0 0; }
  .tiles, .step-list, .fact-list, .media-grid { grid-template-columns: 1fr; }
  .step-list li, .fact-list li { border-radius: var(--tile) !important; }
  .closing .wrap, .next .box { flex-direction: column; align-items: flex-start; }
  .video { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.questions h2 { color: #fff; margin-bottom: 22px; }
.lead-in h2 { font-size: 1.3rem; padding-top: 8px; }
.hero-photo img, .bike img, .thumb img { height: auto; }
.hero-photo img { aspect-ratio: 5 / 4; object-position: 45% center; }
.lead-in p { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
@media (max-width: 980px) { .questions ul { margin-top: 12px; } }

/* Bereichsfarben auf den Stationsseiten */
body[data-area="pflege"] .kicker, body[data-area="pflege"] .facility .box { background: var(--pflege); }
body[data-area="pflege"] .facts-box, body[data-area="pflege"] .lead-in { background: var(--pflege-bg); }
body[data-area="teilhabe"] .kicker, body[data-area="teilhabe"] .facility .box { background: var(--erlen); }
body[data-area="teilhabe"] .facts-box, body[data-area="teilhabe"] .lead-in { background: var(--erlen-bg); }
body[data-area="teilhabe"] .thumb:nth-of-type(2) img { border-radius: var(--tile) 0 0 var(--tile); }

/* Kurz gesagt */
.summary { margin-top: 26px; padding: 22px 24px; background: var(--grau); border-radius: 0 var(--tile) 0 0; }
.summary h3 { font-size: 1.1rem; margin-bottom: 10px; }
.summary ul { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.5; }
.summary li + li { margin-top: 8px; }

/* Teilen und Stationsnavigation */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-bottom: 36px; font-size: 15px; }
.share span { font-weight: 700; }
.share a { font-weight: 700; text-decoration: none; }
.share a::after { content: " >>"; }
.share a:hover { text-decoration: underline; }
.station-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 96px; }
.station-nav a { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; text-decoration: none; font-family: "Glypha", Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--lila); background: var(--grau); }
.station-nav a small { font-family: "Unica", Helvetica, sans-serif; font-weight: 700; font-size: 13px; color: var(--muted); }
.station-nav a.prev { border-radius: 0 var(--tile) var(--tile) 0; }
.station-nav a.next { border-radius: var(--tile) 0 0 var(--tile); text-align: right; align-items: flex-end; }
.station-nav a:hover { background: var(--pflege); }
@media (max-width: 640px) { .station-nav { grid-template-columns: 1fr; } .station-nav a { border-radius: var(--tile) !important; } .station-nav a.next { text-align: left; align-items: flex-start; } }

.tile .date { margin: 0; font-size: 15px; font-weight: 700; color: var(--lila); }

.media-intro { max-width: 760px; font-size: 18px; line-height: 1.6; margin: 0 0 26px; }

/* Gastgeber-Abschnitt */
.host { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: 88px; padding-bottom: 88px; }
.host figure { margin: 0; }
.host img { width: 100%; border-radius: 0 var(--tile) var(--tile) 0; aspect-ratio: 4 / 3; object-fit: cover; }
.host .role { font-weight: 700; margin-bottom: 18px; }
.host h2 { margin-bottom: 6px; }
.host-quote { margin: 24px 0 0; padding: 22px 26px; background: var(--pflege-bg); border-radius: 0 0 15px 0; font-family: "Glypha", Georgia, serif; font-size: 1.15rem; line-height: 1.45; color: var(--lila); }
@media (max-width: 980px) { .host { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .host { padding-top: 56px; padding-bottom: 56px; } }
@media (max-width: 640px) { .host img { border-radius: var(--tile) 0 0 0; } }
