/* Schriftarten */

@font-face {
    font-family: 'Breitkopffraktur';
    src: url('Schriften/Breitkopffraktur.ttf');
}

@font-face {
    font-family: 'Palatino Linotype';
    src: url('Schriften/PalatinoLinotype.ttf');
}

@font-face {
    font-family: 'Chomsky';
    src: url('Schriften/Chomsky.otf');
}

/* Allgemein */

html {
    scroll-behavior: smooth;
}

main {
    background-color: hsl(18, 85%, 3%);
    position: relative;
    z-index: 10;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Palatino Linotype', serif;
    color: hsl(60, 56%, 91%);
    cursor: url('Bilder/fuellfeder-cursor.png'), auto;
    scroll-behavior: smooth;
}

/* Farben */

h2 {
    color: hsl(37, 56%, 56%);
    font-family: 'Chomsky', serif;
    font-size: 3rem;
    font-weight: lighter;
    text-align: center;
    overflow: hidden;
}


h2.line::before,
h2.line::after {
  background-color: hsl(37, 56%, 56%);
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 25%;
}

h2.line::before {
  right: 0.5em;
  margin-left: -50%;
}

h2.line::after {
  left: 0.5em;
  margin-right: -50%;
}

h3 {
    color: hsl(40, 57%, 59%);
    font-family: 'Palatino Linotype', serif;
    font-size: 2rem;
}

h4 {
    color: hsl(40, 57%, 59%);
    font-family: 'Palatino Linotype', serif;
    font-size: 1.2rem;
}

p {
    color: hsl(31, 100%, 89%);
    font-size: 1.2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigationsleiste */

nav#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 7rem;
    background-color: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

nav#navbar ul {
    display: flex;
    list-style: none;
    flex-shrink: 5;
    margin-left: 3rem;
    margin-right: 3rem;
}

nav#navbar ul li {
    margin: 0 3rem;
    font-size: 1.5rem;
}

@keyframes text-pulse-glow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.1),
                    0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.25),
                    0 6px 30px rgba(0, 0, 0, 0.4);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.1),
                    0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

nav#navbar ul li a {
    color: hsl(37, 56%, 56%);
    text-decoration: none;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
}

nav#navbar ul li a:hover {
    transform: translateY(-2px);
    animation: text-pulse-glow 1.5s ease-in-out infinite;
    filter: brightness(1.1);
}

nav#navbar .logo {
    height: 70px;
    margin: 0 2rem;
}

/* Slider */

#slider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0rem 4rem;
    position: relative;
    transition: background-color 2s ease;
}

.slide-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 1600px;
    position: relative;
}

.slide {
    min-width: 100%;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    pointer-events: none; /* Mausereignisse verhindern */
}

.slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto; /* Nur aktives Slide reagiert */
}

.bild-container {
    display: flex;
    justify-content: center;
    height: 41rem;
    width:45%;
}

.bild-container img {
    margin-top: 2rem;
    margin-left: 5rem;
}

.slide-text {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 41rem;
    width: 55%;
    text-align: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: left;
}

#slide1 {
    background-image: url('Bilder/Turner_Meer.jpg');
}

#slide2 {
    background-image: url('Bilder/Turner_Meer.jpg');
}

.blackbox {
    width: 30rem;
    padding-top: 5px;
    padding-bottom: 1rem;
}

.quote {
    font-style: italic;
}

.slide img {
    height: 40rem;
    width: auto;
}

.rahmen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 41rem; /* Gleiche Höhe wie slide-text */
    width: 100%;    /* Gleiche Breite wie slide-text */
    text-align: center;
    background-attachment: none;
    background-size: cover;
    background-position: left;
}

#rahmen1 {
    background-image: url('Bilder/rahmen-braun.png');
}

#rahmen2 {
    background-image: url('Bilder/rahmen-lila.png');
}

/* Slider Pfeile */

.arrow {
    width: 2.5rem;
    flex-shrink: 0;
    background: none;
    border: none;
    color: #f5f5dc;
    font-size: 2rem;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    display: flex;
    align-items: center;
}
.arrow:hover {
    transform: scale(1.2);
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
}

#slider .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #f5f5dc;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

#slider .arrow.left {
    left: 2rem; /* nah am linken Rand */
}

#slider .arrow.right {
    right: 2rem; /* nah am rechten Rand */
}

.slide .arrow {
    pointer-events: auto; /* Pfeile immer anklickbar machen */
    z-index: 20; /* Sicherstellen, dass die Pfeile über anderen Elementen liegen */
}

/* Neuste Erscheinung */
#neueste-erscheinung {
    padding: 4rem 2rem;
}

.neu-content {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    width: 80rem;
    margin: auto;
}

.neu-content img {
    height: 40rem;
    padding: 0;
    margin: 0;
}

.beschreibung {
    max-width: 600px;
    width: 50rem;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-right: 5rem;
    height: 3rem;
}

/* Basis-Stil */
.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /*display: flex;
    align-items: center;
    gap: 0.6rem;*/
}

.btn-icon {
    height: 1.4rem;
    width: auto;
    flex-shrink: 0;
    display: block;
}

/* Hover-Effekt mit Leuchten */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
                    0 4px 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.25),
                    0 6px 20px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
                    0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

.btn:hover {
    transform: translateY(-2px);
    animation: pulse-glow 1.5s ease-in-out infinite;
    filter: brightness(1.1);
}

/* Individuelle Farbverläufe */
.amazon {
    background: linear-gradient(135deg, #ff9900, #e68a00);
}

.thalia {
    background: linear-gradient(135deg, #339933, #2b7a2b);
}

.hugendubel {
    background: linear-gradient(135deg, #cc3333, #a52828);
}

.ocker {
    background: linear-gradient(135deg, hsl(40, 77%, 50%), hsl(40, 77%, 45%));
    margin: 2rem;
}

.ocker:hover {
    background: linear-gradient(135deg, hsl(40, 77%, 60%), hsl(40, 77%, 50%));
}

/* Lesermeinungen */

#lesermeinungen {
    background-image: url('Bilder/Mánes_Wasserfall.jpeg');
    background-attachment: fixed;
    background-size: 80rem;
    background-position: center;
    background-repeat: no-repeat;
    height: 30rem;
    width: 60rem;
    padding: 4rem 2rem;
    margin: auto;
    margin-top: 4rem;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    max-width: 600px;
    margin: auto;
}

.testimonial-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    overflow: hidden;
    position: relative;
}

.testimonial {
    flex: 1;
    opacity: 0;
    transition: opacity 1s ease;
    position: absolute;
    width: 100%;
    height: 19rem;
}

.testimonial p, h2 {
    font-weight: bold;
    text-shadow: 0 0 18px hsla(0, 0%, 0%, 0.8),
                 0 0 5px hsl(0, 0%, 0%),
                 0 0 10px black;
}

.testimonial.active {
    opacity: 1;
    position: relative;
}
.testimonial .arrow {
    margin: 3rem;
}

.dots {
    margin-top: 1rem;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

/* Über mich */

#über-mich {
    padding: 4rem 2rem;
}

.about-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    width: 80rem;
    margin: auto;
}

.text-block {
    width: 35rem;
}

/* --- Newsletter-Formular Container --- */

input {
    font-size: 1rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: hsl(31, 100%, 92%);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 30rem;
    padding: 3rem;
    background-color: hsl(20, 88%, 5%);
    border-radius: 10px;
    box-shadow: 0 0 10px black;
}

/* --- Wrapper für die beiden Input-Felder --- */
.newsletter-form .input-wrapper {
    display: flex;            /* Ordnet die Felder nebeneinander an */
    gap: 1rem;                /* Abstand zwischen den Feldern */
    margin-bottom: 1rem;      /* Abstand zum Button */
}

/* --- Input-Felder im Wrapper --- */
.newsletter-form .input-wrapper input {
    flex: 1;                  /* Felder wachsen gleichmäßig */
    padding: 0.5rem;          /* Horizontales Padding bleibt erhalten */
    border: none;
    border-radius: 5px;
    height: 1.8rem;           /* Feste Höhe für Konsistenz */
}

.newsletter-form .btn {
    text-align: center;
    margin: 0;
}

/* Buch Karussell */

/* --- Karussell-Slider --- */
#buch-slider-ende {
    background-color: hsl(20, 88%, 5%);
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;  /* Wichtig für absolute Positionierung der Pfeile */
    box-shadow: 0 0 10px black;
}

/* --- Carousel: Wir setzen die Breite auf 100% des Containers --- */
.carousel {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Entferne hier eventuellen gap, da wir die genaue Breite der Bücher festlegen */
}

/* --- Bücher: Jeder Buch-Container bekommt exakt 1/3 der Breite, sodass genau drei Bücher sichtbar sind --- */
.buch {
    flex: 0 0 calc(100% / 3);  /* Jeder Buch nimmt 33.33% der Breite ein */
    text-align: center;
}

/* --- Sicherstellen, dass der Text unter dem Cover zentriert ist --- */
.buch p {
    text-align: center;
    margin-top: 0.5rem;  /* Falls du einen kleinen Abstand zwischen Bild und Text wünschst */
}

/* --- Bilder in den Buch-Containern --- */
.buch img {
    display: block;
    margin: 0 auto;       /* Zentriert das Bild */
    width: 100%;
    max-width: 150px;     /* Passt das Bild auf eine maximale Breite an */
}

/* --- Pfeile im Karussell-Slider --- */
#buch-slider-ende .arrow {
    position: absolute;          /* Absolute Positionierung relativ zum #buch-slider-ende */
    top: 50%;                    /* Vertikal zentriert */
    transform: translateY(-50%);
    font-size: 2rem;
    color: #f5f5dc;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

/* Pfeile am äußersten Rand positionieren */
#buch-slider-ende .arrow.left {
    left: 1.5rem;    /* Ganz links */
}

#buch-slider-ende .arrow.right {
    right: 1.5rem;   /* Ganz rechts */
}

/* Footer */

/* Footer-Grundstil */
#footer {
    padding: 2rem;
    background-color: hsl(20, 88%, 2%); /* z.B. dunkles Braun/Rot */
    color: #f5f5dc;                     /* Helles Beige */
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Container für Newsletter-Block, Divider und Social-Bereich */
.footer-container {
    display: grid;
    grid-template-columns: 7fr auto 3fr; /* Linke Spalte, Trennlinie, rechte Spalte */
    align-items: center;                /* Inhalte vertikal zentrieren */
    gap: 2rem;                          /* Abstand zwischen den Zellen */
    margin-top: 2rem;
    margin-bottom: 5rem;
}

/* Newsletter-Block (links) */
.newsletter-block {
    flex: 1;                    /* Nimmt verfügbaren Platz ein */
    max-width: 50rem;           /* Optional, um den Block nicht zu breit zu machen */
    display: flex;
    flex-direction: column;  /* Ordnet Inhalte vertikal an */
    align-items: center;     /* Zentriert horizontal */
    text-align: center;      /* Zentriert Text innerhalb der Kinder */
    justify-self: center; /* Zentriert den Block in seiner Grid-Zelle */
    text-align: center;   /* Zentriert den Text innerhalb des Blocks */
}

/* Überschrift & Text im Newsletter-Bereich */
.newsletter-heading {
    margin-top: 0;             /* Falls du keinen extra Abstand oben willst */
    margin-bottom: 0.5rem;     /* Kleiner Abstand zur Einleitung */
    font-size: 1.5rem;         /* Passe nach Geschmack an */
}

.newsletter-text {
    margin-bottom: 1rem;       /* Abstand unterhalb des Textes vor dem Formular */
    line-height: 1.4;          /* Angenehmer Zeilenabstand */
}

/* Newsletter-Formular */
.footer-form {
    display: flex;             /* Inputs und Button nebeneinander */
    gap: 0.5rem;               /* Abstand zwischen Inputs und Button */
    flex-wrap: wrap;           /* Damit Inputs auf schmalen Bildschirmen umbrechen können */
    margin-top: 2rem;
}

.footer-form input {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    width: 17rem;
    height: 2rem;
}

/* Du kannst hier die gleiche Button-Optik wie in den anderen Buttons nehmen */
.footer-form .btn {
    padding: 0.75rem 1.5rem;
    margin: 0;
    background-color: #cc9900;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    
}

.footer-form .btn:hover {
    background-color: #b8860b;
}

/* Vertikale Trennlinie in der Mitte */
.footer-divider {
    width: 1px;
    height: auto;              /* Höhe passt sich dem Eltern-Element an */
    background-color: hsl(40, 70%, 55%); /* Gleiche Farbe wie Text */
    align-self: stretch;       /* Füllt den verfügbaren vertikalen Platz */
}

/* Social-Bereich (rechts) */
.social {
    flex: 1;                   /* Nimmt den restlichen Platz ein */
    max-width: 300px;          /* Ggf. begrenzen */
    text-align: right;         /* Rechtsbündig wie im Beispielbild */
    display: flex;
    flex-direction: column;  /* Inhalte untereinander anordnen */
    align-items: center;     /* Horizontal zentrieren */
    text-align: center;      /* Text in den Kindern zentriert */
    justify-self: center; /* Zentriert den Block in seiner Grid-Zelle */
    text-align: center;   /* Zentriert den Text innerhalb des Blocks */
}

/* Copyright-Zeile darunter */
#footer p.copyright {
    margin-top: 1rem;          /* Abstand über dem Copyright */
    text-align: center;        /* Zentriert (wie im Beispiel) */
}