/*
Theme Name: Klosterlöwen Karlshuld FULL WIDTH
Author: Dein Name
Version: 8.0
*/

/* --- 1. SCHRIFTARTEN --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Oswald:wght@500;700&display=swap');

:root {
    /* FARBEN (1860 CI) */
    --color-primary: #4FA4E2;   /* Hellblau */
    --color-dark: #003366;      /* Dunkelblau */
    --color-bg: #f4f6f8;        /* Hintergrund Hellgrau */
    --color-white: #ffffff;
    --color-text: #333333;
    
    /* FONTS */
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- 2. BASIS RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--color-dark);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* --- 3. HEADER (FULL WIDTH) --- */
.site-header {
    background: var(--color-dark);
    border-bottom: 4px solid var(--color-primary);
    position: sticky; 
    top: 0; 
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.header-container {
    width: 100%; /* Volle Breite */
    padding: 0 40px; /* Abstand links/rechts */
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 65px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.site-title {
    font-family: var(--font-head); 
    font-size: 2rem; 
    color: white;
    text-transform: uppercase; 
    line-height: 1.1;
}

/* --- 4. BURGER BUTTON --- */
.burger-btn {
    background: none;
    border: 2px solid var(--color-primary);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2000;
}

.burger-btn span {
    display: block; width: 30px; height: 3px; 
    background-color: white; transition: 0.3s;
}

.burger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); background-color: var(--color-primary); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); background-color: var(--color-primary); }

/* --- 5. SIDEBAR NAVIGATION --- */
.main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 320px; height: 100vh;
    background-color: #0b162a;
    padding: 100px 30px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 1500;
    border-left: 5px solid var(--color-primary);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.main-nav.active { transform: translateX(0); }

.nav-list li { border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; margin-bottom: 10px; }
.nav-list a { 
    display: block; padding: 10px 0; 
    color: white; font-family: var(--font-head); font-size: 1.4rem; 
    text-transform: uppercase; padding-right: 40px;
}
.nav-list a:hover { color: var(--color-primary); padding-left: 10px; }

.sub-menu { display: none; padding-left: 20px; background: rgba(255,255,255,0.05); margin-top: 5px; }
.sub-menu.open { display: block; }
.sub-menu a { font-size: 1rem; color: #ccc; font-family: var(--font-body); text-transform: none; }

.menu-arrow {
    position: absolute; top: 0; right: 0;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary); cursor: pointer; font-size: 1.2rem;
}

/* --- 6. TICKER --- */
.ticker-bar {
    background-color: var(--color-primary);
    height: 40px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    position: relative; z-index: 900;
}
.ticker-wrap { animation: scrollUp 15s linear infinite; }
.ticker-item {
    height: 40px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; text-transform: uppercase;
    font-family: var(--font-head); letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* --- 7. HERO SLIDESHOW (FULL WIDTH) --- */
.hero-section {
    position: relative;
    width: 100%; height: 500px; /* Etwas höher für Fullscreen Feel */
    background-color: var(--color-dark);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
    margin-bottom: 50px; border-bottom: 5px solid var(--color-primary);
}
.hero-slides { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; animation: slideShow 20s infinite;
}
.slide:nth-child(1) { animation-delay: 0s; } .slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; } .slide:nth-child(4) { animation-delay: 15s; }

@keyframes slideShow { 
    0% { opacity: 0; transform: scale(1); } 5% { opacity: 1; } 25% { opacity: 1; } 
    30% { opacity: 0; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1); } 
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,51,102,0.3), rgba(0,51,102,0.9)); z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero-content h1 { font-size: 5rem; color: white; text-shadow: 2px 2px 0px var(--color-primary), 0 0 30px black; margin: 0; line-height: 1; }
.hero-content p { font-size: 1.8rem; color: #ddd; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; margin-top: 10px; }

/* --- 8. CONTENT CONTAINER (FULL WIDTH) --- */
.container { 
    width: 100%; 
    padding: 0 40px; /* Minimaler Randabstand */
    margin: 40px auto; 
}

.section-title { font-family: var(--font-head); font-size: 3rem; color: var(--color-dark); text-align: center; margin-bottom: 50px; text-transform: uppercase; }

/* GRID (Dynamisch Full Width) */
.grid { 
    display: grid; 
    /* Spalten passen sich an: Mindestens 350px, füllen aber den Platz */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 30px; 
}

.card { background: white; border: 1px solid #e1e4e8; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); border-color: var(--color-primary); }

.card-img { height: 250px; overflow: hidden; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-cat { color: var(--color-primary); font-size: 0.8rem; font-weight: bold; text-transform: uppercase; display: block; margin-bottom: 5px; }
.card-title { font-family: var(--font-head); font-size: 1.6rem; color: var(--color-dark); margin: 0 0 10px 0; line-height: 1.2; }
.card-btn { color: var(--color-dark); font-weight: bold; text-transform: uppercase; font-size: 0.9rem; margin-top: auto; display: inline-block; }

/* --- 9. SINGLE & PAGE (Lesbarkeit bewahren!) --- */
/* WICHTIG: Text sollte nicht über 3000px laufen, das ist unlesbar. Daher zentrieren wir Text-Inhalte. */
.content-box { 
    background: white; 
    padding: 60px; 
    border: 1px solid #e1e4e8; 
    border-radius: 4px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    
    /* Textbegrenzung für Lesbarkeit */
    max-width: 1200px; 
    margin: 0 auto; 
}

.page-title { font-family: var(--font-head); font-size: 3rem; color: var(--color-dark); margin: 0 0 20px 0; line-height: 1.1; }
.meta { color: #888; font-size: 0.9rem; margin-bottom: 30px; text-transform: uppercase; font-weight: bold; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.entry-content { font-size: 1.2rem; color: #444; }
.entry-content h2 { color: var(--color-dark); margin-top: 30px; font-family: var(--font-head); border-left: 4px solid var(--color-primary); padding-left: 15px; }
.post-main-img img { width: 100%; height: auto; max-height: 600px; object-fit: cover; margin-bottom: 30px; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- 10. FOOTER --- */
footer { background: var(--color-dark); color: white; text-align: center; padding: 40px 0; margin-top: 60px; border-top: 4px solid var(--color-primary); width: 100%; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .header-container, .container { padding: 0 20px; } /* Weniger Rand auf Handy */
    .site-title { font-size: 1.4rem; }
    .logo-img { height: 45px; }
    .hero-section { height: 300px; }
    .hero-content h1 { font-size: 2.5rem; }
    .content-box { padding: 20px; }
    .grid { grid-template-columns: 1fr; } /* Untereinander auf Handy */
}