/* =========================================================
   Blog up Platt – Stylesheet
   Handgeschrieben, schlank, ohne Bootstrap.
   Farben & Schriften aus dem Original (Mobirise) übernommen,
   Typografie und Abstände behutsam aufgefrischt.
   ========================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  --teal:        #2299aa;
  --teal-dark:   #145862;
  --teal-light:  #40b0bf;
  --blue:        #47b5ed;
  --blue-dark:   #148cca;
  --yellow:      #ffe161;
  --orange:      #ff9966;
  --red:         #ff6666;
  --red-dark:    #ff0f0f;

  --ink:         #232323;
  --ink-soft:    #4a4a4a;
  --paper:       #ffffff;
  --paper-warm:  #faf9f6;

  --font-head: 'Alegreya', Georgia, 'Times New Roman', serif;
  --font-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;

  --maxw: 1140px;
  --nav-h: 5rem;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(20, 88, 98, 0.12);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body); /* Fließtext in Sans (Alegreya Sans) */
  font-size: 1.2rem;             /* wie Mobirise (.display-7) */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--nav-h);
}

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

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--teal-dark); /* alle Headlines in Gedicht-Überschriften-Farbe */
  margin: 0 0 .6em;
  font-weight: 700;
}

/* Schriftgrößen wie im Mobirise-Original (display-1/2/5) */
h1 { font-size: clamp(1.95rem, 6vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h4 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--warm { background: var(--paper-warm); }
.center { text-align: center; }

.lead {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.6rem); /* wie Mobirise (.display-5) */
  font-style: italic;
  color: var(--teal-dark);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: var(--shadow-soft);
  z-index: 1000;
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  height: 100%;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-right: auto;
}
.nav__brand img { height: 3rem; width: auto; }
.nav__brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  white-space: nowrap;
}
.nav__brand-name:hover { color: var(--teal); }

.nav__links {
  display: flex;
  align-items: center;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: .5rem .95rem;
  border: 2px solid var(--teal);
  border-radius: 999px;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Hamburger */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  height: 3px;
  width: 100%;
  margin: 4px 0;
  border-radius: 3px;
  background: var(--teal-dark);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
    transform: translateY(-130%);
    transition: transform .32s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 70vh, 640px);
  padding: 5rem 1.25rem;
  text-align: center;
  color: #fff;
  background-color: var(--teal-dark);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-family: var(--font-head);
  font-style: italic;
  margin: 0;
}

/* ---------- Inhalts-Sektionen ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose p:last-child { margin-bottom: 0; }

/* Wechselnde Bild/Text-Reihen */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.feature:last-child { margin-bottom: 0; }
.feature--flip .feature__media { order: 2; }
.feature__media figure { margin: 0; }
.feature__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature__media figcaption {
  margin-top: .6rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
}
.feature__text { text-align: center; }
.feature__text h2,
.feature__text h3 { color: var(--teal-dark); }
/* Gedicht: Überschrift + Vers bilden einen gemeinsamen Block (.poem),
   der in der Spalte zentriert ist, aber in sich linksbündig –
   Überschrift und Vers starten an derselben linken Kante. */
.feature__text .poem {
  display: inline-block;
  text-align: left;
  max-width: 100%;
}
.feature__text .poem h2 { text-align: left; }

/* Gedicht-/Versformatierung: Zeilenumbrüche bewahren.
   Der Versblock wird in der Spalte zentriert, der Text bleibt
   aber linksbündig (Zeilen starten an gemeinsamer linker Kante). */
.verse {
  display: inline-block;
  text-align: left;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 1.2rem;  /* wie Mobirise (.display-7) */
  line-height: 1.7;
}

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

/* ---------- Über mich: Zitat-Karte ---------- */
.quote-band {
  position: relative;
  background-color: var(--teal-dark);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
}
.quote-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-inline: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
}
.quote-card img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 5px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow);
}
.quote-card blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.5;
}
.quote-card .quote-name { font-weight: 700; font-size: 1.05rem; }
.quote-card .quote-role { opacity: .85; }

/* ---------- Interessen / Icon-Liste ---------- */
.interests {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 620px;
  margin-inline: auto;
}
.interest {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  text-align: left;
}
.interest__icon {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.4rem;
}
.interest h4 { margin: 0 0 .25rem; color: var(--teal-dark); }
.interest p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Veröffentlichungen ---------- */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.pub-card {
  background: var(--paper);
  border: 1px solid #e7e7e7;
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.pub-card h4 { color: var(--teal-dark); margin-bottom: .4rem; }
.pub-card p { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { color: var(--teal-dark); }
.legal p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer {
  background: var(--teal);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.25rem;
}
.footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--yellow); }
.footer__links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
}
.footer__copy { margin: 0; font-size: .9rem; opacity: .92; }

/* ---------- Scroll-to-top ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 900;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal-dark); }

/* ---------- Cookie-Hinweis ---------- */
.cookie {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100vw - 2rem));
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(20, 88, 98, 0.22);
  padding: .9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .9rem;
  z-index: 1200;
  font-size: .9rem;
  line-height: 1.45;
}
.cookie p { margin: 0; flex: 1 1 100%; }
.cookie a { color: var(--teal); text-decoration: underline; }
.cookie button {
  border: 0;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto; /* Button rechts unten im Toast */
}
.cookie button:hover { background: var(--teal-dark); }
.cookie[hidden] { display: none; }

/* ---------- Lazyload Fade ----------
   Nur bei aktivem JavaScript (Klasse .js) werden Bilder zunächst
   ausgeblendet und sanft eingeblendet. Ohne JS bleiben sie sichtbar. */
.js img.lazyload { opacity: 0; transition: opacity .5s ease; background: #eef3f4; }
.js img.lazyload.is-loaded { opacity: 1; }

/* ---------- Zugänglichkeit ---------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .quote-band { background-attachment: scroll; }
  * { transition: none !important; }
}

/* Parallax auf Touch-Geräten deaktivieren (Performance) */
@media (hover: none) {
  .hero, .quote-band { background-attachment: scroll; }
}
