/* ============================================
   immoabrechner.de – Gemeinsame Styles
   Copyright 2022–2026
   ============================================ */

/* ---- SELF-HOSTED FONTS (DSGVO-konform) ---- */

/* Inter – latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans – latin-ext */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans – latin */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(fonts/dm-sans-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --blue: #007bff;
    --blue-dark: #0069d9;
    --blue-light: #e8f1fb;
    --red: #dc3545;
    --dark: #0f172a;
    --dark-mid: #1e293b;
    --text: #475569;
    --text-light: #94a3b8;
    --white: #ffffff;
    --off-white: #f8fafc;
    --border: #e2e8f0;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.2;
}

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

/* ---- HEADER ---- */
.header {
    padding: 16px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 38px; width: auto; }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover { color: var(--blue); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.2s;
    border: 2px solid var(--blue);
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,90,188,0.3);
}

.nav a.btn-primary { color: var(--white); }
.nav a.btn-ghost { color: var(--blue); }
.nav a.btn-ghost:hover { color: var(--white); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--blue);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--blue);
    transition: all 0.2s;
}
.btn-ghost:hover {
    background: var(--blue);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ---- CONTENT (Unterseiten) ---- */
.content {
    padding: 140px 0 80px;
    min-height: 60vh;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.content p {
    margin-bottom: 15px;
}

/* ---- FOOTER ---- */
.footer {
    padding: 48px 0;
    background: var(--dark);
    border-top: 1px solid var(--dark-mid);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p { color: var(--text-light); font-size: 0.9rem; }

.footer-links { display: flex; gap: 32px; }
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1050px) {
    .mobile-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }
    .nav.active { display: flex; }
}

@media (max-width: 640px) {
    .footer .container { flex-direction: column; gap: 20px; text-align: center; }
}
