/* Berta Bömmsheimer – Autorin aus Bochum */

/* Schriften liegen lokal, es wird nichts von fremden Servern geladen */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/source-sans-3.woff2") format("woff2"); }
@font-face { font-family: "Special Elite"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/special-elite.woff2") format("woff2"); }

:root {
  /* Farben */
  --white: #ffffff;
  --soft: #f4f4f1;          /* Feldgrau: Felder und Infoboxen */
  --sand: #ece6d8;
  --line: #e4dfd3;
  --field-edge: #7b8391;    /* Feldrand, auf Weiß gut erkennbar */
  --gold: #f5ae0b;          /* Budengelb */
  --gold-dark: #dc9800;
  --gold-light: #ffc93c;    /* gelbe Schrift auf dunklem Grund */
  --navy: #23344e;          /* Nachtblau */
  --coal: #111620;          /* Blauschwarz */
  --coal-rgb: 12 16 23;     /* für Verläufe und Schatten */
  --footer: #0b0f16;
  --ink: #1e2430;
  --muted: #5f6672;
  --on-dark: #e9ecf1;
  --on-dark-muted: #c3c9d3;
  --on-dark-dim: #a9b1bd;
  --ok: #2e6b3a;
  --err: #a3321f;

  /* Schriften */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --type: "Special Elite", "Courier New", monospace;

  /* Schriftgrößen */
  --fs-xs: .8rem;
  --fs-sm: .95rem;
  --fs-base: 1rem;
  --fs-body: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.45rem;
  --fs-2xl: 1.8rem;
  --fs-h3: clamp(1.9rem, 3.6vw, 2.8rem);
  --fs-h2: clamp(2.1rem, 4.2vw, 3.3rem);
  --fs-h1: clamp(2.5rem, 4.5vw, 4.1rem);

  /* Fokusfarbe: dunkel auf hellem Grund, hell auf dunklem */
  --focus: var(--navy);

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  caret-color: var(--navy);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--coal); }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero, .band, .view, .contact, .footer, .nav:not(.is-solid):not(.is-open) { --focus: var(--gold-light); }
.form { --focus: var(--navy); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--white); padding: .8rem 1.2rem; }

/* Kleine Schreibmaschinen-Zeile über Abschnittsüberschriften */
.eyebrow {
  font-family: var(--type);
  font-size: var(--fs-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex; align-items: center; gap: .9rem;
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 2.6rem; height: 3px; background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: var(--fs-base);
  padding: .9rem 1.6rem;
  background: var(--gold); color: var(--coal);
  border: 2px solid var(--gold); border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--coal); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgb(255 255 255 / .75); }
.btn--ghost:hover { background: var(--white); color: var(--coal); border-color: var(--white); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
/* Logo: groß über dem Hero, schrumpft beim Scrollen in die Leiste */
.brand--logo { align-self: flex-start; position: relative; z-index: 2; }
.brand--logo img { height: 132px; width: auto; margin-top: 10px; transition: height .3s ease, margin .3s ease; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .35)); }
.nav.is-solid .brand--logo img, .nav.is-open .brand--logo img, .legal-nav .brand--logo img { height: 68px; margin-top: 4px; filter: none; }
.footer .brand--logo img { height: 96px; margin: 0; filter: none; }
.nav__links { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: var(--fs-base);
  padding: .6rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.nav__links a:hover, .nav__links a.is-active { border-bottom-color: var(--gold); }
.nav.is-solid { background: rgb(255 255 255 / .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav.is-solid .nav__links a { color: var(--coal); }
.nav__toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--white); }
.nav.is-solid .nav__toggle { color: var(--coal); }
.nav__toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--coal); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--coal-rgb) / .82) 0%, rgb(var(--coal-rgb) / .5) 34%, rgb(var(--coal-rgb) / 0) 62%),
    linear-gradient(0deg, rgb(var(--coal-rgb) / .7) 0%, rgb(var(--coal-rgb) / 0) 45%),
    linear-gradient(180deg, rgb(var(--coal-rgb) / .45) 0%, rgb(var(--coal-rgb) / 0) 22%);
}
/* Weicher Übergang vom Bild in den weißen Inhalt */
.hero::before {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: clamp(9rem, 26vh, 15rem); z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    rgb(255 255 255 / 0) 0%, rgb(255 255 255 / .08) 20%, rgb(255 255 255 / .28) 42%,
    rgb(255 255 255 / .6) 64%, rgb(255 255 255 / .88) 80%, #fff 94%, #fff 100%);
}
.hero__content { position: relative; z-index: 2; padding-block: 170px clamp(9rem, 27vh, 15rem); }
.hero__text { max-width: 27rem; }
.hero h1 { font-size: var(--fs-h1); text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-light); }
.hero__lead { font-size: var(--fs-lg); margin: 1.5rem 0 2.2rem; color: rgb(255 255 255 / .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; right: 2rem; bottom: clamp(9rem, 27vh, 15rem); z-index: 2;
  font-family: var(--type); font-size: var(--fs-xs); letter-spacing: .25em; text-transform: uppercase;
  color: rgb(255 255 255 / .85); text-decoration: none; writing-mode: vertical-rl;
  display: flex; align-items: center; gap: .8rem; padding: .6rem;
}
.hero__scroll::after { content: ""; width: 1px; height: 3.5rem; background: rgb(255 255 255 / .7); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section h2 { font-size: var(--fs-h2); margin-bottom: 1.6rem; text-wrap: balance; }

/* Über Berta */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__text h2 + p::first-letter {
  font-family: var(--serif); font-weight: 600; font-size: 4.2em; line-height: .82;
  float: left; padding: .08em .12em 0 0; color: var(--navy);
}
.about__sign { font-family: var(--type); color: var(--navy); font-size: var(--fs-base); margin-top: 1.6rem; }
.about__media { position: relative; padding: 0 0 1.6rem 1.6rem; }
.about__media::before { content: ""; position: absolute; inset: 1.6rem 1.6rem 0 0; background: var(--gold); }
.about__media img { position: relative; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 55% 30%; box-shadow: 0 24px 50px -24px rgb(var(--coal-rgb) / .55); }
.about__tag {
  position: absolute; left: 0; bottom: 3.4rem; z-index: 1;
  background: var(--white); padding: .7rem 1.1rem;
  font-family: var(--type); font-size: var(--fs-xs); letter-spacing: .08em;
  box-shadow: 0 10px 30px -12px rgb(var(--coal-rgb) / .4);
}

.views { margin-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: 2.5rem; }
.views__head { max-width: 44rem; margin-bottom: 2.6rem; }
.views__head h3 { font-size: var(--fs-h3); margin-bottom: .9rem; }
.views__head p { color: var(--muted); margin: 0; }
.views__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
/* Bildkarten: Foto füllt die Karte, Text liegt unten auf einem dunklen Verlauf */
.view {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; border-radius: 14px;
  display: flex; align-items: flex-end;
  background: var(--coal); color: var(--white);
  box-shadow: 0 26px 50px -28px rgb(var(--coal-rgb) / .6);
}
.view:nth-child(2) { margin-top: 2.5rem; margin-bottom: -2.5rem; }
.view img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) sepia(.18) contrast(1.02);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.view:nth-child(1) img { object-position: 50% 30%; }
.view:nth-child(2) img { object-position: 42% 50%; }
.view:nth-child(3) img { object-position: 30% 50%; }
.view::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(var(--coal-rgb) / 0) 20%, rgb(var(--coal-rgb) / .68) 50%, rgb(var(--coal-rgb) / .95) 100%);
}
.view:hover img { transform: scale(1.06); }
.view__body { padding: 1.8rem 1.7rem 1.9rem; }
.view__no {
  display: inline-block; font-family: var(--type); font-size: var(--fs-xs); letter-spacing: .18em;
  color: var(--gold-light); border: 1px solid rgb(255 201 60 / .6); border-radius: 99px; padding: .35rem .8rem .25rem;
}
.view h4 { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; margin: .9rem 0 .6rem; line-height: 1.18; text-wrap: balance; }
.view h4::after { content: ""; display: block; width: 2.4rem; height: 2px; background: var(--gold); margin-top: .8rem; }
.view p { margin: 0; color: rgb(255 255 255 / .88); font-size: var(--fs-base); line-height: 1.6; }

/* Bildband mit Zitat */
.band { position: relative; color: var(--white); background: var(--coal); overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.35) sepia(.25); }
.band__inner { position: relative; padding-block: clamp(5rem, 12vw, 9rem); text-align: center; }
.band blockquote { margin: 0 auto; max-width: 52rem; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: var(--fs-h3); line-height: 1.3; text-wrap: balance; }
.band cite { display: block; margin-top: 1.6rem; font-family: var(--type); font-style: normal; font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }

/* Werke */
.works__intro { max-width: 44rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.works__intro p { color: var(--muted); margin: 0; }
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.book + .book { margin-top: clamp(4.5rem, 9vw, 7.5rem); padding-top: clamp(4.5rem, 9vw, 7.5rem); border-top: 1px solid var(--line); }
.book--flip .book__cover { order: 2; }
.book__cover { position: relative; justify-self: center; width: min(100%, 23rem); }
.book__cover::before { content: ""; position: absolute; inset: 8% -9% -6% -9%; background: var(--sand); z-index: 0; }
.book__cover img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 30px 55px -22px rgb(var(--coal-rgb) / .6), 0 2px 0 rgb(255 255 255 / .3) inset; transition: transform .4s; }
.book__cover:hover img { transform: translateY(-6px) rotate(-1deg); }
.badge {
  position: absolute; z-index: 2; top: -1rem; right: -1.4rem;
  background: var(--gold); color: var(--coal);
  font-family: var(--type); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  padding: .65rem 1rem; transform: rotate(4deg);
  box-shadow: 0 10px 22px -10px rgb(var(--coal-rgb) / .6);
}
.book__kicker { font-family: var(--type); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin: 0 0 .8rem; }
.book h3 { font-size: var(--fs-h3); margin-bottom: 1.4rem; }
.buy {
  margin-top: 2rem; padding: 1.4rem 1.6rem;
  background: var(--soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
}
.buy p { margin: 0; font-size: var(--fs-base); }
.buy strong { display: block; font-family: var(--serif); font-size: var(--fs-lg); }
.buy span { color: var(--muted); }

/* Kontakt */
.contact { background: var(--coal); color: var(--on-dark); }
.contact .eyebrow { color: var(--gold-light); }
.contact h2 { color: var(--white); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
.contact__info p { color: var(--on-dark-muted); }
.contact__list { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1.4rem; }
.contact__list a { display: flex; align-items: center; gap: 1rem; color: var(--white); text-decoration: none; font-weight: 600; word-break: break-word; transition: color .2s; }
.contact__list a:hover { color: var(--gold-light); }
.contact__list small { display: block; font-family: var(--type); font-weight: 400; font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-dim); }
.icon { flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.icon svg { width: 1.3rem; height: 1.3rem; }

.form { background: var(--white); color: var(--ink); padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: 2px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-base); color: var(--ink);
  padding: .8rem .9rem; background: var(--soft);
  border: 1px solid var(--field-edge); border-bottom: 2px solid var(--navy); border-radius: 2px;
  transition: background .2s, border-color .2s;
}
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--navy); background: var(--white); outline-offset: 2px; }
.field textarea { min-height: 9rem; resize: vertical; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.4rem; line-height: 1.5; padding-block: .3rem; cursor: pointer; }
.check input { margin-top: .1rem; accent-color: var(--navy); width: 1.5rem; height: 1.5rem; flex: none; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 1rem 0 0; font-size: var(--fs-base); min-height: 1.5em; }
.form__status.is-ok { color: var(--ok); font-weight: 600; }
.form__status.is-err { color: var(--err); font-weight: 600; }

/* Footer */
.footer { background: var(--footer); color: var(--on-dark-dim); padding-block: 2rem; font-size: var(--fs-sm); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.footer__links a { display: inline-block; padding-block: .7rem; color: var(--on-dark); text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Schlichte Rechtstext-Seiten ---------- */
.legal-nav { border-bottom: 1px solid var(--line); background: var(--white); }
.legal-nav .nav__inner { height: 80px; }
.legal-nav .brand--logo { align-self: center; }
.legal-nav .brand--logo img { margin-top: 0; }
.legal-nav a.back { font-weight: 600; text-decoration: none; font-size: var(--fs-base); padding-block: .6rem; }
.legal { width: min(100% - 2.5rem, 46rem); margin-inline: auto; padding-block: clamp(3rem, 7vw, 5rem); font-size: var(--fs-base); }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 2rem; }
.legal h2 { font-size: var(--fs-2xl); margin: 2.8rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.legal h3 { font-size: var(--fs-lg); margin: 2rem 0 .6rem; }
.legal h4 { font-family: var(--sans); font-size: var(--fs-base); margin: 1.4rem 0 .4rem; }
.legal a { word-break: break-word; }
.legal ul { padding-left: 1.3rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .5em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about, .book, .contact__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 30rem; }
  .book--flip .book__cover { order: 0; }
  .book__cover { width: min(78%, 20rem); }
  .views__grid { grid-template-columns: 1fr; max-width: 30rem; }
  .view { aspect-ratio: 4 / 4.4; }
  .view:nth-child(2) { margin-block: 0; }
}
@media (max-width: 760px) {
  body { font-size: var(--fs-base); }
  .nav.is-solid { backdrop-filter: none; } /* sonst wird das Vollbild-Menü auf die Leiste begrenzt */
  .brand--logo img { height: 96px; margin-top: 8px; }
  .nav.is-solid .brand--logo img, .nav.is-open .brand--logo img { height: 62px; margin-top: 7px; }
  .footer .brand--logo img { height: 84px; }
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; background: var(--white);
    flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem;
    transform: translateY(-100%); transition: transform .35s ease, visibility .35s; visibility: hidden;
  }
  .nav__links a { color: var(--coal); font-family: var(--serif); font-size: var(--fs-2xl); }
  .nav.is-open .nav__links { transform: none; visibility: visible; }
  .nav.is-open .nav__toggle { color: var(--coal); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero__img { object-position: 76% 30%; }
  .hero::after {
    background:
      linear-gradient(0deg, rgb(var(--coal-rgb) / .92) 0%, rgb(var(--coal-rgb) / .72) 34%, rgb(var(--coal-rgb) / 0) 66%),
      linear-gradient(180deg, rgb(var(--coal-rgb) / .5) 0%, rgb(var(--coal-rgb) / 0) 20%);
  }
  .hero__scroll { display: none; }
  .hero::before { height: 7rem; }
  .hero__content { padding-top: 125px; padding-bottom: 7.5rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .badge { right: -.8rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
/* Flache Bildschirme (z. B. kleine Laptops): Hero kompakter, damit die Buttons sichtbar bleiben */
@media (min-width: 761px) and (max-height: 720px) {
  .brand--logo img { height: 96px; margin-top: 6px; }
  .hero::before { height: 5.5rem; }
  .hero__content { padding-block: 118px 6.5rem; }
  .hero__lead { margin: 1rem 0 1.5rem; }
  .hero__scroll { bottom: 6.5rem; }
}
/* Weniger Bewegung: nichts verschiebt oder zoomt sich, Farbwechsel bleiben als Rückmeldung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .view:hover img, .book__cover:hover img { transform: none; }
  .view img, .book__cover img, .brand--logo img, .nav__toggle span { transition: none; }
  .nav__links { transition: none; }
}
