/* ============================================================
   ZeitKultur Esslingen — Corporate Design Stylesheet
   ============================================================ */

/* Lokal gehostete Schrift — kein externer Aufruf mehr bei Google */
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond-Regular.woff') format('woff'),
       url('assets/fonts/EBGaramond-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond-Italic.woff') format('woff'),
       url('assets/fonts/EBGaramond-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond-Medium.woff') format('woff'),
       url('assets/fonts/EBGaramond-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond-MediumItalic.woff') format('woff'),
       url('assets/fonts/EBGaramond-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond-Bold.woff') format('woff'),
       url('assets/fonts/EBGaramond-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond-BoldItalic.woff') format('woff'),
       url('assets/fonts/EBGaramond-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Basisfarben */
  --schwarz: #000000;
  --weiss: #ffffff;

  --blau:      #A4C8E5;
  --pfirsich:  #EDC9B6;
  --olive:     #C5C891;

  /* Helle Tints (großzügige Flächen) */
  --blau-hell:      #D6E6F3;
  --pfirsich-hell:  #F7E7DE;
  --olive-hell:     #E5E6CD;

  /* Dunkle Schatten (Linien, Hover, Fokus) */
  --blau-dunkel:      #7690A5;
  --pfirsich-dunkel:  #AB9183;
  --olive-dunkel:     #8E9068;

  /* Zusätzliche, kräftigere Tief-Töne für Duotone-Bildflächen */
  --blau-tief:      #24466B;
  --oliv-tief:      #4B5A2A;
  --pfirsich-tief:  #9C5433;
  --grau-tief:      #4A4944;

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --maxw: 780px;
  --spacing-unit: 1.6rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-style: normal;
  color: var(--schwarz);
  background: var(--weiss);
  line-height: 1.7;
  font-size: 21px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em 0;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em 0; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus-visible {
  opacity: 0.7;
}

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

.utility {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(6px);
  mix-blend-mode: normal;
}

.wortmarke {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  border: none;
  padding: 0;
}

.wortmarke:hover { opacity: 1; }

.hauptnav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.hauptnav a {
  border: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.hauptnav a:hover {
  opacity: 1;
  border-bottom-color: var(--schwarz);
}

/* ---------- Sektionen ---------- */

section {
  padding: clamp(6rem, 14vh, 10rem) clamp(1.5rem, 6vw, 4rem);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.eyebrow {
  display: block;
  margin-bottom: 1.4rem;
  opacity: 0.65;
}

.trennlinie {
  width: 48px;
  height: 1px;
  background: currentColor;
  border: none;
  margin: 1.8rem 0 2.2rem 0;
  opacity: 0.5;
}

/* Hero — kräftiges Blau mit Duotone-Buchhandlung */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  background: var(--blau-tief);
  position: relative;
  overflow: hidden;
  color: var(--weiss);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/esslingen-buchhandlung.png");
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.05) blur(3px);
  mix-blend-mode: luminosity;
  opacity: 0.45;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,25,42,0.25) 0%, rgba(10,25,42,0.6) 60%, rgba(10,25,42,0.8) 100%);
}

.hero .section-inner {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  opacity: 0.8;
}

.hero .claim {
  font-size: 1.25rem;
  max-width: 42ch;
  opacity: 0.92;
}

/* Über — Grau-Tief mit Duotone-Theater */
.section--ueber {
  background: var(--grau-tief);
  color: var(--weiss);
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.section--ueber::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/esslingen-theater.png");
  background-size: cover;
  background-position: center 0%;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.05) blur(3px);
  mix-blend-mode: luminosity;
  opacity: 0.45;
  transform: scaleX(-1);
}

.section--ueber::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20,20,18,0.25) 0%, rgba(20,20,18,0.6) 60%, rgba(20,20,18,0.8) 100%);
}

.section--ueber .section-inner {
  position: relative;
  z-index: 2;
}

/* Kontakt / Formulare — Terrakotta-Duotone mit aktueller Zeichnung */
.section--kontakt {
  background: var(--pfirsich-tief);
  color: var(--weiss);
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.section--kontakt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/esslingen-linienzeichnung.png");
  background-size: cover;
  background-position: center 0%;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.05) blur(3px);
  mix-blend-mode: luminosity;
  opacity: 0.45;
}

.section--kontakt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(60,28,14,0.35) 0%, rgba(60,28,14,0.7) 100%);
}

.section--kontakt .section-inner {
  position: relative;
  z-index: 2;
}

.formular-platzhalter {
  margin-top: 2rem;
  padding: 1.6rem 1.8rem;
  border: 1px dashed rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.2);
}

.formular-platzhalter p {
  margin: 0;
  font-style: italic;
}

/* ---------- Cookie-Consent-Banner ---------- */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--schwarz);
  color: var(--weiss);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
}

.cookie-consent__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.6rem clamp(1.5rem, 5vw, 3rem) 1.8rem;
}

.cookie-consent__text {
  margin: 0 0 1.2rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 70ch;
}

.cookie-consent__text a {
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.cookie-consent__details {
  margin: 0 0 1.4rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cookie-consent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 360px;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.cookie-consent__row em {
  font-style: normal;
  opacity: 0.55;
  font-size: 0.78rem;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
}

.cookie-consent__link {
  background: none;
  border: none;
  color: var(--weiss);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  margin-right: auto;
  opacity: 0.75;
}

.cookie-consent__link:hover {
  opacity: 1;
}

.cookie-consent__btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  background: var(--weiss);
  color: var(--schwarz);
  border: 1px solid var(--weiss);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cookie-consent__btn:hover {
  opacity: 0.85;
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: var(--weiss);
  border: 1px solid rgba(255,255,255,0.5);
}

@media (max-width: 640px) {
  .cookie-consent__actions { flex-direction: column; align-items: stretch; }
  .cookie-consent__link { margin-right: 0; text-align: left; }
  .cookie-consent__btn { width: 100%; }
}

.zitat-rotation {
  margin: 2.8rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(0,0,0,0.18);
}

/* Variante für dunkle Flächen */
.hero .zitat-rotation,
.section--ueber .zitat-rotation,
.section--kontakt .zitat-rotation {
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.section--ueber .zitat-rotation {
  margin-top: 0;
}

.zitat-text {
  margin: 0;
  transition: opacity 0.6s ease;
}

.zitat-text p {
  margin: 0;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
}

.zitat-quelle {
  display: block;
  margin-top: 1rem;
  opacity: 0.65;
  font-style: normal;
}

.zitat-rotation.is-fading .zitat-text {
  opacity: 0;
}

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

/* ---------- Bildblock ---------- */

.bild-block {
  margin: 2.6rem 0 0.5rem 0;
}

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

.bild-block figcaption {
  margin-top: 0.7rem;
  opacity: 0.55;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---------- Fusszeile ---------- */

.site-footer {
  background: var(--schwarz);
  color: var(--weiss);
  padding: 3rem clamp(1.5rem, 6vw, 4rem) 2.2rem;
}

.site-footer .footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.site-footer .wortmarke {
  color: var(--weiss);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.footer-links a {
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.footer-links a:hover {
  border-bottom-color: var(--olive);
  opacity: 1;
  color: var(--olive);
}

.footer-meta {
  opacity: 0.55;
}

/* ---------- Unterseiten mit Terrakotta-Fläche (z. B. Veranstaltungen, Presse) ---------- */

.section--terrakotta {
  background: var(--pfirsich-tief);
  color: var(--weiss);
}

.section--terrakotta .eyebrow {
  opacity: 0.8;
}

.section--terrakotta .platzhalter-hinweis {
  border-left-color: rgba(255,255,255,0.5);
  opacity: 0.75;
}

.link-arrow.ist-deaktiviert {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */

.rechtsseite {
  padding-top: clamp(9rem, 16vh, 11rem);
  padding-bottom: 6rem;
  min-height: 100vh;
}

.rechtsseite .section-inner { max-width: 640px; }

.zurueck {
  display: inline-block;
  margin-top: 3rem;
}

.platzhalter-hinweis {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.6;
  border-left: 2px solid var(--olive-dunkel);
  padding-left: 1rem;
  margin-bottom: 2.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 18.5px; }
  .site-header { padding: 1.2rem 1.4rem; }
  .hauptnav { gap: 1rem; }
  section { padding-left: 1.4rem; padding-right: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .hauptnav a { transition: none; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border-bottom: none;
  transition: gap 0.2s ease;
}

.link-arrow span {
  transition: transform 0.2s ease;
}

.link-arrow:hover {
  gap: 0.6rem;
}

.link-arrow:hover span {
  transform: translateX(2px);
}
