/*
Theme Name: Laubgefluester Minimal
Author: Klaus Poppenberg
Description: Ein schlankes, klassisches Theme mit rechter Sidebar.
Version: 1.0
*/

/* --- 1. FARBPALETTE & VARIABLEN --- */
:root {
    --forest-dark: #2c4c3b;   /* Tiefes Tannengrün für Überschriften */
    --leaf-green: #5c8266;    /* Sanftes Blattgrün für Akzente und Buttons */
    --earth-brown: #5c4d42;   /* Erdiges Braun für Meta-Texte und Footer */
    --bg-light: #f9f8f4;      /* Sehr helles Beige/Sand für den Außen-Hintergrund */
    --bg-white: #ffffff;      /* Reines Weiß für die Inhaltsboxen */
    --text-main: #3a3a3a;     /* Dunkles Grau statt hartem Schwarz für weicheren Kontrast */
    --border-soft: #e5e1d8;   /* Sanfte Rahmenfarbe */
	--bg-soft-nature: #f8f9f7; /* Ein ganz sanftes, nebeliges Waldweiß */
}

/* Den Abstand oben auf der Startseite etwas anpassen, 
   damit Logo und Menü schön bündig sitzen */
.home .site-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Eine ganz hauchzarte Trennung */
}


/* --- 2. GRUNDLAGEN & TYPOGRAFIE --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-soft-nature);
    margin: 0;
    padding: 0;
    line-height: 1.7; /* Etwas mehr Zeilenabstand für entspanntes Lesen */
    font-size: 17px;
}


/* Weiche Schatten für Bilder und Karten */
.profile-pic, .blog-card, .service-box {
    border: none !important;
    border-radius: 20px !important; /* Viel weichere Ecken */
    box-shadow: 0 20px 50px rgba(45, 61, 40, 0.08) !important; /* Sanfter, waldgrüner Schatten */
}

/* Serifenschrift für Überschriften wirkt geerdet und organisch */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--forest-dark);
    font-weight: normal;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.4em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }

a {
    color: var(--leaf-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--forest-dark);
}

/* --- 3. LAYOUT-GERÜST --- */
.site-container {
    max-width: 1200px; /* Begrenzte Breite, damit das Auge beim Lesen nicht ermüdet */
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Viel Luft zwischen Hauptteil und Sidebar */
    padding: 0 20px;
}

/* --- 4. HEADER & NAVIGATION --- */
header {
    background-color: var(--bg-white);
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-soft);
}

header h1 a {
    color: var(--forest-dark);
    font-size: 1.5em;
    letter-spacing: 1px;
}

header p {
    color: var(--earth-brown);
    font-style: italic;
    font-family: Georgia, serif;
    margin-top: 5px;
}

/* --- BURGER-MENU BUTTON (Desktop: Versteckt) --- */
.menu-toggle {
    display: none; 
    background: transparent;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    color: var(--forest-dark);
    font-size: 1.1em;
    cursor: pointer;
    padding: 8px 15px;
    margin: 20px auto 0;
    font-family: inherit;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--bg-light);
}

/* --- DESKTOP MENÜ --- */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.main-navigation a {
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    color: var(--leaf-green);
}

/* --- 5. HAUPTBEREICH & ARTIKEL --- */
.main-content {
    flex: 1;
    background: var(--bg-white);
    padding: 40px 50px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02); /* Fast unsichtbarer, sehr weicher Schatten */
    box-sizing: border-box;
}

/* Blog-Einträge */
.blog-entry {
    margin-bottom: 50px;
}

.blog-entry h2 {
    margin-top: 0;
}

.meta-info {
    color: var(--earth-brown);
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* "Weiterlesen"-Button */
.button {
    display: inline-block;
    background-color: var(--leaf-green);
    color: var(--bg-white);
    padding: 10px 24px;
    border-radius: 3px;
    margin-top: 15px;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.button:hover {
    background-color: var(--forest-dark);
    color: var(--bg-white);
}


/* --- BLOG GRID & KARTEN-DESIGN --- */
.blog-grid {
    display: grid;
    /* Macht das Grid automatisch responsive: Spalten sind mind. 300px breit, sonst nehmen sie den restlichen Platz */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.blog-card {
    background: var(--bg-white);
    /* border und border-radius werden über die gemeinsame .blog-card-Regel mit !important gesteuert */
    overflow: hidden; /* Sorgt dafür, dass die Bilder oben abgerundete Ecken bekommen */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px); /* Hebt die Karte beim Drüberfahren leicht an */
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.blog-card-image a {
    display: block;
}

.blog-card-image img {
    width: 100%;
    height: 220px; /* Einheitliche Höhe für alle Bilder im Grid */
    object-fit: cover; /* Schneidet die Bilder perfekt zu, ohne sie zu verzerren */
    display: block;
    border-bottom: 1px solid var(--border-soft);
}

.blog-card-content {
    padding: 25px;
    flex: 1; /* Schiebt den Button nach unten, falls die Texte unterschiedlich lang sind */
    display: flex;
    flex-direction: column;
}

.blog-card-content h2 {
    margin-top: 0;
    font-size: 1.4em;
}

.blog-card-content .meta-info {
    color: var(--earth-brown);
    font-size: 0.85em;
    margin-bottom: 15px;
}

/* Den Button immer ganz unten an der Karte ausrichten */
.blog-card-content .button {
    margin-top: auto; 
    align-self: flex-start;
}



/* --- 6. SIDEBAR --- */
.sidebar-right {
    width: 300px;
    padding: 0; /* Box-Design wird durch die Widgets selbst bestimmt */
}

.widget {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.widget-title {
    font-size: 1.2em;
    border-bottom: 2px solid var(--leaf-green);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 10px;
}

.widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}



/* --- 7. FOOTER --- */
.site-footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-soft);
    padding: 30px 20px;
    margin-top: 40px;
    width: 100%; /* Sichert ab, dass der Footer über die volle Breite geht */
    box-sizing: border-box;
}

.footer-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav,
.footer-copyright,
.footer-socials {
    flex: 1;
}

.footer-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.footer-nav a {
    color: var(--earth-brown);
    font-size: 0.85em;
}

.footer-nav a:hover {
    color: var(--leaf-green);
}

.footer-nav .separator {
    color: var(--border-soft);
    font-size: 0.85em;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: var(--earth-brown);
    font-size: 0.85em;
    margin: 0;
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.footer-socials a {
    color: var(--forest-dark);
    display: flex;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a svg {
    width: 22px;
    height: 22px;
    fill: currentColor; 
}

.footer-socials a:hover {
    color: var(--leaf-green);
    transform: translateY(-3px); 
}

/* --- 8. RESPONSIVE DESIGN (TABLETS & SMARTPHONES) --- */

/* TABLETS (Bildschirme bis 1024px Breite) */
@media (max-width: 1024px) {
    .site-container { gap: 20px; padding: 0 15px; }
    .main-content { padding: 30px; }
    .sidebar-right { width: 260px; }
}

/* SMARTPHONES (Bildschirme bis 768px Breite) */
@media (max-width: 768px) {
    body { font-size: 16px; line-height: 1.6; }
    h1 { font-size: 1.8em; margin-top: 1em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.25em; }
    
    header { padding: 25px 15px; }
    header h1 a { font-size: 1.3em; }
    
    .site-container { flex-direction: column; margin: 15px auto; gap: 30px; }
    .sidebar-right { width: 100%; }
    
    .main-content {
        padding: 20px 15px;
        box-shadow: none; 
        border-radius: 0;
        border-top: 1px solid var(--border-soft);
        border-bottom: 1px solid var(--border-soft);
    }
    
    .widget {
        padding: 20px 15px;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid var(--border-soft);
    }
    
    /* Mobile Menü */
    .menu-toggle { display: inline-block; }
    .main-navigation ul { display: none; flex-direction: column; gap: 10px; margin-top: 15px; }
    .main-navigation.toggled ul { display: flex; }
    .main-navigation a { display: block; padding: 12px; background-color: var(--bg-light); border-radius: 4px; text-align: center; }

    /* Mobile Footer Anpassung: Alles wieder untereinander zentrieren */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .footer-nav,
    .footer-copyright,
    .footer-socials {
        justify-content: center;
        text-align: center;
    }
}


/* --- 9. STARTSEITE (FRONT-PAGE) --- */

.hero-section {
    position: relative;
    /* Tipp: Lade ein schönes Wald-Bild unter assets/hero-bg.jpg hoch */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2)), url('assets/hero-bg.jpg') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 80px;
    clip-path: ellipse(150% 100% at 50% 0%); /* Erzeugt eine sanfte Wölbung nach unten */
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 16px 35px;
    background-color: var(--leaf-green);
    color: white;
    text-decoration: none;
    border-radius: 50px; /* Schönere, weichere Abrundung */
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--forest-dark);
    transform: scale(1.05);
}

/* Intro Sektion */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start; /* Text beginnt oben bündig mit dem Bild */
    margin-bottom: 100px;
}

.profile-pic {
    width: 100%;
    height: auto;
    /* border-radius und box-shadow werden über die gemeinsame .profile-pic-Regel mit !important gesteuert */
}

.editor-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Mobile Anpassung */
@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-section { height: 60vh; }
}


/* 1. Header-Grafik auf der Startseite verstecken */
.home .header-image {
    display: none !important;
}


/* Header-Grafik auf Unterseiten zentrieren und weich gestalten */
.header-image {
    max-width: 100%;
    height: auto;
    display: block; /* Wichtig, damit margin: auto funktioniert */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    
    /* Die weichen Wald-Ecken */
    border-bottom-left-radius: 60px 25px;
    border-bottom-right-radius: 60px 25px;
    
    /* Ein ganz zarter Schatten für mehr Tiefe (Licht & Schatten) */
    box-shadow: 0 10px 30px rgba(45, 61, 40, 0.05);
}

.home .site-header, 
header {
    text-align: center;
}

header h1, header p {
    margin-left: auto;
    margin-right: auto;
}