/* ============================================================
   Dr. Ruth Kaiser – Freie Texterin
   Editorial Exaggerated Minimalism · Fraunces + Inter
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Farben: warmes Papier + Tinte + Rost-Akzent */
  --paper:       #FAF7F2;
  --surface:     #FFFFFF;
  --tint:        #F2EDE3;
  --ink:         #1B1815;
  --text:        #403B34;
  --text-soft:   #6B645B;
  --line:        #E5DED2;
  --accent:      #A03E1C;
  --accent-deep: #7F2F13;
  --accent-soft: #E8C3AE;

  /* Typografie */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container:  1140px;
  --sp-section: clamp(6rem, 13vw, 10.5rem);
  --radius-md:  20px;
  --radius-lg:  24px;
  --header-h:   76px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset (leichtgewichtig) ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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 {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;               /* 17px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; }
a { color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

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

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 540;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }

p { max-width: 65ch; }

.link-plain {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease-out);
}
.link-plain:hover { color: var(--accent-deep); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease-out);
}
.link-arrow span {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease-out),
              color .22s var(--ease-out),
              transform .22s var(--ease-out);
}
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; min-height: 52px; }
.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; min-height: 44px; }

/* ---------- Header ---------- */
.site-header {
  position: static;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.wordmark {
  justify-self: start;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 560;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark-dot { color: var(--accent); }

/* Kopfzeilen-Wortmarke als reine Outline: innen leer (Papierfarbe scheint durch),
   Schrift + Rand in --accent – dasselbe Blau/Kontrastniveau wie Eyebrow-Labels
   und die kursive Hero-Zeile an anderer Stelle der Seite (~3:1, unter WCAG AA
   4.5:1, aber konsistent mit dort bereits getroffenen Entscheidungen). */
.wordmark--outlined {
  padding: .5rem 1.1rem;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.wordmark--outlined:hover {
  background: var(--tint);
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* ---------- Slider-Umschalter (Texte ⇄ Kunst) ---------- */
.switch {
  justify-self: center;
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px;
  background: rgba(27, 24, 21, .06);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.switch-knob {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 10px -4px rgba(27, 24, 21, .45);
  /* Ruhelage: unter „Texte" (erste Position), da aktive Seite */
  transform: translateX(0);
  transition: transform .38s var(--ease-out);
}
.switch-opt {
  position: relative;
  z-index: 1;
  min-width: 78px;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  color: var(--text-soft);
  transition: color .3s var(--ease-out);
}
.switch-opt[aria-current="page"] { color: var(--ink); }

@media (max-width: 480px) {
  .switch-opt { min-width: 62px; padding-inline: .6rem; font-size: .78rem; }
}
@media (max-width: 400px) {
  .switch-opt { min-width: 52px; padding-inline: .45rem; font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  .switch-knob { transition: none; }
}

/* Umschalter Texte/Kunst: der Knopf wandert nur, wenn der Zeiger
   wirklich auf „Kunst" liegt – nicht über der restlichen Fläche. */
@media (hover: hover) and (pointer: fine) {
  .switch:has(a.switch-opt:hover) .switch-knob { transform: translateX(100%); }
  .switch:has(a.switch-opt:hover) .switch-opt[aria-current="page"] { color: var(--text-soft); }
  a.switch-opt:hover { color: var(--ink); }
}

.header-cta { justify-self: end; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 16vh, 10rem) clamp(5rem, 12vh, 8rem);
  min-height: calc(92dvh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-ornament {
  position: absolute;
  top: -0.18em;
  right: 3vw;
  font-family: var(--font-serif);
  font-size: clamp(18rem, 30vw, 28rem);
  line-height: 1;
  color: var(--ink);
  opacity: .055;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  margin-top: 1.5rem;
  max-width: 15ch;
  font-size: clamp(2.85rem, 7vw, 5.75rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.018em;
}
.hero-title-accent {
  display: block;
  margin-top: .08em;
  font-style: italic;
  font-weight: 480;
  color: var(--accent);
}

.hero-sub {
  margin-top: 2rem;
  max-width: 56ch;
  font-size: 1.125rem;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 2.75rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--text-soft);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-soft);
  white-space: nowrap;
}
.marquee-track .marquee-sep { color: var(--accent); font-style: normal; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Statement ---------- */
.statement {
  padding-block: var(--sp-section);
  text-align: center;
}
.statement-text {
  margin-inline: auto;
  max-width: 26ch;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  font-weight: 480;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
.statement-text em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-section); }
.section-tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { margin-top: 1rem; }

.section-foot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-soft);
}

/* ---------- Leistungen (Cards) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  transition: transform .25s var(--ease-out),
              box-shadow .25s var(--ease-out),
              border-color .25s var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  border-color: #D9C9B8;
  box-shadow: 0 14px 36px rgba(27, 24, 21, .07);
}

.card-glyph {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 480;
  line-height: 1;
  color: var(--accent);
}
.card h3 { margin-top: 1.25rem; }
.card p { margin-top: .75rem; color: var(--text-soft); }

/* ---------- Über mich ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(160, 62, 28, .1), transparent 55%),
    linear-gradient(160deg, #F2EBDD 0%, #E1D2BC 100%);
  overflow: hidden;
}

.portrait-frame picture {
  position: absolute;
  inset: 3% 3% 0 3%;
  display: block;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  /* Gleicht die kühleren Blond-/Weißtöne des Fotos an die warme
     Papier-/Rost-Palette der Seite an. */
  filter: saturate(1.1) sepia(.16) contrast(1.05) brightness(.99) hue-rotate(-3deg);
}

.about-body p + p { margin-top: 1.25rem; }

.cred-list {
  margin-top: 2.5rem;
  list-style: none;
}
.cred-list li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding-block: .95rem;
  border-top: 1px solid var(--line);
  font-size: .98rem;
  color: var(--text);
}
.cred-list li:last-child { border-bottom: 1px solid var(--line); }
.cred-marker {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transform: translateY(.2rem);
}
.cred-list cite { font-style: italic; }

/* ---------- Veröffentlichung ---------- */
.publication-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}

.publication-body p { color: var(--text-soft); }

.publication-body .publication-title {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}
.publication-title cite { font-style: italic; }
.publication-imprint {
  display: inline-block;
  margin-top: .3rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--text-soft);
}

.publication-body .link-arrow { margin-top: 2rem; }

.book-cover-frame {
  aspect-ratio: 375 / 600;
  max-width: 260px;
  margin-inline: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(27, 24, 21, .16), 0 2px 8px rgba(27, 24, 21, .1);
}
.book-cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Ablauf (Steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  list-style: none;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.8rem;
  font-weight: 440;
  line-height: 1;
  color: var(--accent);
}
.step h3 { margin-top: 1rem; }
.step p { margin-top: .75rem; color: var(--text-soft); }

/* ---------- Zitat ---------- */
.quote-section { padding-block: clamp(4rem, 9vw, 7rem); }
.pull-quote {
  text-align: center;
  margin-inline: auto;
  max-width: 24ch;
}
.pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 460;
  line-height: 1.25;
  color: var(--ink);
  max-width: none;
  text-wrap: balance;
}
.pull-quote footer {
  margin-top: 1.75rem;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- FAQ ---------- */
.faq-container { max-width: 800px; }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 540;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease-out);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }

.faq-icon {
  flex: 0 0 auto;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform .25s var(--ease-out);
}
details[open] .faq-icon { transform: rotate(45deg); }

.faq-answer { padding-bottom: 1.6rem; }
.faq-answer p { color: var(--text); max-width: 62ch; }

/* ---------- Kontakt / CTA (invertiert) ---------- */
.cta-section {
  background: var(--ink);
  color: rgba(250, 247, 242, .82);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-section .eyebrow { color: var(--accent-soft); }

.cta-title {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--paper);
}
.cta-sub {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: 1.1rem;
}
.cta-actions { margin-top: 2.75rem; }

.cta-section .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.cta-section .btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.cta-alt { margin-top: 1.75rem; font-size: .95rem; }
.cta-section .link-plain { color: var(--paper); }
.cta-section .link-plain:hover { color: var(--accent-soft); }

.cta-section :focus-visible { outline-color: var(--accent-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 242, .6);
  border-top: 1px solid rgba(250, 247, 242, .14);
  padding-block: 3.5rem 2.5rem;
  font-size: .92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-brand .wordmark { color: var(--paper); font-size: 1.15rem; }
.footer-brand p { margin-top: .6rem; }

.footer-nav { display: flex; gap: clamp(2rem, 6vw, 4.5rem); }
.footer-nav ul { list-style: none; }
.footer-nav li + li { margin-top: .35rem; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: rgba(250, 247, 242, .75);
  text-decoration: none;
  transition: color .2s var(--ease-out);
}
.footer-nav a:hover { color: var(--paper); }

.site-footer :focus-visible { outline-color: var(--accent-soft); }

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 242, .14);
}

/* ---------- Scroll-Reveal (nur mit JS aktiv) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-media { max-width: 400px; }

  .publication-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .publication-media { order: -1; max-width: 220px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .hero-ornament { display: none; }
  .hero { min-height: 100dvh; padding-top: 5.25rem; }
  .hero-sub { display: none; }
  .hero-actions { flex-direction: column; gap: 1.25rem; margin-top: 7.25rem; }
  .hero-note { margin-top: 9rem; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 1.05rem; }
  .header-cta { display: none; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track { animation: none; }
  .btn, .link-arrow span, .card, .faq-icon { transition: none; }
  .card:hover { transform: none; }
}
