/* ofgatternigg.com – Designsystem v1 (Schrift B: Newsreader + Hanken Grotesk) */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-display-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Basis */
  --paper: #F5EFE5;
  --paper-raised: #FBF8F2;
  --ink: #231B26;
  --muted: #5E5360;
  --line: rgba(35, 27, 38, .14);
  /* Ottos Farbfamilien */
  --purple: #4B2A5E;
  --purple-deep: #2C1838;
  --red: #82232F;
  --orange: #D4772B;
  --green: #294536;
  --gold: #B38A3E;
  /* Tints */
  --t-orange: #F5DCC2;
  --t-gold: #EEE0BD;
  --t-purple: #E6DAEC;
  --t-green: #D9E3D5;
  /* Form */
  --r-surface: 24px;
  --r-media: 16px;
  --r-pill: 999px;
  /* Typo */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Abstände */
  --gutter: 16px;
  --section: clamp(88px, 11vw, 160px);
  --header-h: 68px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Reset & Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
picture { display: contents; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.live :focus-visible { outline-color: var(--t-orange); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section) 0; }
.section--first { padding-top: clamp(48px, 7vw, 96px); }
.section--last { padding-bottom: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--purple-deep); color: var(--paper); padding: 10px 16px; border-radius: var(--r-pill);
}
.skip:focus { top: 12px; }

.icon { width: 16px; height: 16px; }

/* ---------- Typo-Bausteine ---------- */
.section-title, .page-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: clamp(28px, 4vw, 48px);
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-pill);
  font: 600 1rem/1 var(--body);
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple-deep); color: var(--paper); }
.btn-primary:hover { background: var(--purple); }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); padding-right: 7px; }
.btn-secondary:hover { background: rgba(35, 27, 38, .05); }
.btn__arrow {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  transition: transform .25s ease;
}
.btn-secondary:hover .btn__arrow { transform: rotate(45deg); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; }
@media (max-width: 380px) { .btn { white-space: normal; text-align: left; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 239, 229, .94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(245, 239, 229, .82); backdrop-filter: blur(10px); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.2rem/1 var(--display); letter-spacing: -.005em; }
.brand .mark { width: 32px; height: 32px; color: var(--purple); flex: none; }
.nav-links { display: none; gap: 28px; font-size: .95rem; }
.nav-links a { text-decoration: none; padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current] { text-decoration: underline; }
@media (min-width: 960px) { .nav-links { display: flex; } }
@media (max-width: 400px) { .brand span { font-size: 1rem; } }

/* ---------- 1. Hero ---------- */
.hero {
  display: grid; gap: 40px;
  padding-top: clamp(40px, 6vw, 80px);
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 56px; }
}
.hero__title { font-family: var(--display); font-weight: 500; }
.hero__big {
  display: block;
  font-size: clamp(2.6rem, 6.9vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.hero__big .line { display: block; }
.hero__terms {
  display: block;
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 30ch;
  font-size: clamp(1.4rem, 2.7vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--purple);
  text-wrap: balance;
}
.hero__first { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 34ch; margin: 28px 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; border-radius: var(--r-surface); }
@media (max-width: 959px) { .hero__media { max-width: 520px; } }

@media (prefers-reduced-motion: no-preference) {
  /* Nur Bewegung, keine Deckkraft: der Text zaehlt sofort als sichtbar (LCP). */
  .hero .line, .hero__first, .hero .btn-row { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero__big .line:nth-child(2) { animation-delay: .06s; }
  .hero__terms { animation-delay: .12s !important; }
  .hero__first { animation-delay: .18s; }
  .hero .btn-row { animation-delay: .22s; }
}
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Read more (details) ---------- */
.more { margin-top: 12px; }
.more summary {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; cursor: pointer; list-style: none;
  font-weight: 600;
}
.more summary::-webkit-details-marker { display: none; }
.more__icon {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid currentColor; border-radius: 50%;
  transition: transform .25s ease;
}
.more__icon .icon { width: 14px; height: 14px; transform: rotate(90deg); }
.more[open] .more__icon { transform: rotate(-180deg); }
.more summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.more__body { padding-top: 8px; }
.more__body > * + * { margin-top: 1em; }
@media (prefers-reduced-motion: no-preference) {
  .more[open] .more__body { animation: fade .4s ease both; }
}

/* ---------- 2. The Journey ---------- */
.journey__grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .journey__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
}
.journey__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-surface); }
@media (max-width: 959px) { .journey__media { max-width: 480px; } }
.journey__text { max-width: 60ch; }
.journey__text > p + p { margin-top: 1em; }
.journey__words {
  font: 500 clamp(1.4rem, 2.3vw, 1.9rem)/1.2 var(--display);
  color: var(--purple);
  margin-top: 1.1em !important;
}
.stats { display: grid; margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.stat { border-top: 1px solid var(--line); padding: 24px 0; }
.stat strong {
  display: block;
  font: 500 clamp(3rem, 6vw, 5.2rem)/1 var(--display);
  letter-spacing: -.02em;
  color: var(--purple);
}
.stat span { display: block; margin-top: 10px; color: var(--muted); max-width: 30ch; }

/* ---------- 3. What I Do ---------- */
.tiles { display: grid; gap: 16px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { border-radius: var(--r-surface); padding: 12px 12px 28px; }
.tile--orange { background: var(--t-orange); }
.tile--gold { background: var(--t-gold); }
.tile--purple { background: var(--t-purple); }
.tile--green { background: var(--t-green); }
.tile__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-media); }
.tile h3 { font: 500 1.6rem/1.1 var(--display); letter-spacing: -.01em; margin: 22px 12px 10px; text-wrap: balance; }
.tile p { margin: 0 12px; font-size: 1rem; line-height: 1.55; }

.duotone { border-radius: var(--r-media); overflow: hidden; isolation: isolate; }
.duotone img { filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; border-radius: 0; }
.duotone--orange { background: var(--orange); }
.duotone--purple { background: var(--purple); }
.duotone--purple img { mix-blend-mode: screen; opacity: .92; }

.strip { margin-top: clamp(40px, 5vw, 64px); }
.strip__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .strip__grid { grid-template-columns: repeat(4, 1fr); } }
.strip__grid .duotone { aspect-ratio: 3 / 4; }
.strip__grid img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { margin-top: 16px; color: var(--muted); max-width: 62ch; }

/* ---------- 4. Where I Live & Work ---------- */
.live {
  margin-top: var(--section);
  padding-block: var(--section);
  background: var(--green);
  color: var(--paper);
}
.live__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .live__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(48px, 6vw, 96px); align-items: center; } }
.live__text { max-width: 54ch; }
.live__text p { color: var(--t-green); }
.live__text > p + p { margin-top: 1em; }
.live__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-surface); }
.live__media figcaption { margin-top: 12px; font-size: .95rem; color: var(--t-green); }
.live__video { position: relative; margin-top: clamp(40px, 5vw, 72px); border-radius: var(--r-surface); overflow: hidden; aspect-ratio: 21 / 9; background: var(--purple-deep); }
@media (max-width: 639px) { .live__video { aspect-ratio: 4 / 3; } }
.live__video img, .live__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live__video video { opacity: 0; transition: opacity .8s ease; }
.live__video video.is-playing { opacity: 1; }
.video-toggle {
  position: absolute; left: 16px; bottom: 16px;
  min-height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--r-pill);
  background: rgba(44, 24, 56, .78); color: var(--paper);
  font: 600 .9rem/1 var(--body); cursor: pointer;
}
.video-toggle:hover { background: var(--purple-deep); }
/* Kennzeichnung KI-generierter Inhalte (EU AI Act, Art. 50) */
.ai-label {
  position: absolute; right: 12px; bottom: 12px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(44, 24, 56, .6); color: var(--paper);
  font: 500 .75rem/1.3 var(--body); letter-spacing: .01em;
  pointer-events: none;
}

/* ---------- 5. Thoughts ---------- */
.cards { display: grid; gap: 16px; align-items: start; margin-bottom: 32px; }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 12px 12px 20px; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 25%; border-radius: var(--r-media); }
.card__meta { font-size: .9rem; color: var(--muted); margin: 18px 10px 8px; }
.card__title { font: 500 1.55rem/1.12 var(--display); letter-spacing: -.01em; margin: 0 10px 10px; text-wrap: balance; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__teaser, .card .more { margin-inline: 10px; }
.card:has(.more[open]) .card__teaser { display: none; }
.card .more__body { font-size: 1rem; }

/* ---------- 6. Listen & Watch ---------- */
.media-list { border-bottom: 1px solid var(--line); }
.media-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none;
}
.media-list small { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.media-list strong { font: 500 clamp(1.3rem, 2.4vw, 1.9rem)/1.2 var(--display); letter-spacing: -.01em; }
.media-list__arrow {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--ink); border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}
.media-list a:hover .media-list__arrow { background: var(--ink); color: var(--paper); }
.media-list a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* ---------- 7. Contact ---------- */
.contact {
  background: var(--t-purple);
  color: var(--purple-deep);
  border-radius: var(--r-surface);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
}
.contact__title { font: 500 clamp(2.5rem, 5.6vw, 5rem)/1 var(--display); letter-spacing: -.02em; margin-bottom: 24px; }
.contact__text { max-width: 50ch; font-size: clamp(1.1rem, 1.4vw, 1.25rem); margin-bottom: 32px; }
.contact .btn-secondary { border-color: var(--purple-deep); color: var(--purple-deep); }
.contact .btn__arrow { background: var(--purple-deep); }
.contact__last {
  margin-top: clamp(48px, 7vw, 96px);
  font: 500 clamp(2.7rem, 7.6vw, 7rem)/.95 var(--display);
  letter-spacing: -.02em;
  color: var(--purple);
  text-wrap: balance;
}
.contact--compact { padding-block: clamp(40px, 5vw, 64px); }
.contact--compact .contact__title { font-size: clamp(2.2rem, 4vw, 3.4rem); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 28px 36px; color: var(--muted); font-size: .95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer__name { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__name .mark { width: 24px; height: 24px; color: var(--purple); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { display: inline-block; padding: 6px 0; }

/* ---------- Blog-Übersicht ---------- */
.post-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 12px 12px 24px; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 25%; border-radius: var(--r-media); }
.post-card__body { padding: 0 10px; }
.post-card__body .card__meta { margin-inline: 0; }
.post-card__title { font: 500 1.5rem/1.14 var(--display); letter-spacing: -.01em; margin-bottom: 10px; text-wrap: balance; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card p:last-child { color: var(--muted); }
@media (min-width: 640px) {
  .post-card--lead { grid-column: 1 / -1; display: grid; gap: 32px; align-items: center; }
}
@media (min-width: 960px) {
  .post-card--lead { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding: 12px 40px 12px 12px; }
  .post-card--lead .post-card__title { font-size: clamp(2rem, 3.2vw, 2.8rem); }
  .post-card--lead p:last-child { font-size: 1.1rem; }
}
.series-teasers { display: grid; gap: 16px; margin-bottom: 32px; }
@media (min-width: 640px) { .series-teasers { grid-template-columns: repeat(2, 1fr); } }
.series-teaser { display: block; background: var(--t-gold); border-radius: var(--r-surface); padding: 24px; text-decoration: none; }
.series-teaser small, .series-teaser span { display: block; color: var(--muted); }
.series-teaser strong { display: block; font: 500 1.7rem/1.1 var(--display); margin: 4px 0; }
.series-list { counter-reset: none; border-bottom: 1px solid var(--line); max-width: 860px; }
.series-list a { display: block; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; }
.series-list small { display: block; color: var(--muted); }
.series-list strong { font: 500 1.5rem/1.2 var(--display); }

/* ---------- Artikel ---------- */
.post__head { padding-top: clamp(40px, 6vw, 80px); max-width: calc(820px + 2 * var(--gutter)); }
.post__back { margin-bottom: 24px; }
.post__back a { display: inline-block; padding: 8px 0; }
.post__title {
  font: 500 clamp(2.4rem, 5.4vw, 4.6rem)/1.02 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.post__meta { margin-top: 20px; color: var(--muted); }
.post__media { margin-top: clamp(32px, 4vw, 56px); max-width: 1240px; }
.post__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-surface); }
.post__media--photo { max-width: calc(820px + 2 * var(--gutter)); }
.post__media--photo img { aspect-ratio: 4 / 3; object-position: 50% 22%; }
.post__media--scene { max-width: calc(820px + 2 * var(--gutter)); }
.post__col { max-width: 820px; margin-inline: auto; }
.post__body { margin-top: clamp(40px, 5vw, 64px); }
.prose { max-width: 65ch; }
.prose > * + * { margin-top: 1.1em; }
.post__body.prose { font-size: 1.125rem; line-height: 1.72; }
.prose blockquote { border-left: 2px solid var(--gold); padding-left: 20px; font-family: var(--display); font-size: 1.3em; line-height: 1.4; }
.prose a { color: var(--red); }

.series-nav { max-width: 65ch; margin: 56px 0 0; padding: 24px; background: var(--t-gold); border-radius: var(--r-surface); }
.series-nav h2 { font: 500 1.5rem/1.2 var(--display); margin-bottom: 12px; }
.series-nav ol { padding-left: 1.3em; }
.series-nav li { padding: 4px 0; }
.series-nav [aria-current] { font-weight: 600; }

.post-nav { margin: 64px 0 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link { display: block; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; }
.post-nav__link small { display: block; color: var(--muted); }
.post-nav__link span { font: 500 1.2rem/1.25 var(--display); }
.post-nav__link:hover span { text-decoration: underline; }
.post-nav__link--next { text-align: right; }
@media (max-width: 639px) { .post-nav__link--next { text-align: left; } }

.notfound { padding-bottom: var(--section); }
.notfound .page-title { max-width: 16ch; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Rechtliches (Datenschutz) ---------- */
.legal { padding-bottom: var(--section); }
.legal__body { font-size: 1.0625rem; line-height: 1.7; }
.legal__body h2 { font: 500 1.6rem/1.2 var(--display); letter-spacing: -.01em; margin-top: 2em; }
.legal__body ul { padding-left: 1.2em; }
.legal__body li + li { margin-top: .25em; }
.legal__updated { color: var(--muted); }
.legal__body a { color: var(--red); }
