/* Rosenfalter Verlag · Gestaltung (Stil von Entwurf 1, Rosa und Gold)
   Bestehende Regeln nie verändern. Neue Regeln nur zuunterst anfügen. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("schriften/cormorant-garamond.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("schriften/cormorant-garamond-kursiv.woff") format("woff");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("schriften/source-serif-4.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --rosa-bg: #F6EBEE;
  --rosa-mist: #FAF3F5;
  --paper: #FFFCFB;
  --rosa-soft: #EBC9D2;
  --rosa-mid: #C48496;
  --rosa-deep: #7A3346;
  --rosa-ink: #4A2430;
  --gold: #B08A3E;
  --gold-bright: #D4B56A;
  --gold-pale: #E9D9B0;
  --gold-deep: #8C6A28;
  --ink: #2C1C21;
  --ink-soft: #5A4349;
  --line: rgba(176, 138, 62, 0.38);
  --shadow: 0 18px 40px rgba(74, 36, 48, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 50% -80px, #fde8ee 0%, transparent 70%),
    linear-gradient(180deg, var(--rosa-mist) 0%, var(--rosa-bg) 28%, #F4E6EA 100%);
  min-height: 100%;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--rosa-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  width: min(1080px, calc(100% - 2.2rem));
  margin-inline: auto;
}


/* Header */
header {
  position: relative;
  padding: 1.15rem 0 0.4rem;
}
.brand {
  text-align: center;
}
.brand-name {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rosa-ink);
}
.brand-place {
  display: block;
  margin-top: 0.2rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}
nav {
  margin: 1.05rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.05rem;
}
nav a {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rosa-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}
nav a:hover { border-bottom-color: var(--gold); color: var(--gold-deep); }

.hairline {
  width: min(14rem, 60%);
  height: 1px;
  margin: 1.05rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: 0;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2.2rem 0 3.2rem;
}
.butterfly {
  width: 108px;
  margin: 0 auto 1.15rem;
  filter: drop-shadow(0 8px 14px rgba(176, 138, 62, 0.22));
}
h1 {
  margin: 0.15rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.35rem, 9vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--rosa-ink);
}
.hero-flourish {
  width: 92px;
  margin: 0.9rem auto 1.2rem;
}
.leitgedanke {
  margin: 0 auto;
  max-width: 26.5rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3.6vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Sections */
section {
  padding: 2.6rem 0;
}
.kicker {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
h2 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  color: var(--rosa-ink);
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
@media (min-width: 760px) {
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .split-reverse { grid-template-columns: 1.1fr 0.9fr; }
  .split-reverse .visual { order: 2; }
}

/* Book cover placeholder */
.cover {
  position: relative;
  width: min(16.5rem, 78%);
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(80% 50% at 50% 18%, rgba(233, 217, 176, 0.28), transparent 70%),
    linear-gradient(180deg, #C9A0AB 0%, #8B3D52 48%, #5C2434 100%);
  border: 1px solid var(--gold-pale);
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(176, 138, 62, 0.55), inset 0 0 0 7px rgba(255, 252, 251, 0.25);
  color: var(--gold-pale);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1rem 1.15rem;
}
.cover-butterfly { width: 46px; margin: 0.4rem auto 0; opacity: 0.95; }
.cover-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  color: #F3E6C0;
}
.cover-sub {
  margin: 0.35rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #E9D9B0;
}
.cover-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 230, 192, 0.85);
}

/* Placeholder boxes */
.platzhalter {
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px dashed var(--gold);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.platzhalter p { margin: 0; color: var(--ink-soft); }
.ph-label {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Rune clock ornament */
.clock {
  width: min(13.5rem, 70%);
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(74, 36, 48, 0.08));
}
.clock-word {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 42px;
  fill: var(--rosa-ink);
}

.btn {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.7rem 1.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rosa-ink);
  background: linear-gradient(180deg, #F3E6C0, #D4B56A);
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
  cursor: default;
  appearance: none;
  -webkit-appearance: none;
}
.btn:disabled {
  color: var(--rosa-ink);
  opacity: 1;
}
.btn-note {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.panel {
  background: var(--paper);
  padding: 1.5rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.panel > * { max-width: 38em; }
@media (min-width: 760px) {
  .panel { padding: 2.2rem 2.6rem; }
}

/* Kontakt */
.kontakt-box {
  max-width: 36rem;
}
@media (min-width: 760px) {
  .kontakt-box { margin-inline: auto; }
}

/* Footer */
footer {
  margin-top: 2.2rem;
  padding: 1.8rem 1.1rem 2.1rem;
  text-align: center;
  background: linear-gradient(180deg, #5C2A38, #3F1C27);
  color: var(--gold-pale);
}
.footer-mark {
  width: 36px;
  margin: 0 auto 0.7rem;
  opacity: 0.9;
}
footer p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.footer-small {
  margin-top: 0.35rem !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Impressum */
.impressum-box {
  max-width: 36rem;
}
@media (min-width: 760px) {
  .impressum-box { margin-inline: auto; }
}
.impressum-box address {
  font-style: normal;
}
.kontakt-mail {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.adresse-offen {
  color: var(--rosa-deep);
  background: rgba(233, 217, 176, 0.55);
  padding: 0 0.25rem;
}

.nowrap { white-space: nowrap; }

/* Fusszeile: Links und Widmung */
footer a { color: var(--gold-pale); }
footer a:hover { color: #F3E6C0; }
.footer-links {
  margin-top: 0.5rem !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}
.widmung {
  max-width: 30rem;
  margin: 1.4rem auto 0 !important;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(233, 217, 176, 0.35);
  font-style: italic;
  font-size: 1.05rem !important;
  line-height: 1.5;
}

/* ===== NEUE REGELN NUR HIER UNTEN ANFÜGEN ===== */

/* Kleine Bildschirme: Kopfzeile und E-Mail nicht über den Rand schieben */
@media (max-width: 720px) {
  .brand-name {
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}
@media (max-width: 420px) {
  .wrap {
    width: min(1080px, calc(100% - 1.4rem));
  }
  .brand-name {
    letter-spacing: 0.1em;
    font-size: 0.7rem;
  }
  nav a {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }
}

/* ===== Ausbau: Willkommen, Spruch des Tages, Sprüche, Geschichte, Max & Mugel ===== */

/* Sanft flatternder Schmetterling und kleine Falter im Kopfteil */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.flattern { animation: flattern 5.5s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes flattern {
  0%, 100% { transform: translateY(0) scaleX(1); }
  20% { transform: translateY(-4px) scaleX(0.9); }
  40% { transform: translateY(-7px) scaleX(1); }
  60% { transform: translateY(-4px) scaleX(0.93); }
}
.falter-flug { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.falter { position: absolute; width: 22px; opacity: 0; }
.f1 { left: 8%; top: 70%; animation: falter-a 19s linear infinite; }
.f2 { left: 78%; top: 82%; width: 16px; animation: falter-b 23s linear 4s infinite; }
.f3 { left: 55%; top: 90%; width: 18px; animation: falter-a 27s linear 11s infinite; }
@keyframes falter-a {
  0% { transform: translate(0, 0) rotate(-8deg) scaleX(1); opacity: 0; }
  10% { opacity: 0.75; }
  25% { transform: translate(30px, -60px) rotate(6deg) scaleX(0.7); }
  50% { transform: translate(10px, -140px) rotate(-6deg) scaleX(1); }
  75% { transform: translate(45px, -210px) rotate(8deg) scaleX(0.7); }
  90% { opacity: 0.6; }
  100% { transform: translate(20px, -290px) rotate(0deg) scaleX(1); opacity: 0; }
}
@keyframes falter-b {
  0% { transform: translate(0, 0) rotate(8deg) scaleX(1); opacity: 0; }
  10% { opacity: 0.7; }
  30% { transform: translate(-35px, -80px) rotate(-6deg) scaleX(0.7); }
  60% { transform: translate(-10px, -170px) rotate(6deg) scaleX(1); }
  90% { opacity: 0.55; }
  100% { transform: translate(-40px, -280px) rotate(-4deg) scaleX(0.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flattern, .falter { animation: none; }
  .falter-flug { display: none; }
}

/* Überschriften und Text in der Mitte */
.panel-mitte { text-align: center; }
.panel-mitte > * { margin-inline: auto; }
.kopf-mitte { text-align: center; margin-bottom: 1.6rem; }
.einleitung { max-width: 30rem; margin: 0 auto; color: var(--ink-soft); }
h3 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--rosa-ink);
}

/* Spruch des Tages */
.tagesspruch {
  text-align: center;
  padding: 1.6rem 1.1rem;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(235, 201, 210, 0.45), transparent 70%),
    var(--paper);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow), inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--line);
  border-radius: 2px;
}
.tagesspruch-inhalt {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  justify-items: center;
  margin-top: 0.4rem;
}
.tagesspruch-inhalt img {
  width: min(15rem, 72%);
  height: auto;
  border-radius: 50%;
  border: 2px solid var(--gold-pale);
  box-shadow: var(--shadow);
}
@media (min-width: 760px) {
  .tagesspruch { padding: 2.4rem 2.6rem; }
  .tagesspruch-inhalt { grid-template-columns: auto 1fr; gap: 2.4rem; text-align: left; justify-items: start; }
  .tagesspruch-inhalt img { width: 15rem; }
}
.spruch-titel {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-deep);
}
.spruch-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--rosa-ink);
  overflow-wrap: break-word;
}
.spruch-sig {
  margin-top: 0.7rem !important;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.tagesspruch-knopf { margin: 1.3rem 0 0; }
.btn-aktiv { cursor: pointer; }
.btn-aktiv:hover { background: linear-gradient(180deg, #F7EDD0, #DCC07C); }

/* Galerie der Sprüche */
.spruch-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 1rem;
  align-items: start;
}
@media (min-width: 760px) {
  .spruch-galerie { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.4rem; }
}
.spruch-karte {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spruch-karte img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.spruch-karte figcaption { padding: 0.75rem 0.8rem 0.85rem; text-align: center; }
.spruch-karte .spruch-titel { font-size: 1.05rem; line-height: 1.3; }
.spruch-karte .spruch-text { font-size: 1.12rem; margin-top: 0.6rem; }
.spruch-karte summary {
  cursor: pointer;
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rosa-deep);
  border-bottom: 1px solid var(--gold-pale);
  list-style: none;
}
.spruch-karte summary::-webkit-details-marker { display: none; }
.spruch-karte summary::before { content: "🦋 "; }
.spruch-karte details[open] summary { color: var(--gold-deep); }

/* Max & Mugel */
.zeichen-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.zeichen-karte {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  padding: 1.3rem 1.2rem;
  text-align: center;
}
.zeichen-symbol { font-size: 2.2rem; line-height: 1; margin: 0 0 0.6rem; }

/* Was noch kommt */
.bald-liste { margin: 0 0 1rem; padding-left: 1.2rem; }
.bald-liste li { margin-bottom: 0.6rem; }
.bald-liste li::marker { content: "🦋 "; }

/* Impressum: Unterteile */
.impressum-titel { margin-top: 1.4rem; font-size: 1.25rem; }
.impressum-box p { overflow-wrap: break-word; }

/* Fusszeile: Mitwirkende und Drache */
.footer-credit {
  margin-top: 0.9rem !important;
  font-size: 0.95rem !important;
  font-style: italic;
  opacity: 0.9;
}
.drache-medaillon {
  width: 7.5rem;
  height: 7.5rem;
  margin: 1.3rem auto 0;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(233, 217, 176, 0.12), 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Knopf nach oben */
.nach-oben {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 5;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--rosa-ink);
  text-decoration: none;
  background: rgba(255, 252, 251, 0.92);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
@media (min-width: 760px) {
  .tagesspruch-inhalt { justify-content: center; }
}
.nach-oben { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.nach-oben.zeigen { opacity: 1; visibility: visible; }

/* Erinnerung: Flyer der Ausstellung von Margrit Gut, in «Wie alles begann» */
.flyer-erinnerung {
  margin: 1.7rem 0 0;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.flyer-link {
  display: block;
  margin: 0;
  padding: 0.4rem;
  background: #F6F0E4;
  border: 6px solid #6B3038;
  box-shadow: 0 14px 32px rgba(74, 36, 48, 0.12);
  text-decoration: none;
  cursor: zoom-in;
  max-width: 100%;
}
.flyer-link img {
  width: 100%;
  height: auto;
  display: block;
}
.flyer-erinnerung figcaption {
  margin: 0.85rem 0 0;
  max-width: 38em;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

/* Einfache Grossansicht, ohne fremde Bibliothek */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: rgba(44, 28, 33, 0.9);
  cursor: zoom-out;
}
.lightbox.offen { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  border: 5px solid #6B3038;
  background: #F6F0E4;
  cursor: default;
}
.lightbox-zu {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  background: rgba(255, 252, 251, 0.92);
  color: var(--rosa-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-zu:hover { background: #fff; }
body.lightbox-sperre { overflow: hidden; }

body.lightbox-sperre .nach-oben { opacity: 0; visibility: hidden; pointer-events: none; }
.lightbox { z-index: 100; }


/* Figuren in «Max & Mugel»: zuerst die Familie, dann die Einzelporträts */
.figuren-familie {
  margin: 0 0 1.3rem;
  width: 100%;
  min-width: 0;
  max-width: 38rem;
  margin-inline: auto;
}
.figuren-familie img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  background: #F6EBEE;
}
.figuren-reihe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.8rem;
  align-items: start;
}
.figur-karte {
  margin: 0;
  min-width: 0;
  text-align: center;
}
.figur-karte img {
  width: 100%;
  height: auto;
  max-width: 11rem;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(233, 217, 176, 0.12), 0 10px 24px rgba(74, 36, 48, 0.10);
  background: #F6EBEE;
}
.figur-karte figcaption {
  margin-top: 0.65rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--rosa-ink);
  overflow-wrap: break-word;
}
.figur-karte figcaption span {
  display: block;
  margin-top: 0.2rem;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
@media (max-width: 420px) {
  .figuren-reihe { gap: 0.4rem; }
  .figur-karte figcaption { font-size: 0.95rem; }
  .figur-karte figcaption span { font-size: 0.78rem; }
}
