/* Schriften lokal (DSGVO: keine Verbindung zu Google) */
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/PTSans-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'PT Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/PTSans-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/PTSerif-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/PTSerif-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/PTSerif-700-normal.woff2) format('woff2'); }

/* Einheitliche Farben */
:root {
  --primary-color: #d18a3d; /* Dunklere Farbe für besseren Kontrast */
  --secondary-color: #ffffff; /* Hintergrundfarbe */
  --text-color: #333333; /* Dunkler Text für Lesbarkeit */
  --button-bg: #d98c1d; /* Satter Farbton für Buttons */
  --button-text: #ffffff; /* Weißer Button-Text */
}

.box-shadow-default {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* Allgemeines Styling */
body {
  font-family: 'PT Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: var(--primary-color);
}

/* Header Styling */
.header {
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid var(--primary-color);
  padding: 10px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation Links */
.header ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header li { display: inline; }
.header a {
  text-decoration: none;
  font-size: 1rem;
  color: #333333;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}
.header a:hover { background-color: var(--primary-color); color: #ffffff; }

/* Footer Styling */
.footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 10px 0;
}

/* Flexbox-Layout */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}

/* Flexbox-Layout für Inhalte */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 20px;
}

/* Karten-Styling (zusammengeführt) */
.card{
  background:#fff;
  border:1px solid #ddd;
  padding:20px;
  width:90%;
  margin:0 auto;
  max-width:600px;
  box-shadow:0 4px 8px rgba(0,0,0,.2);
  border-radius:10px;
}
@media (min-width:768px){ .card{ max-width:80%; } }
@media (min-width:1024px){ .card{ max-width:1200px; } }

/* Überschriften-Abstufung */
h1{ font-size:2rem; margin:0.5rem 0 1rem; }
h2{ font-size:1.5rem; margin:0.5rem 0 0.75rem; }
h3{ font-size:1.125rem; margin:0.25rem 0 0.5rem; }

/* Bilder standardisiert */
img{
  display:block;
  margin:20px auto;
  max-width:100%;
  height:auto;
  border:0;
  box-shadow:none;
  border-radius:10px;
}

/* Monatsbanner der Termine */
img.banner{ width:90%; margin:auto; }

/* Startseite: Hintergrundbild */
body.startseite{
  background: url(../pics/Hintergrund/Buch_HG.jpg) no-repeat center center fixed;
  background-size: cover;
}

/* Optionaler Rahmen nur bei Bedarf */
img.framed{
  border:5px solid var(--primary-color);
  box-shadow:0 4px 8px rgba(0,0,0,.2);
}

/* Hero-Figur */
figure.hero{ margin:0; }
figure.hero img{ width:100%; height:auto; }
figure.hero figcaption{ font-size:.9rem; color:#555; text-align:right; margin-top:.25rem; }

/* Buttons */
button {
  position: relative;
  overflow: hidden;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: left 0.3s ease;
}
button:hover { background-color: var(--primary-color); }
button:hover:before { left: 0; }
button:focus{ outline:2px solid #000; outline-offset:2px; }
button:active{ transform:scale(0.98); }

/* Märchenbrunnen Button */
.btn-group { text-align: center; margin: 20px 0; }

/* Link-Animationen + Fokus */
a {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
}
a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}
a:hover::after, a:focus::after { width: 100%; }
a:focus{ outline:2px solid #000; outline-offset:2px; }

/* Back-to-Top Button */
#backToTop{
  position:fixed;
  right:1rem;
  bottom:1rem;
  padding:.6rem .8rem;
  border-radius:999px;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
  font-size:1rem;
}

/* Archiv: vergangene Termine */
details.archive{ width:100%; }
details.archive > summary{
  cursor:pointer;
  list-style:none;
  text-align:center;
  font-size:1.25rem;
  font-weight:700;
  color:var(--primary-color);
  background:rgba(255,255,255,.9);
  border:1px solid #ddd;
  border-radius:10px;
  padding:12px 20px;
  width:fit-content;
  margin:0 auto;
  box-shadow:0 4px 8px rgba(0,0,0,.2);
}
details.archive > summary::-webkit-details-marker{ display:none; }
details.archive > summary::before{ content:'▸ '; }
details.archive[open] > summary::before{ content:'▾ '; }
details.archive > summary:focus-visible{ outline:2px solid #000; outline-offset:2px; }
details.archive > .card{ margin-top:20px; }

/* Bewegungsreduktion */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}
