/* --- Basis / Typografie --- */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #2d2d2d;
    line-height: 1.8;
    box-sizing: border-box;
}

/* Utility */
.site-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* --- Header --- */
header {
    background-color: #86c1d4;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    border-radius: 10px;
    min-height: 150px;
    width: 100%;
}

.site-title h1 {
    font-size: 2.5em;
    margin: 0;
}

.site-title h2 {
    font-size: 1.5em;
    margin: 5px 0 0;
}

.site-logo {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.site-divider {
    border: none;
    border-top: 3px solid #6aa7b8;
    margin: 10px auto;
    width: 80%;
}

/* --- Navigation --- */
.site-nav .site-nav__list {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 15px;
}

.site-nav .site-nav__link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #6aa7b8;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.site-nav .site-nav__link:hover {
    background-color: #003366;
    transform: scale(1.05);
}

/* --- Hauptinhalt --- */
main.site-main {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

/* Special Fields: */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}
.feature-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: rgb(134, 193, 212) 0 4px 16px;
    padding: 2rem 1.5rem;
    max-width: 320px;
    flex: 1 1 260px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: rgba(0, 51, 102, 01) 0 4px 16px;
}
.feature-card h3 {
    color: #6aa7b8;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.feature-card p {
    color: #000000;
    font-size: 1rem;
}

/* Card-Basis: genutzt für alle Informationskästen (dezenter) */
.card {
    box-sizing: border-box;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    flex: 1 1 300px;
    max-width: 800px;
    width: 100%;
    font-size: 1.05em;
    line-height: 1.6;
    overflow-wrap: break-word;
    text-align: justify;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 20px;
    /* dezenter Rahmen als Default entfernen, stattdessen Varianten nutzen */
}

/* Flat: Verzicht auf Feldoptik für weniger visuelle Gewichtung */
.card--flat {
    background-color: transparent;
    padding: 12px 0;
    border: none;
    box-shadow: none;
    text-align: left;
}

/* Accent: besondere Form für hervorgehobene Inhalte */
.card--accent {
    background: linear-gradient(90deg, rgba(106,167,184,0.08), rgba(134,193,212,0.04));
    border-left: 6px solid #6aa7b8;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(106,167,184,0.08);
}

/* Pill: kleine hervorgehobene Info-Boxen (Inline / Kontakt etc.) */
.card--pill {
    display: inline-block;
    background-color: #6aa7b8;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: none;
}

/* Hover-Effekte gezielt für Accent (nicht für jede Box) */
.card--accent:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(106,167,184,0.12);
}

/* Inhalte in Cards (unverändert, aber wirken mit Varianten) */
.card p {
    margin-bottom: 12px;
}

.card a {
    color: #006080;
    text-decoration: underline;
    font-weight: 500;
}

.card--flat a {
    color: #6aa7b8;
    text-decoration: none;
}

/* Kleine Utilities */
.accent-title {
    color: #03425a;
    font-weight: 700;
    margin-top: 0;
}

/* --- Bilder / große Elemente --- */
.hero-image {
    box-sizing: border-box;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    max-width: 100%;
    margin-bottom: 20px;
    box-shadow: none;
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Breiter Inhaltsbereich für Spalten-/Übersichtssektionen */
.center-column--wide {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* --- Footer --- */
footer {
    background-color: #86c1d4;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    border-radius: 10px;
    border-top: 5px solid #6aa7b8;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
    width: 100%;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: #003366;
    text-decoration: underline;
}

/* --- Services / Teaser Menü (Vorschau auf Fördermöglichkeiten) */
.services-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 10px;
}

.service-teaser {
    background: linear-gradient(180deg, rgba(106,167,184,0.03), rgba(255,255,255,0.0));
    border: 1px solid rgba(6,48,64,0.04);
    border-radius: 12px;
    padding: 14px;
    flex: 1 1 240px;
    min-width: 200px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-teaser:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(6,48,64,0.06);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: #eaf6f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #03425a;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.service-teaser h4 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: #03425a;
}

.service-teaser p {
    margin: 0;
    color: #28323a;
    font-size: 0.95rem;
    line-height: 1.35;
}

.service-teaser .more {
    display: inline-block;
    margin-top: 8px;
    color: #006080;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* kleine Utility: platzsparende Überschrift über dem Menü */
.services-title {
    text-align: center;
    color: #03425a;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* --- Slideshow / Carousel (für komplette Feld-Slides) --- */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 1.25rem auto;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(6,48,64,0.03);
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 1.25rem;
    display: block;
    background: linear-gradient(180deg, rgba(245,247,250,0.9), #fff);
}

/* allow inner content to keep original card look */
.slide .card {
    margin: 0;
    padding: 18px;
    box-shadow: none;
}

/* Controls: arrows */
.slideshow .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6,48,64,0.06);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.15rem;
    color: #03425a;
}
.slideshow .arrow.left { left: 0.6rem; }
.slideshow .arrow.right { right: 0.6rem; }

/* Dots */
.slideshow .dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.6rem;
    display: flex;
    gap: 0.5rem;
}
.slideshow .dot {
    width: 10px;
    height: 10px;
    background: rgba(6,48,64,0.12);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.6);
}
.slideshow .dot.active {
    background: #6aa7b8;
    box-shadow: 0 2px 6px rgba(6,48,64,0.12);
}

/* small responsive tweaks */
@media (max-width: 768px) {
    .slide { padding: 0.85rem; }
    .slideshow .arrow { display: none; } /* mobile: rely on dots / swipe */
}

/* --- Medienabfragen --- */
@media (max-width: 768px) {
    .site-nav .site-nav__list {
        flex-wrap: wrap;
    }

    .site-nav .site-nav__link {
        padding: 8px 12px;
    }

    .card {
        width: 100%;
    }

    .aboutmeimage1, .aboutmeimage2 {
        max-width: 100%;
        margin: 10px 0;
    }

    .service-icon { width: 44px; height: 44px; font-size: 0.95rem; }
    .service-teaser { padding: 12px; }
}

/* Dreispaltige Darstellung Utility */
.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}
.columns-3 .col {
    background: transparent;
    border: none;
    padding: 0;
}
.columns-3 h5 {
    margin: 0 0 8px 0;
    color: #03425a;
    font-size: 1rem;
    font-weight: 700;
}
.columns-3 ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.5;
}

/* Responsive Fallback */
@media (max-width: 860px) {
    .columns-3 { grid-template-columns: 1fr; }
}

/* Zweispaltige Darstellung Utility */
.columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

/* Responsive Fallback */
@media (max-width: 860px) {
    .columns-2 { grid-template-columns: 1fr; }
}

/* Spalten: gleichmäßige Kartenhöhen und saubere Abstände */
.columns-2, .columns-3 {
    /* existierende Einstellungen bleiben */
    grid-auto-rows: 1fr; /* sorgt für gleichmäßige Zeilenhöhe */
}
.columns-2 .col, .columns-3 .col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.columns-2 .col .card, .columns-3 .col .card {
    height: 100%; /* Karten strecken sich */
}

/* Überschriften-Abstände in Spaltenbereichen */
.columns-2 h3, .columns-3 h3 {
    margin: 0 0 8px 0;
    color: #03425a;
}
.columns-2 h4, .columns-3 h4 {
    margin: 0 0 6px 0;
}

/* --- Zitate --- */
blockquote {
    text-align: center;
    background: transparent;
    border: none;
    margin: 0 auto 16px auto;
    padding: 0 8px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #5f6a75; /* leicht gräulich */
    font-style: italic; /* kursiv */
}

blockquote .author,
.author {
    display: block;
    text-align: center;
    margin-top: 8px;
    color: #6aa7b8;
    font-style: italic;
    opacity: 0.9; /* dezent */
}

/* Falls ein blockquote versehentlich in einer Card liegt, Hintergrund subtil neutralisieren */
.card blockquote {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 auto 8px auto;
    color: #5f6a75; /* konsistent */
    font-style: italic;
}

/* Karten-Feinjustierung für flache Varianten innerhalb Spalten */
.columns-2 .card.card--flat, .columns-3 .card.card--flat {
    padding-top: 8px;
    padding-bottom: 8px;
}
