@font-face {
  font-family: 'Mayfair Display';
  src: url('../fonts/MayfairDisplay-Regular.woff2') format('woff2'),
       url('../fonts/MayfairDisplay-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mayfair Display';
  src: url('../fonts/MayfairDisplay-Bold.woff2') format('woff2'),
       url('../fonts/MayfairDisplay-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Farbpalette: Schwarz-Grau + Gold */
:root {
  --main-bg: #18181b;        /* Tiefschwarz mit minimalem Blaustich */
  --accent: #dac08f;         /* Gold für Akzente & Links */
  --accent-dark: #fffbe9;    /* Sehr helles Gold/Weiß für Headlines */
  --text: #f6f6f6;           /* Fast weiß für Bodytext */
  --text-light: #cacace;     /* Hellgrau für Fließtext */
  --white: #232325;          /* Sehr dunkles Grau für Flächen */
  --border: #373737;         /* Grauton für Linien */
  --shadow: #10101488;       /* Schattenfarbe */
}

body {
  background: var(--main-bg);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  min-height: 100vh;
  position: relative;
}

.bg-overlay {
  position: fixed;
  z-index: 0;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,20,20,0.38); /* Für starke Bildsichtbarkeit */
  pointer-events: none;
  user-select: none;
  backdrop-filter: blur(1.2px);    /* Leichter Weichzeichner, optional */
}
main, header, footer {
  position: relative;
  z-index: 1;
}



nav ul.toc {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.4rem;
  font-size: 1.1rem;
}
nav ul.toc li a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  transition: color 0.18s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav ul.toc li a:hover {
  color: var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
}

/* Inhaltsverzeichnis */
ul.toc-index {
  columns: 2 330px;
  gap: 3rem;
  list-style: disc inside;
  margin-bottom: 2.6rem;
  margin-top: 1.3rem;
}
ul.toc-index li {
  margin-bottom: 0.7rem;
}
ul.toc-index ul {
  margin: 0.4rem 0 0.4rem 1rem;
  font-size: 0.97em;
  color: var(--text-light);
}
ul.toc-index a {
  color: var(--accent);
  text-decoration: underline dotted;
}
ul.toc-index a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Hauptcontent */
main {
  flex: 1;
  max-width: 900px;
  margin: 2.6rem auto 2.3rem auto;
  background: rgba(34, 34, 36, 0.83); /* Dunkler transparenter Layer */
  padding: 2.3rem 3.5rem;
  border-radius: 23px;
  box-shadow: 0 3px 28px 0 var(--shadow);
}

h2, h3, header h1 {
  font-family: 'Mayfair Display', serif;
  color: var(--accent-dark);
  letter-spacing: 0.03em;
}

h2 {
  font-size: 1.52rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.23em;
  margin-top: 2.5rem;
  margin-bottom: 0.95rem;
}

h3 {
  font-size: 1.17rem;
  font-weight: 600;
  margin-top: 2.2rem;
  margin-bottom: 0.82rem;
  color: var(--accent);
}

p {
  color: var(--text-light);
  line-height: 1.38;
  margin-bottom: 1.2rem;
  font-size: 1.04em;
}

a {
  color: var(--accent);
  text-decoration: underline dotted;
  transition: color 0.18s;
}
a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.empfehlung {
  display: block;
  margin: 1.2em 0 1.1em 0;
  padding: 0.47em 1.2em 0.47em 1.1em;
  border-left: 5px solid var(--accent);
  background: rgba(44,44,46,0.45);
  color: var(--accent-dark);
  font-weight: 600;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 2px 18px 0 #22222813;
}

.backtotop {
  text-align: right;
  margin: 2.9em 0 1.2em 0;
}
.backtotop a {
  font-size: 1.08em;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dark);
  border-bottom: 2px solid var(--accent);
  transition: color 0.17s;
}
.backtotop a:hover {
  color: var(--accent);
}

footer {
  text-align: center;
  font-size: 1rem;
  padding: 1.6rem 0;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  background: rgba(30,30,32,0.91);
  margin-top: auto;
  box-shadow: 0 -3px 24px 0 #11111333;
  letter-spacing: 0.03em;
}

/* --- Mobil-Optimierung: noch mehr Seitenrand & größere Schrift --- */
@media (max-width: 900px) {
  main {
    max-width: 99vw;
    padding: 2.3rem 1.2rem;
    margin: 1.7rem auto 1.7rem auto;
  }
  header, footer {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
  ul.toc-index {
    columns: 1 300px;
    gap: 1.2rem;
  }
}
@media (max-width: 600px) {
  html { font-size: 19.5px; }
  nav ul.toc {
    flex-direction: column;
    gap: 1.15rem;
    font-size: 1.08rem;
    margin-bottom: 0.9em;
  }
  header h1 {
    font-size: 1.12rem;
    margin-bottom: 0.7em;
  }
  main {
    border-radius: 12px;
    padding: 1.2rem 0.7rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  h2 {
    font-size: 1.12rem;
    margin-top: 2.5rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.13em;
  }
  h3 {
    font-size: 1.02rem;
    margin-top: 1.6rem;
    margin-bottom: 0.7rem;
  }
  p, li, .empfehlung {
    font-size: 1.11em;
    line-height: 1.45;
    margin-bottom: 1.8rem;
    margin-top: 0.06em;
    letter-spacing: 0.01em;
  }
  ul.toc-index { margin-bottom: 1.5rem; }
  .backtotop { margin-top: 2.2em; margin-bottom: 0.6em; }
}

main, header, footer {
  animation: fadein 0.7s ease;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(12px);}
  to   { opacity: 1; transform: translateY(0);}
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 4px 18px 0 var(--shadow);
  padding: 1.4rem 0.7rem 1rem 0.7rem;
}

header h1 {
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

nav ul.toc {
  justify-content: center;
}

main {
  margin-top: 165px; /* Höhe des fixen Headers! Passe ggf. an, je nach Padding */
}
@media (max-width: 600px) {
  main { margin-top: 145px; }
}
@media (max-width: 600px) {
  header {
    padding: 0.7rem 0.1rem 0.5rem 0.1rem;
    max-width: 99vw;
  }
  header h1 {
    font-size: 1rem;
    padding: 0 0.3em;
    line-height: 1.2;
  }
  nav ul.toc {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
  }
  nav ul.toc li {
    margin: 0;
  }
}
@media (max-width: 400px) {
  header h1 {
    font-size: 0.89rem;
  }
  nav ul.toc {
    font-size: 0.95rem;
  }
}
.fe-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin: 2.2rem 0;
}
.fe-section {
  flex: 1 1 300px;
  max-width: 340px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fe-media-container {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.24);
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #18181b;
}
.fe-media-container img,
.fe-media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  border-radius: inherit;
}
.fe-media-container img:hover,
.fe-media-container video:hover {
  transform: scale(1.04);
}
.fe-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(24,24,27,0.69);
  color: var(--accent);
  padding: 12px 7px;
  text-align: center;
  font-size: 1.14em;
  font-family: 'Mayfair Display', serif;
  letter-spacing: 0.01em;
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
}

.fe-footer {
  text-align: center;
  padding: 15px 0 12px 0;
  background: var(--accent);
  font-size: 0.93em;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-top: 2.7rem;
}
.fe-footer a {
  margin: 0 13px;
  text-decoration: none;
  color: #232325;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.fe-footer a:hover {
  color: #7e6b32;
}
/* === Header: Elegant & Fix === */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7em 1em 0.7em 1em;
  background: rgba(16, 16, 16, 0.92);
  position: fixed;
  width: 100%;
  z-index: 30;
  top: 0;
  left: 0;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.12);
}
.logo a {
  font-family: 'Mayfair Display', serif;
  font-size: 1.25em;
  font-weight: bold;
  letter-spacing: 0.03em;
  color: #f7d088;
  text-decoration: none;
  padding: 0.18em 0.33em;
  transition: color 0.13s;
}
.logo a:hover { color: #ffeabf; }

.menu-toggle {
  display: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
  z-index: 31;
  width: 1.7em;
  height: 1.5em;
  justify-content: center;
  transition: background 0.15s;
}
.hamburger span {
  background: #fff;
  margin: 0.18em 0;
  border-radius: 2px;
  display: block;
  height: 0.18em;
  width: 100%;
  transition: 0.24s;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2em;
}
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.1em;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 1.06em;
  color: #f7d088;
  text-decoration: none;
  letter-spacing: 0.01em;
  opacity: 0.81;
  transition: opacity 0.15s, color 0.18s;
  font-family: 'Mayfair Display', serif;
  padding: 0.2em 0.6em;
  border-radius: 2.2em;
}
.main-nav a:hover { opacity: 1; color: #ffeabf; background: rgba(70,50,10,0.11);}
@media (max-width: 800px) {
  .main-header { padding: 0.45em 0.7em; }
  .logo a { font-size: 1.02em; }
  .main-nav ul { gap: 0.2em; }
}
@media (max-width: 600px) {
  .main-header {
    flex-wrap: wrap;
    padding: 0.3em 0.16em 0.3em 0.32em;
    min-height: 44px;
  }
  .main-nav {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: 100vh;
    background: rgba(16,16,16,0.96);
    transform: translateY(-120%);
    transition: transform 0.23s cubic-bezier(0.68,0,0.32,1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 1.1em;
    font-size: 1.12em;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
  }
  .menu-toggle:checked + .hamburger + .main-nav {
    transform: translateY(0%);
  }
}
.menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 3.5px);
}
.menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(3.5px, -4px);
}
/* Hamburger-Animation */
.menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

