/* CSS Reset und grundlegendes Design */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* 1. Eigene Schriften laden */
@font-face {
    font-family: 'Berlin';
    src: url('fonts/berlin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/nunito.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Globale Ausrichtung für die großen Überschriften (gilt für alle Unterseiten) */
h1, h2 {
    text-align: center;
}

/* 3. Fließtext: Nunito nutzen */
body { 
    font-family: 'Nunito', sans-serif; 
    font-size: 18px; 
    line-height: 1.6; 
    color: #1a202c; 
    background-color: #f4f7f5; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

/* 4. Überschriften & Logo: Berlin nutzen */
h1, h2, h3, .logo, .section-title {
    font-family: 'Berlin', sans-serif;
    font-weight: normal;
}

/* Header / Navigation */
header { 
    background-color: #fff; 
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

/* Logo im Header (Angepasst für Bild) */
.logo { 
    display: flex;
    align-items: center; 
    text-decoration: none; 
    padding: 5px 0; 
}
.logo-img {
    max-height: 150px; 
    width: auto; 
}

/* --- DAS HAMBURGER-MENÜ & OVERLAY --- */

/* Der Hamburger-Button im Header */
.menu-btn {
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

/* Das Haupt-Overlay (Der Hintergrund des Menüs) */
.overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f7f5; 
    z-index: 90; 
    overflow-y: auto; 
    /* Das padding-top wurde hier gelöscht! */
    padding-bottom: 50px; 
    padding-left: 5%; 
    padding-right: 5%;
}

/* Container, damit die Links zentriert bleiben */
.overlay-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 210px;
}

/* Das Aussehen der Menü-Links */
.overlay a {
    padding: 8px 0;
    text-decoration: none;
    font-size: 1.2rem;
    color: #444;
    display: flex; 
    justify-content: flex-start; 
    align-items: center;
    gap: 8px; 
    transition: color 0.3s;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee; 
}

.overlay a:hover {
    color: #2c974b;
}

/* Der neue, automatische Pfeil am Ende jedes Links */
.overlay a::after {
    content: '→'; 
    color: #2c974b; 
    font-size: 1.4rem; 
    transition: transform 0.3s ease; 
}

/* Die magische Animation beim Drüberfahren/Antippen */
.overlay a:hover::after {
    transform: translateX(6px); /* Pfeil rutscht ein minimales Stück nach rechts */
}

/* Hero Sektion */
.hero { 
    background: url('Bilder/wellis.jpg') center/cover; 
    color: #fff; 
    text-align: center; 
    padding: 120px 20px; 
}
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 650px; margin-left: auto; margin-right: auto; }
/* Einheitliches Design für alle Buttons (Hero & Weiterlesen) */
.btn { 
    display: inline-block; 
    background-color: #2c974b; 
    color: #fff; 
    padding: 10px 24px; /* Etwas schlanker als vorher (war 12px 30px) */
    font-size: 1rem; /* Kompaktere, normale Schriftgröße */
    text-decoration: none; 
    border-radius: 25px; /* Ein ticken weniger rund */
    font-weight: 700; 
    transition: background 0.3s, transform 0.2s; 
    box-shadow: 0 4px 6px rgba(44, 151, 75, 0.2); /* Etwas weicherer Schatten */
}

.btn:hover { 
    background-color: #237a3c; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(44, 151, 75, 0.3); /* Schatten wird beim Hovern leicht größer */
}

/* Themen-Grid (Kacheln) */
.container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; flex: 1; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 40px; color: #222; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: #fff; border-radius: 12px; padding: 30px; text-align: center; box-shadow: 0 8px 15px rgba(0,0,0,0.03); transition: transform 0.3s, box-shadow 0.3s; border-bottom: 4px solid transparent; display: flex; flex-direction: column; justify-content: space-between; align-items: center;}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(0,0,0,0.08); border-bottom: 4px solid #2c974b; }
.card h3 { color: #2c974b; margin-bottom: 12px; font-size: 1.4rem; }
.card p { color: #333; margin-bottom: 20px; font-size: 1.05rem; flex-grow: 1;}

/* Video Sektion */
.video-section { background-color: #eaf3ed; padding: 60px 20px; }
.video-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; max-width: 1100px; margin: 0 auto; align-items: flex-start;}

.video-wrapper { 
    background: #000; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.main-video {
    flex: 1; 
    min-width: 300px; 
    max-width: 560px; 
    aspect-ratio: 16/9;
}

.short-wrapper { 
    max-width: 315px; 
    aspect-ratio: 315 / 560; 
    width: 100%;
}

.video-wrapper iframe { width: 100%; height: 100%; border: none; }

.video-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.video-wrapper:hover .video-placeholder {
    transform: scale(1.03);
}

.play-button {
    background-color: rgba(26, 26, 24, 0.8); 
    color: #fff;
    font-size: 2rem;
    width: 70px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.video-placeholder:hover .play-button {
    background-color: #2c974b;
    color: #fff;
}

/* --- FOOTER --- */
footer { 
    background-color: #1a1a18; 
    color: #f4f7f5; 
    text-align: center; 
    padding: 40px 20px; 
    margin-top: auto; 
    /* Das position: relative; haben wir entfernt, da der Pfeil jetzt in der Mitte steht */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
}

/* Container für die Text-Links */
.footer-links {
    margin: 5px 0;
}

.footer-links a { 
    color: #2c974b; 
    text-decoration: none; 
    margin: 0 10px; 
    font-weight: bold;
}

.footer-links a:hover { 
    text-decoration: underline; 
    color: #fff; 
}

.footer-copyright {
    color: #888;
    font-size: 1.1rem; 
    margin-top: 15px;
}

/* Der ZENTRIERTE 'Nach Oben' Button GANZ OBEN */
.back-to-top-center {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-decoration: none;
    transition: transform 0.3s;
    margin-bottom: 25px; /* Schöner Abstand zu den Text-Links darunter */
}

.back-to-top-center:hover {
    transform: translateY(-5px); 
}

.back-to-top-center img {
    width: 150px; /* Das Bild ist jetzt richtig schön groß */
    height: auto;
    margin-bottom: 8px; 
}

.back-to-top-center span {
    color: #2c974b;
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.back-to-top-center:hover span {
    text-decoration: underline;
    color: #fff;
}
/* Mobile Anpassungen (HIER WAR DER FEHLER) */
@media (max-width: 768px) {
    .hero { padding: 80px 20px; }
    .hero h1 { font-size: 2rem; }
    .video-container { flex-direction: column; align-items: center; }
}

/* --- BEITRAGS-SEITEN (ARTIKEL) --- */
.post-container {
    max-width: 800px; 
    margin: 40px auto; 
    padding: 0 20px;
    flex: 1; 
}

.post-title {
    font-size: 2.8rem;
    color: #1a1a18;
    margin-bottom: 10px;
    text-align: center;
}

.post-meta {
    font-size: 1.15rem; /* Deutlich größer (vorher 0.95rem) */
    color: #222; /* Ein sehr dunkles Grau, fast Schwarz, gegen das Verschwimmen */
    text-align: center;
    margin-bottom: 30px;
}

.post-meta span {
    font-weight: 700;
    color: #1a1a18; /* Das Grün ist weg, jetzt passend zum restlichen Text */
}

/* Das Titelbild */
.post-hero-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover; 
    border-radius: 12px;
    margin-bottom: 60px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Der Trick für die aufgeräumte WordPress-Optik */
.post-content {
    max-width: 720px; 
    margin: 0 auto; 
    text-align: left; 
}

.post-content p {
    margin-bottom: 25px; 
    line-height: 1.7; 
}

/* Globale Hauptüberschriften im Text zentrieren und Farbe anpassen */
.post-content h2, .post-content h3 {
    text-align: center;
    color: #1a1a18; /* Das Grün ist weg, jetzt im eleganten, sehr dunklen Farbton des Titels */
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 55px 0 20px 0; 
}

/* Die H4 Überschrift (z.B. für Buchtitel) - Ausnahmeregel für die Schriftart */
.post-content h4 {
    font-family: 'Nunito', sans-serif; /* Zwingt die Schriftart auf Nunito */
    font-size: 1.2rem; /* Minimal kleiner für einen eleganteren Übergang zum Text */
    font-weight: 700; /* Nunito in fett, damit es sich trotzdem gut abhebt */
    margin: 40px 0 5px 0; /* Wenig Abstand nach unten, damit der Text direkt anschließt */
    color: #1a1a18; 
}
/* --- BUCHTIPP / INFO-BOX --- */
.book-recommendation {
    background-color: #fff;
    border-left: 5px solid #2c974b; /* Der dicke grüne Strich links */
    padding: 20px 25px;
    margin: 35px 0;
    border-radius: 0 8px 8px 0; /* Rundet die Ecken rechts ab, links bleibt es eckig für den Strich */
    box-shadow: 0 4px 15px rgba(0,0,0,0.04); /* Ein sehr sanfter Schatten */
    text-align: left;
}

.book-recommendation h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem; /* Ein kleines bisschen größer, um mit dem 18px Text mitzuhalten */
    font-weight: 700;
    color: #1a1a18;
    margin: 0 0 12px 0; /* Exakter, eleganter Abstand zum Text anstelle von <br> */
}

.book-recommendation p {
    margin-bottom: 0; 
    /* Die Schriftgrößen-Vorgabe ist hier gelöscht, damit deine globalen 18px greifen! */
}
/* Spezielles Design für die Vogel-Namen */
.bird-name {
    text-align: center;
    margin-bottom: 5px;
    font-size: 2.2rem;       /* Deutlich größer als vorher */
    font-weight: 700;        /* Ein Versuch, sie fett zu machen */
    color: #2c974b;          /* Das frische Grün deiner Webseite */
    letter-spacing: 1px;     /* Etwas mehr Luft für bessere Lesbarkeit */
}