/* Omid57 – Grundgestaltung
   Farben: heller Morgenhimmel, tiefes Tintenblau, ein warmer Sonnenton nur für die aufgehende Sonne. */

@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff2") format("woff2"), url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff2") format("woff2"), url("../fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff2") format("woff2"), url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff2") format("woff2"), url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #16213a;
  --muted: #586378;
  --line: #d9e0ea;
  --blue: #1e5aa0;
  --blue-dark: #15447a;
  --dawn: #f0a92e;
  --dawn-soft: #fdf0d5;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fa: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
  /* Runde Ecken für Bilder und Karten – wie App-Symbole */
  --radius-img: clamp(16px, 2vw, 26px);
  --radius-card: clamp(18px, 2.2vw, 28px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

[dir="rtl"] body,
html[dir="rtl"] body { font-family: var(--fa); line-height: 1.9; }

img, svg { max-width: 100%; display: block; }

a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; font-weight: 800; line-height: 1.4; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 44rem; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.95rem; z-index: 10;
}
html[dir="rtl"] .skip { font-family: var(--fa); }
.skip:focus { top: 1rem; }

/* ---------- Kopfbereich ---------- */
.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
  font-family: var(--sans);
}
html[dir="rtl"] .site-header { font-family: var(--fa); }

.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.brand-mark path:last-child { stroke: var(--dawn); }
.brand-name { font-family: var(--sans); letter-spacing: -0.01em; }

.brand-logo { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.main-nav { order: 2; display: flex; gap: 0.25rem; margin-inline-start: auto; }
.main-nav a {
  color: var(--muted); text-decoration: none; padding: 0.45rem 0.7rem; border-radius: 999px;
  font-size: 0.95rem; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* Sprachwahl mit Flaggen */
.lang-flags { order: 3; display: flex; align-items: center; gap: 0.35rem; }
.lang-flags a { display: block; padding: 3px; border-radius: 6px; line-height: 0; opacity: 0.72; transition: opacity .15s, box-shadow .15s; }
.lang-flags a:hover { opacity: 1; }
.lang-flags a[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--blue); }
.lang-flags img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgb(22 33 58 / 0.18); }

.menu-toggle {
  order: 4; display: none; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle[aria-expanded="true"] svg path { d: path("M6 6l12 12M18 6L6 18"); }

@media (max-width: 52rem) {
  .header-inner { flex-wrap: wrap; gap: 0.5rem; padding-block: 0.6rem; }
  .lang-flags { order: 2; margin-inline-start: auto; gap: 0.15rem; }
  .lang-flags img { width: 24px; height: 17px; }
  .menu-toggle { display: inline-flex; order: 3; }
  .main-nav { order: 4; width: 100%; margin: 0; flex-direction: column; gap: 0; display: none; padding-block: 0.25rem 0.5rem; }
  .main-nav.is-open, .no-js .main-nav { display: flex; }
  .main-nav a { padding: 0.75rem 0.5rem; border-radius: 8px; font-size: 1.05rem; border-top: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { box-shadow: none; background: transparent; color: var(--blue); font-weight: 600; }
  .no-js .menu-toggle { display: none; }
}
@media (max-width: 22rem) { .brand-name { display: none; } }

/* ---------- Startseite: Titelbereich ---------- */
.hero { padding-top: clamp(3rem, 9vw, 7rem); overflow-x: clip; }

.hero-words { margin: 0; font-size: clamp(3rem, 11.5vw, 8.75rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 600; }
.hero-words span { display: block; }
html[dir="rtl"] .hero-words { font-size: clamp(3rem, 12vw, 9rem); line-height: 1.25; letter-spacing: 0; font-weight: 800; }

.hero-top { display: grid; gap: 2rem; align-items: end; }
.has-portrait .hero-top { grid-template-columns: minmax(0, 1fr) auto; }
.has-portrait .horizon { margin-top: 0; height: 0; }
.has-portrait .hero-words { padding-bottom: clamp(1rem, 4vw, 3rem); font-size: clamp(2.6rem, 6.2vw, 5.75rem); }
html[dir="rtl"] .has-portrait .hero-words { font-size: clamp(2.6rem, 7vw, 6.5rem); }

/* Porträt als "Fotoabzug": weißer Rand, leicht gedreht, Namensschild */
.portrait {
  --tilt: -2deg;
  position: relative; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); width: clamp(170px, 27vw, 330px);
  padding: 10px 10px 0; background: #fff; border-radius: 26px;
  box-shadow: 0 1px 2px rgb(22 33 58 / 0.08), 0 24px 50px -22px rgb(22 33 58 / 0.45);
  transform: rotate(var(--tilt));
}
html[dir="rtl"] .portrait { --tilt: 2deg; }
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 26px;
  border: 2px solid var(--blue); transform: rotate(calc(var(--tilt) * -2.2)) translate(10px, 10px);
}
html[dir="rtl"] .portrait::before { transform: rotate(calc(var(--tilt) * -2.2)) translate(-10px, 10px); }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--line); }
.portrait figcaption { display: grid; padding: 0.7rem 0.4rem 0.85rem; font-family: var(--sans); line-height: 1.3; }
html[dir="rtl"] .portrait figcaption { font-family: var(--fa); line-height: 1.6; }
.portrait figcaption strong { font-size: 1.02rem; color: var(--ink); }
.portrait figcaption span { font-size: 0.84rem; color: var(--muted); }
.portrait figcaption span::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-inline-end: 0.4em; border-radius: 50%; background: var(--dawn); vertical-align: 0.05em; }
@media (prefers-reduced-motion: no-preference) {
  .hero .portrait { animation: settle 1s cubic-bezier(.2,.7,.2,1) 0.15s both; }
  @keyframes settle { from { transform: rotate(0deg) translateY(10px); } to { transform: rotate(var(--tilt)); } }
}
.has-portrait .hero-top { align-items: center; }

@media (max-width: 52rem) {
  .has-portrait .hero-top { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .has-portrait .hero-words { font-size: clamp(2.6rem, 11.5vw, 5.5rem); padding-bottom: 0; }
  html[dir="rtl"] .has-portrait .hero-words { font-size: clamp(2.8rem, 12vw, 5.75rem); }
  .has-portrait .portrait { justify-self: end; width: min(58vw, 300px); }
}

.horizon {
  position: relative; overflow: hidden;
  height: clamp(56px, 9vw, 104px); margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1.5px solid var(--ink);
}
.horizon .sun {
  position: absolute; bottom: 0; inset-inline-end: 12%;
  width: clamp(112px, 17vw, 208px); aspect-ratio: 2 / 1;
  background: var(--dawn); border-radius: 999px 999px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .horizon .sun { animation: sunrise 1.8s cubic-bezier(.2,.7,.2,1) 0.2s both; }
  @keyframes sunrise { from { transform: translateY(100%); } to { transform: none; } }
}

.hero-body {
  display: grid; gap: 1.5rem 3rem; padding-top: 2.25rem; padding-bottom: clamp(3rem, 7vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 52rem) {
  .hero-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .hero-body .actions { grid-column: 1 / -1; }
}

.hero-intro { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.4rem); max-width: 36ch; }
html[dir="rtl"] .hero-intro { max-width: 40ch; }

.motto { margin: 0; padding-inline-start: 1.25rem; border-inline-start: 3px solid var(--dawn); }
.motto p { margin: 0 0 0.4rem; font-style: italic; font-size: 1.2rem; color: var(--ink); }
html[dir="rtl"] .motto p { font-style: normal; }
.motto footer { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
html[dir="rtl"] .motto footer { font-family: var(--fa); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.2rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem; line-height: 1.2;
}
html[dir="rtl"] .btn { font-family: var(--fa); }
.btn:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }

.empty {
  margin: 0; padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--muted); max-width: 44rem;
}

.values { background: var(--surface); }
.values-list { display: grid; gap: 2rem 2.5rem; margin: 2rem 0 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 36rem) { .values-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .values-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.values-list div { padding-top: 1rem; border-top: 2px solid var(--ink); }
.values-list dt { font-weight: 600; font-size: 1.3rem; margin-bottom: 0.35rem; }
html[dir="rtl"] .values-list dt { font-weight: 800; }
.values-list dd { margin: 0; color: var(--muted); }

.simple-page h1 { margin-bottom: 0.75rem; }
.simple-page h2 { font-size: 1.15rem; margin-top: 2rem; font-family: var(--sans); }
html[dir="rtl"] .simple-page h2 { font-family: var(--fa); }
.simple-page address { font-style: normal; }
.ltr-block { text-align: start; unicode-bidi: isolate; }
html[dir="rtl"] .ltr-block { text-align: right; }
.note { color: var(--muted); font-size: 1rem; }

/* ---------- Gerechtigkeit (Bildband) ---------- */
.justice-band { position: relative; margin: clamp(1rem, 3vw, 2rem) auto; max-width: calc(var(--wrap) + 6rem); width: calc(100% - 2 * var(--gutter)); background: #2a1408; color: #fff; overflow: hidden; border-radius: var(--radius-card); isolation: isolate; }
.justice-band img { width: 100%; height: clamp(320px, 52vw, 560px); object-fit: cover; object-position: center 35%; }
.justice-band figcaption {
  position: absolute; inset-inline: 0; bottom: 0; margin-inline: auto;
  padding-block: 5rem clamp(1.5rem, 4vw, 3rem);
}
.justice-band::after {
  content: ""; position: absolute; inset: 40% 0 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgb(20 10 4 / 0.82));
}
.justice-band blockquote { position: relative; z-index: 1; margin: 0; max-width: 40rem; }
.justice-band blockquote p { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.2; font-weight: 600; text-wrap: balance; }
html[dir="rtl"] .justice-band blockquote p { line-height: 1.6; font-weight: 800; }
.justice-band blockquote footer { font-family: var(--sans); font-size: 0.95rem; color: var(--dawn); }
html[dir="rtl"] .justice-band blockquote footer { font-family: var(--fa); }

/* ---------- Haltungen ---------- */
.positions { border-top: 0; }
.positions-list { display: grid; gap: clamp(2rem, 5vw, 3.5rem); margin-top: 2rem; }
.position { display: grid; gap: 1.25rem 2.5rem; align-items: center; }
.position img { width: 100%; height: auto; border-radius: var(--radius-img); box-shadow: 0 18px 40px -24px rgb(22 33 58 / 0.55); background: var(--surface); }
.position h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.4rem; }
.position p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (min-width: 46rem) {
  .position { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .position:nth-child(even) img { order: 2; }
  .position-own-voice img { max-height: 560px; width: auto; justify-self: center; }
  .position-death-penalty img { max-width: 380px; justify-self: center; }
}
@media (max-width: 46rem) {
  .position-own-voice img { max-height: 70vh; width: auto; max-width: 100%; justify-self: center; }
}

/* ---------- Über mich ---------- */
.about-page { border-top: 0; overflow-x: clip; }
.about-head { position: relative; display: grid; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.about-head::after { content: ""; position: absolute; bottom: 0; inset-inline: var(--gutter); border-bottom: 1.5px solid var(--ink); }
.about-head.has-portrait { padding-bottom: 0; }
.about-head.has-portrait > div { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.prose { max-width: 44rem; }
.about-head.has-portrait { grid-template-columns: minmax(0, 1fr) auto; }
.about-head h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
.about-head .lead { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 40ch; margin: 0; }
.portrait-small { width: clamp(150px, 22vw, 260px); margin-bottom: 1.5rem; }
@media (max-width: 40rem) {
  .about-head.has-portrait { grid-template-columns: minmax(0, 1fr); }
  .about-head.has-portrait > div { padding-bottom: 0; }
  .about-head .portrait-small { justify-self: end; width: min(52vw, 240px); }
}

.prose h2 { margin-top: 2.25rem; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--dawn); }

.contact-box {
  margin-top: 3rem; padding: 1.5rem; border-radius: var(--radius-card);
  background: var(--dawn-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.contact-box p { margin: 0; font-size: 1.15rem; }

/* ---------- Beiträge ---------- */
.post-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); margin: 1.5rem 0; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); border-top: 3px solid var(--dawn); overflow: hidden; display: flex; flex-direction: column; }
.post-card.has-image { border-top: 0; }
.post-card-body { padding: 1.25rem 1.35rem; }
.post-card-img { display: block; border-bottom: 3px solid var(--dawn); overflow: hidden; }
.post-card-img img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-img img { transform: scale(1.03); }
.post-hero { max-width: 68rem; margin: 0 auto 2.5rem; }
.post-hero img { width: 100%; height: auto; max-height: 34rem; object-fit: cover; border-radius: var(--radius-img); }
.post-body figure { margin: 2rem 0; }
.post-body figure img { width: 100%; height: auto; }
.post-body figcaption { margin-top: 0.5rem; font-family: var(--sans); font-size: 0.88rem; color: var(--muted); text-align: center; }
html[dir="rtl"] .post-body figcaption { font-family: var(--fa); }
.post-card h3 { font-size: 1.3rem; margin: 0.35rem 0 0.5rem; line-height: 1.3; }
html[dir="rtl"] .post-card h3 { line-height: 1.6; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.post-excerpt { margin: 0; color: var(--muted); font-size: 1rem; }
.post-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: center; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
html[dir="rtl"] .post-meta { font-family: var(--fa); }
.post-meta .cat { background: var(--dawn-soft); color: #7a4b00; padding: 0.05rem 0.55rem; border-radius: 999px; text-decoration: none; }
a.cat:hover { background: #fae2b0; color: #5c3800; }

/* Themen-Leiste */
.topic-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 2rem; font-family: var(--sans); font-size: 0.92rem; }
html[dir="rtl"] .topic-chips { font-family: var(--fa); }
.topic-chips a { display: inline-block; padding: 0.4rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; min-height: 2.5rem; line-height: 1.6; }
.topic-chips a:hover { border-color: var(--blue); color: var(--blue); }
.topic-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.topic-intro { max-width: 44rem; color: var(--muted); margin: 0 0 0.5rem; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; font-family: var(--sans); color: var(--muted); }
html[dir="rtl"] .pager { font-family: var(--fa); }
.post-page { border-top: 0; }
.post-head { max-width: 44rem; margin-inline: auto; padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1.5px solid var(--ink); }
.post-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0.5rem 0 1rem; }
.crumbs { margin: 0; font-family: var(--sans); font-size: 0.9rem; }
html[dir="rtl"] .crumbs { font-family: var(--fa); }
.crumbs a { text-decoration: none; }
.post-body { margin-inline: auto; font-size: 1.15rem; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-img); }
.post-body blockquote { margin: 1.5rem 0; padding-inline-start: 1.25rem; border-inline-start: 3px solid var(--dawn); font-style: italic; }
html[dir="rtl"] .post-body blockquote { font-style: normal; }
.other-langs { max-width: 44rem; margin: 3rem auto 0; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.other-langs p { margin: 0 0 0.5rem; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
html[dir="rtl"] .other-langs p { font-family: var(--fa); }
.other-langs ul { list-style: none; margin: 0; padding: 0; }
.other-langs li { padding: 0.3rem 0; }
.other-langs a { display: inline-flex; gap: 0.5rem; align-items: center; }
.lang-flags a.unavailable { opacity: 0.28; filter: grayscale(1); }

/* Kurze Notizen ohne Titel */
.note-card .post-card-body { position: relative; padding-top: 3.1rem; }
.note-card .post-card-body::before { content: "“"; position: absolute; top: 0.85rem; inset-inline-start: 1.1rem; font-family: Georgia, serif; font-size: 3.2rem; line-height: 1; color: var(--dawn); }
html[dir="rtl"] .note-card .post-card-body::before { content: "”"; }
.note-text { margin: 0.5rem 0 0; font-size: 1.15rem; line-height: 1.75; }
html[dir="rtl"] .note-text { line-height: 2; }
.note-text a { color: var(--ink); text-decoration: none; }
.note-text a:hover { color: var(--blue); }
.post-body.is-note { font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.75; }
.post-body.is-note > p:first-child::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 4.5rem; line-height: .6; color: var(--dawn); margin-bottom: .5rem; }
html[dir="rtl"] .post-body.is-note > p:first-child::before { content: "”"; }

/* ---------- Videos ---------- */
.videos { margin-top: 3rem; }
.video-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.75rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.yt, .yt-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius-img); overflow: hidden;
  background: radial-gradient(circle at 70% 120%, rgb(240 169 46 / 0.55), transparent 55%), var(--ink);
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.yt:hover .yt-thumb img { transform: scale(1.04); }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center; background: rgb(255 255 255 / 0.92); box-shadow: 0 6px 18px rgb(0 0 0 / 0.3);
}
.yt-play svg { width: 1.6rem; height: 1.6rem; fill: var(--ink); margin-inline-start: 3px; }
html[dir="rtl"] .yt-play svg { margin-inline-start: 0; margin-inline-end: 3px; }
.yt:hover .yt-play { background: var(--dawn); }
.yt-title { margin: 0.6rem 0 0.1rem; font-weight: 600; line-height: 1.4; }
.yt-lang { margin: 0; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
html[dir="rtl"] .yt-lang { font-family: var(--fa); }
.yt-notice { margin-top: 1.5rem; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); max-width: 60ch; }
html[dir="rtl"] .yt-notice { font-family: var(--fa); }

/* ---------- Fußbereich ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 3rem; font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
html[dir="rtl"] .site-footer { font-family: var(--fa); }
.site-footer h2 { font-size: 1rem; color: var(--ink); font-weight: 600; margin-bottom: 0.9rem; font-family: inherit; letter-spacing: 0; }

.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(9rem, 1fr)); } }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-network li { display: grid; gap: 0.1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
.footer-network li:last-child { border-bottom: 0; }
.footer-network a { font-weight: 600; color: var(--ink); text-decoration: none; justify-self: start; direction: ltr; }
.footer-network a:hover { color: var(--blue); text-decoration: underline; }
.plain li { padding-block: 0.3rem; }
.plain a { color: var(--ink); }

.footer-base { margin-top: 2.5rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); }
.footer-base p { margin: 0; font-size: 0.875rem; }

@media (max-width: 40rem) { body { font-size: 1.0625rem; } }

@media print {
  .site-header, .horizon, .actions, .site-footer { display: none; }
  body { background: #fff; }
}

/* Vorschau im Verwaltungsbereich */
.preview-frame .post-page { padding-top: 1.5rem; }
.preview-frame .wrap { padding-inline: 1.25rem; }

/* Hinweis auf KI-Übersetzung */
.ai-note { max-width: 44rem; margin: 2rem auto 0; display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); font-family: var(--sans); font-size: 0.88rem; color: var(--muted); }
html[dir="rtl"] .ai-note { font-family: var(--fa); }
.ai-note svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; fill: var(--dawn); }
.ai-note a { margin-inline-start: 0.35rem; white-space: nowrap; }

/* Teilen */
.share { max-width: 44rem; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.share-heading { margin: 0; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; }
html[dir="rtl"] .share-heading { font-family: var(--fa); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 2.75rem; height: 2.75rem; padding: 0 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-family: var(--sans); font-size: 0.88rem; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
html[dir="rtl"] .share-btn { font-family: var(--fa); }
.share-btn svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.share-btn:hover { color: #fff; border-color: transparent; }
.share-telegram:hover { background: #229ed9; }
.share-whatsapp:hover { background: #1fa855; }
.share-x:hover { background: #000; }
.share-facebook:hover { background: #1877f2; }
.share-email:hover, .share-copy:hover, .share-native:hover { background: var(--blue); }
.share-copy.is-done { background: #1f8a4c; color: #fff; border-color: transparent; }
.share-btn[hidden] { display: none !important; }

/* Vorheriger / nächster Beitrag */
.post-nav { max-width: 44rem; margin: 2.5rem auto 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav a { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.post-nav a:hover { border-color: var(--blue); }
.post-nav-newer { grid-column: -2; text-align: end; }
.post-nav-label { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
html[dir="rtl"] .post-nav-label { font-family: var(--fa); }
.post-nav-title { font-weight: 600; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 39.99rem) { .post-nav-newer { grid-column: auto; text-align: start; } }
.related h2 { margin-top: 0; }

/* Kontakt */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
.contact-main .lead { max-width: 40rem; color: var(--muted); }
.contact-form { display: grid; gap: 1.1rem; max-width: 40rem; margin-top: 1.5rem; }
.field label { display: block; font-family: var(--sans); font-size: 0.92rem; font-weight: 600; margin-bottom: 0.35rem; }
html[dir="rtl"] .field label { font-family: var(--fa); }
.field input:not([type=checkbox]), .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field-error, .form-error { margin: 0.35rem 0 0; color: #b03224; font-family: var(--sans); font-size: 0.88rem; }
html[dir="rtl"] .field-error, html[dir="rtl"] .form-error { font-family: var(--fa); }
.form-error { padding: 0.7rem 1rem; background: #fdecea; border-radius: 12px; max-width: 40rem; }
.field-check label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.field-check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--blue); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-side { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.contact-side h2 { margin-top: 0; font-size: 1.1rem; font-family: var(--sans); }
html[dir="rtl"] .contact-side h2 { font-family: var(--fa); }
.contact-side li { margin-bottom: 0.6rem; }
.contact-side li span, .contact-note { color: var(--muted); font-size: 0.9rem; }
.contact-done { padding: 1.5rem; background: #e9f7ef; border: 1px solid #bfe5cf; border-radius: var(--radius-card); max-width: 40rem; }
.contact-done-title { font-size: 1.3rem; font-weight: 600; margin-top: 0; }
.contact-side ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-main { position: relative; min-width: 0; }

/* Newsletter */
.footer-nl { display: grid; gap: 1.25rem 2.5rem; align-items: center; padding: 1.75rem; margin-bottom: 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
@media (min-width: 56rem) { .footer-nl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.footer-nl h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.footer-nl p { margin: 0; color: var(--muted); }
.nl-form { display: grid; gap: 0.75rem; }
.nl-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nl-row input { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1rem; padding: 0.7rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); min-height: 2.9rem; }
.nl-row input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.nl-row .btn { min-height: 2.9rem; }
.nl-note { margin: 0; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
html[dir="rtl"] .nl-note { font-family: var(--fa); }
.nl-langs { border: 0; padding: 0; margin: 0 0 0.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nl-langs legend { font-family: var(--sans); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; padding: 0; }
html[dir="rtl"] .nl-langs legend { font-family: var(--fa); }
.nl-langs label { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 0.95rem; }
.nl-langs input { accent-color: var(--blue); }
.nl-page .nl-form { margin-top: 1.5rem; max-width: 36rem; }
.contact-done.is-warn { background: #fff7e6; border-color: #f3d9a4; }
