/* ================================================================
   style.css – verwunderlich | Julia Baumgärtner
   ----------------------------------------------------------------
   FARBEN direkt hier ändern – wirkt sich auf alle Seiten aus!
   ================================================================ */

/* ── Google Fonts werden in jeder HTML-Datei separat geladen ──── */

/* ── FARBEN – hier kannst du das Farbschema anpassen ──────────── */
:root {
  --hintergrund:    hsl(216, 30%, 95%);  /* Seitenhintergrund (Hellblaugrau) */
  --karte:          hsl(35,  40%, 95%);  /* Karten-Hintergrund (Creme)       */
  --akzent:         hsl(77,  22%, 44%);  /* Olivgrün (Buttons, Links)        */
  --akzent-dunkel:  hsl(77,  22%, 36%);  /* Olivgrün dunkel (Hover)          */
  --text:           hsl(25,  30%, 18%);  /* Dunkler Haupttext                */
  --text-mittel:    hsl(25,  15%, 50%);  /* Mittlerer Text (Fließtext)       */
  --linie:          hsl(30,  20%, 87%);  /* Rahmen und Trennlinien           */
  --weiss:          hsl(35,  33%, 97%);  /* Fast-Weiß                        */
  --radius:         0.75rem;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--hintergrund);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typografie ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ──────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(216, 30%, 95%, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo img.bildmarke   { height: 2.5rem; width: auto; }
.logo img.schriftmarke { height: 1.5rem; width: auto; }

nav ul { display: flex; list-style: none; gap: 2rem; align-items: center; }
nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mittel);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
nav a:hover, nav a.aktiv { color: var(--akzent); }

/* Mobile Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1rem;
  background: var(--weiss);
  border-top: 1px solid var(--linie);
}
.mobile-menu.offen { display: flex; }
.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: hsl(35, 25%, 91%); }

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: block; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--akzent); color: white; }
.btn-primary:hover { background: var(--akzent-dunkel); }
.btn-outline {
  background: transparent;
  color: var(--text-mittel);
  border: 2px solid var(--linie);
}
.btn-outline:hover { border-color: var(--akzent); color: var(--akzent); }

/* ── Trenn-Linie unter Überschriften ─────────────────────────── */
.heading-line {
  width: 4rem;
  height: 3px;
  background: var(--akzent);
  border-radius: 9999px;
  margin-top: 1rem;
}
.zentriert { margin-left: auto; margin-right: auto; }

/* ── Section-Überschriften ───────────────────────────────────── */
.section-heading { text-align: center; }
.section-heading h2 { font-size: 2rem; color: var(--text-mittel); }
@media (min-width: 768px) { .section-heading h2 { font-size: 2.5rem; } }

/* ── Hero-Abschnitt ──────────────────────────────────────────── */
.hero { padding: 4rem 0 5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-text .zitat {
  font-family: 'Birthstone', cursive;
  font-size: 2rem;
  line-height: 1.6;
  color: var(--text-mittel);
  margin-top: 1.5rem;
  visibility: hidden;
}
@media (min-width: 768px) { .hero-text .zitat { font-size: 2.4rem; } }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-bild img {
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  width: 100%;
}

/* ── Über-mich-Abschnitt ─────────────────────────────────────── */
.ueber-mich { padding: 5rem 0; scroll-margin-top: 5rem; }
.ueber-mich-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 3rem;
}
@media (min-width: 768px) { .ueber-mich-grid { grid-template-columns: 2fr 3fr; } }

.fotos img { border-radius: 1rem; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.fotos img + img { margin-top: 1rem; }

.bio p { font-size: 1.05rem; color: var(--text-mittel); line-height: 1.8; }
.bio p + p { margin-top: 1rem; }
.bio .btn { margin-top: 2rem; }

/* ── Kontakt-Abschnitt ───────────────────────────────────────── */
.kontakt { padding: 5rem 0; text-align: center; scroll-margin-top: 5rem; }
.kontakt-inner { max-width: 40rem; margin: 0 auto; }
.kontakt .mail-icon { margin: 0 auto 1rem; color: var(--text-mittel); }
.kontakt p { color: var(--text-mittel); margin-top: 1.5rem; font-size: 1rem; }
.kontakt .btn { margin-top: 2rem; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--linie);
  background: var(--karte);
  padding: 2rem 0;
  text-align: center;
}
footer p { font-size: 0.875rem; color: var(--text-mittel); }
footer p + p { margin-top: 0.25rem; font-size: 0.75rem; }
.footer-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--text-mittel);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--akzent); }
.footer-links .punkt { font-size: 0.75rem; color: var(--text-mittel); opacity: 0.4; }

/* ── Portfolio-Seite ─────────────────────────────────────────── */
.portfolio-kopf { text-align: center; padding: 5rem 0 0; }
.portfolio-kopf p {
  color: var(--text-mittel);
  max-width: 32rem;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
}
.haupt-bereich { padding-bottom: 5rem; }

.abschnitt-titel { margin-top: 4rem; }
.abschnitt-titel h2 { font-size: 1.75rem; color: var(--text); }
.abschnitt-linie {
  width: 3rem;
  height: 3px;
  background: var(--akzent);
  border-radius: 9999px;
  margin-top: 0.5rem;
}

.buecher-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
}
.buch-karte {
  background: var(--karte);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 100%;
  max-width: 22rem;
  transition: box-shadow 0.3s;
}
.buch-karte:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.15); }

.buch-cover { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.buch-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.buch-karte:hover .buch-cover img { transform: scale(1.05); }

.leseprobe-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  text-decoration: none;
}
.buch-karte:hover .leseprobe-overlay { background: rgba(0,0,0,0.35); }
.leseprobe-overlay span {
  background: var(--akzent);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.buch-karte:hover .leseprobe-overlay span { opacity: 1; }

.buch-info { padding: 1.5rem; }
.alters-badge {
  display: inline-block;
  background: var(--akzent);
  color: white;
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.buch-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-top: 0.75rem;
  color: var(--text);
}
.buch-info .jahr { font-size: 0.75rem; color: var(--text-mittel); margin-top: 0.25rem; }
.buch-info p {
  font-size: 0.875rem;
  color: var(--text-mittel);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.buch-info .leseprobe-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--akzent);
}
.buch-info .leseprobe-link:hover { color: var(--akzent-dunkel); text-decoration: underline; }

/* ── Impressum / Datenschutz ─────────────────────────────────── */
.text-seite {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.text-seite h1 { font-size: 2rem; margin-bottom: 2.5rem; }
.text-seite h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  margin-top: 2.5rem;
}
.text-seite h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.text-seite p {
  font-size: 0.9rem;
  color: var(--text-mittel);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.text-seite ul {
  font-size: 0.9rem;
  color: var(--text-mittel);
  line-height: 1.8;
  margin-left: 1.5rem;
  list-style: disc;
  margin-bottom: 0.75rem;
}
.text-seite li strong { color: var(--text); }
.text-seite a { color: var(--akzent); text-decoration: underline; text-underline-offset: 3px; }
.text-seite .fusszeile {
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--linie);
  color: var(--text-mittel);
}
