/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    touch-action: pan-x pan-y; /* Erlaubt Scrollen, verhindert Pinch-Zoom */
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #001a33 0%, #003366 50%, #004d99 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    background: #003366;
    color: #fff;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
}

/* Erlaubt Text-Selektion nur wo nötig */
input, textarea, select {
    touch-action: auto;
    user-select: text;
    -webkit-user-select: text;
}

/* Verhindert versehentliche Zoom-Gesten auf Bildern */
img {
    user-select: none;
    -webkit-user-select: none;
}

/* Links bleiben klickbar */
a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Installationshinweis */
#pwaInstallBanner {
  position: fixed;
  bottom: -100px;  /* Start unterhalb des Bildschirms */
  left: 0;
  width: 100%;
  background-color: #003366;
  color: #fff;
  padding: 1rem 2rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 9999;
  font-family: sans-serif;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  transition: bottom 0.5s ease-in-out; /* Animation beim Hereinschieben */
}

/* Nachricht */
#pwaInstallBanner #pwaInstallMessage {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Close-Button */
#pwaInstallBanner #pwaInstallClose {
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: bold;
  margin-left: 1rem;
  color: #ff4444;
  position: absolute;
  top: 8px;
  right: 12px;
  user-select: none;
}
#pwaInstallBanner #pwaInstallClose:hover {
  color: #fff;
}

/* Banner sichtbar */
#pwaInstallBanner.show {
  bottom: 0; /* wird sichtbar durch Animation */
}


/* Share Button */
.share-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #003366, #0055aa);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.6);
}

.share-button:active {
    transform: scale(0.95);
}

/* Fallback Modal für Desktop */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.share-modal-content h3 {
    margin-top: 0;
    color: #003366;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.share-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.share-option:hover {
    border-color: #003366;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.share-option .icon {
    font-size: 28px;
}

.share-option .label {
    font-size: 12px;
}

.close-modal {
    background: #003366;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
}

.copy-link-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.copy-link-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.copy-link-btn {
    background: #003366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.copy-link-btn:hover {
    background: #0055aa;
}

.copy-success {
    color: green;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* Offline Page Styles */
.offline-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.offline-container.active {
    display: flex;
}

.offline-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.offline-message {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.offline-message h2 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.offline-message p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.retry-button {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #003366, #004d99);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

/* Header */
h1 {
    text-align: center;
    color: white;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Info */
.infos {
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Countdown Box */
#countdown {
    background: linear-gradient(135deg, #dc143c, #ff4444);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

#countdown-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

#matchline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    flex-wrap: wrap; /* wichtig für Umbrechen */
}

#matchline .team,
#matchline .sep {
    white-space: normal; /* zwingt Umbruch */
}

/* Mobile Ansicht */
@media (max-width: 520px) {
    #matchline {
        flex-direction: column; /* automatisch untereinander */
        gap: 4px;
    }
}


#countdown-wm {
    background: linear-gradient(135deg, #dc143c, #ff4444);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

#countdown-text-wm {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

#matchline-wm {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    flex-wrap: wrap; /* wichtig für Umbrechen */
}

#matchline-wm .team,
#matchline-wm .sep {
    white-space: normal; /* zwingt Umbruch */
}

/* Mobile Ansicht */
@media (max-width: 520px) {
    #matchline-wm {
        flex-direction: column; /* automatisch untereinander */
        gap: 4px;
    }
}


#countdown-olympia {
    background: linear-gradient(135deg, #dc143c, #ff4444);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

#countdown-text-olympia {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

#matchline-olympia {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    flex-wrap: wrap; /* wichtig für Umbrechen */
}

#matchline-olympia .team,
#matchline-olympia .sep {
    white-space: normal; /* zwingt Umbruch */
}

/* Mobile Ansicht */
@media (max-width: 520px) {
    #matchline-olympia {
        flex-direction: column; /* automatisch untereinander */
        gap: 4px;
    }
}


/* Push Einstellungen Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.overlay-content {
    background: #fff;
    color: #000;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

#tagsForm button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    background-color: #1e90ff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#tagsForm button[type="submit"]:hover {
    background-color: #0d6efd;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

#tagsForm button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Game Cards */
.game-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    width: 350px;
    flex-direction: column;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.game-card:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.15);
}

.game-card.adler {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
}

/* Score Display */
.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.score-row img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.team-box {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-box img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.team-text-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.team-text {
	color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px;
}

.team-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.team-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-align: center;
    min-height: 20px;
    max-width: 80px;
    word-wrap: break-word;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0 5px;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Winner Score gold markieren */
.winner-left {
    background: gold;
    color: black;
}

.winner-right {
    background: gold;
    color: black;
}

.status {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
}

.status.live {
    color: red;
    font-weight: bold;
}

/* Playoff Container */
.container {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 400px;
}

.column {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 220px;
    gap: 20px;
}

.column.preplayoffs { justify-content: center; }
.column.viertel { justify-content: flex-start; }
.column.halb { justify-content: center; }
.column.finale { justify-content: center; }

.column h2 { margin-bottom: 15px; }

/* Madails Box */
.medals-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Abstand zwischen Medaillen */
    margin: 2rem 0;
	flex-wrap: wrap;
}

.medal {
    text-align: center;
	min-width: 200px; 
}

.medal .team-box img {
    width: 80px;   /* Logo-Größe anpassen */
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
}

.medal h2 {
    margin-bottom: 0.5rem;
}


/* News Cards */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.news-card.wichtig {
    border: 2px solid red;
}

.news-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* passt Bild in Container ohne schneiden */
    display: block;
}

.news-content {
    padding: 15px;
}

.news-content h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #003366;
}

.news-meta, .news-source {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
}

.kategorie-link {
    color: #003366;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.kategorie-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.news-text {
    margin-top: 10px;
    color: #333;
}

.read-more-btn {
    margin-top: 10px;
    padding: 8px 12px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.read-more-btn:hover {
    background: #004d99;
}

/* News Overlay - spezifisch für News */
#newsOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
    overflow-y: auto;
    padding: 60px 20px 40px;
}

#newsOverlay.active {
    display: flex;
}

#newsOverlay .overlay-content {
    background: #fff;
    color: #000;
    max-width: 100%;
    width: 100%;
    padding: 60px 30px 30px;
    border-radius: 15px;
    position: relative;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#newsOverlay .overlay-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    border-radius: 10px;
}

#newsOverlay .overlay-content h2 {
    margin-bottom: 15px;
    color: #003366;
    font-size: 1.8rem;
}

#newsOverlay .overlay-content .date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

#newsOverlay .overlay-content .source {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

#newsOverlay .overlay-content .text {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

/* Close Button für News Overlay */
#newsOverlay .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    line-height: 1;
}

#newsOverlay .close:hover {
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    transform: rotate(90deg);
}

/* Body Scroll Lock */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Paging */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #003366;
    background: rgba(255,255,255,0.9);
    font-weight: 600;
}

.pagination a.active {
    background: #003366;
    color: #fff;
}

.pagination a:hover {
    background: #004d99;
    color: #fff;
}

.news-container { max-width:900px; margin:30px auto; }
.news-card { background: rgba(255,255,255,0.95); border-radius:25px; overflow:hidden; margin-bottom:25px; color:#333; }
.news-card.wichtig { border:2px solid gold; }


.news-image-wrapper { width:100%; max-height:400px; overflow:hidden; margin-bottom:10px; }
.news-image-wrapper img { width:100%; height:auto; display:block; }


.news-content { padding:20px; }
.news-content h2 { color:#003366; margin-bottom:10px; font-size:1.4rem; }
.news-meta { font-size:0.85rem; color:#777; margin-bottom:10px; }
.news-source { font-size:0.8rem; color:#555; margin-bottom:10px; font-style:italic; }
.news-text { line-height:1.7; font-size:1rem; margin-bottom:10px; }
.read-more-btn { padding:8px 18px; border:none; border-radius:25px; background: linear-gradient(135deg,#003366,#004d99); color:#fff; font-weight:600; cursor:pointer; transition:0.3s; }
.read-more-btn:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,51,102,0.3); }


.pagination { display:flex; justify-content:center; gap:8px; margin:30px auto 60px; flex-wrap:wrap; }
.pagination a, .pagination span { padding:8px 15px; background: rgba(255,255,255,0.95); color:#003366; text-decoration:none; border-radius:25px; font-weight:600; }
.pagination a:hover { background:#003366; color:#fff; transform:translateY(-2px); }
.pagination a.active { background: linear-gradient(135deg,#003366,#004d99); color:#fff; pointer-events:none; }

/* Tables */
table {
    width: 95%;
    max-width: 1000px;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0;
    color: black;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 25px;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

#vergleich-tabelle {
    color: black; /* Standardtext schwarz */
}

/* Toggle-Section Boxen */
.toggle-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none !important;
    overflow: hidden;
    margin: 20px auto !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.toggle-header {
    background: linear-gradient(135deg, #003366, #004d99) !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    padding: 15px;
    font-weight: 600;
}

.toggle-header:hover {
    background: linear-gradient(135deg, #004d99, #0066cc) !important;
}

.toggle-content {
    background: transparent;
    display: block;
}

/* Tabellen Grundlayout */
th, td {
    padding: 14px 12px;
    text-align: center;
}

th {
    background: linear-gradient(135deg, #003366, #004d99);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: none;
}

td {
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    background-color: #fff; /* Standardfarbe für alle ungeraden Zeilen */
}

/* Gestreifte Zeilen */
tr:nth-child(even) td {
    background-color: #f9f9f9;
}

/* Hover Effekt für jede Zeile */
tr:hover td {
    background-color: #f0f0f0;
}

/* Letzte Zeile keine untere Border */
tr:last-child td {
    border-bottom: none;
}

/* Legende Tabelle - bleibt unverändert */
.toggle-content td[bgcolor] {
    color: white !important;
    font-weight: normal !important;
    background: transparent !important;
}

.toggle-content td[bgcolor="red"] {
    background-color: #f00 !important;
}

.toggle-content td[bgcolor="#0088ff"] {
    background-color: #0088ff !important;
}

.toggle-content td[bgcolor="#6d6d6d"] {
    background-color: #6d6d6d !important;
}

.olympia-section {
    text-align: center;          /* Überschrift zentrieren */
    margin: 40px 0;              /* Abstand oben/unten */
}

.olympia-section h2 {
    color: black;                /* Überschrift schwarz */
    margin-bottom: 10px;
}

.olympia-section h4 {
    color: black;                /* Überschrift schwarz */
    margin-bottom: 20px;
}

.olympia-section .olympia-box-container {
    display: flex;               /* Boxen nebeneinander */
    justify-content: center;     /* zentriert */
    gap: 20px;                   /* Abstand zwischen den Boxen */
    flex-wrap: wrap;             /* bei kleinen Screens untereinander */
}

.olympia-box {
    flex: 1;                     /* Boxen teilen sich gleichmäßig den Platz */
    min-width: 200px;            /* Mindestbreite */
    max-width: 250px;            /* Maximalbreite */
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s; /* optional für Hover */
}

.olympia-box:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Footer Navigation */
#footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

#footer-toggle {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.95), rgba(0, 68, 136, 0.95));
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#footer-toggle:active {
    background: linear-gradient(135deg, rgba(0, 68, 136, 0.95), rgba(0, 51, 102, 0.95));
    transform: scale(0.98);
}

#footer-toggle .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1rem;
    margin-left: 8px;
}

#footer-toggle.open .arrow {
    transform: rotate(180deg);
}

#footer-link {
    background: rgba(0, 51, 102, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#footer-link a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    margin: 0 10px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

#footer-link a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Scrollbar Styling */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #003366, #0066cc);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #003366;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    
    .column {
        justify-content: flex-start;
    }
    
    #footer-toggle {
        display: block;
    }
    
    #footer-link {
        max-height: 0;
        overflow: hidden;
        padding: 0 15px;
        opacity: 0;
    }
    
    #footer-link.active {
        max-height: 200px;
        padding: 15px;
        opacity: 1;
    }
    
    #footer-link a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 8px 5px;
        min-height: 44px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    #newsOverlay .close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 35px;
    }
    
    #newsOverlay .overlay-content {
        padding: 50px 20px 20px;
    }
}

@media only screen and (max-width: 600px) {
    body {
        -webkit-overflow-scrolling: touch;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        padding: 0 10px;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

.infos {

    left: 50%;               /* Mitte des Bildschirms */
    transform: translateX(-50%); /* horizontal zentrieren */
    font-size: 0.85rem;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #fff;
    text-align: center;
}

    #countdown {
        font-size: 1rem;
        padding: 15px;

    }

    .offline-logo {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .offline-message h2 {
        font-size: 1.5rem;
    }

    .offline-message p {
        font-size: 1rem;
    }

    table {
        width: 100%;
        border-radius: 20px;
        margin: 15px auto;
    }

    table:not(.standings), table:not(.standings) thead, table:not(.standings) tbody {
        display: block;
        width: 100%;
    }

    table:not(.standings) tr {
        display: block;
        margin-bottom: 18px;
        background: white;
        padding: 10px;
        border-radius: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    table:not(.standings) tr:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    table:not(.standings) th {
        display: none;
    }

    table:not(.standings) td {
        display: flex;
        justify-content: space-between;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 10px 5px;
        text-align: left;
        flex-wrap: nowrap;
        overflow-x: auto;
        background: transparent !important;
        -webkit-overflow-scrolling: touch;
    }

    table:not(.standings) td:last-child {
        border-bottom: none;
    }

    table:not(.standings) td:empty {
        display: none;
    }

    table:not(.standings) td::before {
        content: attr(data-label);
        font-weight: 600;
        width: 45%;
        flex-shrink: 0;
        margin-right: 10px;
        color: #003366;
        text-align: left;
        font-size: 0.85rem;
    }

    table:not(.standings) td span {
        flex-grow: 1;
        text-align: right;
        max-width: 55%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.85rem;
    }

    /* Mobile Legende Fix */
    .toggle-content td[bgcolor] {
        background: transparent !important;
        display: table-cell !important;
        border: none !important;
        padding: 8px !important;
    }

    .toggle-content td[bgcolor]::before {
        content: '' !important;
    }

    .toggle-content td[bgcolor="red"] {
        background-color: #f00 !important;
    }

    .toggle-content td[bgcolor="#0088ff"] {
        background-color: #0088ff !important;
    }

    .toggle-content td[bgcolor="#6d6d6d"] {
        background-color: #6d6d6d !important;
    }
}


/* Hintergrund scrollen verhindern */
body.menu-open {
    overflow: hidden;
}

/* Fullscreen Overlay */
/* Overlay Fullscreen */
.menu-overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    backdrop-filter: blur(8px); /* Glass Effekt */
    background: rgba(0,0,0,0.6); /* leicht abgedunkelt */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index:10000;
    opacity:0;
    visibility:hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity:1;
    visibility:visible;
}

/* Grid Layout */
.menu-grid {
    display:flex;
    flex-wrap:wrap;
    gap:1rem;
    justify-content:center;
    align-items:center;
    max-width:600px;
}

/* Cards / Buttons */
.menu-card {
    flex:1 1 120px;
    max-width:180px;
    background:#fff;
    color:#003366;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:1rem;
    border-radius:12px;
    font-size:1.2rem;
    text-align:center;
    box-shadow:0 6px 15px rgba(0,0,0,0.2);
    transform: scale(0.8);
    opacity:0;
    animation: popIn 0.3s forwards;
    animation-delay: var(--delay);
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.menu-card span {
    margin-top:0.3rem;
    font-size:0.9rem;
}

/* Hover / Fokus */
.menu-card:hover,
.menu-card:focus {
    background:#c8102e; /* Adler Rot */
    color:#fff;
    transform: scale(1.05);
}

/* Pop-In Animation */
@keyframes popIn {
    to {
        opacity:1;
        transform: scale(1);
    }
}

/* Mobile */
@media(max-width:480px) {
    .menu-card {
        flex:1 1 100px;
        font-size:1rem;
        padding:0.8rem;
    }
}

/* Burger-Button */
        .burger-menu {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10001;
            width: 50px;
            height: 50px;
            background: #FF4444; /* AUFFÄLLIG ROT ZUM TESTEN */
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0;
        }

         .burger-menu span {
            display: block;
            width: 25px;
            height: 3px;
            background: white;
            border-radius: 2px;
        }

/* Menü-Links */
.menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%; /* volle Breite */
    padding: 100px 20px 40px;
    box-sizing: border-box;
}

.menu-content a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    text-align: center;
}

.menu-content a:nth-child(1) { animation-delay: 0.1s; }
.menu-content a:nth-child(2) { animation-delay: 0.2s; }
.menu-content a:nth-child(3) { animation-delay: 0.3s; }
.menu-content a:nth-child(4) { animation-delay: 0.4s; }
.menu-content a:nth-child(5) { animation-delay: 0.5s; }
.menu-content a:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.menu-content a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(10px);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .burger-menu {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .menu-content a {
        font-size: 1.4rem;
        padding: 12px 30px;
        min-width: 250px;
    }

    .close-menu {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}



/* Willkommenstext Styling */
.welcome-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.welcome-container h1 {
    color: #003366;
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-shadow: none;
}

.welcome-container .app-logo {
    display: block;
    margin: 0 auto 25px;
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.welcome-text {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin: 0;
    padding: 0 20px;
}

.welcome-text strong {
    color: #003366;
    font-weight: 600;
}

.welcome-hint {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 20px;
}

/* Feature Highlights */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #003366, #004d99);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.feature-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.push-list {
    list-style: none;        /* Standard-Bullets entfernen */
    padding: 0;
    margin: 0.5rem 0 0;
}

.push-list li {
    display: flex;           /* Flexbox für Icon + Text */
    align-items: flex-start;
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.push-list li::before {
    content: "⚪️";           /* Bullet Icon */
    margin-right: 0.6rem;    /* Abstand zwischen Icon und Text */
    flex-shrink: 0;          /* Icon nicht zusammenschrumpfen */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .welcome-container {
        margin: 20px 10px;
        padding: 20px;
    }

    .welcome-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .welcome-container .app-logo {
        max-width: 120px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {

    /* äußere Box entfernen */
    .toggle-section {
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }

    /* Header optional schmaler machen */
    .toggle-header {
        border-radius: 0;
        margin: 0 0 10px 0;
    }

    /* Inhalt nicht extra einrahmen */
    .toggle-content {
        padding: 0;
        background: none;
    }
}

/* ==========================================
   ERGEBNISSE SEITE STYLING
   ========================================== */

.ergebnisse-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ergebnisse-container h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.quick-link-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quick-links-container {
    text-align: center;
    margin-bottom: 1em;
}

.quick-links {
    margin-bottom: 0.5em;
}

.team-filter,
.saison-filter {
    text-align: center;
    margin: 10px auto 30px auto; /* oben:10px, unten:30px, zentriert */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 25px;
    display: inline-block; /* wichtig für zentrieren in text-align:center */
}

.team-filter label,
.saison-filter label {
    color: white;
    font-weight: 600;
    margin-right: 10px;
    font-size: 1rem;
}

.team-filter select,
.saison-filter select {
    padding: 8px 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: #003366;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-filter select:hover,
.saison-filter select:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Desktop Tabelle */
.ergebnisse-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.ergebnisse-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.ergebnisse-table thead th {
    background: linear-gradient(135deg, #003366, #004d99);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ergebnisse-table tbody tr {
    transition: background-color 0.2s ease;
}

.ergebnisse-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.ergebnisse-table tbody tr:hover {
    background-color: #f0f0f0;
}

.ergebnisse-table tbody tr.adler-spiel {
    background-color: rgba(200, 16, 46, 0.1) !important;
}

.ergebnisse-table tbody tr.adler-spiel:hover {
    background-color: rgba(200, 16, 46, 0.15) !important;
}

.ergebnisse-table td {
    padding: 12px 10px;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.ergebnisse-table tr:last-child td {
    border-bottom: none;
}

.ergebnisse-table .logo-cell {
    width: 50px;
    padding: 8px;
}

.ergebnisse-table .logo-cell img {
    height: 30px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.ergebnisse-table .team-name {
    text-align: left;
    font-weight: 500;
}

.ergebnisse-table .team-name.gewinner {
    font-weight: 700;
    color: #003366;
}

.ergebnisse-table .ergebnis {
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.ergebnisse-table .ergebnis .gewinner {
    color: #003366;
    font-weight: 700;
}

.ergebnisse-table .ergebnis .zusatz {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Mobile Cards */
.ergebnisse-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ergebnis-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ergebnis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ergebnis-card.adler-spiel {
    border: 2px solid rgba(200, 16, 46, 0.5);
    background: rgba(255, 255, 255, 0.98);
}

.ergebnis-card .card-header {
    background: linear-gradient(135deg, #003366, #004d99);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ergebnis-card .art-badge {
    font-weight: 600;
    font-size: 0.9rem;
}

.ergebnis-card .datum {
    font-size: 0.85rem;
    opacity: 0.9;
}

.ergebnis-card .match-info {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ergebnis-card .team {
    flex: 1;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ergebnis-card .team img {
    height: 40px;
    width: auto;
}

.ergebnis-card .team-name {
    font-size: 0.85rem;
    text-align: center;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.ergebnis-card .team.gewinner .team-name {
    font-weight: 700;
    color: #003366;
}

.ergebnis-card .ergebnis-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.ergebnis-card .ergebnis-display .score.gewinner {
    color: #003366;
    font-weight: 700;
}

.ergebnis-card .ergebnis-display .separator {
    color: #999;
}

.ergebnis-card .ergebnis-display .zusatz {
    font-size: 0.7rem;
    color: #666;
    position: absolute;
    margin-top: 35px;
    white-space: nowrap;
}

/* Responsive */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .ergebnisse-container {
        padding: 15px 10px;
    }
    
    .quick-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-link-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .saison-filter {
        width: 90%;
        padding: 12px 15px;
    }
    
    .saison-filter label {
        display: block;
        margin-bottom: 8px;
    }
    
    .saison-filter select {
        width: 100%;
    }
}