/* Local Space Grotesk fonts - GDPR compliant */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-700.ttf') format('truetype');
}

:root {
    --bg: #ffffff;
    --card: #ffffff;
    --panel: #f8fafc;
    --accent: #2563eb;
    --accent-strong: #0ea5e9;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 14px;
    --font: "Space Grotesk", "Inter", "Segoe UI", -apple-system, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    color: #2562eb;
    text-decoration: none;
    margin-right: 5px;
}

dd {
    margin-top: -20px;
    margin-bottom: 20px;
}

dl {
    margin-top: 5px;
}

.site-header {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.site-footer {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 32px 24px;
    color: var(--muted);
    font-size: 13px;
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 0;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-separator {
    color: #e2e8f0;
    user-select: none;
    font-size: 12px;
}

.footer-copyright {
    text-align: center;
    margin-top: 8px;
}

.footer-copyright p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.01em;
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 6px;
    }

    .footer-separator {
        display: none;
    }

    .site-footer {
        padding: 12px 16px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.brand-mark-img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.main-nav {
    display: flex;
    gap: 4px;
    font-weight: 500;
    flex: 1;
    justify-content: center;
}

/* Wenn Suchfeld vorhanden ist, Navigation nach links schieben */
.site-header:has(.header-search) .main-nav {
    flex: 0;
    justify-content: flex-start;
}

.main-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--muted);
    font-size: 14px;
    margin-right: 0;
}

.main-nav a:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text);
}

.header-search {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.header-search .search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 100;
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.auth-nav > a {
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    margin-right: 0;
}

.auth-nav > a:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text);
}

.content {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 10px 24px 80px;
}

.hero,
.page-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent);
    font-size: 12px;
    margin: 0 0 8px;
}

.lede {
    color: var(--muted);
    max-width: 52ch;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(37, 99, 235, 0.08);
    color: var(--text);
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border 0.2s ease;
}

.button.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: var(--shadow);
}

.button.ghost {
    border-color: var(--border);
    color: var(--text);
    background: #fff;
}

.button.full {
    width: 100%;
}

.button:hover {
    transform: translateY(-1px);
}

.muted {
    color: var(--muted);
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 900px) {
    .site-header {
        padding: 10px 20px;
        gap: 16px;
    }

    .main-nav {
        gap: 2px;
    }

    .main-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .auth-nav > a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .brand-title {
        font-size: 16px;
    }
}

@media (max-width: 1100px) {
    .header-search {
        max-width: 300px;
    }
}

@media (max-width: 900px) {
    .main-nav a {
        font-size: 13px;
    }

    .header-search {
        max-width: 250px;
    }
}

@media (max-width: 700px) {
    .site-header {
        padding: 8px 16px;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid rgba(226, 232, 240, 0.6);
        gap: 4px;
    }

    .header-search {
        order: 2;
        width: 100%;
        max-width: none;
        margin: 8px 0 0 0;
    }

    .auth-nav {
        margin-left: 0;
    }

    .site-footer,
    .content {
        padding-left: 14px;
        padding-right: 14px;
    }
}
