/*
Theme Name: dotCLOUD Blog
Author: dotCLOUD by Drago Petrovic
Description: V1.6 - Finales Design, Footer bereinigt, Suchleiste optimiert.
Version: 1.6
*/

:root {
    --primary-dark: #14213d;
    --primary-blue: #4ea5d9;
    --bg-grey: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-grey);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Header --- */
header {
    background: var(--white);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}
.logo-area h1 { margin: 0; font-size: 28px; color: var(--primary-dark); }
.main-nav ul { list-style: none; display: flex; gap: 20px; align-items: center; margin: 0; }
.main-nav a { text-decoration: none; color: var(--primary-dark); font-weight: 500; }

/* --- Hero --- */
.hero-section { background: var(--white); padding: 40px 20px; text-align: center; margin-bottom: 30px; }
.hero-title { color: var(--primary-dark); margin-bottom: 10px; font-size: 2.5rem; }

.carousel-container {
    max-width: 1000px; margin: 30px auto; position: relative; overflow: hidden;
    border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.carousel-slide { display: none; position: relative; animation: fade 1.5s; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; height: 400px; object-fit: cover; display: block; }
.slide-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(20, 33, 61, 0.85); color: white; padding: 20px; text-align: left;
}
.slide-content h2 a { color: white; text-decoration: none; font-size: 1.5rem; }
.prev, .next {
    cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px;
    color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease;
    background-color: rgba(0,0,0,0.3); z-index: 10;
}
.next { right: 0; border-radius: 3px 0 0 3px; } .prev { left: 0; border-radius: 0 3px 3px 0; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* --- Filter Bar (FINAL POLISH - Neuer Button) --- */
.filter-bar {
    max-width: 850px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.filter-bar form {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid #eee; /* Etwas dickerer, sauberer Rahmen */
    border-radius: 50px;    /* Die gesamte Leiste ist eine Pille */
    padding: 5px;           /* Abstand innen */
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Eingabefelder sind jetzt transparent */
.filter-bar input[type="text"], 
.filter-bar select {
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
    color: #555;
    height: auto;
}

.filter-bar input[type="text"] { 
    flex: 2; /* Nimmt mehr Platz */
    border-right: 1px solid #eee; /* Trennlinie */
}

.filter-bar select { 
    flex: 1; 
    cursor: pointer;
    /* Optional: Standard-Pfeil durch einen blauen ersetzen (funktioniert in modernen Browsern) */
    -webkit-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%2B%3Cpath%20fill%3D%22%234ea5d9%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px; 
}

/* Der neue Button - integriert als "Kappe" */
.btn-search {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px; /* Vollständig abgerundet */
    font-weight: 600;
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(78, 165, 217, 0.3);
}

.btn-search:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(78, 165, 217, 0.5);
    transform: translateY(-1px);
}

/* --- Content Grid --- */
.content-area { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px 20px; }
.section-title {
    color: var(--primary-dark); margin-bottom: 30px; font-size: 1.8rem;
    border-bottom: 3px solid var(--primary-blue); display: inline-block; padding-bottom: 10px;
}
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.post-card {
    background: var(--white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.3s; border: 1px solid #eee;
}
.post-card:hover { transform: translateY(-7px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.post-info { padding: 25px; }
.post-info h3 a { color: var(--primary-dark); text-decoration: none; font-size: 1.2rem; }
.post-meta { font-size: 0.85rem; color: #888; margin-top: 10px; }

/* --- Single Post --- */
.single-post-container {
    max-width: 900px; margin-top: 40px; background: var(--white); padding: 60px;
    border-radius: 8px; box-shadow: 0 5px 30px rgba(0,0,0,0.05);
}
.entry-header { margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.entry-title { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; line-height: 1.2; }
.entry-meta { color: #888; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; display: flex; gap: 15px; align-items: center; }
.entry-meta a { color: var(--primary-blue); text-decoration: none; font-weight: bold; }
.post-thumbnail { margin-bottom: 40px; border-radius: 8px; overflow: hidden; }
.post-thumbnail img { width: 100%; max-height: 350px; object-fit: cover; display: block; }
.entry-content { color: #333; font-size: 1.1rem; line-height: 1.7; }

/* --- Footer (Bereinigt) --- */
footer {
    background: var(--primary-dark); color: #ccc; padding: 30px;
    display: flex; justify-content: center; align-items: center; margin-top: auto;
}