
/* ─────────────────────────────────────────────── */
/* Font Raleway-Regular.woff2 */
/* ─────────────────────────────────────────────── */

@font-face {
  font-family: 'Raleway';
  src: local('Raleway Light'),
       url('/fonts/Raleway-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: local('Raleway Regular'),
       url('/fonts/Raleway-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: local('Raleway Bold'),
       url('/fonts/Raleway-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


body {
    font-family: 'Raleway', sans-serif;
}



/* ─────────────────────────────────────────────── */
/* TYPOGRAFIE                                      */
/* ─────────────────────────────────────────────── */


h1, h2, h3 {
  color: #7b1e24;   /* angenehmes Weinrot */
  font-weight: 700;
}

/* Zitatkasten */
.quote-box {
  background: #fff9c4;          /* hellgelb */
  color: #2e7d32;               /* sattes Grün */
  padding: 1.5em 1.2em;
  border-left: 6px solid #2e7d32;
  margin: 0.5em 0;
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.5;
  border-radius: 4px;
}


/* ─────────────────────────────────────────────── */
/* HEADER + HEADERBILD                             */
/* ─────────────────────────────────────────────── */

.page-header {
  position: relative;
  width: 100%;
  margin-bottom: 1em;
}

/* Bildcontainer */
.header-image-wrapper {
  height: 250px;
  overflow: hidden;
}

/* Bild selbst */
.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;            /* verhindert weiße Linien bei Mobilgeräten */
}

/* Textbox */
.header-text {
  position: absolute;
  bottom: 0;                 /* fix am unteren Rand */
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  background-color: rgba(123, 30, 36, 0.92); /* Weinrot mit Transparenz */
  padding: 0.4em 0.8em;
  box-sizing: border-box;
}

/* ─────────────────────────────────────────────── */
/*  Bücher auf index-Seite nebeneinander – responsive */
/* ─────────────────────────────────────────────── */

.buchreihe {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.buch {
    text-align: center;
}

.buch-cover {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.buch-titel {
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Tablet */
@media (max-width: 900px) {
    .buchreihe {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil */
@media (max-width: 600px) {
    .buchreihe {
        grid-template-columns: 1fr;
    }
}


/* ─────────────────────────────────────────────── */
/* MOBILE OPTIMIERUNG                              */
/* ─────────────────────────────────────────────── */

@media (max-width: 768px) {

  .header-image-wrapper {
    height: 200px;           /* etwas niedriger für Mobilgeräte */
  }

  .header-text {
    font-size: 1.3rem;       /* leicht größer, aber nicht übertrieben */
    padding: 0.5em 0.8em;
    bottom: 0;               /* bleibt unten – kein Verrutschen */
  }
}


/* ─────────────────────────────────────────────── */
/* TOP-MENÜ                                        */
/* ─────────────────────────────────────────────── */

.top-menu {
  padding: 0.7em 1.2em;
  background: #7A0000;        /* Weinrot */
  display: flex;
  justify-content: flex-end;  /* rechtsbündig */
}

/* Hauptmenü-Liste */
.top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1em;
}

/* Hauptmenü-Links */
.top-menu a {
  text-decoration: none;
  color: #ffffff;
}

.top-menu a:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────── */
/* DROPDOWN                                        */
/* ─────────────────────────────────────────────── */

.top-menu .has-dropdown {
  position: relative;
}

/* Dropdown-Liste */
.top-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;                   /* rechtsbündig */
  background: #7A0000;        /* Weinrot */
  padding: 0.5em 0;
  margin: 0;
  list-style: none;
  min-width: 200px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

/* Dropdown-Links */
.top-menu .dropdown a {
  display: block;
  padding: 0.5em 1em;
  white-space: nowrap;
}

.top-menu .dropdown a:hover {
  background: #5e0909;        /* dunkleres Weinrot */
}

/* Dropdown anzeigen */
.top-menu .has-dropdown:hover .dropdown {
  display: block;
}


/* ─────────────────────────────────────────────── */
/* glightbilder im Text links oder rechts          */
/* ─────────────────────────────────────────────── */

.bild-rechts {
  float: right;
  margin: 0 0 10px 15px;
}

.bild-links {
  float: left;
  margin: 0 15px 10px 0;
}

/* ─────────────────────────────────────────────── */
/* Bildergalerie zweispaltig  2:3 hochkant        */
/* ─────────────────────────────────────────────── */

.galerie-2spaltig {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
    justify-items: center;
}

.galerie-hochkant {
    width: 180px;   /* optimale Breite für 2:3 */
    height: auto;   /* Höhe folgt automatisch */
    border: none;
    display: block;
}

/* ─────────────────────────────────────────────── */
/* LAYOUT: Sidebar links – Main rechts             */
/* ─────────────────────────────────────────────── */

.container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #f4f4f4;
  padding: 1em;
  border-right: 1px solid #ccc;
  line-height: 1.4;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin-bottom: 0.5em;
}

.sidebar li ul {
  margin-left: 1em;
  margin-top: 0.3em;
}

.sidebar-box-title {
    text-align: center;
    font-weight: bold;
}



/* Sidebar-Bilder */
.sidebar-image {
  width: 160px;
  height: auto;
  display: block;
  margin: 0.5em auto;
  border: 1px solid #ccc;
  padding: 4px;
  background: white;
  border-radius: 3px;
}

/* Main */
main {
  flex: 1;
  padding: 1.5em;
  background: white;
}


/* ─────────────────────────────────────────────── */
/* Zurück-zum-Anfang Button                        */
/* ─────────────────────────────────────────────── */

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #7b1e24; /* dein Weinrot */
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: none; /* wird per JS eingeblendet */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 999;
  transition: opacity 0.3s ease;
}

#back-to-top:hover {
  background-color: #5e161b; /* dunkleres Weinrot */
}


/* ─────────────────────────────────────────────── */
/* FOOTER                                          */
/* ─────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 1em 0;
  background: #f4f4f4;
  margin-top: 2em;
  border-top: 1px solid #ccc;
}

  /* ─────────────────────────────────────────────── */
/* MOBILE: Sidebar ausblenden + Burger-Menü        */
/* ─────────────────────────────────────────────── */

.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0.5em;
}

@media (max-width: 768px) {

  .container {
    flex-direction: column;
  }

  .sidebar {
    display: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding: 1em 1.5em;
  }

  .sidebar.active {
    display: block;
  }

  .burger {
    display: block;
  }
}
 
.buch-cover {
    width: 100%;
    max-width: 200px;   /* gewünschte Vorschaubildgröße */
    height: auto;
    margin: 0 auto;
    display: block;
}
