/* ===== MAIN STYLES - Digital im Alter Bremen-Nord ===== */

/* ===== VARIABLEN ===== */
:root {
    --hauptblau:  #1a365d;
    --helles-blau: #1e40af;
    --textfarbe:  #2C3E50;
    --hintergrund: #FFFFFF;
    --grau-hell:  #f8f9fa;
}

/* ===== RESET & BASIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    line-height: 1.7;
    color: var(--textfarbe);
    background-color: var(--hintergrund);
}

h1 { font-size: 48px; font-weight: bold; margin: 0 0 20px; }
h2 { font-size: 36px; font-weight: bold; margin: 0 0 30px; }
h3 { font-size: 28px; font-weight: bold; margin: 0 0 20px; }
h4 { font-size: 24px; font-weight: 600; margin: 0 0 15px; }

img { max-width: 100%; height: auto; }

/* ===== BARRIEREFREIHEIT ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--hauptblau);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: bold;
    z-index: 9999;
    transition: top 0.3s;
}
.skip-link:focus { top: 0; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

*:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

.js-focus-visible *:focus:not(.focus-visible) { outline: none; }

/* ===== HEADER ===== */
.header {
    background: white;
    padding: 20px 0 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 450px;
    max-width: 100%;
    height: auto;
}

.contact-info { display: none; }

/* ===== NAVIGATION ===== */
.nav {
    background: var(--hauptblau);
    padding: 12px 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    display: block;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.nav a:hover,
.nav a:focus,
.nav a[aria-current="page"] {
    background: rgba(255,255,255,0.3);
    outline: none;
}

.nav a:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Burger-Menü */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav.open .burger-menu span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav.open .burger-menu span:nth-child(2) { opacity: 0; }
.nav.open .burger-menu span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== SEITEN-HERO (schlank, Unterseiten) ===== */
.page-hero {
    height: 200px;
    background: linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38));
    background-color: var(--hauptblau);
    background-size: cover;
    background-position: center center;
}

@media (max-width: 600px) {
    .page-hero { height: 130px; }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
    background-color: var(--hauptblau);
    background-size: cover;
    background-position: center 30%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.hero-content { max-width: 800px; }

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    min-height: 44px;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:focus { outline: 3px solid #fbbf24; outline-offset: 3px; }

.btn-primary,
.btn-secondary {
    background: var(--hauptblau);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--helles-blau);
    transform: translateY(-2px);
}

/* ===== ANKÜNDIGUNG ===== */
.ankuendigung {
    background: var(--warmes-orange, #e87722);
    color: white;
    text-align: center;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    font-weight: bold;
    margin: 12px 20px;
    border-radius: 8px;
}
.ankuendigung p { margin: 0; }
.ankuendigung-icon { font-size: 22px; flex-shrink: 0; }

/* Hero-Button: Outline-Stil auf Fotohintergrund */
.hero .btn-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.hero .btn-primary:hover,
.hero .btn-primary:focus {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ===== MISSION STRIP ===== */
.mission-strip {
    background: var(--hauptblau);
    color: white;
    text-align: center;
    padding: 22px 20px;
}

.mission-strip p {
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    margin: 0;
}

/* ===== FEATURE BOXES ===== */
.hauptangebote-zweispaltig {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.angebot-box {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.angebot-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.angebot-box .icon { font-size: 3em; margin-bottom: 20px; }

.angebot-box h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--hauptblau);
}

.angebot-box p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

.angebot-box .button,
.button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--hauptblau);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.angebot-box .button:hover,
.button:hover {
    background: var(--helles-blau);
}

/* ===== ANRUF BANNER ===== */
.anruf-banner {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.anruf-inhalt {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
    transition: box-shadow 0.3s;
}

.anruf-inhalt:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

.anruf-icon { font-size: 64px; flex-shrink: 0; }

.anruf-text { text-align: left; }

.anruf-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--hauptblau);
    border: none;
}

.anruf-nummer {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--hauptblau);
    text-decoration: none;
    letter-spacing: 2px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.anruf-nummer:hover,
.anruf-nummer:focus { color: var(--helles-blau); }

.anruf-text p { font-size: 20px; color: #555; margin: 0; }

/* ===== ARTIKEL TEASER ===== */
.artikel-teaser {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 60px 20px;
    margin: 40px 0;
}

.teaser-container {
    max-width: 1200px;
    margin: 0 auto;
}

.teaser-label {
    display: inline-block;
    background: var(--hauptblau);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
}

.teaser-inhalt {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.teaser-bild { flex: 0 0 280px; }

.teaser-bild img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.teaser-text { flex: 1; }

.teaser-text h2 {
    font-size: 1.8em;
    color: var(--hauptblau);
    margin-bottom: 15px;
}

.teaser-datum {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 15px;
}

.teaser-text p { font-size: 1em; line-height: 1.7; margin-bottom: 20px; }

.weiterlesen-link {
    display: inline-block;
    font-size: 1em;
    font-weight: 600;
    color: var(--helles-blau);
    text-decoration: none;
}

.weiterlesen-link:hover { text-decoration: underline; }

/* ===== CONTENT SEITEN ===== */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

.content-wrapper { max-width: 800px; }

.content-page h1,
.content-wrapper h1 { color: var(--hauptblau); margin-bottom: 30px; }

.article-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-list { margin-top: 40px; }

.page-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 30px 0;
}

.page-item:last-child { border-bottom: none; }

.page-item h2 { font-size: 1.4em; margin-bottom: 10px; }

.page-item h2 a { color: var(--hauptblau); text-decoration: none; }
.page-item h2 a:hover { text-decoration: underline; }

.summary { font-size: 0.95em; color: #555; line-height: 1.6; }

/* ===== DIGITALE IMPULSE LISTE ===== */
.tipps-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    text-align: center;
}

.tipps-header h1 { color: var(--hauptblau); margin-bottom: 16px; }

.tipps-intro {
    font-size: 20px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.tipps-grid {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tipp-karte {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tipp-karte:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

.tipp-karte-bild-link { display: block; }

.tipp-karte-bild img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.tipp-karte-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--hauptblau) 0%, var(--helles-blau) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.tipp-karte-inhalt {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tipp-karte-datum { font-size: 14px; color: #888; margin-bottom: 10px; }

.tipp-karte-titel {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tipp-karte-titel a { color: var(--hauptblau); text-decoration: none; }
.tipp-karte-titel a:hover { text-decoration: underline; }

.tipp-karte-beschreibung {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.tipp-karte-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--helles-blau);
    text-decoration: none;
    margin-top: auto;
}

.tipp-karte-link:hover { text-decoration: underline; }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 900px) {
    .tipps-grid { grid-template-columns: repeat(2, 1fr); }
    .teaser-inhalt { flex-direction: column; }
    .teaser-bild { flex: none; width: 100%; }
    .teaser-bild img { height: 220px; }
    .hauptangebote-zweispaltig { gap: 20px; }
}

@media (max-width: 767px) {
    .burger-menu { display: block; margin-left: auto; }

    .nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 10px;
    }

    .nav.open ul { display: flex; }

    .nav a {
        padding: 12px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hauptangebote-zweispaltig {
        grid-template-columns: 1fr;
        margin: 40px auto;
    }

    .hero h1 { font-size: 32px; }
    .hero p { font-size: 18px; }
    .anruf-inhalt { padding: 30px 24px; }
    .anruf-text { text-align: center; }
    .anruf-nummer { font-size: 32px; }
    .anruf-icon { font-size: 48px; }
    .mission-strip p { font-size: 18px; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
}

@media (max-width: 560px) {
    .tipps-grid { grid-template-columns: 1fr; }
    .teaser-inhalt { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

@media print {
    .nav, .hero, .burger-menu, .skip-link { display: none; }
    body { font-size: 12pt; color: black; }
    a { color: black; text-decoration: underline; }
}

/* ===== TERMIN KARTEN ===== */
.termin-karte {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 28px 32px;
    margin-bottom: 24px;
    border-left: 5px solid var(--hauptblau);
}

.termin-karte-kopf {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.termin-typ {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--hauptblau);
    color: white;
}

.termin-typ--kurs { background: #1b4332; }
.termin-typ--workshop { background: #c2410c; }

.termin-status {
    font-size: 14px;
    font-weight: 600;
    margin-left: auto;
}

.termin-status--ausgebucht { color: #c2410c; }
.termin-status--neu { color: #1b4332; }
.termin-status--offen { color: #555; }

.termin-name {
    font-size: 22px;
    color: var(--hauptblau);
    margin-bottom: 16px;
}

.termin-infos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-bottom: 16px;
}

.termin-info {
    display: flex;
    gap: 8px;
    font-size: 17px;
    align-items: flex-start;
}

.termin-info span:first-child { flex-shrink: 0; }

.termin-beschreibung {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.termin-hinweis {
    font-size: 15px;
    color: #555;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .termin-infos { grid-template-columns: 1fr; }
    .termin-karte { padding: 20px; }
}

/* ===== SECTION BANNER ===== */
.section-banner {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 28px 36px;
    border-radius: 12px;
    margin: 48px 0 28px;
    border-left: 6px solid currentColor;
}

.section-banner--gruen   { background: #dcfce7; color: #16a34a; }
.section-banner--blau    { background: #dbeafe; color: #1a3a5c; }
.section-banner--orange  { background: #ffedd5; color: #c2410c; }
.section-banner--tuerkis { background: #e0f2fe; color: #0369a1; }
.section-banner--lila    { background: #f5f3ff; color: #7c3aed; }
.section-banner--gelb    { background: #fefce8; color: #ca8a04; }

.section-banner-text { flex: 1; }

.section-banner-text h2 {
    font-size: 28px;
    margin: 0 0 8px;
    color: inherit;
}

.section-banner-text p {
    font-size: 18px;
    margin: 0;
    color: var(--textfarbe);
    line-height: 1.5;
}

.section-banner-bild {
    flex-shrink: 0;
    width: 220px;
    height: 138px;
    border-radius: 10px;
    overflow: hidden;
}

.section-banner-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 700px) {
    .section-banner {
        flex-direction: column;
        padding: 24px;
        gap: 18px;
    }
    .section-banner-bild {
        width: 100%;
        height: 180px;
    }
}

/* ===== STANDORT KARTEN ===== */
.standorte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.standort-karte {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 28px 28px 22px;
    border-top: 5px solid #0369a1;
    display: flex;
    flex-direction: column;
}

.standort-karte-kopf {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.standort-nummer {
    font-size: 13px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.standort-typ {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #0369a1;
    color: white;
}

.standort-typ--kurs { background: #1b4332; }
.standort-typ--workshop { background: #c2410c; }

.standort-name {
    font-size: 20px;
    color: var(--hauptblau);
    margin-bottom: 14px;
    line-height: 1.3;
}

.standort-infos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    flex: 1;
}

.standort-info {
    display: flex;
    gap: 10px;
    font-size: 16px;
    align-items: flex-start;
    line-height: 1.5;
}

.standort-info span:first-child { flex-shrink: 0; }

.standort-beschreibung {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
}

.standort-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #0369a1;
    text-decoration: none;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.standort-link:hover { text-decoration: underline; }

/* Leaflet map */
.leaflet-container-wrapper {
    margin: 40px 0 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#standorte-map {
    width: 100%;
    height: 420px;
}

@media (max-width: 600px) {
    #standorte-map { height: 300px; }
}

/* ===== KONTAKT SEITE ===== */
.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0 48px;
}

.kontakt-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 36px 28px 28px;
    text-align: center;
    border-top: 5px solid currentColor;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kontakt-box--blau    { color: #1a3a5c; }
.kontakt-box--gruen   { color: #16a34a; }
.kontakt-box--whatsapp { color: #15803d; }
.kontakt-box--grau    { color: #6b7280; }

.kontakt-box-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 14px;
}

.kontakt-box-titel {
    font-size: 20px;
    font-weight: 700;
    color: inherit;
    margin: 0 0 14px;
}

.kontakt-box-hauptinfo {
    font-size: 26px;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: 14px;
    line-height: 1.2;
}

a.kontakt-box-hauptinfo:hover { text-decoration: underline; }

p.kontakt-box-hauptinfo { margin: 0 0 14px; }

.kontakt-box-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.kontakt-box-text p { margin: 0 0 6px; }
.kontakt-box-text a { color: inherit; font-weight: 600; }

.kontakt-vor-ort {
    background: #f0f9ff;
    border-radius: 12px;
    border-left: 6px solid #0369a1;
    padding: 28px 32px;
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.7;
}

.kontakt-vor-ort h2 {
    font-size: 22px;
    color: #0369a1;
    margin: 0 0 10px;
}

@media (max-width: 640px) {
    .kontakt-grid { grid-template-columns: 1fr; }
    .kontakt-box-hauptinfo { font-size: 22px; }
}
