/* =========================================================
   EmpaThEXT — Redesign 2026
   Farbpalette bewusst unverändert aus V2.0 übernommen.
   Neu: Typografie, Raster, Komponenten, redaktionelles Layout.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&family=Caveat:wght@500;600&display=swap');

:root {
  /* --- Farben: 1:1 aus dem bestehenden Auftritt übernommen --- */
  --bg: #ecd7cc;
  --bg-soft: #f4e5dd;
  --card: rgba(255, 255, 255, 0.55);
  --text: #201c1b;
  --muted: #6a5f5c;
  --line: #9ea8ad;
  --accent: #7f9cab;
  --accent-strong: #5f8193;
  --link: #c73333;
  --peach: #de946c;
  --shadow: 0 10px 30px rgba(76, 58, 50, 0.08);

  /* --- Typografie --- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-script: "Caveat", "Segoe Script", cursive;

  /* --- Raster --- */
  --edge: 6px;
  --edge-lg: 10px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1180px;
}

* { box-sizing: border-box; }

p, li, .quote-text, .hero-lede {
  text-wrap: pretty;
  text-align: center;
  
}

h1, h2, h3, .display, .hero-copy h1, .section-head h2 {
  text-wrap: balance;
  text-align: center;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* =========================================================
   MASTHEAD / NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(32, 28, 27, 0.12);
}

.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}

.wordmark span { color: var(--accent-strong); font-style: italic; }

.tagline {
  font-size: 1.0rem;
  color: var(--muted);
  font-style: italic;
  margin-left: 4px;
}

/* --- Mobile Navigations-Button (Hamburger) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(32, 28, 27, 0.2);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  border-top: 1px solid rgba(32, 28, 27, 0.12);
  margin-top: 14px;
}

.nav ul {
  max-width: var(--max-nav, var(--max));
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 2px;
}

.nav > ul > li { display: flex; align-items: stretch; }

.nav a,
.nav-dropdown summary {
  display: block;
  padding: 13px 9px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.nav a:hover,
.nav a.active,
.nav-dropdown summary:hover,
.nav-dropdown details[open] > summary {
  color: var(--text);
  border-bottom-color: var(--link);
}

.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 500;
  min-width: 230px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-soft);
  border: 1px solid rgba(32, 28, 27, 0.14);
  box-shadow: var(--shadow);
}

.dropdown-menu li { margin: 0; }

.dropdown-menu a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-bottom: none;
}

.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.5); }

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown details:not([open]) .dropdown-menu { display: none; }
  .nav-dropdown:hover .dropdown-menu { display: block; }
}

@media (max-width: 1180px) {
  .nav a, .nav-dropdown summary { font-size: 0.66rem; padding: 13px 5px; letter-spacing: 0.01em; }
}

@media (max-width: 860px) {
  .nav ul { padding: 0 16px; gap: 0; }
  .nav a, .nav-dropdown summary { font-size: 0.74rem; padding: 11px 8px; }
  .masthead { padding: 16px 16px 0; }
}

@media (max-width: 620px) {
  .nav > ul { flex-direction: column; }
  .nav > ul > li { border-bottom: 1px solid rgba(32,28,27,0.08); }
  .nav a, .nav-dropdown summary { padding: 12px 4px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; border-left: 2px solid var(--line); margin-left: 8px; }

  /* Navigation ist standardmäßig eingeklappt und öffnet sich per Button */
  .masthead {
    position: relative;
    padding-right: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 16px;
  }

  .nav {
    display: none;
    border-top: none;
    margin-top: 0;
  }

  .site-header.nav-open .nav {
    display: block;
    border-top: 1px solid rgba(32, 28, 27, 0.12);
    margin-top: 14px;
  }
}

/* =========================================================
   HAUPTBEREICH
   ========================================================= */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
  flex: 1;
  width: 100%;
}

/* --- Eyebrow / Rubrik-Label --- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  
}

.center-text .eyebrow { display: block; }

/* =========================================================
   HERO (Startseite + Unterseiten)
   ========================================================= */

.hero {
  padding: 56px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.hero-grid.narrow-frame { grid-template-columns: minmax(170px, 230px) 1fr; align-items: center; }

/* Bilderrahmen im Postkarten-Stil: das wiederkehrende Signatur-Element */
.frame {
  position: relative;
  transform: rotate(-2deg);
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border: 10px solid var(--bg-soft);
  outline: 1px solid rgba(32, 28, 27, 0.15);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.frame::after {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  top: -16px;
  right: -16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
  z-index: -1;
}

.frame-caption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--accent-strong);
  transform: rotate(-2deg);
}

.hero-copy h1.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.0rem, 2.6vw, 2.5rem); 
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--text);
}

.hero-copy h1.display em {
  font-style: italic;
  color: var(--text);
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--muted);
  max-width: 82ch;
  margin: 0 0 22px;
  line-height: 1.6;
}

/* Hinweis-Badge ersetzt das gedrehte Eck-Banner */
.notice {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--link);
  color: #fff;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 4px solid var(--text);
  margin: 0 0 28px;
}

.notice strong { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }

/* =========================================================
   ZITAT-BLOCK — das durchgängige Signatur-Motiv
   ========================================================= */

.quote-block {
  position: relative;
  max-width: 760px;
  margin: 48px auto;
  padding: 6px 0 6px 46px;
  text-align: left;
}

.quote-block::before {
  content: "„";
  position: absolute;
  left: -6px;
  top: -34px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  font-weight: 600;
}

.quote-block p.quote-text {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  margin: 0 0 10px;
  /*color: var(--text);*/
  color: var(--accent-strong);
}

.quote-block .quote-author {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.quote-block.center { text-align: center; padding-left: 0; }
.quote-block.center::before { left: 50%; transform: translateX(-50%); top: -40px; }

/* =========================================================
   INHALTS-KARTEN
   ========================================================= */

.content-col {
  max-width: 780px;
  margin: 0 auto;
}

.content-col.wide { max-width: 980px; }

.text-card {
  position: relative;
  background: var(--card);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 30px clamp(22px, 4vw, 42px);
  margin: 26px 0;
  text-align: left;
}

.text-card h1,
.text-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 14px;
}

.text-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.text-card p, .text-card li { font-size: 1.04rem; line-height: 1.72; margin: 0 0 10px; }
.text-card p:last-child { margin-bottom: 0; }
.text-card ul { margin: 0; padding-left: 20px; }

.center-text { text-align: center; }
.center-text.text-card { border-top: none; border-bottom: 3px solid var(--accent); }

/* Buchauszüge (Leseproben): linksbündiger Fließtext statt zentriert */
.leseprobe-text,
.leseprobe-text p {
  text-align: left;
}

.text-card.final-word {
  background: var(--accent-strong);
  color: #fff;
  border: none;
}
.text-card.final-word p { color: #fff; }

/* --- Section header --- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 10px;
}
.section-head p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; margin: 0; }
.section-head .wordmark {  
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.3rem;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}

/* --- Grid-Karten: Leistungen, Preise, Bücher, Referenzen --- */
.card-grid {
  display: grid;
  gap: 18px;
  margin: 34px 0;
}

@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-card {
  background: var(--card);
  border-top: 3px solid var(--accent-strong);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow);
}

.grid-card .eyebrow { margin-bottom: 8px; }

.grid-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 10px 0 10px;
}

.grid-card p { font-size: 1rem; line-height: 1.65; margin: 0 0 20px; color: var(--text); }
.grid-card p:last-child { margin-bottom: 0; }

.price-figure {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--link);
  display: block;
  margin-top: 10px;
  text-align: center;
}

/* --- Buchcover innerhalb der Bücher-Karten (Autorin) --- */
.grid-card.book-card {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(18px, 3.5vw, 30px);
}

.grid-card.book-card .book-info { flex: 1 1 auto; min-width: 0; order: 2; }

.book-cover {
  position: relative;
  flex: 0 0 auto;
  width: clamp(88px, 14vw, 118px);
  margin: 6px 0 0;
}

.book-cover.cover-left { order: 1; }
.book-cover.cover-right { order: 3; align-self: flex-end; margin-top: 0; }

.book-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 7px solid var(--bg-soft);
  outline: 1px solid rgba(32, 28, 27, 0.15);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.book-cover::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
  z-index: -1;
}

.book-cover.tilt-right { transform: rotate(3deg); }
.book-cover.tilt-left { transform: rotate(-3deg); }

@media (max-width: 640px) {
  .grid-card.book-card {
    flex-wrap: wrap;
    justify-content: center;
  }
  .grid-card.book-card .book-info { order: 3; width: 100%; flex-basis: 100%; }
  .book-cover.cover-left { order: 1; }
  .book-cover.cover-right { order: 2; margin-bottom: 20px; }
  .book-cover { width: 118px; margin-top: 0; }
}


/* --- Leseprobe: Bildergalerie neben dem Lesetext --- */
.leseprobe-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 44px);
}

.leseprobe-layout .text-card { flex: 1 1 auto; min-width: 0; }

.leseprobe-gallery {
  flex: 0 0 auto;
  width: clamp(150px, 20vw, 200px);
  display: flex;
  flex-direction: column;
  gap: 42px;
  margin: 46px 0 26px;
}

.leseprobe-gallery .book-cover { width: 100%; margin: 0; }

@media (max-width: 760px) {
  .leseprobe-layout { flex-direction: column; }
  .leseprobe-gallery {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 26px;
    margin: 0 0 30px;
  }
  .leseprobe-gallery .book-cover { width: 130px; }
}

/* --- Lightbox: vergrößerte Bildansicht --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 6vw, 60px);
  background: rgba(32, 28, 27, 0.86);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active { opacity: 1; visibility: visible; }

body.lightbox-open { overflow: hidden; }

.lightbox-overlay .lightbox-image {
  max-width: min(88vw, 620px);
  max-height: 86vh;
  width: auto;
  border: 10px solid #fff;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-close:hover { background: var(--bg-soft); }

/* =========================================================
   CTA
   ========================================================= */

.cta-row {
  text-align: center;
  margin: 46px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cta-line { font-size: 1.15rem; }
.cta-line a,
.inline-link {
  color: var(--link);
  font-weight: 700;
  border-bottom: 2px solid currentColor;
}
.cta-line a:hover, .inline-link:hover { color: var(--accent-strong); }

.button {
  display: inline-block;
  background: var(--link);
  color: #fff !important;
  font-weight: 600;
  padding: 14px 30px;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.button:hover { background: var(--accent-strong); }

/* =========================================================
   KONTAKTFORMULAR
   ========================================================= */

.contact-form {
  max-width: 760px;
  margin: 34px auto 0;
  background: var(--card);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  text-align: left;
}

.form-grid { display: grid; gap: 18px; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(32, 28, 27, 0.22);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
}

input:focus, textarea:focus { border-color: var(--accent-strong); }

textarea { min-height: 160px; resize: vertical; }

button[type="submit"] {
  margin-top: 6px;
  padding: 14px 26px;
  border: none;
  background: var(--accent-strong);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--link); }

.rechtliche-hinweise p, .rechtliche-hinweise li { font-size: 0.86rem; line-height: 1.6; }
.rechtliche-hinweise h3 { font-size: 1rem; margin-top: 22px; }
.rechtliche-hinweise h3:first-child { margin-top: 0; }

.contact-lines p { font-size: 1.05rem; line-height: 1.75; margin: 0 0 6px; }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--accent-strong);
  color: var(--bg-soft);
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px var(--gutter) 30px;
  display: grid;
  gap: 30px;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand .wordmark { color: #fff; font-size: 1.3rem; }
.footer-brand .wordmark span { color: var(--bg-soft); }
.footer-brand p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.6; margin-top: 10px; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(255,255,255,0.92); font-size: 0.94rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding: 18px var(--gutter) 26px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--bg-soft);
  color: var(--accent-strong);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Footer-Texte: links ausgerichtet statt zentriert */
.site-footer p,
.site-footer li,
.site-footer h4 {
  text-align: left;
}

/* =========================================================
   RESPONSIVE HERO
   ========================================================= */

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .frame { max-width: 220px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .quote-block { padding-left: 0; text-align: center; }
  .quote-block::before { left: 50%; transform: translateX(-50%); }
}
