﻿:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --menu: #333;
    --menuHover: #111;
    --gap: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* NAV */
.menu {
    background: var(--menu);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
}

.menu-left, .menu-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.menu a, .menu .menulink {
    display: inline-block;
    color: white;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

    .menu a:hover, .menu .menulink:hover {
        background: var(--menuHover);
    }

/* CONTENT */
.container {
    max-width: none; /* vorher 1100px */
    margin: 0; /* vorher 0 auto */
    padding: 16px 24px; /* etwas mehr Luft links/rechts */
}

.content-card {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 16px;
}

/* Für schmale Formulare wie Login */
.narrow-card {
    max-width: 420px;
    margin: 0 auto;
}

/* Inputs (optional: nur wenn du es global möchtest) */
input[type="text"], input[type="password"], input[type="email"], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d9e0;
    border-radius: 10px;
    outline: none;
    background: #fff;
}

    input:focus, textarea:focus, select:focus {
        border-color: #7aa7ff;
        box-shadow: 0 0 0 3px rgba(122,167,255,.25);
    }

/* Buttons (optional) */
button, input[type="submit"] {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}
.secondary-btn {
    background: #666;
}

/* Small screens */

/* Page layout helper (zentriert Inhalte wie Login-Box) */
.page-center {
    min-height: 100vh;
    display: flex;
    align-items: center; /* vertikal */
    justify-content: center; /* horizontal */
    padding: 24px;
}

/* Login-spezifisch */
.login-card h2 {
    text-align: center;
    margin-top: 0;
}

.form-stack {
    display: grid;
    gap: 10px;
}

.form-actions {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.center-link {
    display: block;
    text-align: center;
    margin-top: 14px;
}
/* ---- Profil: Layout ---- */
.page-title {
    margin: 0 0 10px;
}

.section-title {
    margin: 18px 0 10px;
}

.card + .card {
    margin-top: 14px;
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Tabellen hübsch ---- */
.table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

    .table th, .table td {
        padding: 10px 10px;
        border-bottom: 1px solid #e6e8ee;
        vertical-align: middle;
    }

    .table th {
        text-align: left;
        font-weight: 700;
        background: #f2f4f8;
    }

    .table tr:last-child td {
        border-bottom: 0;
    }

/* ---- Buttons: Primary / Danger ---- */
.btn {
    display: inline-block;
}

.btn-primary {
    background: #2f6fed;
    color: #fff;
}

.btn-danger {
    background: #d64545;
    color: #fff;
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ---- Messages ---- */
.msg {
    display: block;
    margin-top: 10px;
}

.msg-success {
    color: #1f7a3a;
}

.msg-error {
    color: #b42318;
}

/* ===== WERTEN LAYOUT (ERSATZBLOCK) ===== */

/* 2 Spalten: links kleines Video, rechts Feedback (ohne "überbreit") */
.two-col {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* Video kleiner */
.video-wrap {
    max-width: 360px;
}

    .video-wrap video {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }

/* Mini Inputs (7 Zeichen) */
.input-mini {
    width: 7ch !important;
    min-width: 7ch;
    max-width: 8ch;
    padding: 6px 8px;
    border-radius: 10px;
    display: inline-block;
}

/* Zeilen sauber (kein Umbruch in der Zeile) */
.inline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin: 6px 0;
}

/* Fixe Labelbreite -> "Sprung 9/10" wackelt nicht */
.lbl-fixed {
    width: 92px; /* passt für "Sprung 10:" */
    display: inline-block;
    font-weight: 700;
}

.lbl-fixed-small {
    width: 130px; /* für die Filter Labels oben */
    display: inline-block;
    font-weight: 700;
}

.sep {
    width: 12px;
    display: inline-block;
}

.feedback-inline {
    margin-left: 8px;
}

/* Feedback-Tabellen kompakter + NICHT zu breit, kein Scroll */
.table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
    table-layout: fixed; /* zwingt in die Breite */
}

    .table th, .table td {
        padding: 4px 6px; /* kleiner als vorher */
        border-bottom: 1px solid #e6e8ee;
        vertical-align: middle;
        overflow-wrap: anywhere; /* Umbruch wenn nötig */
    }

    .table th {
        text-align: left;
        font-weight: 700;
        background: #f2f4f8;
    }

    .table tr:last-child td {
        border-bottom: 0;
    }

.table-compact {
    font-size: 11px; /* ca. “halb so groß”-Wirkung */
}
.lbl-fixed-schw {
    width: 120px; /* genug Platz für "Schwierigkeit:" */
    display: inline-block;
    font-weight: 700;
    margin-left: 6px; /* kleiner Abstand nach Sprung-Feld */
}

legend {
    font-style: italic;
}

/* ProSprung: "Schwierigkeit 10:" soll in eine Zeile passen */
.lbl-fixed-prosprung {
    width: 150px;
    display: inline-block;
    font-weight: 700;
    white-space: nowrap;
}

/* Login Page ***************************************************************/

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #12b5a7;
}

.login-page {
    min-height: 100vh;
    background: #4db8b0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-top-link {
    position: absolute;
    top: 28px;
    right: 36px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.login-shell {
    width: 860px;
    min-height: 430px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
    overflow: hidden;
}

.login-left {
    background: white;
    padding: 80px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-left h2 {
        margin: 0 0 38px 0;
        text-align: center;
        color: #07324a;
    }

    .login-left input[type="text"],
    .login-left input[type="password"] {
        width: 100%;
        border: 0;
        border-bottom: 1px solid #ccd6dc;
        border-radius: 0;
        background: white;
        padding: 10px 0;
        margin-bottom: 18px;
        box-shadow: none;
    }

        .login-left input[type="text"]:focus,
        .login-left input[type="password"]:focus {
            border-bottom-color: #07324a;
            box-shadow: none;
        }

.form-stack {
    display: block;
}

.forgot-link,
.login-left .forgot-link,
.login-left .secondary-btn {
    display: block;
    width: auto;
    margin: 0 0 14px auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #07324a;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    box-shadow: none;
}

#btnLogin {
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: #07324a;
    color: white;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(7, 50, 74, 0.28);
}

.login-right {
    background: #07324a;
    color: white;
    padding: 70px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .login-right p {
        width: 100%;
        text-align: left;
    }

.error {
    display: block;
    margin-top: 14px;
    color: #b00020;
}

.login-logo {
    width: 350px;
    height: auto;
    margin-bottom: 30px;
}

/* Account anfragen ********************************************************/

.request-page {
    min-height: 100vh;
    background: #4db8b0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.request-card {
    width: 440px;
    background: white;
    border-radius: 6px;
    padding: 32px 34px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

    .request-card h2 {
        margin: 0 0 26px 0;
        color: #07324a;
        font-size: 24px;
    }

.rules-card {
    width: 1000px;
    max-width: calc(100vw - 40px);
}

.request-form {
    display: flex;
    flex-direction: column;
}

    .request-form label {
        margin: 0 0 6px 0;
        color: #07324a;
        font-size: 12px;
        font-weight: 700;
    }

    .request-form input[type="text"],
    .request-form input[type="password"],
    .request-form input[type="email"],
    .request-form textarea {
        width: 100%;
        border: 0;
        border-bottom: 1px solid #ccd6dc;
        border-radius: 0;
        background: white;
        padding: 9px 0;
        margin-bottom: 16px;
        box-shadow: none;
    }

    .request-form textarea {
        border: 1px solid #ccd6dc;
        border-radius: 4px;
        padding: 8px;
        resize: vertical;
    }

        .request-form input:focus,
        .request-form textarea:focus {
            border-color: #07324a;
            box-shadow: none;
        }

.form-hint {
    color: #666;
    font-size: 11px;
    margin: -8px 0 14px 0;
}

.request-link {
    color: #07324a;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 8px;
}

.privacy-text {
    color: #555;
    font-size: 11px;
    line-height: 1.45;
    margin: 0 0 14px 0;
}

.request-checkbox {
    font-size: 11px;
    color: #333;
    margin-bottom: 14px;
}

    .request-checkbox input {
        margin-right: 6px;
    }

.frc-captcha {
    margin: 8px 0 18px 0;
}

.request-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.request-secondary-button {
    background: transparent;
    color: #777;
    box-shadow: none;
    padding: 10px 0;
}

.request-primary-button {
    background: #07324a;
    color: white;
    border-radius: 4px;
    padding: 10px 16px;
}

    .request-primary-button:hover {
        background: #0b405e;
    }

.request-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #07324a;
    line-height: 1.35;
}

    .request-checkbox-row input[type="checkbox"] {
        width: auto;
        margin-top: 2px;
    }

    .request-checkbox-row a {
        color: #07324a;
        text-decoration: underline;
    }

.password-hint {
    margin-top: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.request-back-link {
    display: inline-block;
    color: #07324a;
    text-decoration: none;
    font-weight: 600;
}

    .request-back-link:hover {
        text-decoration: underline;
    }