/* =========================
   BASIS
========================= */

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #0f0f0f, #151515);
    color: white;
}

/* HEADLINES */
h1, h2, h3 {
    font-family: "Shrekhand", cursive;
    letter-spacing: 1px;
}

/* LINKS GLOBAL */
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* =========================
   NAVIGATION (GLASS STYLE)
========================= */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    flex-wrap: wrap;

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

nav a {
    color: white;
    font-weight: 500;
}

nav a:hover {
    color: #ff9a3c;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
}

.hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 64px;
    text-shadow: 0 5px 25px rgba(0,0,0,0.9);
}

.hero-text p {
    opacity: 0.9;
}

/* =========================
   SECTION BOX SYSTEM
========================= */

.section-box {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 30px;

    background: rgba(30,30,30,0.85);
    backdrop-filter: blur(8px);

    border-radius: 18px;
    text-align: center;

    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.section-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.section-box p {
    color: #bbb;
}

/* ORANGE TRENNLINIE */
.section-divider {
    width: 80px;
    height: 3px;
    background: #ff9a3c;
    margin: 15px auto 25px auto;
    border-radius: 10px;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 15px;

    background: linear-gradient(135deg, #ff9a3c, #ff7a00);
    color: black;

    padding: 10px 18px;
    border-radius: 999px;

    font-weight: 500;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255,154,60,0.4);
}

/* =========================
   INTRO
========================= */

.intro p {
    font-size: 24px;
    max-width: 700px;
    margin: 60px auto 20px auto;
    text-align: center;
}

.page-header {
    text-align: center;
    max-width: 900px;
    margin: 60px auto 20px auto;
    padding: 0 20px;
}

/* =========================
   PROJECT CARD
========================= */

.project-card {
    max-width: 950px;
    margin: 60px auto;
    padding: 35px;

    background: rgba(30,30,30,0.9);
    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;

    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-text {
    flex: 1;
}

.project-text p {
    color: #bbb;
}

.project-cover img {
    width: 150px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

/* =========================
   KACHELN
========================= */

.grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.card {
    background: rgba(30,30,30,0.9);
    border-radius: 18px;
    width: 300px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    text-align: center;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card p {
    color: #bbb;
}

.card a {
    margin: 15px auto 20px auto;
    background: linear-gradient(135deg, #ff9a3c, #ff7a00);
    color: black;
    padding: 10px 15px;
    border-radius: 999px;
}

/* =========================
   BÜCHER
========================= */

.book-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 30px;

    background: rgba(30,30,30,0.9);
    border-radius: 18px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.book-card {
    background: rgba(25,25,25,0.9);
    width: 250px;
    border-radius: 15px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: 0.3s;
}

.book-card:hover {
    transform: translateY(-8px);
}

.book-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.book-card a {
    margin: 15px auto 20px auto;
    background: linear-gradient(135deg, #ff9a3c, #ff7a00);
    color: black;
    padding: 10px 15px;
    border-radius: 999px;
}

.desc {
    font-size: 14px;
    color: #bbb;
}

/* =========================
   BLOG
========================= */

.post {
    background: rgba(30,30,30,0.9);
    margin: 10px 0;
    padding: 15px;
    border-radius: 12px;
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 30px;
    background: #000;
}

.footer-links a {
    color: #ff9a3c;
}

/* =========================
   SMALL EXTRAS (deine bestehenden Klassen behalten)
========================= */

.leseprobe-cover {
    width: 180px;
    margin: 20px auto;
    border-radius: 12px;
}

.section-left { margin-left: 10%; }
.section-right { margin-right: 10%; }

.buy-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.goodreads-highlight {
    border: 2px solid #ff9a3c;
}

.image-credit {
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .hero-title {
        font-size: 38px;
    }

    .card {
        width: 90%;
    }

    .project-card {
        text-align: center;
        justify-content: center;
    }

    .project-text {
        text-align: center;
    }
}
/* =========================
   FIX: BÜCHER GRID + ZENTRIERUNG
========================= */

.book-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* zentriert alle Karten */
    gap: 25px;
}

/* sorgt dafür, dass Karten nebeneinander bleiben */
.book-card {
    flex: 0 1 250px;
}

/* Sektionen sauber zentrieren */
.book-section {
    text-align: center;
}

/* Text in der Mitte, aber Cards bleiben flexibel */
.book-section .section-text,
.book-section h2,
.book-section p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}