/* ==============================================
   Google Fonts Import – Charmonman statt Great Vibes
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Charmonman&display=swap');

/* ==============================================
   CSS Variablen / Design System
   ============================================== */
:root {
  --bg-dark:        #536467;
  --bg-dark-trans:  rgba(83, 100, 103, 0.68);
  --text-primary:   #ffffff;
  --text-soft:      #e0f0ee;
  --text-muted:     #c0d0ce;
  --accent:         #79D4C2;
  --accent-hover:   #9de0d6;
  --accent-light:   #c2f0e8;
  --border:         #6a7c7f;
  --shadow:         rgba(0, 0, 0, 0.45);
  --shadow-strong:  rgba(0, 0, 0, 0.65);
  
  --font-body:      "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --transition:     all 0.4s ease;
  --transition-slow: all 0.6s ease;
}

/* ==============================================
   Grundlegende Stile + Scroll-Schutz
   ============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 1.125rem;
  overflow-x: hidden;
  min-width: 100%;
}

/* ==============================================
   Shrinking Header
   ============================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-slow);
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
}

.header-inner {
  width: 100%;
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  transition: min-height 0.5s ease;
}

.logo {
  flex-shrink: 0;
  transition: all 0.5s ease;
  transform-origin: top left;
}

.logo-img {
  display: block;
  height: 80px;
  width: auto;
  transition: var(--transition);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, font-size 0.5s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent-light);
  text-decoration: underline;
}

.site-header.shrunk {
  background-color: var(--bg-dark-trans);
  box-shadow: 0 4px 20px var(--shadow);
  backdrop-filter: blur(8px);
}

.site-header.shrunk .header-inner {
  min-height: 68px;
  padding: 0 24px;
}

/* Logo fadet aus und gibt Platz frei – kein Layout-Sprung */
.site-header.shrunk .logo {
  transform: translate(-6px, -12px) scale(0.7);
  opacity: 0;
}

/* Hero-Abstand anpassen */
.hero {
  margin-top: 110px;
  width: 100%;
  overflow: hidden;
  transition: margin-top 0.6s ease-out;
}

.site-header.shrunk + .hero {
  margin-top: 52px;
}

/* Inhalt – Gesamt-Container */
.content {
  max-width: 1280px;
  margin: 48px auto;
  padding: 0 5vw;
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
  text-align: center;
  margin: 3em 0 0.8em;
  line-height: 1.15;
}

.lead {
  font-size: 1.28rem;
  text-align: center;
  margin: 0.6em auto 1.5em;
  max-width: 780px;
  color: var(--text-soft);
  font-style: italic;
}

/* ==============================================
   Section-Styling
   ============================================== */
.section {
  padding: 2rem 0 2rem; /*obere und untere Abstände Section */
  scroll-margin-top: 100px;
}

.section-willkommen {
  padding-top: 2rem;
}

.section-willkommen h1 {
  font-family: 'Charmonman', cursive;
  font-size: 3.2rem;               /* ← angepasst: jetzt gleich groß wie .script-heading */
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 1px;
  margin: 0 0 1.0rem 0;
  text-align: center;
  color: var(--text-primary);
  text-shadow: none;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.0rem;
}

.section-content {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.section-content p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  margin-bottom: 0.6rem; /*obere und untere Abstände Section */
}

/* Schreibschrift für die Abschnitts-Überschriften */
.script-heading {
  font-family: 'Charmonman', cursive;
  font-weight: 400;
  font-size: 3.2rem;
  letter-spacing: 1px;
  text-align: center;
  margin: 0.4em 0 1.2em;
  line-height: 1.25;
  color: var(--text-primary);
}

/* Tabellen-Überschriften (Lesungen & Messetermine) – font-weight 400 */
.lesungen-header {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--text-primary);
  text-align: left;
  margin: 0 0 0.9rem 0;
  padding-left: 1rem;
  line-height: 1.3;
}

/* Anmeldung-Text – exakt gleicher linker Einzug wie Überschriften */
.anmeldung-text {
  margin: 0;
  padding-left: 1rem;          /* gleicher linker Abstand wie lesungen-header */
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Responsive Anpassungen für Tabellen-Überschriften und Anmeldung */
@media (max-width: 768px) {
  .lesungen-header,
  .anmeldung-text {
    font-size: 1.35rem;
    padding-left: 0.9rem;
  }
}

@media (max-width: 560px) {
  .lesungen-header,
  .anmeldung-text {
    font-size: 1.25rem;
    padding-left: 0.8rem;
  }
}

/* ==============================================
   Tabellen-Wrapper – Lesungen schmal, Messetermine breiter
   ============================================== */
.lesungen-tabelle-wrapper {
  margin: 2.5rem auto;
  max-width: 680px;
  overflow-x: auto;
}

.messetermine-wrapper {
  max-width: 960px;
}

/* ==============================================
   Tabellen-Design (gemeinsam)
   ============================================== */
.lesungen-tabelle {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.8rem 0.8rem;
  font-size: 1.05rem;
}

.lesungen-tabelle th,
.lesungen-tabelle td {
  padding: 1rem 1.2rem;
  text-align: left;
  background-color: rgba(30, 42, 53, 0.4);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.25s ease;
}

.lesungen-tabelle th {
  background-color: rgba(83, 100, 103, 0.55);
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.lesungen-tabelle td {
  border-top: 1px solid var(--border);
}

/* Hover-Effekt */
.lesungen-tabelle tbody tr:hover td {
  background-color: rgba(30, 42, 53, 0.55);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(121, 212, 194, 0.18);
}

.lesungen-tabelle thead th:hover {
  background-color: rgba(83, 100, 103, 0.55);
  box-shadow: none;
}

/* ==============================================
   Buttons – einheitlich
   ============================================== */
.button {
  font-family: var(--font-body);
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent);
  color: #1e2f2b;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.25s ease;
  text-align: center;
  box-shadow: none;
  min-width: 280px;
  margin: 1rem 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
}

.button:hover,
.button:focus {
  background-color: var(--accent-hover);
  color: #143029;
  box-shadow: none;
  outline: none;
}

/* Links ausgerichtete Buttons (für Leseproben) */
.button-left {
  display: block;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  min-width: 280px;
  width: 280px;
}

/* ==============================================
   Spezielles Styling für den Anmeldung-Link
   ============================================== */
.main-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav-link:hover,
.main-nav-link:focus {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ==============================================
   Alle Parallax-Bereiche
   ============================================== */
.parallax-fixed {
  position: relative;
  height: 520px;
  width: 100vw;
  margin: 25px calc(50% - 50vw) 40px calc(50% - 50vw); /*obere und untere Abstände Section */
  overflow: hidden;
}

.parallax-fixed-1 {
  background: linear-gradient(to bottom, rgba(83,100,103,0.35), rgba(83,100,103,0.75)),
              url('bild_2.png') center / cover no-repeat fixed;
  background-attachment: fixed;
}

.parallax-fixed:not(.parallax-fixed-1):not(.parallax-fixed-3):not(.parallax-fixed-4) {
  background: linear-gradient(to bottom, rgba(83,100,103,0.35), rgba(83,100,103,0.75)),
              url('bild_3.jpg') center / cover no-repeat fixed;
  background-attachment: fixed;
}

.parallax-fixed-3 {
  background: linear-gradient(to bottom, rgba(83,100,103,0.35), rgba(83,100,103,0.75)),
              url('bild_4.jpg') center / cover no-repeat fixed;
  background-attachment: fixed;
}

.parallax-fixed-4 {
  background: linear-gradient(to bottom, rgba(83,100,103,0.35), rgba(83,100,103,0.75)),
              url('bild_5.jpg') center / cover no-repeat fixed;
  background-attachment: fixed;
}

.parallax-fixed-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5vw;
}

.parallax-fixed-text {
  font-size: 1.85rem;
  line-height: 1.45;
  max-width: 780px;
  color: #f0fffb;
  text-shadow: 0 3px 12px rgba(0,0,0,0.75);
  font-weight: 300;
  font-style: italic;
}

/* ==============================================
   Kontaktformular
   ============================================== */
.section-schreib-uns {
  background: none;
  border-top: none;
  border-bottom: none;
}

.kontakt-form {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.form-row {
  margin-bottom: 1.8rem;
  text-align: left;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: rgba(30, 42, 53, 0.4);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.125rem;
  transition: var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(30, 42, 53, 0.55);
  box-shadow: 0 0 0 3px rgba(121, 212, 194, 0.18);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

/* ==============================================
   Footer
   ============================================== */
footer {
  text-align: center;
  padding: 50px 20px 40px;
  color: var(--text-primary);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover,
footer a:focus {
  color: var(--accent-light);
  text-decoration: underline;
}

.footer-sep {
  color: var(--text-muted);
  pointer-events: none;
}

/* ==============================================
   Responsive
   ============================================== */
@media (max-width: 1400px) {
  .content { max-width: 1180px; padding: 0 5vw; }
  .section-content { max-width: 1000px; }
}

@media (max-width: 1280px) {
  .content { max-width: 1100px; padding: 0 40px; }
  .section-content { max-width: 960px; }
}

@media (max-width: 1024px) {
  .content { max-width: 960px; padding: 0 32px; }
  .parallax-fixed,
  .parallax-fixed-1,
  .parallax-fixed-3,
  .parallax-fixed-4 {
    height: 460px;
    margin: 80px calc(50% - 50vw) 80px calc(50% - 50vw);
  }
  .parallax-fixed-text { font-size: 1.65rem; }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .logo { margin: 12px 0; }
  .main-nav {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 12px;
  }
  .content, .section-content { max-width: 100%; padding: 0 20px; }
  body { font-size: 1.05rem; }
  h1 { font-size: 2.6rem; margin: 2.5em 0 0.8em; }
  .parallax-fixed,
  .parallax-fixed-1,
  .parallax-fixed-3,
  .parallax-fixed-4 {
    height: 400px;
    margin: 60px calc(50% - 50vw) 60px calc(50% - 50vw);
    background-attachment: scroll;
  }
  .parallax-fixed-text {
    font-size: 1.45rem;
    padding: 0 20px;
  }
  .section { padding: 4rem 0 6rem; }
  .section-willkommen { padding-top: 1.5rem; }
  .kontakt-form {
    padding: 0 0.5rem;
  }
  .form-row {
    margin-bottom: 1.6rem;
  }
}

@media (max-width: 560px) {
  .main-nav { gap: 18px; font-size: 1.05rem; }
  h1 { font-size: 2.3rem; }
  .parallax-fixed,
  .parallax-fixed-1,
  .parallax-fixed-3,
  .parallax-fixed-4 { height: 360px; }
  .parallax-fixed-text { font-size: 1.3rem; }
}

/* Scroll-Margin für Anker-Links */
#willkommen    { scroll-margin-top: 100px; }
#mein_buch     { scroll-margin-top: 100px; }
#begegnungen   { scroll-margin-top: 100px; }
#schreib_uns   { scroll-margin-top: 120px; }
#bestellung    { scroll-margin-top: 100px; }