/**
 * Index Page Stylesheet
 * TC Eisenach e.V.
 */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-dark:  #1a4d2e;
    --green-mid:   #2d7a4f;
    --green-light: #4caf72;
    --clay:        #c8703a;
    --white:       #ffffff;
    --off-white:   #f5f5f0;
    --text-dark:   #1a1a1a;
    --text-muted:  #5a6e5c;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Subtle court-line background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(to bottom, var(--green-dark) 0%, var(--green-mid) 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        /* Baseline */
        linear-gradient(to right, transparent 8%, rgba(255,255,255,.12) 8%, rgba(255,255,255,.12) 8.4%, transparent 8.4%),
        linear-gradient(to right, transparent 91.6%, rgba(255,255,255,.12) 91.6%, rgba(255,255,255,.12) 92%, transparent 92%),
        /* Service line */
        linear-gradient(to bottom, transparent 20%, rgba(255,255,255,.08) 20%, rgba(255,255,255,.08) 20.4%, transparent 20.4%),
        linear-gradient(to bottom, transparent 79.6%, rgba(255,255,255,.08) 79.6%, rgba(255,255,255,.08) 80%, transparent 80%),
        /* Center line */
        linear-gradient(to right, transparent 49.8%, rgba(255,255,255,.08) 49.8%, rgba(255,255,255,.08) 50.2%, transparent 50.2%);
    z-index: -1;
}

/* Card */
.card {
    background: var(--white);
    border-radius: 1.25rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.15);
    padding: 3rem 2.5rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

/* Logo */
.logo {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Headings */
h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--green-dark);
    line-height: 1.2;
}

.subtitle {
    margin-top: .4rem;
    font-size: .95rem;
    color: var(--text-muted);
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #e5ebe6;
    margin: 2rem 0;
}

/* Navigation links */
.nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.25rem;
    border-radius: .75rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    gap: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(45,122,79,.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(45,122,79,.42);
}

.btn-secondary {
    background: var(--off-white);
    color: var(--green-dark);
    border: 2px solid #cddece;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.btn-secondary:hover {
    background: #eaf2eb;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

.btn-label {
    text-align: left;
    flex: 1;
}

.btn-label small {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    opacity: .75;
    margin-top: .1rem;
}

.btn-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.2);
}

.btn-secondary .btn-arrow {
    background: rgba(45,122,79,.1);
}

.btn-arrow svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Footer */
footer {
    margin-top: 2rem;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}

/* Responsive tweak */
@media (max-width: 420px) {
    .card {
        padding: 2.25rem 1.5rem 2rem;
    }

    h1 {
        font-size: 1.55rem;
    }
}
