/* DJK Eintracht Coesfeld e. V. - Vereins-App
 * Custom CSS für Vereinsfarben und Design
 */

:root {
    /* Vereinsfarben - DJK Eintracht Coesfeld */
    --vereins-blau: #1e3a8a;      /* Dunkelblau */
    --vereins-blau-hell: #3b82f6; /* Helles Blau */
    --vereins-blau-akzent: #93c5fd; /* Akzent (EintrachtNext „Next“) */
    --vereins-weiss: #ffffff;      /* Weiß */
    --vereins-grau: #f8fafc;      /* Sehr helles Grau */
    --vereins-text: #1f2937;      /* Dunkelgrau für Text */
    /* Eckiges Design */
    --theme-radius: 0;
    --radius: 0;
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-border-radius-xl: 0;
    --bs-border-radius-xxl: 0;
    --bs-border-radius-2xl: 0;
    --bs-border-radius-pill: 0;
}

/* Globale Styles */
body {
    background-color: var(--vereins-grau);
    color: var(--vereins-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-primary {
    background-color: var(--vereins-blau) !important;
}

/* App-Layout mit linker Sidebar */
.app-guest-start {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--vereins-weiss);
}

.app-guest-hero {
    flex: 1 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--vereins-blau) 0%, #1d4ed8 42%, #3b82f6 100%);
    color: var(--vereins-weiss);
}

.app-guest-hero__content {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}

.app-guest-hero__brand .app-brand-wordmark--hero {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

.app-guest-hero__lead {
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
}

.app-guest-hero__actions .btn-light {
    color: var(--vereins-blau);
    font-weight: 600;
}

.app-guest-hero__actions .btn-light:hover {
    color: var(--vereins-blau);
    background-color: #f8fafc;
}

.app-guest-hero__actions .btn-outline-light:hover {
    color: var(--vereins-blau);
}

.app-guest-info {
    background: var(--vereins-grau);
    border-top: 1px solid rgba(30, 58, 138, 0.08);
}

.app-guest-info__text {
    max-width: 36rem;
}

.app-guest-footer {
    background: var(--vereins-grau);
}

.app-auth-page .app-auth-main {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-auth-footer {
    margin-top: auto;
}

.app-shell {
    display: flex;
    min-height: calc(100vh - 0px);
}

.app-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Desktop Sidebar */
.app-sidebar {
    width: 260px;
    flex-shrink: 0;
    flex-direction: column;
    background: linear-gradient(180deg, var(--vereins-blau) 0%, #172554 100%);
    color: var(--vereins-weiss);
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(30, 58, 138, 0.15);
    z-index: 1020;
}

body.app-has-env-banner {
    border-top: 5px solid #dc2626;
}

.app-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    color: var(--vereins-weiss);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: opacity 0.2s ease;
}

.app-sidebar-brand:hover {
    color: var(--vereins-weiss);
    opacity: 0.9;
}

.app-sidebar-brand i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Vereinslogo */
.app-brand-logo {
    display: block;
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.app-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vereins-weiss);
    line-height: 0;
    flex-shrink: 0;
}

.app-brand-logo-wrap--sidebar {
    border-radius: 0;
    padding: 0.4rem 0.55rem;
    width: 100%;
}

.app-brand-logo-wrap--mobile {
    border-radius: 0;
    padding: 0.2rem 0.35rem;
}

.app-brand-logo-wrap--hero {
    border-radius: 0;
    padding: 0.75rem 1rem;
    display: inline-flex;
}

.app-brand-logo-wrap--navbar {
    border-radius: 0;
    padding: 0.25rem 0.45rem;
}

.app-brand-logo--sidebar {
    max-height: 56px;
    margin: 0 auto;
}

.app-brand-logo--mobile {
    max-height: 34px;
}

.app-brand-logo--footer {
    max-height: 52px;
}

.app-brand-logo--hero {
    max-height: 110px;
}

.app-brand-logo--navbar {
    max-height: 38px;
}

.app-brand-logo--login {
    max-height: 72px;
    margin: 0 auto;
}

/* EintrachtNext-Wortmarke (wie Präsentation) */
.app-brand-wordmark {
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    white-space: nowrap;
}

.app-brand-wordmark-next {
    color: var(--vereins-blau-akzent);
}

.app-brand-wordmark-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.app-brand-wordmark-club {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.72);
    white-space: normal;
}

.app-brand-wordmark--sidebar {
    font-size: 1.45rem;
    color: var(--vereins-weiss);
}

.app-brand-wordmark--mobile {
    font-size: 1.15rem;
    color: var(--vereins-weiss);
}

.app-brand-wordmark-block--mobile {
    align-items: flex-start;
    text-align: left;
    width: auto;
}

.app-brand-wordmark-block--mobile .app-brand-wordmark-club {
    font-size: 0.55rem;
    max-width: 11rem;
}

.app-brand-wordmark--hero {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    color: var(--vereins-weiss);
}

.app-brand-wordmark--hero .app-brand-wordmark-next {
    color: var(--vereins-blau-akzent);
}

.app-brand-wordmark--login {
    font-size: 2rem;
    color: var(--vereins-blau);
}

.app-brand-wordmark--login .app-brand-wordmark-next {
    color: var(--vereins-blau-hell);
}

.app-mobile-brand {
    min-width: 0;
}

.navbar-brand .app-brand-logo-wrap {
    margin: 0;
}

.app-sidebar-nav {
    padding: 0.5rem 0;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.app-sidebar-section {
    padding: 0.5rem 0.75rem 0.75rem;
}

.app-sidebar-section + .app-sidebar-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.25rem;
    padding-top: 0.85rem;
}

.app-sidebar-section-label {
    padding: 0 0.75rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.app-sidebar-list {
    gap: 0.15rem;
}

.app-sidebar-list .nav-item + .nav-item {
    margin-top: 0.1rem;
}

.app-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-height: 40px;
    border: 1px solid transparent;
}

.app-sidebar-link-label {
    flex: 1 1 auto;
    min-width: 0;
}

.app-sidebar-badge {
    flex-shrink: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background-color: #ffc107;
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.app-sidebar-badge--new {
    min-width: auto;
    height: auto;
    padding: 0.14rem 0.42rem;
    border-radius: 0.25rem;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    box-shadow: 0 1px 4px rgba(13, 110, 253, 0.35);
}

.app-sidebar-link.active .app-sidebar-badge--new {
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.25);
}

.app-sidebar-link i {
    width: 1.15rem;
    text-align: center;
    flex-shrink: 0;
    margin-right: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

.app-sidebar-link:hover,
.app-sidebar-link:focus {
    color: var(--vereins-weiss);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.06);
}

.app-sidebar-link.active {
    color: var(--vereins-weiss);
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 3px 0 0 var(--vereins-blau-hell);
}

.app-sidebar-link.active i {
    opacity: 1;
}

.app-sidebar-link--sub {
    font-size: 0.85rem;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.app-sidebar-user {
    margin-top: auto;
    flex-shrink: 0;
    padding: 0.6rem 0.75rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.18);
}

.app-sidebar-user .app-sidebar-section-label {
    padding-left: 0.75rem;
    margin-bottom: 0.35rem;
}

.app-sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    min-width: 0;
}

.app-sidebar-user-info > i {
    font-size: 1.35rem;
    opacity: 0.85;
    flex-shrink: 0;
    line-height: 1;
}

.app-sidebar-user-name {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.app-sidebar-user-role {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.72;
    white-space: nowrap;
    flex-shrink: 0;
}

.app-sidebar-user-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.app-sidebar-user-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid transparent;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-sidebar-user-action:hover,
.app-sidebar-user-action:focus {
    color: var(--vereins-weiss);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.08);
}

.app-sidebar-user-action.active {
    color: var(--vereins-weiss);
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.12);
}

.app-sidebar-user-action i {
    font-size: 0.82rem;
}

.app-sidebar-user-action--logout:hover,
.app-sidebar-user-action--logout:focus {
    color: #fecaca;
    background-color: rgba(220, 38, 38, 0.22);
    border-color: rgba(220, 38, 38, 0.28);
}

/* Seiten-Untermenüs (z. B. Mannschaftsportal) */
.app-subnav-wrap {
    background: var(--vereins-weiss);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 0.4rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.portal-subnav {
    gap: 0.25rem !important;
    margin-bottom: 0 !important;
}

.portal-subnav .nav-link {
    border-radius: 0;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.portal-subnav .nav-link:hover {
    color: var(--vereins-blau);
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.portal-subnav .nav-link.active {
    color: var(--vereins-weiss);
    background-color: var(--vereins-blau);
    border-color: var(--vereins-blau);
}

/* Mobile Header */
.app-mobile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
    background: var(--vereins-blau);
    color: var(--vereins-weiss);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.2);
}

.app-mobile-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: var(--vereins-weiss);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.45rem 0.7rem;
    border-radius: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.app-mobile-menu-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background-color: #ffc107;
    color: #1a1a1a;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--vereins-blau);
}

.app-mobile-menu-btn:hover,
.app-mobile-menu-btn:focus {
    color: var(--vereins-weiss);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.app-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vereins-weiss);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow: hidden;
}

.app-mobile-brand:hover {
    color: var(--vereins-weiss);
    opacity: 0.9;
}

.app-mobile-brand i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.app-mobile-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Offcanvas Sidebar */
.app-sidebar-offcanvas {
    background: linear-gradient(180deg, var(--vereins-blau) 0%, #172554 100%);
    color: var(--vereins-weiss);
    max-width: 85%;
}

.app-sidebar-offcanvas .offcanvas-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--vereins-weiss);
}

.app-sidebar-offcanvas .offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 992px) {
    .app-shell {
        min-height: 100vh;
    }
}

/* Buttons - Vereinsblau */
.btn-primary {
    background-color: var(--vereins-blau);
    border-color: var(--vereins-blau);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--vereins-blau-hell);
    border-color: var(--vereins-blau-hell);
    transform: translateY(-1px);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Cards */
.card {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 0 !important;
    border-bottom: none;
}

/* News-Artikel */
.news-article {
    background: var(--vereins-weiss) !important;
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #1e3a8a !important;
    border-left: 4px solid transparent;
}

.news-article:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6 !important;
    transform: translateY(-1px);
}

/* Wichtige Artikel hervorheben */
.important-article {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.important-article:hover {
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.3);
}

.news-title {
    color: var(--vereins-blau);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.news-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.news-content {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Badge-Styles für Kategorien und Prioritäten */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0;
    font-weight: 500;
}

/* Vereins-Informationen Card */
.card {
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 1rem;
}

/* Filter-Buttons */
.btn-outline-secondary {
    transition: all 0.3s ease;
}

/* Vereins-News: Nächste Spiele (Mannschaftsportal) */
.news-matches-card {
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--vereins-blau);
    box-shadow: none;
}

.news-matches-card__header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

button.news-matches-card__header,
a.news-matches-card__header {
    cursor: pointer;
    user-select: none;
    color: inherit;
}

button.news-matches-card__header:hover,
a.news-matches-card__header:hover {
    background-color: rgba(30, 58, 138, 0.04);
    color: inherit;
}

.news-matches-card__header--static {
    cursor: default;
}

.news-matches-card__header.collapsed {
    border-bottom: none;
}

.news-matches-card__chevron {
    transition: transform 0.2s ease;
    color: var(--vereins-blau);
}

.news-matches-card__header[aria-expanded="true"] .news-matches-card__chevron {
    transform: rotate(180deg);
}

.news-matches-card__badge {
    font-size: 0.65rem;
    vertical-align: middle;
}

.news-matches-card__title {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.news-matches-card > .card-header h5 {
    font-size: 1.25rem;
    font-weight: 500;
    color: inherit;
}

.news-matches-list .news-match-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    border-color: #f1f5f9;
}

.news-match-item--today {
    background: #f0f7ff;
}

.news-match-item__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    min-width: 0;
    flex: 1;
}

.news-match-item__when {
    flex-shrink: 0;
    color: #64748b;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.news-match-item__title {
    color: #1e293b;
    font-weight: 500;
    min-width: 0;
}

.news-match-item__score {
    flex-shrink: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--vereins-blau);
    letter-spacing: 0.02em;
}

.news-match-item__ort {
    flex-shrink: 0;
    color: #64748b;
    font-size: 0.8125rem;
    text-decoration: none;
    min-width: 0;
    white-space: nowrap;
}

.news-match-item__ort i {
    margin-right: 0.25rem;
    opacity: 0.85;
}

.news-match-item__ort:hover {
    color: var(--vereins-blau);
    text-decoration: underline;
}

.news-match-item__fbd {
    flex-shrink: 0;
    color: #64748b;
    padding: 0.2rem 0.35rem;
    line-height: 1;
    text-decoration: none;
}

.news-match-item__fbd:hover {
    color: var(--vereins-blau);
}

/* Vereins-News: Filter einklappbar */
.news-filter-card__header {
    cursor: pointer;
    user-select: none;
}

.news-filter-card__header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.news-filter-card__chevron {
    transition: transform 0.2s ease;
    color: var(--vereins-blau);
}

.news-filter-card__header[aria-expanded="true"] .news-filter-card__chevron {
    transform: rotate(180deg);
}

.news-filter-card__badge {
    font-size: 0.65rem;
    vertical-align: middle;
}

.page-header-row {
    min-width: 0;
}

.page-header-row .portal-page-title {
    min-width: 0;
}

/* Einheitliche Seitentitel-Größe (wie Bootstrap .h3 / Wettbewerb) */
h1.portal-page-title,
.portal-page-title {
    font-size: calc(1.3rem + 0.6vw);
    font-weight: 500;
    line-height: 1.2;
}

@media (min-width: 1200px) {
    h1.portal-page-title,
    .portal-page-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 991.98px) {
    .page-create-btn,
    .news-create-btn {
        flex-shrink: 0;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
    }

    .page-create-btn__icon,
    .news-create-btn__icon {
        margin: 0 !important;
        font-size: 1.1rem;
    }

    .page-create-btn__label,
    .news-create-btn__label {
        display: none;
    }
}

@media (min-width: 992px) {
    .page-create-btn__icon,
    .news-create-btn__icon {
        margin-right: 0.5rem;
    }
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Zusätzliche Rahmen-Regel für News-Artikel */
div.news-article {
    border: 3px solid #1e3a8a !important;
    box-shadow: 0 0 0 1px #1e3a8a !important;
}

div.news-article:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6 !important;
}

/* Responsive Design für Vereins-Informationen */
@media (max-width: 768px) {
    .news-article {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Vereins-Informationen auf Mobile */
    .col-sm-6 {
        margin-bottom: 0.5rem;
    }
}

/* Action Buttons */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0;
}

.btn-outline-primary {
    color: var(--vereins-blau);
    border-color: var(--vereins-blau);
}

.btn-outline-primary:hover {
    background-color: var(--vereins-blau);
    border-color: var(--vereins-blau);
}

.btn-outline-danger {
    color: #dc2626;
    border-color: #dc2626;
}

.btn-outline-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Formulare */
.form-control {
    border-radius: 0;
    border: 1px solid #d1d5db;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--vereins-blau-hell);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.input-group-text {
    background-color: var(--vereins-grau);
    border: 1px solid #d1d5db;
    color: var(--vereins-blau);
}

/* Alerts */
.alert {
    border-radius: 0;
    border: none;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Footer */
footer {
    background-color: var(--vereins-grau) !important;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-article {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Icon Spacing */
.fas, .far, .fab {
    margin-right: 0.25rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--vereins-grau);
}

::-webkit-scrollbar-thumb {
    background: var(--vereins-blau-hell);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vereins-blau);
}

/* Staff: Trainer- vs. Spieler-Portal-Ansicht */
.portal-view-switcher {
    margin: 0.5rem 0 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.portal-view-switcher--player {
    border-color: rgba(25, 135, 84, 0.45);
    background: rgba(25, 135, 84, 0.12);
}

.portal-view-switcher--parent {
    border-color: rgba(253, 126, 20, 0.5);
    background: rgba(253, 126, 20, 0.14);
}

.portal-view-switcher--staff {
    border-color: rgba(13, 110, 253, 0.35);
    background: rgba(13, 110, 253, 0.1);
}

.portal-view-switcher__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.portal-view-switcher__select {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.95);
}

.portal-view-switcher__hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.portal-view-switcher-banner .portal-view-switcher {
    margin: 0;
    min-width: 240px;
    border-color: rgba(13, 110, 253, 0.25);
    background: #fff;
}

.portal-view-switcher-banner .portal-view-switcher__head {
    color: #475569;
}

.portal-view-switcher-banner .portal-view-switcher__hint {
    color: #64748b;
}

/* Online-Status (grüner Punkt) */
.user-online-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    vertical-align: middle;
}

.portal-avatar-with-status {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.portal-avatar-with-status > .user-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
}

.portal-kader-name-cell .user-online-dot,
.portal-participants-group__name .user-online-dot,
.portal-kader-card-head__name .user-online-dot {
    margin-left: 0.25rem;
}

.spiel-lineup-player-card__photo.portal-avatar-with-status > .user-online-dot {
    right: 2px;
    bottom: 2px;
    z-index: 2;
}

.pd-player-list-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.pd-player-list-avatar-wrap > .user-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
}

.users-profile-directory-photo-wrap {
    position: relative;
    display: inline-flex;
}

.users-profile-directory-photo-wrap > .user-online-dot {
    position: absolute;
    right: 0;
    bottom: 0;
}

/* Vereinsspiele – kompakte Terminoptik (#85), nach Kalendertag gruppiert */
.vereinsspiele-list--compact {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vereinsspiele-day {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vereinsspiele-day__header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.15rem 0.1rem 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: #475569;
}

.vereinsspiele-day__header i {
    color: var(--vereins-blau, #1e3a8a);
    opacity: 0.8;
    font-size: 0.85rem;
}

.vereinsspiele-day--today .vereinsspiele-day__header {
    color: var(--bs-primary, #0d6efd);
}

.vereinsspiele-day__games {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vereinsspiele-tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.5rem;
    background: #fff;
}

.vereinsspiele-tile--today {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.15);
}

.vereinsspiele-tile__when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #64748b;
}

.vereinsspiele-tile__title {
    font-weight: 600;
    line-height: 1.35;
}

.vereinsspiele-tile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


