/* Michael's Blog – statische Neuauflage, dunkles Reisetagebuch
   Schriften (selbst gehostet, SIL OFL): Bricolage Grotesque, Literata, Caveat */
@font-face { font-family: "Bricolage"; src: url(/assets/fonts/bricolage.woff2) format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/assets/fonts/literata.woff2) format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/assets/fonts/literata-italic.woff2) format("woff2-variations");
  font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(/assets/fonts/caveat.woff2) format("woff2-variations");
  font-weight: 400 700; font-display: swap; }

:root {
  --paper: #12162B;       /* Nachthimmel */
  --surface: #1B2141;
  --ink: #ECEEF7;
  --muted: #A4AACB;
  --line: #2C3358;
  --photo: #F1EEE6;       /* Fotopapier */
  --marigold: #F2B233;    /* Ringelblumen */
  --pink: #F47FA4;        /* Jaipur */
  --teal: #3CCFC0;        /* Pfau */
  --coral: #FF8A65;
  --green: #9AD86E;
  --lilac: #B9A3FF;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --text: "Literata", Georgia, serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --wide: 66rem;
  --measure: 40rem;
  color-scheme: dark;
}
.c-marigold { --c: var(--marigold); } .c-pink { --c: var(--pink); } .c-teal { --c: var(--teal); }
.c-coral { --c: var(--coral); } .c-green { --c: var(--green); } .c-lilac { --c: var(--lilac); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.75 var(--text); font-optical-sizing: auto;
  background-image: radial-gradient(rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--c, var(--marigold)); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { text-decoration-style: wavy; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--marigold); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

/* Kopf und Fuß */
.masthead, .colophon {
  max-width: var(--wide); margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.masthead { font-family: var(--display); }
.wordmark { font-weight: 800; font-stretch: 80%; font-size: 1.3rem; text-decoration: none; }
.masthead nav { display: flex; gap: 1.25rem; align-items: baseline; }
.masthead nav a { font-size: 1rem; font-weight: 500; }
.masthead .lang { font: 600 1.35rem/1 var(--hand); color: var(--teal); text-decoration-color: var(--teal); }
.home .masthead .wordmark { visibility: hidden; }
.colophon { margin-top: 6rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .9rem; }
.colophon p { margin: 0; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }

/* Einstieg mit Polaroid-Collage */
.intro { max-width: var(--wide); margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.intro h1 {
  font: 800 clamp(3.4rem, 10vw, 8rem)/.86 var(--display); font-stretch: 75%;
  letter-spacing: -.02em; margin: 0 0 1.5rem; color: var(--c, var(--ink));
}
.hero h1 { text-shadow: .06em .06em 0 var(--pink); }
.intro-small h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
.tagline { font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.45; max-width: 30rem; margin: 0 0 1.5rem; }
.facts { color: var(--muted); max-width: var(--measure); margin: 0; font-size: 1rem; }
.facts a { color: var(--c, var(--ink)); }
.count { font-family: var(--display); font-size: .85em; color: var(--muted); }
.crumb { margin: 0 0 1rem; font-family: var(--display); font-size: 1rem; }

.pol {
  display: block; position: relative; background: var(--photo); padding: .55rem .55rem 0; width: 13rem;
  box-shadow: 0 1px 1px rgb(0 0 0 / .3), 0 14px 30px -6px rgb(0 0 0 / .55);
  text-decoration: none; transform: rotate(var(--r, 0deg)); transition: transform .25s ease, box-shadow .25s ease;
}
.pol img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pol .cap { display: block; font: 600 1.45rem/2.4rem var(--hand); color: #2A2F4F; text-align: center; }
.pol:hover, .pol:focus-visible { transform: rotate(0) scale(1.06); z-index: 5; box-shadow: 0 2px 2px rgb(0 0 0 / .3), 0 22px 40px -8px rgb(0 0 0 / .6); }
.pol::before {  /* Klebestreifen */
  content: ""; position: absolute; top: -.7rem; left: 50%; width: 4.5rem; height: 1.4rem;
  transform: translateX(-50%) rotate(-4deg); background: rgb(242 178 51 / .55);
}
.collage { position: relative; height: 27rem; }
.collage .pol { position: absolute; width: 11.5rem; }
.p1 { --r: -7deg; left: 0; top: 1rem; }
.collage .p2 { --r: 5deg; left: 12rem; top: -.5rem; width: 9rem; }
.p2 img { aspect-ratio: 3 / 4; }
.p2::before { background: rgb(244 127 164 / .55); }
.p3 { --r: -3deg; left: 21.5rem; top: 2rem; }
.p4 { --r: 4deg; left: 2rem; top: 13.5rem; }
.p4::before { background: rgb(60 207 192 / .5); }
.p5 { --r: -5deg; left: 14.5rem; top: 15rem; }

/* Zeitleiste */
.timeline { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.year {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 2.5rem;
  border-top: 3px solid var(--yc); padding-top: 1.25rem; margin-bottom: 4.5rem;
}
.y0 { --yc: var(--pink); } .y1 { --yc: var(--marigold); } .y2 { --yc: var(--teal); }
.year-num {
  font: 800 clamp(3.5rem, 8vw, 6.75rem)/.85 var(--display); font-stretch: 75%;
  letter-spacing: -.03em; margin: 0; position: sticky; top: 1.25rem; align-self: start; color: var(--yc);
}
.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid; grid-template-columns: 7rem 5rem minmax(0, 1fr);
  grid-template-areas: "when thumb text"; gap: 1.25rem; align-items: start;
  padding: 1.15rem 0; border-bottom: 1px dashed var(--line); text-decoration: none;
}
.entries li:first-child .entry { padding-top: .25rem; }
.when { grid-area: when; font-family: var(--display); font-size: .95rem; color: var(--muted); padding-top: .15rem; line-height: 1.35; }
.when .cat { display: block; color: var(--c); font-weight: 600; font-size: .85rem; }
.thumb { grid-area: thumb; }
.thumb img, .nothumb {
  width: 5rem; height: 5rem; object-fit: cover; background: var(--photo);
  border: 3px solid var(--photo); border-bottom-width: 9px;
  box-shadow: 0 6px 14px -4px rgb(0 0 0 / .6);
  transform: rotate(-3deg); transition: transform .2s ease;
}
.entries li:nth-child(even) .thumb img, .entries li:nth-child(even) .nothumb { transform: rotate(2.5deg); }
.entry:hover .thumb img, .entry:hover .nothumb, .entry:focus-visible .thumb img { transform: rotate(0) scale(1.08); }
.nothumb { display: grid; place-items: center; background: var(--c); border-color: var(--c); color: var(--paper); font-size: 1.4rem; }
.text { grid-area: text; display: block; }
.title { display: block; font: 650 1.35rem/1.2 var(--display); letter-spacing: -.01em; margin-bottom: .3rem; }
.teaser { display: block; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.entry:hover .title { text-decoration: underline wavy var(--c); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }

/* Beitrag */
.post { max-width: var(--measure); margin: 0 auto; padding: 1.5rem 1.5rem 0; }
.post-head { margin-bottom: 2.75rem; position: relative; }
.post-head h1 {
  font: 780 clamp(2.4rem, 6.5vw, 4.25rem)/.98 var(--display); font-stretch: 82%;
  letter-spacing: -.02em; margin: 0 0 1rem; hyphens: auto;
}
.meta { color: var(--muted); margin: 0; font-size: 1rem; }
.meta a { color: var(--c); }
.stamp {  /* Reisepass-Stempel */
  float: right; margin: -.5rem -3.5rem 1rem 1.5rem; padding: .45rem .9rem .35rem;
  color: var(--c); border: 3px solid var(--c); border-radius: .6rem; transform: rotate(-9deg);
  font: 800 1.5rem/1 var(--display); font-stretch: 75%; text-align: center; opacity: .88;
  position: relative;
}
.stamp::after { content: ""; position: absolute; inset: 3px; border: 1.5px dashed var(--c); border-radius: .35rem; }
.stamp small { display: block; font: 600 .8rem/1.4 var(--display); font-stretch: 100%; letter-spacing: .04em; margin-top: .2rem; }

.prose { hyphens: auto; overflow-wrap: break-word; }
.prose p, .prose ul { margin: 0 0 1.25em; }
.prose h2 { font: 700 1.35rem/1.25 var(--display); margin: 2.25rem 0 .5rem; }
.prose > * + .figure, .prose > * + .gallery, .prose > * + .video { margin-top: 2.25rem; }
.figure, .gallery, .video { margin: 0 0 2.25rem; }
.figure a, .figure > img { display: block; background: var(--photo); padding: .5rem .5rem 1.6rem; box-shadow: 0 16px 36px -10px rgb(0 0 0 / .65); }
.figure img { width: 100%; }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem;
  margin-inline: calc(50% - min(50vw - 1.5rem, 30rem)); padding: .5rem 0;
}
.gallery a, .figure a { cursor: zoom-in; }
.gallery a {
  display: block; background: var(--photo); padding: .4rem .4rem 1.2rem;
  box-shadow: 0 10px 22px -8px rgb(0 0 0 / .6); transform: rotate(-2deg); transition: transform .2s ease;
}
.gallery a:nth-child(even) { transform: rotate(1.8deg); }
.gallery a:nth-child(3n) { transform: rotate(-.8deg); }
.gallery a:hover, .gallery a:focus-visible { transform: rotate(0) scale(1.05); position: relative; z-index: 2; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Zwei-Klick-Video */
.video { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.yt {
  display: flex; align-items: center; justify-content: center; gap: 1rem; aspect-ratio: 16 / 9;
  text-decoration: none; font: 700 1.3rem var(--display);
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgb(255 255 255 / .025) 18px 36px),
    radial-gradient(circle at 50% 45%, rgb(242 178 51 / .14), transparent 60%);
}
.yt-play { width: 4.25rem; height: 4.25rem; border-radius: 50%; background: var(--marigold); position: relative; transition: transform .2s ease; }
.yt-play::after { content: ""; position: absolute; left: 1.7rem; top: 1.3rem; border: 0.85rem solid transparent; border-left: 1.35rem solid var(--paper); border-right: 0; }
.yt:hover .yt-play { transform: scale(1.1) rotate(-6deg); }
.yt-note { margin: 0; padding: .7rem 1rem; font-size: .82rem; line-height: 1.5; color: var(--muted); border-top: 1px dashed var(--line); }

/* Kommentare */
.comments { margin-top: 4.5rem; }
.comments h2 { font: 800 1.8rem/1.2 var(--hand); font-family: var(--hand); color: var(--marigold); margin: 0 0 1.5rem; font-size: 2.1rem; }
.comments ol { list-style: none; margin: 0; padding: 0; }
.comment {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; margin-bottom: 1.25rem;
  background: var(--surface); border-radius: .9rem; padding: 1rem 1.1rem;
}
.comment.depth-2 { margin-left: 3rem; }
.comment.depth-3 { margin-left: 6rem; }
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; font: 800 1.2rem/1 var(--display); color: var(--paper); }
.a0 { background: var(--pink); } .a1 { background: var(--teal); } .a2 { background: var(--lilac); }
.by-author .avatar { background: var(--marigold); }
.who { margin: 0 0 .25rem; font-size: 1rem; }
.who strong { font-family: var(--display); font-weight: 700; }
.stamp-date { color: var(--muted); font-size: .88rem; margin-left: .35rem; }
.said p { margin: 0 0 .7em; font-size: 1rem; }
.said p:last-child { margin-bottom: 0; }

/* Blättern */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4.5rem; border-top: 1px dashed var(--line); padding-top: 1.5rem; }
.pager a { text-decoration: none; display: block; }
.pager .newer { grid-column: 2; text-align: right; }
.pager .dir { display: block; font: 600 1.35rem/1.2 var(--hand); color: var(--teal); }
.pager .t { font: 650 1.1rem/1.3 var(--display); }
.pager a:hover .t { text-decoration: underline wavy var(--teal); text-decoration-thickness: 1.5px; }

/* Rechtliches und 404 */
.legal .prose p { font-size: 1rem; }
mark.todo { background: var(--coral); color: var(--paper); padding: 0 .35em; border-radius: .25em; font-family: var(--display); font-weight: 700; }
.lost { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; padding-top: 3rem; }
.lost-pol { --r: -6deg; position: relative; }

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgb(8 10 22 / .95); color: #fff; }
.lightbox::backdrop { background: rgb(8 10 22 / .95); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem 4rem 1rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border: .5rem solid var(--photo); }
.lightbox figcaption { font: 600 1.5rem var(--hand); color: var(--marigold); padding: .5rem; }
.lightbox button { position: absolute; background: rgb(255 255 255 / .1); color: #fff; border: 0; cursor: pointer; font: 600 1rem var(--display); border-radius: 999px; padding: .65rem 1rem; }
.lightbox button:hover { background: rgb(255 255 255 / .2); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Schmale Bildschirme */
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .collage { height: auto; display: flex; gap: 0; overflow-x: auto; padding: 1.5rem .5rem 1.5rem; margin: 0 -1.5rem; scrollbar-width: none; }
  .collage .pol { position: relative; inset: auto; flex: 0 0 10.5rem; width: 10.5rem; margin-right: -1rem; }
  .collage .p2 { flex-basis: 8.5rem; }
  .pol .cap { font-size: 1.25rem; line-height: 2rem; }
  .stamp { margin-right: 0; }
}
@media (max-width: 44rem) {
  body { font-size: 1.0625rem; }
  .year { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
  .year-num { font-size: 3rem; top: 0; background: var(--paper); z-index: 3; padding: .75rem 0 .5rem; border-bottom: 3px solid var(--yc); margin-bottom: .75rem; }
  .entry { grid-template-columns: 4.5rem minmax(0, 1fr); grid-template-areas: "thumb when" "thumb text"; gap: .1rem 1rem; }
  .thumb img, .nothumb { width: 4.25rem; height: 4.25rem; }
  .when { padding-top: 0; font-size: .85rem; }
  .when .cat { display: inline; margin-left: .4rem; }
  .title { font-size: 1.15rem; }
  .teaser { display: none; }
  .comment.depth-2 { margin-left: 1rem; }
  .stamp { font-size: 1.2rem; margin: 0 0 .5rem 1rem; }
  .lost { grid-template-columns: 1fr; }
  .lightbox figure { padding: 3.5rem .5rem 4.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  body { background: #fff; color: #000; }
  .masthead nav, .pager, .colophon, .lightbox, .collage, .yt-note { display: none; }
  .year-num { position: static; }
}

/* Begrüßung auf der Startseite */
.welcome { max-width: var(--wide); margin: 0 auto 4.5rem; padding: 0 1.5rem; }
.note {
  position: relative; max-width: 38rem; margin-left: 13.5rem;
  background: var(--surface); border-radius: .5rem; padding: 1.75rem 2rem 1.25rem;
  transform: rotate(-.8deg); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .7);
}
.note::before {
  content: ""; position: absolute; top: -.75rem; left: 2.5rem; width: 5rem; height: 1.5rem;
  transform: rotate(-5deg); background: rgb(60 207 192 / .5);
}
.note p { margin: 0 0 .9em; font-size: 1.05rem; }
.note .sign { font: 700 1.9rem/1.1 var(--hand); color: var(--marigold); text-align: right; margin: .25rem 0 0; }
@media (max-width: 52rem) { .note { margin-left: 0; } }
@media (max-width: 44rem) { .note { padding: 1.5rem 1.25rem 1rem; } .welcome { margin-bottom: 3rem; } }
