/* ==============================================
   FamilienKiez - BASE (NEO-BRUTALISM)
   Reset, Body, Typografie, Links
   ============================================== */

/* --- CSS Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Body --- */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--color-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 6rem;
    /* Platz für Floating Pill Navigation */
    /* Platz für Floating Pill Navigation */
    overflow-x: hidden;
    overflow-y: scroll;
    /* Force Scrollbar to prevent layout shift */
}

/* --- Typography (LOUD) --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    /* UltraBold */
    line-height: 1.1;
    margin-bottom: 1rem;
    /* Removed text-transform: uppercase globally per user request */
    letter-spacing: -0.04em;
    /* Tight tracking */
    color: var(--color-ink);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

p {
    margin-bottom: 1rem;
    font-weight: 500;
    /* Etwas fetter für bessere Lesbarkeit auf Off-White */
}

/* --- Links (Underlined, Raw) --- */
/* Nacktes 'a' Tag erhält nur Unterstrich, keine massiven Hover-Auswirkungen für Layout-Sicherheit */
a {
    color: var(--color-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

a:hover {
    color: var(--color-ink);
    text-decoration: none;
}

/* 
 * DIE GLOBALE TEXTLINK KLASSE 
 * Für Links im Fließtext (z.B. Impressum, KiezTalk, Beiträge) 
 * Entspricht dem Design der PayPal/Spenden Buttons im Footer.
 */
.text-link {
    color: var(--color-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    font-weight: 700;
    padding: 0.1rem 0.2rem; /* Mini-Abstand für den Hover-Marker */
    margin: 0 -0.2rem; /* Kompensiert Padding im Textfluss */
    border-radius: 4px; /* Optische Weichheit beim Hover-Feld */
    transition: background 0.2s ease, color 0.2s ease;
}

.text-link:hover {
    background-color: var(--color-yellow); /* Markiert wie Textmarker */
    color: var(--color-text-on-yellow);
    text-decoration: none;
}

/* --- Ausnahmen: Buttons/FABs haben eigene Hover-Styles --- */
.btn:hover,
.fab-action:hover,
.nav-dropdown-toggle:hover,
.bottom-nav-item:hover,
.unified-card:hover a,
.clean-card:hover a,
.card-link-wrapper:hover,
.dashboard-card:hover {
    background-color: transparent;
}

/* --- Card Links (No Underline) --- */
.card-link-wrapper,
.dashboard-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- Horizontal Rules --- */
hr {
    border: 0;
    border-top: 2px solid var(--color-ink);
    margin: 2rem 0;
    opacity: 1;
}

/* --- Scrollbar (Hard & Visible) --- */

/* Webkit */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
    background: var(--color-white);
    border-left: 2px solid var(--color-ink);
}

::-webkit-scrollbar-track {
    background: var(--color-white);
}

::-webkit-scrollbar-thumb {
    background: var(--color-ink);
    border: 2px solid var(--color-white);
    /* White gap */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral);
}

/* Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: var(--color-ink) var(--color-white);
}

/* --- Selection (Textmarker Effekt) --- */
::selection {
    background: var(--color-ink);
    color: var(--color-white);
}

/* ==============================================
   FAMILIENKIEZ - FOOTER (Global)
   ============================================== */
.footer {
    background: var(--bg-body);
    /* Nutzt var aus Variable.css (Canvas) */
    border-top: 2px solid var(--color-ink);
    padding: 2rem 1rem 30px 1rem;
    /* Reduced top padding, fixed bottom space */
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .footer {
        /* Extra Space for the Mobile Bottom Menu (60px + safe area) so it doesn't overlap footer links */
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

.footer p {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    /* Massive reduction */
    font-size: 0.9rem;
    color: var(--color-ink);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    /* Reduced gap */
    flex-wrap: wrap;
    margin-bottom: 1rem;
    /* Reduced margin */
}

/* Spenden-Buttons */
.footer-donate-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    /* Reduced gap */
    flex-wrap: wrap;
}

/* Footer-Links haben ihre Styles in utilities.css (.footer-link) */
