/* Verlagsanstalt Niederrhein – statische Verlagsseite
   Schriften liegen lokal (SIL OFL 1.1), keine externen CDNs. */

@font-face {
  font-family: "Cormorant SC";
  src: url("../fonts/cormorant-sc-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0f2f4a;
  --navy-deep: #0a2233;
  --ink: #1c1917;
  --text: #2c2824;
  --muted: #5a544c;
  --line: #d7cfc3;
  --line-strong: #c4b9a8;
  --brass: #6e5836;
  --brass-line: #8a7048;
  --paper: #f6f2eb;
  --paper-deep: #eee6d8;
  --card: #fffcf7;
  --max: 68rem;
  --header-h: 5.25rem;
  --focus: #0e7490;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-underline-offset: 0.14em;
}

a:hover { color: var(--brass); }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.skip:focus { top: 0.75rem; color: #fff; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 242, 235, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  min-height: var(--header-h);
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.logo {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  width: 13.5rem;
  height: auto;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  border-bottom-color: var(--brass-line);
  color: var(--navy-deep);
}

.site-header nav a[aria-current="page"] {
  font-weight: 600;
}

/* ----- Main typography ----- */
main { padding: 0 0 4.5rem; }

.page-hero,
.band {
  padding: 3.25rem 0 3rem;
}

.page-hero { padding-top: 3.5rem; }

.page-hero.compact { padding-bottom: 1.75rem; }

.kicker {
  margin: 0 0 0.85rem;
  font-family: "Cormorant SC", "Palatino Linotype", Palatino, serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
}

.intro {
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.rule-brass {
  border: 0;
  width: 3.5rem;
  height: 0;
  border-top: 1px solid var(--brass-line);
  margin: 0 0 1.5rem;
}

/* ----- Book cards ----- */
.book-grid {
  display: grid;
  gap: 1.75rem;
}

.book-card {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1.75rem 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.5rem;
  align-items: start;
}

.book-card.detailed {
  grid-template-columns: 16rem minmax(0, 1fr);
  padding: 1.75rem;
  margin-bottom: 2rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.cover {
  box-shadow: 0 10px 28px rgba(15, 47, 74, 0.16), 0 1px 0 rgba(15, 47, 74, 0.06);
  background: #111;
}

.cover img { width: 100%; }

.series {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

.book-card h2, .book-card h3 {
  margin-bottom: 0.35rem;
}

.subtitle {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 38rem;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.meta-list strong {
  color: var(--ink);
  font-weight: 600;
}

.price {
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
  align-items: center;
  margin-top: 1.15rem;
}

.hint {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.facts {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
}

.facts li { margin: 0 0 0.25rem; }

.legal-note {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  line-height: 1.3;
}

.btn:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--paper-deep);
  color: var(--navy-deep);
}

/* ----- Sections ----- */
.band-alt {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  align-items: start;
}

.prose { max-width: 40rem; }

.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

address {
  font-style: normal;
  line-height: 1.6;
}

.placeholder-box {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line-strong);
  background: var(--card);
}

.placeholder-box strong { color: var(--navy); }

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: #e8e2d6;
  padding: 2.4rem 0 2rem;
}

.site-footer a { color: #f4efe6; }
.site-footer a:hover { color: #fff; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.75rem 2rem;
  align-items: start;
}

.footer-brand {
  font-family: "Cormorant Garamond", Palatino, serif;
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 0.4rem;
}

.footer-meta, .site-footer p {
  margin: 0;
  font-size: 0.92rem;
  color: #d4cbbd;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.copyright {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(232, 226, 214, 0.2);
  font-size: 0.85rem !important;
}

/* ----- Legal pages ----- */
.legal main { padding-top: 2.5rem; }
.legal article { max-width: 44rem; }
.legal h2 { margin-top: 2rem; font-size: 1.45rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }

/* ----- Kauf-Platzhalter ----- */
.notice {
  max-width: 36rem;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem 1.6rem;
  margin-top: 1.5rem;
}

/* ----- 404 ----- */
.empty { padding: 4.5rem 0 5rem; }

/* ----- Responsive ----- */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem 1rem;
  }
}

@media (max-width: 800px) {
  .book-card,
  .book-card.detailed {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .cover { width: min(14rem, 58%); }

  .split,
  .footer-inner { grid-template-columns: 1fr; }

  .logo img { width: 11.25rem; }

  .page-hero, .band { padding: 2.4rem 0 2.2rem; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 1.4rem, var(--max)); }
  .cover { width: min(12.5rem, 70%); }
  .book-card, .book-card.detailed { padding: 1.1rem; }
  .header-inner { min-height: 0; }
  .site-header nav a { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer nav, .actions, .skip { display: none; }
  body { background: #fff; color: #000; }
  .book-card, .cover { box-shadow: none; border-color: #ccc; }
  a { color: inherit; text-decoration: none; }
}
