/* =========================
   Frontend Base Styles
   Optisch angeglichen an Orga
   ========================= */

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: #e6e7ee;

    /* Orga-ähnlicher Hintergrund */
    background:
        linear-gradient(
            90deg,
            #2b2148 0%,
            #141522 35%,
            #0f101b 50%,
            #141522 65%,
            #2b2148 100%
        );

    background-attachment: fixed;
}

/* =========================
   Hauptbereich
   ========================= */

.frontend-main {
    position: relative;
    z-index: 1;

    flex: 1 0 auto;          /* 🔴 DAS ist der Schlüssel */
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

/* Content zentrieren wie im Orga */
.frontend-main > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   Typografie
   ========================= */

h1, h2, h3, h4 {
    color: #ffffff;
}

p {
    color: #d0d2dd;
}

/* =========================
   Links
   ========================= */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 0.92;
}

/* =========================
   Karten / Panels
   ========================= */

.frontend-card {
    background: rgba(20, 22, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.frontend-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.16);
}
