﻿: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;
}





