/* Gemeinsam-Los - zentrale Layout-Datei */
/* Version: shared-layout-v1 */

:root {
    --bg: #fff8f2;
    --bg2: #f7fbff;
    --text: #172033;
    --soft-text: #5f6878;
    --muted: #7c8493;
    --white: #ffffff;
    --line: rgba(31, 45, 75, .10);

    --coral: #ff6f61;
    --coral-dark: #e75549;
    --sun: #ffc857;
    --mint: #4ecdc4;
    --sky: #4dabf7;
    --lavender: #9b8cff;
    --rose: #ff8fab;

    --shadow: 0 22px 70px rgba(41, 57, 92, .13);
    --shadow-soft: 0 12px 34px rgba(41, 57, 92, .08);

    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 6%, rgba(255, 111, 97, .18), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(77, 171, 247, .18), transparent 26%),
        radial-gradient(circle at 74% 72%, rgba(78, 205, 196, .13), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, #fff 42%, var(--bg2) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 200, 87, .10), transparent 18%),
        linear-gradient(rgba(31, 45, 75, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 45, 75, .018) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,0));
}

a {
    color: inherit;
    text-decoration: none;
}

.gl-container {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.gl-topbar {
    position: sticky;
    top: 14px;
    z-index: 50;
    padding-top: 14px;
}

.gl-topbar-inner {
    min-height: 76px;
    padding: 12px 15px 12px 22px;
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 14px 48px rgba(41,57,92,.09);
    display: flex;
    align-items: center;
    gap: 18px;
}

.gl-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-right: auto;
    color: var(--text);
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -.06em;
    white-space: nowrap;
}

.gl-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.gl-nav,
.gl-nav-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.gl-nav a,
.gl-nav-btn {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #35405a;
    font-size: 14px;
    font-weight: 850;
}

.gl-nav a:hover,
.gl-nav a.active {
    color: var(--coral-dark);
    background: rgba(255,111,97,.10);
}

.gl-nav-btn {
    background: rgba(255,255,255,.64);
    border: 1px solid var(--line);
}

.gl-nav-btn.primary {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
    box-shadow: 0 14px 30px rgba(255,111,97,.22);
}

.gl-site-footer {
    width: min(calc(100% - 32px), 1240px);
    margin: 0 auto 24px;
    padding: 0 0 18px;
}

.gl-site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(255,255,255,.74);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 14px 48px rgba(41,57,92,.08);
    color: #5f6878;
    font-size: 14px;
    font-weight: 760;
}

.gl-site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #172033;
    font-weight: 950;
    letter-spacing: -.02em;
}

.gl-site-footer-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.gl-site-footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gl-site-footer-links a {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #35405a;
    font-weight: 880;
    background: rgba(255,255,255,.52);
    border: 1px solid rgba(31,45,75,.08);
    text-decoration: none;
}

.gl-site-footer-links a:hover,
.gl-site-footer-links a.active {
    color: #e75549;
    background: rgba(255,111,97,.10);
}

@media (max-width: 760px) {
    .gl-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .gl-nav,
    .gl-nav-actions {
        width: 100%;
    }

    .gl-site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .gl-site-footer-links {
        width: 100%;
    }

    .gl-site-footer-links a {
        flex: 1 1 auto;
        justify-content: center;
    }
}
