/* Grundkonfiguration & Variablen */
:root {
    --fw-blue: #005596;
    --fw-orange: #ff8c00;
    --light-bg: #f4f7f9;
    --text-color: #333;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
}

/* HEADER & NAVIGATION */
header {
    background: #fff;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: var(--header-height);
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 1;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
}

/* BUTTONS */
.btn {
    background: var(--fw-orange);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* SEKTIONEN */
.section {
    padding: 60px 5%;
    text-align: center;
}

.section-grey {
    background-color: #eceff1;
}

/* HERO BEREICH */
.hero {
    background: linear-gradient(rgba(0,85,150,0.8), rgba(0,85,150,0.8)), 
                url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=80'); 
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* THEMEN GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    padding: 0 5%;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 8px solid var(--fw-blue);
}

.card-icon {
    color: var(--fw-orange);
    margin-bottom: 15px;
    display: flex;
    justify-content: center; /* Dies setzt das Icon horizontal in die Mitte */
    align-items: center;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 6px solid var(--fw-blue);
    text-align: center; /* Stellt sicher, dass auch H3 und P zentriert sind */
    transition: transform 0.3s ease;
}

.card h3 {
    color: var(--fw-blue);
    margin-top: 0;
}

/* KANDIDATEN GRID */
.candidate-grid { 
    display: grid; 
    grid-template-columns: repeat(10, 1fr); 
    gap: 8px; 
    margin-top: 30px;
}

.candidate-card { 
    background: white; 
    border-radius: 8px; 
    overflow: hidden; 
    border-bottom: 3px solid var(--fw-orange);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s;
}

.candidate-card:hover {
    transform: scale(1.03);
}

.list-pos {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--fw-orange);
    color: white;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.65rem;
    z-index: 5;
}

.candidate-img-container { 
    width: 100%;
    aspect-ratio: 3/4;
    background: #ddd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-info {
    padding: 10px 5px;
}

.candidate-info h4 {
    margin: 0;
    color: var(--fw-blue);
    font-size: 0.75rem;
    line-height: 1.1;
}

.candidate-info p {
    font-size: 0.65rem;
    color: #666;
    margin: 3px 0 0 0;
    line-height: 1.1;
}

.fam-info {
    font-style: italic;
    color: var(--fw-blue) !important;
    margin-top: 5px !important;
}

/* FOOTER */
footer {
    background: var(--fw-blue);
    color: white;
    padding: 20px 20px;
    text-align: center;
    clear: both;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* RESPONSIVE ANPASSUNGEN */
@media (max-width: 1200px) {
    .candidate-grid { grid-template-columns: repeat(5, 1fr); }
    .candidate-info h4 { font-size: 0.9rem; }
}

@media (max-width: 768px) {
    .candidate-grid { grid-template-columns: repeat(3, 1fr); }
    header { padding: 0.5rem 3%; }
    .logo-img { height: 50px; }
    .hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .candidate-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .candidate-info h4 { font-size: 0.85rem; }
    .logo-img { height: 42px; }
    header { justify-content: space-between; padding: 10px 4%; }
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 1.7rem; }
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none; /* Wird per JS eingeblendet */
    border-top: 4px solid var(--fw-blue);
}

.cookie-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 0.9rem;
    color: #444;
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background: var(--fw-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cookie-deny {
    background: #eee;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Floating Back Button für Impressum */
.floating-back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--fw-orange);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, background-color 0.3s;
}

.floating-back-btn:hover {
    background-color: var(--fw-blue);
    transform: scale(1.05);
    color: white;
}

/* Auf sehr kleinen Handys etwas kleiner machen */
@media (max-width: 480px) {
    .floating-back-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}