
:root {
    --primary: #00589F;
    --secondary: #FFD700;
    --accent: #C8102E;
    --text: #000;
    --background: #fff;
    --font-size: 1.125rem;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: var(--font-size);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

p {
    margin: 0.4rem 0;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    text-align: center;
}

img.logo {
    max-width: 200px;
    height: auto;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
}

/* --- Navigation Desktop & Responsive --- */
nav {
    background-color: #eee;
    padding: 0.5rem 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    display: inline-block;
}

nav a:hover {
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
}

/* --- Mobile Menü Toggle --- */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    color: var(--primary);
    background-color: #eee;
    text-align: center;
}

@media (max-width: 1100px) {
    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu-toggle:checked + .menu-icon + ul {
        display: flex;
    }

    nav ul li {
        text-align: center;
        border-top: 1px solid #ccc;
    }

    nav ul li a {
        padding: 1rem;
    }
}

main {
    padding: 2rem;
}

footer {
    background-color: #00589F;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 1rem;
}

/* Beratungsstellen Layout */
.beratungsstellen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.beratungsstelle {
    border: 1px solid #ccc;
    padding: 1rem;
    background: #fafafa;
}

/* Karten (Angebote) */
.angebote {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    position: relative;
    padding: 1.5rem;
    padding-top: 2.5rem; /* Platz für Icon oben */
    background: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.card:hover {
    background: #eaeaea;
}

.card h3 {
    margin-top: 0;
    color: var(--primary);
}


.card .icon-wrapper {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary);
}

.card .icon-wrapper svg {
    width: 100%;
    height: 100%;
}


/* Headings */
h1, h2, h3 {
    color: var(--primary);
}

.seite-h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Linkstile */
a {
    color: #003f7d;
    text-decoration: underline;
}
a:hover {
    color: #001f3d;
    text-decoration: none;
}

/* tel & mail */
a.tel,
a.mail {
    color: var(--primary);
    text-decoration: underline;
}

a.tel:hover,
a.mail:hover {
    text-decoration: none;
    color: var(--accent);
}

/* Skip-Link für Barrierefreiheit */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 1rem;
    background: var(--accent);
    color: white;
    z-index: 1000;
}

/* Header Layout */
.header-container {
    position: relative;
    background-color: var(--primary);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    flex-wrap: wrap;
}

.logo-wrapper {
    z-index: 1;
}

.logo {
    max-height: 150px;
    height: auto;
    width: auto;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
}

/* Gütezeichen rechts und vertikal zentriert */
.guetezeichen-wrapper {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.guetezeichen {
    max-height: 80px;
    height: auto;
    width: auto;
    background: white;
    padding: 0.3rem;
    border-radius: 8px;
}

/* Responsive Anpassung */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
    }

    .guetezeichen-wrapper {
        position: static;
        transform: none;
        margin-top: 1rem;
    }

    .logo {
        max-height: 100px;
    }

    .guetezeichen {
        max-height: 60px;
    }
}

.maps-link {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.95rem;
}

.maps-link::after {
    content: " ↗";
}

.maps-link:hover {
    color: var(--accent);
    text-decoration: none;
}

blockquote {
    margin-left: 20px;
    border-left: 4px solid #ccc;
    padding-left: 10px;
}

blockquote ul {
    list-style-type: none;
}


/* Logo rechts neben H1 auf großen Bildschirmen */
.headline-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.headline-with-logo h1 {
    margin: 0;
}

.logo-budgetberatung {
    margin: 0;
}

.logo-budgetberatung img {
    max-width: 180px;
    height: auto;
}