/* Gottfried Ravek – Wien-Noir
   Farben, Schriften und Layout der öffentlichen Seiten.
   Kontraste geprüft nach WCAG AA (Fließtext ≥ 4.5:1). */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  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: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-italic.woff2") format("woff2-variations");
  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: "Source Serif 4"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  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: "Source Serif 4"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
  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; }

:root {
  --bg: #121417;          /* Anthrazit */
  --bg-raised: #181d26;   /* Nachtblau, gedämpft */
  --night: #1c2636;       /* Nachtblau */
  --line: #2c3440;
  --text: #ebe6dd;        /* 14.8:1 */
  --muted: #aab0b8;       /*  8.4:1 */
  --faint: #8d939c;       /*  6.0:1 */
  --accent: #a8433d;      /* gedämpftes Rot, nur dekorativ */
  --link: #d9776d;        /*  6.0:1 */
  --btn: #9b3b36;         /* Weiß darauf 6.8:1 */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --read: "Source Serif 4", Georgia, serif;
  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 2.2em; }
h3 { font-size: 1.45rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.22rem; color: var(--text); line-height: 1.55; }
small, .small { font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }

.skip { position: absolute; left: .5rem; top: -4rem; z-index: 10; background: var(--text); color: var(--bg); padding: .6rem 1rem; text-decoration: none; }
.skip:focus { top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

/* ---------- Kopf ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(18, 20, 23, .94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; min-height: 4.25rem; padding-top: .5rem; padding-bottom: .5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; }
.wordmark svg { width: 2rem; height: 2rem; flex: none; }
.wordmark span { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: .06em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; letter-spacing: .04em; padding: .35rem 0; display: inline-block; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero picture, .hero > img { position: absolute; inset: 0; z-index: -2; }
.hero > img, .hero picture img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,20,23,.2) 0%, rgba(18,20,23,.55) 60%, var(--bg) 100%); }
.hero::after { content: ""; position: absolute; inset: -20% 0 0 0; z-index: -1; pointer-events: none; opacity: .18;
  background-image: repeating-linear-gradient(103deg, transparent 0 22px, rgba(235,230,221,.35) 22px 23px, transparent 23px 61px);
  animation: regen 2.4s linear infinite; }
@keyframes regen { from { transform: translateY(-8%); } to { transform: translateY(0); } }
.hero .wrap { padding-top: clamp(5rem, 14vw, 10rem); padding-bottom: clamp(3.5rem, 9vw, 6.5rem); }
.hero h1 { font-size: clamp(3.2rem, 10vw, 7rem); font-weight: 500; letter-spacing: .02em; margin-bottom: .25em; }
.hero .claim { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--text); max-width: 34rem; margin: 0; }
.rule { display: block; width: 4.5rem; height: 2px; background: var(--accent); margin: 1.4rem 0; border: 0; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.eyebrow::before { content: ""; display: inline-block; width: 1.4rem; height: 1px; background: var(--accent); vertical-align: middle; margin-right: .7rem; }
.section > .wrap > h2:first-child, .section h2.first { margin-top: 0; }

/* Aktuelles Buch */
.feature { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.feature h2 { margin-top: 0; font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.feature .untertitel { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--muted); margin: -.4rem 0 1.2rem; }
.cover { box-shadow: 0 1.5rem 3rem rgba(0,0,0,.55), 0 0 0 1px var(--line); border-radius: 2px; }
.cover-link { display: block; transition: transform .4s ease; }
.cover-link:hover { transform: translateY(-4px); }

/* Buttons */
.btn { display: inline-block; font: 600 .95rem/1 var(--sans); letter-spacing: .05em; padding: .9rem 1.3rem; border-radius: 2px; text-decoration: none; border: 1px solid var(--btn); background: var(--btn); color: #fff; transition: background .2s, border-color .2s; }
.btn:hover { background: #8f3631; color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.platzhalter { opacity: .55; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }

/* Bücherliste */
.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 2.5rem 2rem; }
.book-card { display: flex; flex-direction: column; gap: .9rem; }
.book-card h3 { margin: .3rem 0 0; font-size: 1.6rem; }
.book-card h3 a { color: var(--text); text-decoration: none; }
.book-card h3 a:hover { color: var(--link); }
.book-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.book-card .band { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* Straßentafel: Wiener Bezirksschild als Motiv */
.tafeln { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tafel { display: inline-flex; align-items: baseline; gap: .45rem; background: var(--night); color: #f4f1ea; border: 1px solid #3a4a63; box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 4px #5b6c86; padding: .38rem .75rem .42rem; font-size: .88rem; border-radius: 2px; text-decoration: none; line-height: 1.3; }
.tafel b { font-weight: 700; }
a.tafel:hover { border-color: var(--link); color: #fff; }

/* Buchseite */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 1.5rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--faint); }
.crumbs a { color: var(--muted); }
.book { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); padding: 2rem 0 4rem; align-items: start; }
.book-aside { position: sticky; top: 6rem; }
.book h1 { margin-bottom: .1em; }
.book .untertitel { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--muted); margin: 0 0 1.8rem; }
.worum { border-left: 2px solid var(--accent); padding: .3rem 0 .3rem 1.3rem; margin: 0 0 2rem; }
.worum h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.worum p { font-size: 1.14rem; margin: 0; }
.akte { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 0; font-size: .97rem; }
.akte dt { color: var(--muted); }
.akte dd { margin: 0; }
.ausgaben { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 1rem; }
.ausgaben th, .ausgaben td { text-align: left; padding: .55rem .8rem .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ausgaben th { color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.leseprobe { background: var(--bg-raised); border: 1px solid var(--line); padding: clamp(1.3rem, 4vw, 2.6rem); margin-top: 1rem; font-family: var(--read); font-size: 1.1rem; line-height: 1.75; color: #e4dfd5; }
.leseprobe p { margin: 0; text-indent: 1.4em; hyphens: auto; }
.leseprobe p:first-of-type { text-indent: 0; }
.leseprobe p:first-of-type::first-letter { font-family: var(--serif); font-weight: 600; font-size: 1.9em; line-height: 1; color: var(--link); }
.leseprobe .ende { text-indent: 0; text-align: center; color: var(--faint); margin-top: 1.4rem; letter-spacing: .5em; }

/* Schauplätze */
.orte { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.ort { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; }
.ort:nth-child(even) > figure { order: 2; }
.ort figure { margin: 0; }
.ort img { border: 1px solid var(--line); }
.ort figcaption { font-size: .82rem; color: var(--faint); margin-top: .5rem; }
.ort h2 { margin-top: .6rem; }
.ort .bei { border-left: 2px solid var(--accent); padding-left: 1rem; color: var(--muted); font-style: italic; }
.ort .bei a { font-style: normal; }
.bezirk-nr { font-family: var(--serif); font-size: 1rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 0; display: inline; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--link); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .antwort { padding: 0 0 1.4rem; color: #ddd8cf; max-width: 44rem; }

/* Prosa-Seiten */
.prose { padding: 2rem 0 4.5rem; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.figure-wide { margin: 2.5rem 0; }
.figure-wide figcaption { font-size: .82rem; color: var(--faint); margin-top: .5rem; }

/* Formular */
.form { display: grid; gap: 1.2rem; max-width: 36rem; margin-top: 1.5rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg-raised); border: 1px solid #4a5361; border-radius: 2px; padding: .75rem .85rem; }
.form input:focus, .form textarea:focus { border-color: var(--link); outline: 2px solid var(--link); outline-offset: 1px; }
.form textarea { min-height: 10rem; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.form .check input { width: auto; margin-top: .3rem; accent-color: var(--btn); }
.mailbox { font-family: var(--serif); font-size: 1.5rem; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 1rem 1.2rem; background: var(--bg-raised); }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer a { color: var(--muted); }
.site-footer .sig { font-family: var(--serif); font-size: 1.25rem; color: var(--text); letter-spacing: .05em; }

/* Einblenden */
@media (prefers-reduced-motion: no-preference) {
  .fade { animation: auf .9s ease both; }
  .fade.d2 { animation-delay: .15s; } .fade.d3 { animation-delay: .3s; }
  @keyframes auf { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 52rem) {
  .feature, .book, .ort { grid-template-columns: minmax(0, 1fr); }
  .feature .cover-link, .book-aside { max-width: 15rem; }
  .book-aside { position: static; }
  .ort:nth-child(even) > figure { order: 0; }
}
@media (max-width: 30rem) {
  .site-nav ul { gap: .1rem 1rem; }
  .site-nav a { font-size: .9rem; }
  .akte { grid-template-columns: 1fr; gap: .1rem; }
  .akte dd { margin-bottom: .6rem; }
}
@media print {
  .site-header, .site-footer, .hero::after, .btns { display: none; }
  body { background: #fff; color: #000; }
}
.feature h2 a { color: inherit; text-decoration: none; }
.feature h2 a:hover { color: var(--link); }
.tafeln-liste { flex-direction: column; gap: .7rem; }
.tafeln-liste small { margin-left: .6rem; }
.wrap.narrow { max-width: var(--max); }
.wrap.narrow > * { max-width: 44rem; }
.tafeln + p, .tafeln + .btns { margin-top: 1.2rem; }
.ausgaben-wrap { overflow-x: auto; }
.ausgaben td { overflow-wrap: anywhere; }
@media (max-width: 52rem) { .site-header { position: static; } }

/* Logo */
.wordmark img { display: block; height: 2.1rem; width: auto; }
.site-footer .sig img { height: 2.6rem; width: auto; }
.hero h1.logo-h1 { margin: .2rem 0 .2em; line-height: 0; }
.hero h1.logo-h1 img { width: min(100%, 36rem); height: auto; }
