/* ==========================================================================
   Minijustiz e. V. – Aquarell-Bilderbuch
   Farben aus dem bisherigen Auftritt, Lasuren als gemalte Flächen.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-normal-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-normal-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-normal-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-normal-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-italic-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben (aus dem bisherigen Auftritt) */
  --paper: #fefefe;
  --ink: #151515;
  --ink-soft: #40364a;
  --violet-deep: #5e4778;
  --violet: #795f93;
  --lavender: #b293c9;
  --lavender-mist: #f3edf8;
  --sun: #fdb341;
  --pink: #ff69b4;
  --pink-ink: #b8146a;
  --rule: #d9cde4;

  /* Schrift */
  --font-display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Raster: 0.5rem-Schritte */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem; --s8: 8rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --page: 78rem;
  --measure: 34em;

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
  accent-color: var(--violet);
  scrollbar-color: var(--lavender) var(--paper);
}

/* --- Grundlagen ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s4); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper) url("../img/grain.webp") 0 0 / 200px 200px repeat;
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--font-text);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--violet-deep);
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--sun); color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
p, ul, ol, dl, blockquote, figure { margin: 0; }
p { text-wrap: pretty; }
a { color: var(--violet-deep); text-decoration-thickness: .09em; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, var(--pink) 70%, transparent); }
a:hover { color: var(--ink); text-decoration-color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 3px; border-radius: .2rem; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-soft); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip {
  position: absolute; left: var(--s2); top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: var(--s1) var(--s2); border-radius: .4rem;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--s2); color: var(--paper); }

/* --- Lasuren (gemalte Flächen) ------------------------------------------- */
.wash {
  position: absolute; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-size: 100% 100%;
}
.wash--hero   { background-image: url("../img/wash-hero.webp"); }
.wash--sun    { background-image: url("../img/wash-sun.webp"); }
.wash--pink   { background-image: url("../img/wash-pink.webp"); }
.wash--band   { background-image: url("../img/wash-band.webp"); }
.wash--violet { background-image: url("../img/wash-violet.webp"); }

/* Signatur: die Farbe läuft beim ersten Laden ins Papier ein. */
@media (prefers-reduced-motion: no-preference) {
  .wash {
    -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: 35% 55%; mask-position: 35% 55%;
    animation: bleed 2.2s var(--ease-out) .05s both;
  }
  .cover__wash-sun { animation-delay: .45s; }
  .cover__sun img { animation: settle 2.4s var(--ease-out) .25s both; transform-origin: 52% 92%; }
}
@keyframes bleed {
  from { -webkit-mask-size: 12% 12%; mask-size: 12% 12%; opacity: .2; filter: blur(14px) saturate(.5); }
  60%  { opacity: 1; }
  to   { -webkit-mask-size: 340% 340%; mask-size: 340% 340%; opacity: 1; filter: none; }
}
@keyframes settle {
  from { transform: rotate(-4deg) translateY(.6rem); }
  45%  { transform: rotate(1.4deg); }
  to   { transform: none; }
}

/* --- Gemalte Fototafeln --------------------------------------------------- */
.plate { position: relative; filter: drop-shadow(0 .9rem 1.2rem rgb(62 38 92 / .2)); }
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: url("../img/mask-port.webp") center / 100% 100% no-repeat;
          mask: url("../img/mask-port.webp") center / 100% 100% no-repeat;
}
.plate--land img {
  -webkit-mask-image: url("../img/mask-land.webp");
          mask-image: url("../img/mask-land.webp");
}

/* --- Kopf: Logo + Kapitelzeile ------------------------------------------- */
.masthead { position: relative; z-index: 2; }
.masthead__inner {
  max-width: var(--page); margin-inline: auto;
  padding: var(--s2) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4);
  flex-wrap: wrap;
}
.brand { display: block; width: clamp(5.75rem, 4rem + 6vw, 8.5rem); border-radius: .5rem; }
.chapters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem clamp(.25rem, 1.5vw, 1.25rem); }
.chapters__link {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .55rem;
  font: 650 clamp(1rem, .95rem + .3vw, 1.2rem)/1.1 var(--font-display);
  color: var(--ink); text-decoration: none;
}
.chapters__link::before {
  content: ""; position: absolute; z-index: -1;
  left: -.15rem; right: -.15rem; bottom: .35rem; height: .8em;
  background: url("../img/wash-hero.webp") center / 100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.chapters__link--einrichtung::before { background-image: url("../img/wash-sun.webp"); }
.chapters__link--jobs::before        { background-image: url("../img/wash-pink.webp"); opacity: .75; }
.chapters__link--kontakt::before     { background-image: url("../img/wash-violet.webp"); opacity: .55; }
.chapters__link:hover { color: var(--ink); }
.chapters__link:hover::before { transform: scaleX(.92); }
.chapters__link[aria-current="page"]::before { transform: scaleX(1); }

@media (max-width: 34rem) {
  .masthead__inner { justify-content: center; }
  .chapters { width: 100%; }
  .chapters ul { justify-content: space-between; gap: 0; }
  .chapters__link { padding-inline: .35rem; }
}

/* --- Bausteine ------------------------------------------------------------ */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); margin-top: 2.2em; color: var(--violet-deep); }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.15rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--violet); }
.prose strong { font-weight: 700; }
.prose--lead, .lead { font-size: clamp(1.2rem, 1.1rem + .35vw, 1.35rem); line-height: 1.6; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.4rem .85rem;
  font: 700 1.075rem/1.15 var(--font-display); letter-spacing: -.005em;
  color: var(--ink); text-decoration: none; text-align: left;
  border: 0; cursor: pointer;
  border-radius: 255px 22px 225px 22px / 22px 225px 22px 255px;
  background: var(--sun) url("../img/wash-sun.webp") 30% 40% / 260% 320% no-repeat;
  box-shadow: 0 .55rem 1rem -.6rem rgb(150 80 0 / .55);
  transition: background-position .6s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn:hover { color: var(--ink); background-position: 70% 60%; transform: translateY(-2px); box-shadow: 0 .8rem 1.4rem -.6rem rgb(150 80 0 / .55); }
.btn:active { transform: translateY(0); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 .55rem 1rem -.6rem rgb(21 21 21 / .55); }
.btn--ink:hover { color: var(--paper); background: #2e2537; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 3rem;
  font: 650 1.05rem/1.2 var(--font-display); color: var(--violet-deep);
}
.link-arrow .icon { transition: transform .35s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

.stamp {
  display: inline-flex; align-items: baseline; gap: .4em;
  padding: .25rem .6rem .3rem;
  border: 2px solid currentColor; border-radius: .45rem .6rem .4rem .7rem;
  color: var(--violet);
  font: 700 .8rem/1.1 var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  transform: rotate(-2.5deg);
  white-space: nowrap;
}
.stamp time { letter-spacing: .02em; }

.locke p {
  font: italic 400 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.5 var(--font-text);
  color: var(--ink-soft); max-width: 34ch;
}
.locke footer { margin-top: var(--s1); font: 700 1rem/1.3 var(--font-display); color: var(--violet-deep); }
.locke footer::before { content: "– "; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; }
.ticks li + li { margin-top: .6rem; }
.ticks .icon { color: var(--violet); margin-top: .25em; }

/* --- Startseite: Titelblatt ---------------------------------------------- */
.cover {
  position: relative; isolation: isolate;
  max-width: var(--page); margin: 0 auto;
  padding: clamp(2rem, 1rem + 5vw, 5rem) var(--gutter) var(--s5);
  display: grid; gap: var(--s4) var(--s5);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "quote" "note" "sun";
}
.cover__wash {
  inset: -1.5rem -14vw auto -16vw;
  height: calc(100% + 1rem);
  opacity: .9;
}
.cover__wash-sun {
  width: min(34rem, 90vw); aspect-ratio: 900 / 640;
  right: -10vw; bottom: 0;
  opacity: .5;
}
.cover__text { grid-area: text; align-self: start; }
.cover__title {
  font-size: clamp(2.6rem, 1.2rem + 5.4vw, 5.25rem);
  font-weight: 760; line-height: .97; letter-spacing: -.03em;
  color: var(--violet-deep);
}
.cover__sub { display: block; margin-top: .14em; color: var(--ink); }
.cover__dash { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cover .locke { grid-area: quote; }
.cover__sun { grid-area: sun; justify-self: center; width: min(78%, 22rem); }

.note {
  grid-area: note;
  position: relative;
  max-width: 42rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--paper);
  border-radius: .35rem .9rem .5rem 1.1rem;
 
  transform: rotate(-.6deg);
}
.note__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s2); }
.note h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--violet-deep); }
.note__body { margin-top: var(--s2); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.5; }
.note__body p:first-child { font-weight: 600; }
.note__actions { margin-top: var(--s3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }

@media (min-width: 60em) {
  .cover {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    grid-template-areas: "text sun" "quote note";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 4vw, 4.5rem); row-gap: 0;
    padding-top: clamp(2.5rem, 5vh, 4rem);
    padding-bottom: var(--s6);
  }
  .cover__text { padding-top: var(--s4); align-self: end; }
  .cover .locke { align-self: start; margin-top: var(--s2); }
  .cover__wash-sun { top: 0; bottom: auto; }
  .cover__sun { width: 118%; max-width: none; margin: calc(var(--s5) * -1) -9% 0; justify-self: stretch; }
  .cover__wash { inset: -1rem 22vw auto -14vw; height: calc(100% - 2rem); }
  .note { align-self: start; margin-top: calc(var(--s3) * -1); }
}

/* --- Startseite: Willkommen --------------------------------------------- */
.welcome {
  max-width: var(--page); margin: 0 auto;
  padding: var(--s6) var(--gutter);
  display: grid; gap: var(--s5);
  align-items: center;
}
.welcome__plate { width: min(100%, 26rem); justify-self: center; transform: rotate(1.6deg); }
@media (min-width: 60em) {
  .welcome { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-block: var(--s7); }
  .welcome__plate { justify-self: end; }
}

/* --- Startseite: Steckbrief ---------------------------------------------- */
.facts {
  position: relative; isolation: isolate;
  max-width: var(--page); margin: 0 auto;
  padding: var(--s7) var(--gutter);
}
.facts__wash { inset: 0 -6vw; }
.facts__title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); color: var(--violet-deep); max-width: 18ch; }
.facts__list {
  margin-top: var(--s4);
  display: grid; gap: var(--s3) var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.facts__list > div { padding-bottom: var(--s2); border-bottom: 2px dotted color-mix(in srgb, var(--violet-deep) 45%, transparent); }
.facts__list dt { font: 650 1rem/1.3 var(--font-display); color: var(--violet-deep); }
.facts__list dd { margin: .3rem 0 0; font: 600 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.25 var(--font-display); letter-spacing: -.01em; }

/* --- Startseite: Inhaltsverzeichnis ------------------------------------- */
.toc {
  max-width: var(--page); margin: 0 auto;
  padding: var(--s7) var(--gutter) var(--s8);
}
.toc__title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); color: var(--violet-deep); }
.toc__list { list-style: none; margin: var(--s4) 0 0; padding: 0; counter-reset: none; }
.toc__list li { border-top: 2px dashed var(--rule); }
.toc__list li:last-child { border-bottom: 2px dashed var(--rule); }
.toc__list a {
  display: grid; align-items: center; gap: .1rem var(--s3);
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  grid-template-areas: "thumb name arrow" "thumb line arrow";
  padding: var(--s3) 0;
  color: var(--ink); text-decoration: none;
}
.toc__thumb { grid-area: thumb; width: 4.5rem; aspect-ratio: 1; transition: transform .5s var(--ease-out); }
.toc__thumb img { -webkit-mask-image: url("../img/mask-land.webp"); mask-image: url("../img/mask-land.webp"); }
.toc__name { grid-area: name; font: 700 clamp(1.6rem, 1.2rem + 1.8vw, 2.75rem)/1 var(--font-display); letter-spacing: -.02em; }
.toc__line { grid-area: line; color: var(--ink-soft); font-size: 1.05rem; }
.toc__arrow { grid-area: arrow; width: 1.75rem; height: 1.75rem; color: var(--violet); transition: transform .4s var(--ease-out); }
.toc__list a:hover .toc__name { color: var(--violet-deep); }
.toc__list a:hover .toc__thumb { transform: rotate(-5deg) scale(1.06); }
.toc__list a:hover .toc__arrow { transform: translateX(6px); }
@media (min-width: 48em) {
  .toc__list a { grid-template-columns: 6.5rem minmax(0, 1fr) auto; }
  .toc__thumb { width: 6.5rem; }
}

/* --- Unterseiten: Kapitelkopf ------------------------------------------- */
.chapter {
  position: relative; isolation: isolate;
  max-width: var(--page); margin: 0 auto;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--gutter) clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.chapter__wash { left: -10vw; top: -.5rem; width: min(64rem, 120vw); height: calc(100% + 1rem); opacity: .9; }
.chapter--pink .chapter__wash { width: min(46rem, 110vw); opacity: .55; }
.chapter--sun .chapter__wash { opacity: .75; }
.chapter--lavender .wash--violet { opacity: .45; }
.chapter__title { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.75rem); font-weight: 760; line-height: .98; letter-spacing: -.028em; max-width: 16ch; }
.chapter__motto { margin-top: var(--s2); font: italic 400 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.4 var(--font-text); color: var(--ink-soft); }
.chapter .locke { margin-top: var(--s3); }
.chapter--plain { padding-bottom: var(--s3); }
.chapter--plain .chapter__title { color: var(--violet-deep); }

.page-body {
  max-width: var(--page); margin: 0 auto;
  padding: var(--s3) var(--gutter) var(--s8);
}
.page-intro { margin-bottom: var(--s6); }

.spread { display: grid; gap: var(--s5); margin-top: var(--s5); }
.spread .prose > h2:first-child { margin-top: 0; }
@media (min-width: 60em) {
  .spread { grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); align-items: start; gap: var(--s6); }
  .spread--single { grid-template-columns: minmax(0, 1fr); }
}

.hours {
  position: relative;
  padding: var(--s3);
  background: var(--lavender-mist);
  border-radius: .5rem 1rem .6rem 1.1rem;
}
.hours__icon { width: 2rem; height: 2rem; color: var(--violet); }
.hours dl { margin-top: var(--s1); }
.hours dt { margin-top: var(--s2); font: 650 1rem/1.3 var(--font-display); color: var(--violet-deep); }
.hours dd { margin: .15rem 0 0; font: 700 1.4rem/1.2 var(--font-display); }
@media (min-width: 60em) { .hours { position: sticky; top: var(--s4); } }

/* Collage der fünf Fotos */
.gallery {
  margin: var(--s7) 0;
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery .plate { margin: 0; }
.gallery__a { transform: rotate(-1.5deg); }
.gallery__b { grid-column: span 2; transform: rotate(.8deg); }
.gallery__c { grid-column: span 2; transform: rotate(-.6deg); }
.gallery__d { transform: rotate(1.4deg); }
.gallery__e { transform: rotate(-1deg); }
@media (min-width: 48em) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: var(--s3) var(--s2); }
  .gallery__a { grid-column: 1 / 5; grid-row: 1; }
  .gallery__b { grid-column: 5 / 13; grid-row: 1; }
  .gallery__c { grid-column: 1 / 7; grid-row: 2; }
  .gallery__d { grid-column: 7 / 10; grid-row: 2; }
  .gallery__e { grid-column: 10 / 13; grid-row: 2; }
}

/* Konzept: Seitenregister */
@media (min-width: 64em) {
  .page-body--with-index { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: var(--s6); align-items: start; }
}
.page-index {
  margin-bottom: var(--s5);
  padding: var(--s3);
  background: var(--lavender-mist);
  border-radius: .5rem 1rem .6rem 1.1rem;
}
.page-index__title { font-size: 1.1rem; color: var(--violet-deep); }
.page-index ol { list-style: none; margin: var(--s1) 0 0; padding: 0; }
.page-index li + li { border-top: 1px solid var(--rule); }
.page-index a { display: block; padding: .55rem 0; color: var(--ink); text-decoration: none; font: 600 1rem/1.3 var(--font-display); }
.page-index a:hover { color: var(--violet-deep); text-decoration: underline; text-decoration-color: var(--pink); }
@media (min-width: 64em) { .page-index { position: sticky; top: var(--s4); margin-bottom: 0; } }
.prose--chapters .lead { margin-bottom: var(--s2); }
.prose__plate { margin: var(--s5) 0 !important; transform: rotate(-.8deg); }

/* Jobs */
.openings { margin-top: var(--s3); }
.openings + .spread { margin-top: var(--s7); }
.spread + .openings { margin-top: var(--s7); }
.openings__title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.75rem); color: var(--violet-deep); }
.openings__empty {
  margin-top: var(--s3); max-width: 44rem;
  padding: var(--s3) var(--s4);
  background: var(--lavender-mist); border-radius: .5rem 1rem .6rem 1.1rem;
  font-size: 1.2rem;
}
.openings__list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.job article {
  height: 100%;
  padding: var(--s4);
  background: var(--paper);
  border-radius: .35rem .9rem .5rem 1.1rem;
  display: flex; flex-direction: column; gap: var(--s2);
}
.job:nth-child(odd) article { transform: rotate(-.5deg); }
.job:nth-child(even) article { transform: rotate(.5deg); }
.job__meta { margin-top: calc(var(--s1) * -1); font-size: 1rem; color: var(--ink-soft); }
.job__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.job__action { margin-top: auto; padding-top: var(--s1); }

.conditions {
  position: relative;
  padding: var(--s4) var(--s3);
  background: var(--paper);
  border-radius: .5rem 1rem .6rem 1.1rem;
}
.conditions__wash { top: -3.25rem; right: -3rem; width: 10rem; height: 7rem; opacity: .75; z-index: -1; }
.conditions h2 { font-size: 1.5rem; color: var(--violet-deep); }
.conditions .ticks { margin-top: var(--s2); }
.conditions h3 { margin-top: var(--s3); font-size: 1.1rem; }
.conditions__hours { margin-top: var(--s1); }
.conditions__hours dt { font-weight: 700; }
.conditions__hours dd { margin: 0 0 .4rem; }
.conditions p { margin-top: var(--s2); font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 60em) { .conditions { position: sticky; top: var(--s4); } }

/* Kontakt */
.contact { display: grid; gap: var(--s6); }
@media (min-width: 60em) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: var(--s6); } }
.contact__ways { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.contact__ways li + li { margin-top: var(--s1); }
.contact__ways a, .contact__address {
  display: flex; align-items: flex-start; gap: .8rem; min-height: 3rem; padding: .35rem 0;
  font: 650 clamp(1.15rem, 1.05rem + .4vw, 1.35rem)/1.35 var(--font-display); color: var(--ink); text-decoration: none;
}
.contact__ways a:hover { color: var(--violet-deep); }
.contact__ways .icon { width: 1.5rem; height: 1.5rem; color: var(--violet); margin-top: .1rem; }
.contact__label { font-weight: 500; color: var(--ink-soft); }
.littlebird {
  position: relative; isolation: isolate;
  margin-top: var(--s5); padding: var(--s4) var(--s3) var(--s3);
}
.littlebird__wash { inset: -.5rem -1.5rem; opacity: .9; }
.littlebird p + p { margin-top: var(--s3); }

.letter {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--paper);
  border-radius: .35rem .9rem .5rem 1.1rem;
}
.letter__title { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: var(--violet-deep); margin-bottom: var(--s3); }

.form__row--two { display: grid; gap: 0 var(--s3); }
@media (min-width: 40em) { .form__row--two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: var(--s3); }
.field--short { max-width: 20rem; }
.field label { display: block; margin-bottom: .4rem; font: 650 1.05rem/1.3 var(--font-display); }
.field__opt { font-weight: 450; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], textarea {
  width: 100%; min-height: 3rem;
  padding: .7rem .9rem;
  font: inherit; font-size: 1.075rem; color: var(--ink);
  background: #fff;
  border: 2px solid #bfaed0; border-radius: .55rem .8rem .5rem .75rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 10rem; line-height: 1.55; }
input:hover, textarea:hover { border-color: var(--violet); }
input:focus, textarea:focus { outline: none; border-color: var(--violet-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lavender) 55%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--pink-ink); }
.field__error { margin-top: .4rem; color: var(--pink-ink); font-weight: 600; font-size: 1rem; }
.field--hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.riddle {
  position: relative; isolation: isolate;
  margin: var(--s4) 0 var(--s3); padding: var(--s3) var(--s3) var(--s3);
}
.riddle__wash { inset: -1rem -.5rem -1rem -4.5rem; opacity: .35; }
.riddle__question { display: block; font: 700 clamp(1.3rem, 1.15rem + .6vw, 1.6rem)/1.25 var(--font-display); }
.riddle__hint { margin: .3rem 0 var(--s1); font-size: 1rem; color: var(--ink-soft); }
.riddle input { max-width: 12rem; font-size: 1.25rem; font-weight: 700; }

.form__privacy { font-size: 1rem; color: var(--ink-soft); max-width: 60ch; }
.form__submit { margin-top: var(--s3); }

.notice {
  display: flex; gap: var(--s2); align-items: flex-start;
  padding: var(--s3); margin-bottom: var(--s3);
  border-radius: .5rem .9rem .6rem 1rem;
  background: var(--lavender-mist);
}
.notice .icon { width: 1.6rem; height: 1.6rem; margin-top: .1rem; color: var(--violet); }
.notice p + p { margin-top: .5rem; }
.notice ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.notice--error { background: #fdeef5; }
.notice--error .icon { color: var(--pink-ink); }
.notice--warn { background: #fff4e0; }
.notice--warn .icon { color: #a14c00; }
.notice:focus { outline: 3px solid var(--pink-ink); }

/* Impressum & Datenschutz */
.legal { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-bottom: var(--s6); }
.legal__card {
  padding: var(--s3);
  background: var(--lavender-mist);
  border-radius: .5rem 1rem .6rem 1.1rem;
}
.legal__card h2 { font-size: 1.15rem; color: var(--violet-deep); margin-bottom: var(--s1); }
.legal__card p + p { margin-top: var(--s1); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.legal__text h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.75rem); }
.privacy-summary {
  position: relative; isolation: isolate;
  max-width: 50rem; margin-bottom: var(--s6);
  padding: var(--s4);
}
.privacy-summary__wash { inset: -1rem -2rem; opacity: .9; }
.privacy-summary h2 { font-size: 1.5rem; color: var(--violet-deep); margin-bottom: var(--s2); }

/* --- Fuß ------------------------------------------------------------------ */
.colophon { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--s4); }
.colophon__wash {
  position: absolute; inset: 0 -8vw -2rem; z-index: -1;
  background: url("../img/wash-violet.webp") center top / 100% 100% no-repeat;
  opacity: .32;
}
.colophon__inner {
  max-width: var(--page); margin: 0 auto;
  padding: var(--s7) var(--gutter) var(--s4);
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: start;
}
.colophon__name { font: 760 1.6rem/1 var(--font-display); color: var(--violet-deep); letter-spacing: -.02em; }
.colophon__address p + p { margin-top: var(--s1); }
.colophon__address a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.colophon__address a:hover { color: var(--violet-deep); text-decoration: underline; text-decoration-color: var(--pink); }
.colophon__address .icon { color: var(--violet-deep); }
.colophon__links ul { list-style: none; margin: 0; padding: 0; }
.colophon__links a { display: inline-flex; align-items: center; min-height: 2.75rem; font: 650 1.15rem/1.2 var(--font-display); color: var(--ink); }
.colophon__links a:hover { color: var(--violet-deep); }
.colophon__member p { font-size: 1rem; color: var(--ink-soft); }
.colophon__member img { margin-top: var(--s1); width: 13rem; mix-blend-mode: multiply; }
.colophon__note {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: .6rem;
  padding-top: var(--s3); margin-top: var(--s2);
  border-top: 2px dashed color-mix(in srgb, var(--violet-deep) 30%, transparent);
  font-size: .95rem; color: var(--ink-soft);
}
.colophon__note .icon { color: var(--violet); }

/* --- Papierzettel mit gerissenem Rand (zuletzt, damit es Karten-Stile ersetzt) - */
.note, .job article, .letter, .conditions {
  background: none;
  border-radius: 0;
  box-shadow: none;
  border-style: solid; border-width: 0;
  border-image: url("../img/slip.webp") 90 fill / 45px / 30px round;
}

@media print {
  .wash, .masthead nav, .colophon__wash, .skip { display: none !important; }
  .note, .letter, .job article, .conditions { box-shadow: none; transform: none; border: 1px solid #ccc; }
  body { font-size: 11pt; }
}

/* --- Schmale Bildschirme: Lasuren im Hochformat, nicht verzerrt ------------- */
@media (max-width: 59.99em) {
  .cover__wash, .facts__wash, .colophon__wash {
    background-image: url("../img/wash-tall.webp");
    background-size: cover; background-position: center top;
  }
  .cover { padding-top: var(--s3); row-gap: var(--s3); }
  /* Lasuren bleiben innerhalb der Bildschirmbreite (kein seitliches Scrollen) */
  .cover__wash { inset: -1rem 0 auto 0; height: calc(100% + 1rem); }
  .cover__wash-sun { right: 0; width: min(34rem, 100%); }
  .facts__wash { inset: 0; }
  .chapter__wash { left: 0; right: 0; width: auto; }
  .chapter--pink .chapter__wash { width: auto; }
  .colophon__wash { inset: 0 0 -2rem; opacity: .28; }
}

/* Alles, was seitlich übersteht, abschneiden – auch in Browsern, die
   overflow am body für die Seite ignorieren (iOS). clip lässt sticky intakt. */
html, body { overflow-x: hidden; }
body { position: relative; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
main, .colophon { overflow-x: clip; }
/* Ältere Safari-Versionen kennen clip nicht: auf schmalen Bildschirmen die Startseite
   (dort gibt es keine mitlaufenden „sticky“-Elemente) hart begrenzen. */
@media (max-width: 59.99em) {
  .page-start main { overflow: hidden; }
  .cover, .welcome, .facts, .toc { max-width: 100%; }
}

/* --- Nächstes Kapitel ------------------------------------------------------- */
.next-chapter { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) var(--s6); }
.next-chapter a {
  display: grid; gap: .2rem var(--s3); align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: var(--s4) 0; border-top: 2px dashed var(--rule);
  color: var(--ink); text-decoration: none;
}
.next-chapter__name { grid-column: 1; font: 760 clamp(2rem, 1.4rem + 2.6vw, 3.5rem)/1 var(--font-display); letter-spacing: -.025em; }
.next-chapter__line { grid-column: 1; color: var(--ink-soft); }
.next-chapter .icon { grid-column: 2; grid-row: 1 / 4; width: 2.5rem; height: 2.5rem; color: var(--violet); transition: transform .4s var(--ease-out); }
.next-chapter a:hover .next-chapter__name { color: var(--violet-deep); }
.next-chapter a:hover .icon { transform: translateX(8px); }
