/* Aus index.html ausgelagerte Startseiten-Styles von GoalNews. */

/* Startseite: an das dunkle GoalNews-Design der Ligaseiten angepasst. */
      body {
        min-height: 100%;
        background:
          radial-gradient(ellipse at 50% -15%, #17365a 0, transparent 48%),
          #080f1b;
        color: #f4f7fb;
        font-family:
          Inter,
          system-ui,
          -apple-system,
          BlinkMacSystemFont,
          'Segoe UI',
          sans-serif;
        text-align: left;
      }

      body > header {
        position: sticky;
        top: 0;
        z-index: 100;
        min-height: 72px;
        padding: 14px clamp(18px, 5vw, 64px);
        border-bottom: 1px solid #ffffff12;
        background: #08111fee;
        box-shadow: 0 8px 28px #0003;
      }

      .logo {
        color: #f8fafc;
        font-size: 1.4rem;
        font-weight: 800;
        letter-spacing: -0.04em;
      }

      .brand-greeting {
        display: flex;
        align-items: baseline;
        gap: 14px;
        min-width: 0;
        padding-right: 54px;
      }

      .user-greeting:not([hidden]) {
        display: inline-flex;
        max-width: min(38vw, 340px);
        overflow: hidden;
        color: #c8f279;
        font-size: 0.95rem;
        font-weight: 650;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      #burger.menu {
        top: 18px;
        right: clamp(18px, 5vw, 64px);
        width: 36px;
        height: 36px;
      }

      #burger span {
        background: #c8f279;
      }

      #burger:focus-visible {
        outline-color: #c8f279;
      }

      .side-menu {
        right: -320px;
        width: min(320px, 88vw);
        padding: 78px 18px 24px;
        border-left: 1px solid #ffffff16;
        background: #0b1422;
        box-shadow: -18px 0 45px #0005;
        overflow-y: auto;
      }

      .side-menu li {
        margin: 5px 0;
      }

      .side-menu a {
        padding: 10px 13px;
        border: 1px solid transparent;
        border-radius: 10px;
        color: #cbd5e1;
        font-size: 0.95rem;
      }

      .side-menu a:hover,
      .side-menu a:focus-visible {
        border-color: #c8f27935;
        background: #c8f27910;
        color: #e3ffad;
        text-decoration: none;
      }

      .side-menu a.support-link {
        border-color: #c8f27935;
        background: #c8f2790c;
        color: #c8f279;
        font-weight: 750;
      }

      .side-menu a.support-link:hover,
      .side-menu a.support-link:focus-visible {
        border-color: #c8f27988;
        background: #c8f27918;
        color: #e3ffad;
      }

      #breakingNews {
        height: 44px;
        margin: 14px auto 0;
        width: min(1280px, calc(100% - 32px));
        border: 1px solid #ffffff14;
        border-left: 3px solid #c8f279;
        border-radius: 10px;
        background: #111b2a;
      }

      .news-item {
        color: #d8ff91;
      }

      #breakingNews.locked::before {
        color: #d8ff91;
        font-size: 0.86rem;
      }

      .schedule-section > h2,
      .football-panel h2 {
        color: #f4f7fb;
      }

      .schedule-section {
        overflow-x: auto;
      }

      .matches-table {
        display: table;
        max-width: 100%;
        border: 1px solid #ffffff16;
        border-radius: 14px;
      }

      .matches-table th {
        background: #192638;
        color: #aebcd0;
      }

      .matches-table th,
      .matches-table td {
        border-color: #ffffff0d;
      }

      .poll-link {
        border-color: #c8f27955;
        background: #c8f2790d;
        color: #e3ffad;
      }

      .poll-link:hover {
        background: #c8f2791b;
        text-decoration: none;
      }

      footer.footer {
        border-top: 1px solid #ffffff12;
        background: #08111f88;
        color: #8290a3;
      }

      .favorite-game-notice {
        max-width: 980px;
        margin: 22px auto;
        padding: 16px 20px;
        border: 1px solid #c8f27944;
        border-left: 4px solid #c8f279;
        border-radius: 14px;
        background: #111b2a;
        color: #f1fff5;
        box-shadow: 0 12px 32px #0003;
      }

      .favorite-game-notice[hidden] {
        display: none;
      }

      .favorite-game-notice strong {
        display: block;
        margin-bottom: 5px;
        font-size: 1.05rem;
      }

      .favorite-game-notice p {
        margin: 0;
        color: #d5e9db;
      }

      .favorite-game-notice a {
        display: inline-block;
        margin-top: 8px;
        color: #d8ff91;
        font-weight: 700;
      }

      @media (max-width: 700px) {
        .favorite-game-notice {
          margin: 18px 14px;
        }
      }

      .football-overview {
        width: min(1180px, calc(100% - 32px));
        margin: 30px auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
      }

      .football-panel {
        overflow: hidden;
        border: 1px solid #ffffff1c;
        border-radius: 16px;
        background: #101a29;
        color: #f4f7fb;
        box-shadow: 0 16px 40px #0003;
        text-align: left;
      }

      .football-panel h2 {
        margin: 0;
        padding: 17px 19px;
        border-bottom: 1px solid #ffffff12;
        font-size: 1.05rem;
      }

      .table-links {
        display: grid;
        gap: 9px;
        padding: 0 16px 16px;
      }

      .panel-link {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 10px 12px;
        border: 1px solid #c8f27933;
        border-radius: 10px;
        background: #c8f2790c;
        color: #c8f279;
        font-weight: 700;
        text-decoration: none;
      }

      .panel-link:hover,
      .panel-link:focus-visible {
        border-color: #c8f27988;
        background: #c8f27918;
        text-decoration: none;
      }

      .preview-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 17px 19px;
        border-bottom: 1px solid #ffffff12;
      }

      .preview-heading h2 {
        padding: 0;
        border: 0;
      }

      .preview-heading a {
        color: #d8ff91;
        font-size: 0.8rem;
        font-weight: 750;
        white-space: nowrap;
      }

      .table-preview {
        padding: 8px 14px 14px;
      }

      .preview-row {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 44px 48px;
        gap: 8px;
        align-items: center;
        min-height: 39px;
        border-bottom: 1px solid #ffffff0e;
        font-size: 0.82rem;
      }

      .preview-row:last-child {
        border-bottom: 0;
      }

      .preview-rank {
        color: #9aa9bc;
      }

      .preview-team {
        min-width: 0;
        overflow: hidden;
        font-weight: 650;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .preview-points {
        color: #d8ff91;
        font-weight: 800;
        text-align: right;
      }

      .preview-played {
        color: #9aa9bc;
        text-align: right;
      }

      .preview-labels {
        color: #8796aa;
        font-size: 0.68rem;
      }

      .data-status {
        margin: 0;
        padding: 10px 16px;
        color: #93a3b8;
        font-size: 0.75rem;
      }

      .schedule-section {
        width: min(1180px, calc(100% - 32px));
        margin: 30px auto;
      }

      .schedule-section > h2 {
        text-align: left;
      }

      .matches-table {
        width: 100%;
        border-collapse: collapse;
        overflow: hidden;
        border-radius: 14px;
        background: #101a29;
        color: #f4f7fb;
      }

      .matches-table th,
      .matches-table td {
        padding: 13px 12px;
        border-bottom: 1px solid #ffffff12;
        text-align: center;
      }

      .matches-table th {
        background: #1b2a3d;
        color: #aab7c8;
        font-size: 0.75rem;
        text-transform: uppercase;
      }

      .matches-table .team-name {
        font-weight: 650;
      }

      .matches-table small {
        color: #95a5b9;
      }

      .match-event {
        color: #aab7c8;
        font-size: 0.78rem;
      }

      .matches-table tr.upcoming-row {
        background: #a5d83d12;
        box-shadow: inset 4px 0 #c8f279;
      }

      .match-kickoff {
        display: inline-block;
        margin-top: 4px;
        color: #d8ff91 !important;
        font-weight: 800;
      }

      .algorithm-tip {
        margin-top: 8px;
        padding: 7px 9px;
        border: 1px solid #c8f27933;
        border-radius: 8px;
        color: #d8ff91;
        font-size: 0.78rem;
      }

      .poll-link {
        display: flex;
        width: fit-content;
        margin: 14px auto;
        padding: 10px 15px;
        border: 1px solid #c8f27966;
        border-radius: 9px;
        color: #d8ff91;
        font-weight: 750;
        text-decoration: none;
        text-align: center;
      }

      .error-state {
        padding: 18px;
        color: #ffc1b8;
        text-align: center;
      }

      .ticker-empty {
        padding: 20px;
        color: #aab7c8;
        text-align: center;
      }

      @media (max-width: 820px) {
        .football-overview {
          grid-template-columns: 1fr;
        }
      }

      @media (max-width: 650px) {
        .schedule-section {
          overflow: visible;
        }

        .matches-table {
          display: block;
          min-width: 0;
          width: 100%;
          border: 0;
          overflow: visible;
          background: transparent;
        }

        .matches-table thead {
          display: none;
        }

        .matches-table tbody {
          display: grid;
          gap: 11px;
        }

        .matches-table tbody tr {
          display: grid;
          grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
          overflow: hidden;
          border: 1px solid #ffffff18;
          border-radius: 14px;
          background: #101a29;
          box-shadow: 0 10px 24px #0003;
        }

        .matches-table tbody tr.upcoming-row {
          border-color: #c8f27955;
          background: linear-gradient(110deg, #c8f27910, #101a29 62%);
          box-shadow:
            inset 3px 0 #c8f279,
            0 10px 24px #0003;
        }

        .matches-table tbody td {
          min-width: 0;
          width: 100%;
          padding: 12px 10px;
          border-bottom: 0;
          text-align: left;
          overflow-wrap: anywhere;
          word-break: normal;
        }

        .matches-table tbody td:nth-child(1),
        .matches-table tbody td:nth-child(2) {
          align-self: stretch;
        }

        .matches-table .team-name {
          max-width: 100%;
          white-space: normal;
          overflow-wrap: anywhere;
          word-break: normal;
          line-height: 1.3;
        }

        .matches-table tbody td:nth-child(1)::before,
        .matches-table tbody td:nth-child(2)::before {
          display: block;
          margin-bottom: 5px;
          color: #8391a5;
          font-size: 0.63rem;
          font-weight: 750;
          letter-spacing: 0.08em;
          text-transform: uppercase;
        }

        .matches-table tbody td:nth-child(1)::before {
          content: 'Heim';
        }

        .matches-table tbody td:nth-child(2)::before {
          content: 'Gast';
        }

        .matches-table tbody td:nth-child(3) {
          grid-column: 1 / -1;
          border-top: 1px solid #ffffff12;
          text-align: center;
        }

        .matches-table tbody td:nth-child(3) > strong {
          display: block;
          margin-bottom: 3px;
          color: #f5f8fc;
          font-size: 1.25rem;
        }

        .matches-table tbody td small {
          display: block;
          margin-top: 3px;
          font-size: 0.7rem;
          line-height: 1.35;
        }

        .match-kickoff {
          font-size: 0.76rem;
        }

        .algorithm-tip {
          margin: 8px auto 0;
          max-width: 100%;
          font-size: 0.72rem;
        }

        .match-event {
          margin-top: 4px;
          font-size: 0.72rem;
        }
      }

      .schedule-page-link {
        display: flex;
        width: fit-content;
        margin: 4px auto 14px;
        padding: 9px 12px;
        border: 1px solid #c8f27955;
        border-radius: 9px;
        color: #d8ff91;
        font-size: 0.82rem;
        font-weight: 750;
        text-decoration: none;
      }

      .schedule-page-link:hover {
        background: #c8f27912;
      }

      @media (max-width: 540px) {
        body > header {
          min-height: 64px;
        }

        .brand-greeting {
          gap: 8px;
          padding-right: 48px;
        }

        .logo {
          font-size: 1.2rem;
        }

        .user-greeting:not([hidden]) {
          max-width: calc(100vw - 170px);
          font-size: 0.78rem;
        }

        #burger.menu {
          top: 14px;
          right: 16px;
        }

        #breakingNews {
          width: calc(100% - 24px);
        }
      }

.beta-feedback-quick {
        width: min(1180px, calc(100% - 32px));
        margin: 16px auto 8px;
        padding: 15px 18px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 1px solid #c8f27955;
        border-left: 4px solid #c8f279;
        border-radius: 13px;
        background: linear-gradient(105deg, #c8f27912, #111b2a 58%);
        color: #f4f7fb;
      }

      .beta-feedback-quick strong {
        display: block;
        color: #d8ff91;
        font-size: 0.95rem;
      }

      .beta-feedback-quick span {
        display: block;
        margin-top: 3px;
        color: #aab7c8;
        font-size: 0.84rem;
      }

      .beta-feedback-quick a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid #c8f27966;
        border-radius: 9px;
        background: #c8f27912;
        color: #d8ff91;
        font-size: 0.86rem;
        font-weight: 800;
        text-decoration: none;
      }

      .beta-feedback-quick a:hover {
        background: #c8f27924;
      }

      @media (max-width: 540px) {
        .beta-feedback-quick {
          align-items: flex-start;
        }

        .beta-feedback-quick a {
          width: 100%;
        }
      }
      .site-update-notice {
        position: relative;
        width: min(1180px, calc(100% - 32px));
        margin: 12px auto;
        padding: 13px 46px 13px 16px;
        border: 1px solid #c8f27944;
        border-left: 3px solid #c8f279;
        border-radius: 12px;
        background: #111b2acc;
        color: #d8e3ef;
        animation: update-appear 0.28s ease-out both;
      }
      .site-update-notice[hidden] {
        display: none;
      }
      .site-update-notice strong {
        display: block;
        margin-bottom: 3px;
        color: #d8ff91;
        font-size: 0.92rem;
      }
      .site-update-notice p {
        margin: 0;
        color: #aebcd0;
        font-size: 0.85rem;
        line-height: 1.5;
      }
      .site-update-notice a {
        display: inline-block;
        margin-top: 5px;
        color: #d8ff91;
        font-size: 0.83rem;
        font-weight: 750;
      }
      .site-update-dismiss {
        position: absolute;
        top: 8px;
        right: 9px;
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #aebcd0;
        font-size: 1.15rem;
        cursor: pointer;
      }
      .site-update-dismiss:hover,
      .site-update-dismiss:focus-visible {
        background: #ffffff12;
        color: #fff;
      }
      @keyframes update-appear {
        from {
          opacity: 0;
          transform: translateY(-5px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .site-update-notice {
          animation: none;
        }
      }

.bewertung-quick {
        width: min(1180px, calc(100% - 32px));
        margin: 16px auto 8px;
        padding: 15px 18px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 1px solid #c8f27955;
        border-left: 4px solid #c8f279;
        border-radius: 13px;

        /* Der Karten-Hintergrund */
        background: linear-gradient(
          105deg,
          #c8f27930 0%,
          #182638 58%,
          #111b2a 100%
        );

        color: #f4f7fb;
      }

      .bewertung-quick strong {
        display: block;
        color: #d8ff91;
        font-size: 0.95rem;
      }

      .bewertung-quick span {
        display: block;
        margin-top: 3px;
        color: #aab7c8;
        font-size: 0.84rem;
      }

      .bewertung-quick a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid #c8f27966;
        border-radius: 9px;
        background: #c8f27912;
        color: #d8ff91;
        font-size: 0.86rem;
        font-weight: 800;
        text-decoration: none;
      }

      .bewertung-quick a:hover {
        background: linear-gradient(105deg, #c8f27940, #d8ff91);
      }

      @media (max-width: 540px) {
        .bewertung-quick {
          align-items: flex-start;
        }

        .bewertung-quick a {
          width: 100%;
        }
      }

      .friend-request-pop {
        position: fixed;
        z-index: 1200;
        right: 20px;
        bottom: 20px;
        width: min(420px, calc(100vw - 28px));
        padding: 18px;
        border: 1px solid #c8f27977;
        border-radius: 16px;
        background: #101d2b;
        color: #f4f7fb;
        box-shadow: 0 18px 55px #0009;
      }

      .friend-request-pop[hidden] {
        display: none;
      }

      .friend-request-pop strong {
        display: block;
        margin: 0 28px 5px 0;
        color: #d8ff91;
      }

      .friend-request-pop p {
        margin: 0 0 12px;
        color: #c3cfdd;
        font-size: 0.9rem;
        line-height: 1.45;
      }

      .friend-request-pop a {
        display: inline-flex;
        padding: 9px 12px;
        border-radius: 9px;
        background: #c8f279;
        color: #142019;
        font-weight: 800;
        text-decoration: none;
      }

      .friend-request-close {
        position: absolute;
        top: 9px;
        right: 10px;
        width: 34px;
        height: 34px;
        border: 0;
        background: transparent;
        color: #dce5ee;
        font-size: 1.2rem;
        cursor: pointer;
      }
