/* public/css/style.css */

body {
    margin: 0;
    font-family: Arial, sans-serif;

    background-image: url('/images/bg/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* ZENTRIERTER CONTAINER */
.page-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 15px;
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    height: 230px;
    border: 5px solid #32333B;
    margin-bottom: 20px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.0) 40%, rgba(255,255,255,0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero:hover::after {
    opacity: 1;
}

.hero:hover .hero-center {
    transform: translate(-50%, -50%) rotate(-3deg) scale(1.15);
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0px  6px 0 #111,
         0px  12px 20px rgba(0,0,0,0.9),
         0px  0px 20px rgba(255,255,255,0.8);
}

@keyframes goalShake {
    0% { transform: translate(-50%, -50%) rotate(-6deg) scale(1.15); }
    25% { transform: translate(-48%, -52%) rotate(-4deg) scale(1.15); }
    50% { transform: translate(-52%, -48%) rotate(-7deg) scale(1.15); }
    75% { transform: translate(-49%, -51%) rotate(-5deg) scale(1.15); }
    100% { transform: translate(-50%, -50%) rotate(-6deg) scale(1.15); }
}

.hero:hover .hero-center {
    animation: goalShake 0.4s ease;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);

    color: #facc15;
    font-size: clamp(24px, 5vw, 64px);
    font-weight: 900;
    font-family: 'Bangers', cursive;
    text-align: center;
    text-transform: uppercase;

    z-index: 2; /* über dem Bild */
    pointer-events: none; /* optional */
    
    /* Meme Outline */
    text-shadow:
        -3px -3px 0 #000,
         3px -3px 0 #000,
        -3px  3px 0 #000,
         3px  3px 0 #000,
         6px  6px 12px rgba(0,0,0,0.6);
    letter-spacing: 2px;
}

/* GRID */
.layout {
    display: grid;
    grid-template-columns: 250px minmax(0,1fr) 250px;
    gap: 15px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 5px solid #32333B;
    padding: 20px;
    box-sizing: border-box;
}

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

.content-inner{
    display:flex;
    flex-direction:column;
    gap:15px;
    padding:15px;

    min-width:0;
    /*width:100%;*/
    max-width:100%;
    box-sizing: border-box;
}

.ticker {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);

    padding: 10px 15px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
}

.teamstrip {
    display: flex;
    gap: 10px;
    overflow-x: auto;

    padding: 10px;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);

    border-radius: 8px;
    box-sizing: border-box;
}

.team {
    flex: 0 0 auto;
    padding: 6px 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
    font-size: 12px;
}

.ticker,
.teamstrip {
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.glass {
    background: rgba(255,255,255,.58);
/*    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);*/
}

.box {
    /*overflow: hidden;*/
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* HEADER */
.box-header {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient( to bottom, #32333B, #2b6645);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.3);
}

/* BODY */
.box-body {
    padding: 8px 10px;
}


/* OPTIONAL: Hover Effekt */
.box:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease;
}


/* OPTIONAL: dunklere Variante für bessere Abgrenzung */
.box-header--dark {
    background: rgba(0,0,0,0.05);
    color: #111827;
}


/* OPTIONAL: mit Icon (für später) */
.box-header i {
    margin-right: 6px;
    opacity: 0.7;
}

/* MOBILE */
@media (max-width: 992px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 140px;
    }
}

/* =========================
   LOGIN BOX
========================= */

.ts-login {
    display: flex;
    flex-direction: column;
    gap: 14px;

/*    max-width: 280px;
    margin: 0 auto;*/
}

/* =========================
   INPUTS
========================= */

.ts-input {
    /*width: 100%;*/
    padding: 12px;

    /*border-radius: 10px;*/
    border: 1px solid rgba(0,0,0,0.1);

    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);

    font-size: 14px;
    outline: none;

    transition: all 0.2s ease;
}

.ts-input:focus {
    border-color: #2f8f5a;
    box-shadow: 0 0 0 2px rgba(47,143,90,0.2);
}

/* =========================
   CHECKBOX
========================= */

.ts-remember {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    color: #444;
}

/* =========================
   BUTTON
========================= */

.ts-btn-login {
    width: 100%;
    padding: 12px;

    border-radius: 10px;
    border: none;

    font-weight: 600;
    color: #fff;

    background: linear-gradient(
        to bottom,
        #2f8f5a,
        #277a4c
    );

    cursor: pointer;
    transition: all 0.2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ts-btn-login i {
    font-size: 14px;
}

.ts-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =========================
   LINKS
========================= */

.ts-login-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.ts-login-links a {
    font-size: 13px;
    color: #2f8f5a;
    text-decoration: none;
}

.ts-login-links a:hover {
    text-decoration: underline;
}

/* =========================
   INPUT GROUP (MIT ICON)
========================= */

.ts-input-group {
    display: flex;
    align-items: center;

    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);

    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);

    overflow: hidden;
}

/* Icon */
.ts-input-icon {
    padding-left: 14px;
    padding-right: 10px;
    color: #666;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(0,0,0,0.1);
}

/* Input angepasst */
.ts-input {
    border: none;
    outline: none;
    background: transparent;

    padding: 12px 12px 12px 0;
    width: 100%;

    font-size: 14px;
}

/* Fokus auf gesamte Gruppe */
.ts-input-group:focus-within {
    border-color: #2f8f5a;
    box-shadow: 0 0 0 2px rgba(47,143,90,0.2);
}

/* =========================
   USER BOX
========================= */

.ts-user-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Header / Kopfbereich */
.ts-user-header,
.ts-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

/* Avatar Wrapper */
.ts-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;

    border: 2px solid rgba(47,143,90,0.18);
    background: rgba(255,255,255,0.75);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2f8f5a;
    font-size: 22px;
}

/* Avatar Bild */
.ts-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder */
.ts-user-avatar--placeholder {
    background: rgba(0,0,0,0.05);
    color: #666;
}

/* Textblock */
.ts-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

/* Name */
.ts-user-name,
.ts-user-meta strong {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

/* Untertext */
.ts-user-sub,
.ts-user-meta span {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* Actions */
.ts-user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Buttons Basis */
.ts-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    /*width: 100%;*/
    padding: 11px 12px;

    border-radius: 10px;
    border: none;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    transition: all 0.2s ease;
    cursor: pointer;
}

/* Primary */
.ts-btn-primary {
    color: #fff;
    background: linear-gradient(to bottom, #2f8f5a, #277a4c);
    box-shadow: 0 2px 6px rgba(47,143,90,0.28);
}

/* Secondary */
.ts-btn-secondary {
    background: rgba(0,0,0,0.06);
    color: #333;
}

/* Danger */
.ts-btn-danger {
    background: rgba(220,53,69,0.08);
    color: #b02a37;
}

/* Hover */
.ts-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Fehlermeldung */
.ts-login-error {
    padding: 10px;
    border-radius: 10px;

    background: rgba(220,53,69,0.12);
    color: #b02a37;

    font-size: 13px;
    text-align: center;
}

/* ===============================
   NAVIGATION BOX
================================= */

.subnav-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Header */
.subnav-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subnav-title,
.subnav-card__head h3 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    color: #333;
}

/* Gear */
.subnav-gear {
    border: none;
    background: transparent;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    transition: .2s;
}

.subnav-gear:hover {
    transform: rotate(20deg);
    color: #2f8f5a;
}

/* Search */
.subnav-search-wrap {
    margin-top: 6px;
}

.subnav-search {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.55);
    font-size: 14px;
    outline: none;
}

.subnav-search:focus {
    border-color: #2f8f5a;
    box-shadow: 0 0 0 3px rgba(47,143,90,0.08);
}

/* Accordion */
.subnav-group,
.subnav-card details {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    margin-top: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.30);
}

.subnav-group summary,
.subnav-card summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

.subnav-group summary::-webkit-details-marker,
.subnav-card summary::-webkit-details-marker {
    display: none;
}

.subnav-group summary::before,
.subnav-card summary::before {
    content: "›";
    margin-right: 10px;
    display: inline-block;
    transform: rotate(90deg);
    transition: .2s;
}

details:not([open]) summary::before {
    transform: rotate(0deg);
}

/* List */
.subnav-list {
    list-style: none;
    margin: 0;
    padding: 0 14px 14px;
}

/* Links */
.subnav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;

    text-decoration: none;

    color: #2c5e42;
    font-size: 16px;
    font-weight: 600;

    background: rgba(255,255,255,0.45);

    transition: all .18s ease;
}

.subnav-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    opacity: .9;
}

.subnav-link:hover {
    background: rgba(47,143,90,0.10);
    color: #226e46;
    transform: translateX(2px);
}

.subnav-link.active,
.subnav-link.fav:first-child {
    background: linear-gradient(
        to bottom,
        #2f8f5a,
        #277a4c
    );

    color: #fff;
    box-shadow: 0 3px 10px rgba(47,143,90,.22);
}

/* Divider */
.subnav-list li + li {
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Favoriten */
.subnav-favs-title {
    font-size: 13px;
    font-weight: 700;
    color: #2f8f5a;
    padding: 0 6px 8px;
    text-transform: uppercase;
}

/* Modal Navigation */
.sn-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.sn-modal.show {
    display: block;
}

.sn-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.sn-dialog {
    position: relative;
    width: min(760px, 94vw);
    max-height: 85vh;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 640px) {

    .sn-dialog {
        width: 96vw;
        max-height: 92vh;
        margin: 12px auto;
        border-radius: 14px;
    }

}

.sn-head,
.sn-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    flex-shrink: 0;
    background: #fff;
}

.sn-actions {
    border-top: 1px solid rgba(0,0,0,.08);
}

.sn-body {
    margin: 18px 0;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.sn-btn {
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.sn-btn.primary {
    background: #2f8f5a;
    color: #fff;
}

.sn-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

@media (max-width: 640px) {
    .sn-grid {
        grid-template-columns: 1fr;
    }
}

.sn-check {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 10px;

    background: rgba(0,0,0,0.03);
    cursor: pointer;
}

.sn-check:hover {
    background: rgba(47,143,90,0.06);
}

.sn-check input {
    width: 16px;
    height: 16px;
}

.sn-order-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.sn-order-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    margin-bottom: 8px;

    background: rgba(0,0,0,0.04);
    border-radius: 10px;

    cursor: grab;
}

.sn-order-item i {
    color: #777;
}

/* =========================
   ONLINE BOX
========================= */
.online-box .box-body {
    padding: 10px 12px;
    background: rgba(255,255,255,0.88);
}

.online-box .ua-section {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.online-box .ua-section + .ua-section {
    margin-top: 0;
}

.online-box .ua-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
    color: #2f3136;
}

.online-box .ua-count {
    color: #6c757d;
}

.online-box .ua-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding:4px 0;
}

.online-box .ua-row + .ua-row {
    border-top: 1px solid rgba(0,0,0,0.06);
}

.online-box .ua-left {
    flex: 0 0 32px;
}

.online-box .ua-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #fff;
}

.online-box .ua-row-online .ua-avatar {
    border: 2px solid #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}

.online-box .ua-row-offline .ua-avatar {
    border: 2px solid #b8bfc7;
}

.online-box .ua-main {
    flex: 1;
    min-width: 0;
}

.online-box .ua-name {
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.online-box .ua-name:hover {
    color: #0d6efd;
}

.online-box .ua-time {
    font-size: 0.68rem;
    color: #6c757d;
    margin-top: 0;
    line-height: 1.05;
}

.online-box .ua-right {
    flex: 0 0 auto;
}

.online-box .ua-team {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.online-box .ua-empty {
    color: #6c757d;
    font-size: 0.9rem;
}

.online-box .ua-guests {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #2d2d2d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-box .ua-guests strong {
    font-weight: 800;
}

@media (max-width: 768px) {
    .online-box .box-body {
        padding: 10px;
    }

    .online-box .ua-avatar {
        width: 34px;
        height: 34px;
    }
}

.ua-status-wrap{
    position:relative;
    display:inline-block;
}

/* gemeinsamer Dot */
.ua-status-wrap::after{
    content:'';
    position:absolute;
    right:0;
    bottom:0;

    width:8px;
    height:8px;
    border-radius:50%;
    border:2px solid #fff;
}

/* ONLINE */
.ua-status-wrap.is-online::after{
    background:#22c55e;
    box-shadow:0 0 0 2px rgba(34,197,94,.18);
}

/* OFFLINE */
.ua-status-wrap.is-offline::after{
    background:#9ca3af;
    box-shadow:0 0 0 2px rgba(156,163,175,.18);
}

/* ==================================================
   USER ACTIVITY TOOLTIP – FINAL STANDALONE VERSION
================================================== */

/* Wrapper */
.ua-hover-wrapper{
    position:relative;
    display:inline-block;
}

/* Tooltip-Karte */
.ua-tt{
    position:absolute;
    top:0;
    left:-255px;
    width:230px;

    padding:14px;
    border-radius:14px;

    background:rgba(255,255,255,.92);
    backdrop-filter:blur(8px);

    box-shadow:0 14px 32px rgba(0,0,0,.18);
    border:1px solid rgba(255,255,255,.35);

    opacity:0;
    visibility:hidden;

    transform:translateY(6px);
    transition:opacity .18s ease, transform .18s ease;

    z-index:9999;
    font-family:inherit;
}

/* Hover aktiv */
.ua-hover-wrapper:hover .ua-tt{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* ==========================================
   HEADER
========================================== */

.ua-tt__header{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:8px;
}

.ua-tt__avatar{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
    box-shadow:0 2px 8px rgba(0,0,0,.18);
}

.ua-tt__username{
    font-size:1.05rem;
    font-weight:800;
    color:#2a2a2a;
    line-height:1.1;
}

.ua-tt__subinfo{
    margin-top:4px;

    display:flex;
    align-items:center;
    gap:6px;

    font-size:.78rem;
    color:#666;
}

/* ==========================================
   DIVIDER
========================================== */

.ua-tt__divider{
    height:1px;
    margin:10px 0;
    background:rgba(0,0,0,.08);
}

/* ==========================================
   TEAM
========================================== */

.ua-tt__teamline{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
}

.ua-tt__teamicon{
    width:22px;
    height:22px;
    object-fit:contain;
}

.ua-tt__teamname{
    font-size:.85rem;
    font-weight:600;
    color:#555;
}

/* ==========================================
   QUOTE
========================================== */

.ua-tt__quote-box{
    display:flex;
    gap:8px;

    padding:10px 12px;
    margin-bottom:12px;

    background:#f1f3f6;
    border-left:4px solid #0b74d8;
    border-radius:8px;
}

.ua-tt__quote-icon{
    color:#0b74d8;
    font-size:1rem;
    opacity:.85;
    margin-top:2px;
}

.ua-tt__quote-text{
    font-size:.85rem;
    line-height:1.4;
    color:#444;
    font-style:italic;
    word-break:break-word;
}

/* ==========================================
   PUNKTE
========================================== */

.ua-tt__points-box{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:7px 8px;
    border-radius:7px;

    background:#eef7ff;

    font-size:.9rem;
    font-weight:600;
}

.ua-tt__points-high strong{
    color:#2e9f45 !important;
}

.ua-tt__points-mid strong{
    color:#0b74d8 !important;
}

.ua-tt__points-low strong{
    color:#d64545 !important;
}

/* ==========================================
   GENDER BADGES
========================================== */

.ua-gender{
    display:inline-flex;
    justify-content:center;
    align-items:center;

    width:20px;
    height:20px;

    border-radius:50%;
    color:#fff;
    font-size:.7rem;

    box-shadow:0 1px 3px rgba(0,0,0,.22);
}

.ua-gender.male{
    background:#3b82f6;
}

.ua-gender.female{
    background:#ec4899;
}

.ua-gender.divers{
    background:#8b5cf6;
}

/* ==========================================
   MOBILE AUS
========================================== */

@media (max-width: 768px){
    .ua-tt {
        left: 0 !important;          /* nicht nach links raus */
        top: 55px !important;        /* unter dem Avatar */
        width: 260px !important;
        transform: none !important;
    }

    .ua-hover-wrapper:hover .ua-tt {
        transform: none !important;
    }
}

/* ==========================================
   NOTES / ANKÜNDIGUNGEN
   passend zu Login / Navi / Online Box
========================================== */

.note-card{
    padding:10px;
    margin-bottom:8px;

    border-radius:12px;
    border-left:4px solid #2f8f53;

    background:rgba(255,255,255,.58);
    backdrop-filter:blur(5px);

    box-shadow:0 6px 18px rgba(0,0,0,.08);
}

/* ==========================================
   PRIORITÄTEN
========================================== */

/* Standard Info = grün */
.note-card.note-info{
    border-left-color:#2f8f53;
    background:rgba(230,247,236,.78);
}

/* Warn = gold / amber */
.note-card.note-warn{
    border-left-color:#d6a100;
    background:rgba(255,248,220,.82);
}

/* Critical = rot */
.note-card.note-critical{
    border-left-color:#d64545;
    background:rgba(255,236,236,.84);
}

/* Bereits gelesen */
.note-card.read{
    opacity:.58;
    text-decoration:line-through;
    filter:grayscale(.18);
}

/* ==========================================
   TITEL
========================================== */

.note-title{
    font-size:.96rem;
    font-weight:800;
    color:#2b2b2b;
    line-height:1.15;
    margin-bottom:5px;
}

/* Text */
.note-text{
    font-size:.90rem;
    line-height:1.28;
    color:#333;
    margin-bottom:8px;
}

/* Link */
.note-link{
    display:inline-block;
    margin-bottom:8px;
    font-size:.92rem;
    color:#2f8f53;
    font-weight:700;
    text-decoration:none;
}

.note-link:hover{
    text-decoration:underline;
}

/* ==========================================
   BUTTON
========================================== */

.note-read-btn{
    width:auto;
    min-width:145px;
    margin:0 auto;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    border:0;
    border-radius:999px;

    padding:7px 12px;

    color:#fff;
    font-size:.84rem;
    font-weight:700;

    cursor:pointer;
    transition:all .18s ease;
}

/* Info = Boxengrün */
.note-card.note-info .note-read-btn{
    background:linear-gradient(135deg,#37985a,#2f8f53);
}

/* Warn = Gold */
.note-card.note-warn .note-read-btn{
    background:linear-gradient(135deg,#e3b63c,#c89600);
}

/* Critical = Rot */
.note-card.note-critical .note-read-btn{
    background:linear-gradient(135deg,#ef6666,#d64545);
}

/* Hover */
.note-read-btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.04);
}

/* Focus */
.note-read-btn:focus{
    outline:none;
    box-shadow:0 0 0 3px rgba(47,143,83,.18);
}

/* ==========================================
   LEER / LOGIN HINWEIS
========================================== */

.notes-empty{
    padding:10px;
    text-align:center;
    font-size:.95rem;
    color:#666;
}

/* ==========================================
    Note gelesen
========================================== */
.note-card.read{
    opacity: .7;
    filter: grayscale(.18);
}

.note-card.read .note-title,
.note-card.read .note-text{
    text-decoration: line-through;
}

.note-card.read .note-link{
    opacity: .7;
}

/* ==========================================
   KICKERNEWS
========================================== */

.ts-newsbox{
    width:100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    overflow: hidden;
    margin: 0 0 14px;
    padding: 0 0 10px;
}

.ts-newsbox__scroll{
    max-height:450px;
    overflow-y:auto;
    padding-right:4px;
}

/* Scrollbar */
.ts-newsbox__scroll::-webkit-scrollbar{
    width:6px;
}

.ts-newsbox__scroll::-webkit-scrollbar-thumb{
    background:rgba(0,0,0,.18);
    border-radius:999px;
}

/* Liste */
.ts-newslist{
    list-style:none;
    margin:0;
    padding: 8px 10px;
}

.ts-newslist__item{
    padding:10px 12px;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.ts-newslist__item:last-child{
    border-bottom:0;
}

/* Datum */
.ts-newsmeta__date{
    font-size:.74rem;
    color:#777;
    margin-bottom:4px;
}

/* Teamzeile */
.ts-newsmeta__teamrow{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
}

.ts-newsmeta__logo{
    width:16px;
    height:16px;
    object-fit:contain;
}

.ts-newsmeta__teamname{
    font-size:.78rem;
    font-weight:700;
    color:#2f8f53;
}

/* Headline */
.ts-newsheadline{
    display:block;
    font-size:.82rem;
    line-height:1.25;
    font-weight:700;
    color:#222;
    text-decoration:none;
    margin-bottom:5px;
}

.ts-newsheadline:hover{
    color:#2f8f53;
}

/* Beschreibung */
.ts-newsdesc{
    font-size:.80rem;
    line-height:1.35;
    color:#555;
    font-style: italic;
}

.ts-news-more{
    color:#2f8f53;
    font-weight:700;
    text-decoration:none;
}

.ts-news-more:hover{
    text-decoration:underline;
}

/* Leerzustand */
.ts-newsbox__empty{
    text-align:center;
    color:#666;
    padding:10px;
    font-size:.95rem;
}

.ts-newsbox__debug{
    margin-top:8px;
    font-size:.82rem;
    color:#999;
}

/* ==========================================
   FOOTER
========================================== */
.site-footer{
    margin-top:20px;
    padding:18px 24px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;

    background:rgba(255,255,255,.72);
    backdrop-filter:blur(6px);

    border: 5px solid #32333B;
    box-shadow:0 -2px 12px rgba(0,0,0,.06);

    font-size:.95rem;
    color:#444;
}

.footer-right{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.footer-right a{
    color:#2f8f53;
    text-decoration:none;
    font-weight:600;
}

.footer-right a:hover{
    text-decoration:underline;
}

/* ===== 2. Liga Ticker ===== */

.ts-ticker{
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding:.45rem 0;
    margin:0;

    width:100%;
    max-width:100%;
    min-width:0;

    overflow:hidden;
}

.ts-ticker__head{
    font-weight:600;
    font-size:.9rem;
    color:#333;
    margin-bottom:.25rem;
    padding:0 4px;
}

.ts-ticker__viewport{
    position:relative;
    overflow:hidden;
}

.ts-ticker__track{
    display:inline-flex;
    gap:32px;
    white-space:nowrap;
    will-change:transform;
    animation:ts-marquee 60s linear infinite;
}

.ts-ticker__item{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#333;
    font-size:.92rem;
}

.ts-ticker__score{
    min-width:44px;
    font-weight:700;
    text-align:center;
    font-variant-numeric:tabular-nums;
}

.ts-ticker__item.is-live{
    color: red; /* #ff7b7b; */
}

.ts-ticker__badge{
    font-size:.72rem;
    border:1px solid rgba(255,90,90,.45);
    padding:1px 6px;
    border-radius:999px;
    background:rgba(255,0,0,.18);
    color:#fff;
}

.ts-ticker__time{
    font-size:.8rem;
    color:#666;
    margin-right: 2px;
}

.ts-ticker__dot{
    opacity:.30;
}

.ts-ticker__team.is-win{
    font-weight:700;
    color:#000;
}

.ts-ticker:hover .ts-ticker__track{
    animation-play-state:paused;
}

@keyframes ts-marquee{
    0%   { transform:translate3d(0,0,0); }
    100% { transform:translate3d(-50%,0,0); }
}

/* ===== Team-Strip ===== */
.ts-teamstrip{
    margin: 0;
    padding: .5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ts-teamstrip__row{
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.ts-teamstrip__link{
    position: relative;
    display: inline-block;
}

.ts-teamstrip__img{
    height: 22px;
    width: auto;
    display: block;
    object-fit: contain;
    box-shadow: 1px 2px 12px black;
}

/* ===================================
   TEAMSTRIP TOOLTIP BASIS
=================================== */

.ts-teamstrip__link{
    position:relative;
}

.ts-teamstrip__link .ts-tt{
    position:absolute;
    top:calc(100% + 8px);
    left:50%;
    transform:translateX(-50%) translateY(-4px);

    width:260px;
    padding:16px;

    background:rgba(18,22,28,.94);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    border-radius:12px;
    box-shadow:0 10px 24px rgba(0,0,0,.38);

    color:#fff;

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transition:all .22s ease;

    z-index:9999;
}

.ts-teamstrip__link:hover .ts-tt{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
}

.ts-teamstrip__link .ts-tt::after{
    content:"";
    position:absolute;
    top:-6px;
    left:50%;
    transform:translateX(-50%);

    border:6px solid transparent;
    border-bottom-color:rgba(18,22,28,.94);
}

/* ===================================
   INHALT
=================================== */

.ts-teamstrip .ts-tt__head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
}

.ts-teamstrip .ts-tt__meta{
    flex:1;
    min-width:0;
}

.ts-teamstrip .ts-tt__rank{
    font-size:.88rem;
    color:rgba(255,255,255,.65);
    margin-bottom:6px;
}

.ts-teamstrip .ts-tt__title{
    font-size:1.2rem;
    font-weight:700;
    line-height:1.15;
    margin-bottom:6px;
}

.ts-teamstrip .ts-tt__coach{
    font-size:.95rem;
    color:rgba(255,255,255,.88);
}

.ts-teamstrip .ts-tt__avatar{
    width:74px;
    height:74px;
    object-fit:cover;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.18);
    flex-shrink:0;
}

.ts-teamstrip .ts-tt__stats{
    margin-top:14px;
    display:flex;
    justify-content:center;
}

.ts-tt__stats span{
    background:rgba(255,255,255,.08);
    padding:6px 12px;
    border-radius:999px;
    font-weight:700;
}

.ts-teamstrip .ts-tt__stadium{
    margin-top:12px;
    font-size:.94rem;
    color:rgba(255,255,255,.82);
}

.ts-trend{
    font-weight:700;
    margin-left:6px;
}

.ts-trend.up{
    color:#67e480;
}

.ts-trend.down{
    color:#ff6b6b;
}

.ts-trend.same{
    color:#bfc3c8;
}

/* ===== Breadcrumb ===== */
.ts-breadcrumb{
    padding:10px 15px;
    background:rgba(255,255,255,.72);
    border-radius:8px;
    font-size:.92rem;
}

.ts-breadcrumb ol{
    display:flex;
    gap:8px;
    list-style:none;
    margin:0;
    padding:0;
    flex-wrap:wrap;
}

.ts-breadcrumb li:not(:last-child)::after{
    content:"/";
    margin-left:8px;
    opacity:.45;
}

.ts-breadcrumb a{
    color:#2c6ea8;
    text-decoration:none;
}

.ts-breadcrumb .active{
    font-weight:600;
    color:#333;
}

.ts-breadcrumb i{
    margin-right:6px;
    opacity:.8;
    font-size:.9rem;
}

.ts-breadcrumb .active i{
    opacity:1;
}

/* ===================================
        Card-Design alle Seiten
=================================== */
.card {
    background: rgba(255,255,255,.72);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    overflow: hidden;
}

.card-header {
    padding: 16px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.65);
}

.card-body {
    padding: 22px;
}