html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fdfaf5;
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #3366cc;
  font-weight: bold;
}

a:hover {
  color: #000;
}

.active-link {
  color: #000;
}

.container {
  display: flex;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  padding: 1rem;
  overflow-y: auto;
  z-index: 1000;
}

.mobile-bottom-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.mobile-bottom-menu li {
  margin: 0.5rem 0;
}

.mobile-bottom-menu a {
  color: #444;
  font-size: 1rem;
font-weight: normal;
}

.mobile-bottom-menu a:hover {
  color: #000;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar nav li {
  margin: 0.5rem 0;
}

.sidebar a {
  color: #444;
  font-size: 1rem;
font-weight: normal;
}

.sidebar a:hover {
  color: #000;
}

.logo {
  font-size: 1.3rem;
  font-weight: normal;
  margin-bottom: 2rem;
  line-height: 1.4;
  color: #111;
}

.logo small {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  color: #666;
}

.content {
  margin-left: 220px;
  padding: 0 2rem 2rem;
  max-width: 768px;
}

.content > nav {
  position: sticky;
  top: 0;
background: #fdfaf5; 
 padding: 1.1rem 0;
  z-index: 100;
}

.content > nav a {
  margin-right: 1.5rem;
  font-weight: bold;
  color: #111;
}

.content > nav a:hover {
  font-weight: bold;
  color: #444;
}

.content > nav a:last-child {
  margin-right: 0;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  z-index: 1005;
  background: #eee;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 3rem;
  position: fixed;
  top: 30px;
  right: 10px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 1rem;
  z-index: 1004;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-toggle-sidebar {
  display: none;
}

.mobile-sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 280px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #ccc;
  z-index: 1006;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  padding: 4rem 1rem 1rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-sidebar.active {
  display: block;
  transform: translateX(0);
}

.mobile-sidebar nav ul {
  list-style: none;
  padding: 0;
}

.mobile-sidebar nav li {
  margin: 1rem 0;
}

.mobile-sidebar a {
  color: #444;
  font-size: 1.1rem;
  text-decoration: none;
}

.section {
  font-size: 1.1rem;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  padding: 3rem;
}
footer a {
  font-weight:normal;
  color:#888;
}

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

  .content {
    margin-left: 0;
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav-toggle-sidebar {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    background: #eee;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1.2rem;
    z-index: 1007;
  }

  .content > nav {
    display: none;
  }

  .logo.desktop-only {
    display: none;
  }

  .logo.mobile-only {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 769px) {
  .logo.mobile-only {
    display: none;
  }
}


button {
  background: none;
  border: 1px dotted #999;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #444;
}

button:hover {
  background: #f0f0f0;
}

.menu-toggle,
.mobile-nav-toggle-sidebar {
  margin-top: 0;
}

@media (min-width: 1400px) {
  .sidebar {
    left: calc(50% - 580px); /* 900px = halbe max-width (1800px) */
  }

  .content {
    margin-left: 260px;
  }

  .container {
    max-width: 1180px;
    margin: 0 auto;
  }
}

/* Global Styles */
.sidebar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1rem; /* optional, für etwas Luft */
}

.hero {
  text-align: center;

}
.small-font {
  font-size: 0.9rem;
  color:#111;
}
.breadcrumb {
  font-size: 0.9rem;
  color:#111;
}
.breadcrumb a {
  color:#111;
  font-weight: bold;
}
.breadcrumb a:hover {
  color:#444;
}
.hero blockquote {
  font-size: 1.3rem;
  font-style: italic;
  margin: 0 auto;
  max-width: 600px;
}
.dropcap::first-letter {
  float: left;
  font-size: 3rem;
  line-height: 1;
  padding-right: 0.3rem;
  font-family: Georgia, serif;
}
.chapter-title {
  text-align: left;
  font-size: 1.7rem;
  margin-bottom: 1rem;
  position: relative;
}

.chapter-title::after {
  content: "";
  display: block;
  margin-top: 0.5rem;
  width: 100px;
  border-top: 1px solid #aaa;
}
.fancy-line {
  border: none;
  margin: 3rem auto;
  text-align: center;
  position: relative;
}
.fancy-line::before {
  content: "***";
  letter-spacing: 0.5rem;
  color: #999;
  font-size: 1.2rem;
}
img {
    display: block;
    margin: 10px 0 13px;
    max-width: 100%;
    height: auto;
    }
img.old-style {
 display: block;
  margin: 2rem auto;
  max-width: 80%;
  height: auto;
  border: 1px solid #ccc;
  padding: 0.2rem;
  background: #fdfaf5;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  filter: sepia(0.3) contrast(1.1) brightness(0.95);
}


    .grid h1 {
      text-align: center;
      margin-bottom: 2rem;
    }
   .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}
    .book {
      background: white;
      border-radius: 1rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      overflow: hidden;
      text-align: center;
      padding-bottom: 1rem;
    }
    .book img {
      width: 100%;
      height: auto;
      display: block;
    }
    .book h2 {
      margin: 1rem 0 0.5rem;
    }
    .book p {
      color: #555;
      font-size: 0.9rem;
      margin: 0 1rem 1rem;
    }
    .book a {
      background: black;
      color: white;
      text-decoration: none;
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      margin: 0.25rem;
      display: inline-block;
      transition: background 0.2s;
    }
    .book a:hover {
      background: #333;
    }
.pagination {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  font-size: 1rem;
}

.pagination a, 
.pagination strong {
  text-decoration: none;
  color: #111;
  padding: 0.2rem 0.4rem;
}

.pagination strong {
  border-bottom: 2px solid #111;
}

.pagination a:hover {
  border-bottom: 2px solid #888;
}
#orakel-output {
  opacity: 1;
  transition: opacity 0.5s ease;
}

#orakel-output.fade {
  opacity: 0;
}

/* Auf schmalen Bildschirmen: langsameres Fading */
@media (max-width: 600px) {
  #orakel-output {
    transition: opacity 0.8s ease;
  }
}
/* --- Mehr Luft im Content --- */
:root{
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
}

/* Content spürbar luftiger, Sidebar bleibt wie ist */
.content{
  margin-left: 220px;              /* bleibt */
  max-width: 68ch;                 /* vorher 600px → besser lesbare Zeilenlänge */
  padding: 0 clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

/* Sticky Top-Navi bekommt Raum */
.content > nav{
  padding: .9rem 0;
  margin-top: 0.2rem;
  margin-bottom: var(--space-3);
}

/* Typo + vertikale Abstände */
body{
  line-height: 1.7;                /* minimal mehr */
  letter-spacing: 0.01em;
}

/* Grundrhythmus für Fließtext */
.content p,
.content ul,
.content ol,
.content blockquote,
.content img,
.section{
  margin-block: var(--space-3);
}

/* Headings nicht so gequetscht */
.content h1{ margin: var(--space-5) 0 var(--space-3); line-height: 1.2; }
.content h2{ margin: var(--space-4) 0 var(--space-2); line-height: 1.25; }
.content h3{ margin: var(--space-3) 0 var(--space-1); line-height: 1.3; }

/* Listen + Absätze etwas lockerer */
.content ul, .content ol{ padding-left: 1.2em; gap: .4em; }
.content li{ margin-block: .3em; }
.content p + p{ margin-top: var(--space-2); }

/* Links weniger „schreiend“ im Textfluss */
.content p a{ font-weight: 600; }

/* Bilder atmen mehr */
.content img{ margin: var(--space-4) 0; }

/* Breadcrumb/Small-text nicht drängeln */
.breadcrumb, .small-font{ line-height: 1.6; }

/* Pagination nicht kleben lassen */
.pagination{ margin-block: var(--space-4); }

/* Große Screens: Content darf etwas breiter wirken, aber in Zeichenlänge gedacht */
@media (min-width: 1200px){
  .content{ max-width: 72ch; }
}

/* Mobile bleibt kompakt, aber mit Luft */
@media (max-width: 768px){
  .content{
    margin-left: 0;
    max-width: 68ch;               /* weiterhin Zeilenlänge begrenzen */
    padding: var(--space-2);
  }
}
/* Fancy line – sauberer Rhythmus */
.fancy-line{
  border: 0;
  margin: clamp(2rem, 6vw, 4rem) 0; /* gleichmäßige Abstände oben/unten */
  position: relative;
  padding: 1rem 0;                  /* Atemraum */
}

.fancy-line::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  border-top: 1px solid #ddd;       /* die Linie */
  transform: translateY(-50%);
}

.fancy-line::after{
  content: "∗ ∗ ∗";                 /* dezenter als "***" */
  position: relative;
  display: inline-block;
  padding: 0 .8rem;                  /* Platz um den Text */
  line-height: 1;                    /* kein extra Zeilenabstand */
  letter-spacing: .35em;
  color: #999;
  background: #fdfaf5;               /* überm Strich „freigestellt“ */
}


.chapter-title {
  text-align: left;
  font-size: 1.7rem;
  margin-top: 3rem;      /* mehr Luft nach oben */
  margin-bottom: 1.2rem; /* etwas mehr unten */
  position: relative;
}

.chapter-title::after {
  content: "";
  display: block;
  margin-top: 0.7rem;    /* minimal mehr Abstand zum Text */
  width: 100px;
  border-top: 1px solid #aaa;
}
