/* =========================================
   HEADER
========================================= */
.header-bar {
    width: 100%;
    padding: 10px 0;
}

.header-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-center {
    font-size: 32px;
    font-weight: 700;
    color: #ffd600;
    letter-spacing: 1px;
    text-align: center;
}

.header-center a {
    color: #ffd600;
    text-decoration: none;
}

.header-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header-right img {
    max-height: 100px;
}

/* =========================================
   MAIN MENU
========================================= */
.mod-menu.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
}

.mod-menu.nav .nav-item a {
    display: inline-block;
    padding: 10px 18px;
    margin: 5px;
    border-radius: 6px;
    background: #1976d2;
    color: #ffd600 !important;
    font-weight: 700;
    text-decoration: none;
}

.mod-menu.nav .nav-item.active,
.mod-menu.nav .nav-item.current {
    background: #004ba0 !important;
    color: #fff !important;
}

/* =========================================
   HERO
========================================= */
.start-hero {
    position: relative;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    padding: 25px 15px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

.start-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.start-hero p {
    font-size: 18px;
}
/* =========================================
   HERO LOGIN / STATUS
========================================= */
.hero-login {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 999;
}

.btn-login {
    background: #ffd600;
    color: #0d47a1;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
}

.btn-login:hover {
    background: #ffea00;
}

.btn-logout {
    background: #ffd600;
    color: #0d47a1;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-logout:hover {
    background: #ffea00;
}

.user-greeting {
    color: #ffd600;
    font-weight: 600;
    margin-right: 8px;
}

.user-greeting,
.logout-link {
    display: none;
}

body.user-logged-in .login-link {
    display: none;
}

body.user-logged-in .logout-link,
body.user-logged-in .user-greeting {
    display: inline-block;
}

.user-status {
    margin-top: 5px;
}

.logout-form {
    margin-top: 5px;
}

/* =========================================
   HERO MAIN BUTTON
========================================= */
.hero-main-button {
    text-align: center;
    margin-bottom: 12px;
}

.hero-main-button a {
    display: inline-block;
    background: #ffd600;
    color: #0d47a1;
    font-weight: 700;
    font-size: 20px;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
}

/* =========================================
   HERO BUTTONS (falls im Hero noch verwendet)
========================================= */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: nowrap;
}

.hero-buttons a {
    background: #ffd600;
    color: #0d47a1;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.hero-buttons a:hover {
    background: #ffea00;
}

/* =========================================
   START-NAV (NEUES EIGENES MODUL)
========================================= */
.start-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

/* =========================================
   START-NAV FIX (Zwangsüberschreibung)
========================================= */

.main-top .card-body .start-nav a {
    display: inline-block !important;

    background-color: #1976d2 !important;
    color: #ffd600 !important;

    padding: 8px 14px !important;
    margin: 5px !important;

    font-weight: 700 !important;
    border-radius: 6px !important;

    text-decoration: none !important;
}

/* Hover */
.main-top .card-body .start-nav a:hover {
    background-color: #004ba0 !important;
    color: #ffffff !important;
}

.start-nav a:hover {
    background: #004ba0;
    color: #ffffff;
}

/* =========================================
   BOXEN
========================================= */
.start-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.start-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

/* =========================================
   SPIELER
========================================= */
.spieler-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spieler-card {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
}

.spieler-foto img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* =========================================
   LIGA SEITE
========================================= */
.liga-seite .liga-details {
    margin-bottom: 10px;
}

.liga-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.liga-card {
    display: block;
    background: #f5f5f5;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: 0.2s;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.liga-card:hover {
    background: #e3f2fd;
}

/* =========================================
   LOGOUT OPTIK IM MENÜ
========================================= */
.mod-menu.nav .nav-item a[href*="logout"] {
    background: #ffd600 !important;
    color: #0d47a1 !important;
    font-weight: 700;
    border-radius: 6px;
}

.mod-menu.nav .nav-item a[href*="logout"]:hover {
    background: #ffea00 !important;
}

/* =========================================
   SPONSOREN
========================================= */
.noe-sponsoren {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.noe-sponsoren img {
    height: 60px;
    max-width: 120px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.mod-noe-sponsorlogo {
    text-align: center;
}

.mod-noe-sponsorlogo__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.mod-noe-sponsorlogo__item {
    display: flex;
    justify-content: center;
}

.mod-noe-sponsorlogo img {
    display: block;
    margin: 0 auto;
}

.neben-sponsoren .mod-noe-sponsorlogo__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

/* =========================================
   DRUCKBEREICH MANNSCHAFT / SPIELER
========================================= */
.druck-kopf,
.druck-tabelle {
    display: none;
}

.druck-foto {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 1024px) {
    .header-row {
        flex-direction: column;
    }

    .header-center {
        font-size: 22px;
    }

    .header-right {
        position: static;
        transform: none;
        margin-top: 5px;
    }

    .start-hero {
        padding: 15px 10px !important;
        max-height: none !important;
        height: auto !important;
    }

    .start-hero h1 {
        font-size: 22px;
    }

    .start-hero p {
        font-size: 14px;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .hero-buttons a {
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: 45% !important;
        padding: 6px 8px !important;
        font-size: 13px !important;
    }

    .hero-main-button a {
        display: inline-block !important;
        width: auto !important;
        padding: 8px 12px !important;
        font-size: 15px !important;
    }

    .start-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .start-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .liga-grid {
        grid-template-columns: 1fr;
    }

    .spieler-grid {
        grid-template-columns: 1fr;
    }

    .spieler-card {
        padding: 12px;
        background: #fff;
        border-radius: 8px;
    }

    .spieler-foto img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .start-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .start-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* =========================================
   DRUCK
========================================= */
@media print {
    header,
    nav,
    footer,
    .start-hero,
    .sidebar-right,
    .container-sidebar-right,
    .main-top,
    .mannschaft-details,
    .spieler-grid,
    .card-header,
    .no-print,
    button,
    .btn {
        display: none !important;
    }

    body {
        margin: 0 !important;
        padding: 5mm !important;
    }

    .container,
    .mannschaft-seite,
    .card,
    .card-body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .druck-kopf {
        display: block !important;
        text-align: center;
        margin-bottom: 10px;
    }

    .druck-kopf h2 {
        margin: 0 0 5px 0;
        font-size: 20px;
        font-weight: 700;
    }

    .druck-kopf div {
        font-size: 14px;
    }

    .druck-tabelle {
        display: table !important;
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        font-size: 13px;
    }

    .druck-tabelle th,
    .druck-tabelle td {
        border: 1px solid #000;
        padding: 5px;
        vertical-align: middle;
    }

    .druck-tabelle th {
        background: #eee;
        font-weight: bold;
    }

    .druck-tabelle tr {
        page-break-inside: avoid;
    }
}/* KOMPLETTER STYLE – identischer Card Look */
.geburtstage-title {
    color: var(--cassiopeia-color-primary);
    margin-bottom: 12px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.card-geburtstag {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #ffffff !important;
    border-radius: 12px;
    border-left: 4px solid var(--cassiopeia-color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.card-geburtstag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.geburtstag-foto img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.geburtstag-name {
    font-weight: 600;
    color: #222;
}

.geburtstag-meta {
    font-size: 0.85rem;
    color: #666;
}

.geburtstag-age {
    font-size: 0.85rem;
    margin-top: 4px;
    color: #444;
}

.geburtstag-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}
/* Footer Menü speziell */
.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    list-style: none;
}

.footer-nav a {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: none;
    position: relative;
}

/* Trennstrich */
.footer-nav li:not(:last-child)::after {
    content: "|";
    margin-left: 12px;
    color: #bbb;
}

/* Hover */
.footer-nav a:hover {
    color: var(--cassiopeia-color-primary);
}
/* ===== FINAL LOGIN POSITION FIX ===== */

.start-hero {
    position: relative;
    padding-top: 60px;
}

.start-hero .hero-login {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;

    padding: 0 15px;
    margin: 0;

    z-index: 100;
    background: transparent; /* wichtig → kein roter Balken mehr */
}

/* Mobile */
@media (max-width: 767.98px) {

    .start-hero {
        padding-top: 70px;
    }

    .start-hero .hero-login {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .start-hero .user-greeting {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}/* ===== HERO TEXT FIX ===== */

.start-hero h1 {
    white-space: normal;
    line-height: 1.2;
    margin-bottom: 5px;
}

.start-hero p {
    margin-top: 0;
}

.start-hero p strong {
    display: block;
    word-break: break-word;
}

/* MOBILE */
@media (max-width: 767.98px) {

    .start-hero h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    .start-hero p strong {
        font-size: 1.4rem;
        text-align: center;
    }
/* =========================================
   AUSLOSUNG MOBILE OPTIMIERUNG
   Tag + Info ausblenden
========================================= */
@media (max-width: 600px) {

    /* Spalten komplett ausblenden */
    .runde-tabelle col.col-tag,
    .runde-tabelle col.col-info {
        display: none;
    }

    .runde-tabelle th.tag-col,
    .runde-tabelle td.tag-col,
    .runde-tabelle th.info-col,
    .runde-tabelle td.info-col {
        display: none;
    }

    /* Breiten neu verteilen */
    .runde-tabelle col.col-nr    { width: 12% !important; }
    .runde-tabelle col.col-heim  { width: 38% !important; }
    .runde-tabelle col.col-sep   { width: 4% !important; }
    .runde-tabelle col.col-gast  { width: 38% !important; }
    .runde-tabelle col.col-datum { width: 18% !important; }

    /* bessere Lesbarkeit */
    .runde-tabelle th,
    .runde-tabelle td {
        font-size: 15px;
    }
}