html { overflow: hidden; height: 100%; width: 100%; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Segoe UI", Arial, sans-serif; background: linear-gradient(0deg, #0d1733 0%, #223c83 100%); height: 100vh; width: 100vw; display: flex; flex-direction: column; align-items: center; padding: 20px; color: white; position: relative; overflow: hidden; box-sizing: border-box; } .logo { position: fixed; top: 20px; left: 20px; width: auto; height: auto; z-index: 1000; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease; text-decoration: none; display: block; cursor: pointer; padding: 5px; background:rgba(255, 255, 255, 0.6); } .logo:hover { transform: scale(1.1); } .logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; } .leaderboard-btn { position: fixed; top: 20px; right: 90px; background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.3); color: white; padding: 15px; border-radius: 50%; text-decoration: none; font-size: 1.5rem; transition: all 0.3s ease; z-index: 1000; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; } .leaderboard-btn:hover { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5); transform: scale(1.1); } .settings-btn { position: fixed; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.3); color: white; padding: 15px; border-radius: 50%; text-decoration: none; font-size: 1.5rem; transition: all 0.3s ease; z-index: 1000; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; } .settings-btn:hover { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5); transform: scale(1.1); } .heartbeat-indicators { position: fixed; top: 20px; right: 160px; display: flex; gap: 15px; z-index: 1000; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 25px; padding: 10px 20px; border: 1px solid rgba(255, 255, 255, 0.2); } @media (max-width: 768px) { .logo { width: 40px; height: 40px; top: 15px; left: 15px; padding: 3px; } .leaderboard-btn { top: 15px; right: 60px; padding: 10px; font-size: 1.2rem; } .settings-btn { top: 15px; right: 15px; padding: 10px; font-size: 1.2rem; } .heartbeat-indicators { top: 15px; right: 90px; gap: 8px; padding: 8px 12px; font-size: 0.8rem; } .heartbeat-indicator { width: 12px; height: 12px; } .heartbeat-indicator::before { font-size: 8px; top: -20px; } .header h1 { font-size: clamp(1.2rem, 3vw, 1.8rem); } .header p { font-size: clamp(0.7rem, 1.5vw, 0.9rem); } } .heartbeat-indicator { width: 20px; height: 20px; border-radius: 50%; background: #f50f0f; transition: all 0.3s ease; position: relative; } .heartbeat-indicator::before { content: attr(data-label); position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: bold; white-space: nowrap; color: rgba(255, 255, 255, 0.8); } .heartbeat-indicator.active { background: #00ff15; box-shadow: 0 0 10px rgba(73, 186, 228, 0.5); } /* Batterie-Banner Styling */ .battery-banner { position: fixed; top: -100px; left: 0; width: 100%; background: linear-gradient(135deg, #f59d0f 0%, #e67e22 100%); color: white; padding: 15px 20px; text-align: center; z-index: 2000; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); border-bottom: 3px solid rgba(255, 255, 255, 0.2); animation: batteryPulse 2s infinite; transition: top 0.5s ease; display: none; } .battery-banner.show { top: 0; display: block; } .battery-banner .banner-content { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; } .battery-banner .banner-icon { font-size: 2rem; animation: batteryBlink 1.5s infinite; } .battery-banner .banner-text { font-size: 1.1rem; font-weight: bold; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); } .battery-banner .banner-devices { font-size: 0.9rem; opacity: 0.9; margin-top: 5px; } .battery-banner .close-btn { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.3); color: white; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .battery-banner .close-btn:hover { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-50%) scale(1.1); } @keyframes batteryPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } } @keyframes batteryBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.5; } } /* Anpassung für mobile Geräte */ @media (max-width: 768px) { .battery-banner { padding: 12px 15px; } .battery-banner .banner-content { gap: 10px; } .battery-banner .banner-icon { font-size: 1.5rem; } .battery-banner .banner-text { font-size: 1rem; } .battery-banner .close-btn { width: 30px; height: 30px; font-size: 1rem; right: 15px; } } /* Hauptcontent nach unten verschieben wenn Banner sichtbar */ .content-shifted { margin-top: 80px; transition: margin-top 0.5s ease; } @media (max-width: 768px) { .content-shifted { margin-top: 70px; } } .header { text-align: center; margin-bottom: 2vh; flex-shrink: 0; } .header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5vh; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); font-weight: bold; text-transform: uppercase; font-family: "Segoe UI", Arial, sans-serif; } .header p { font-size: clamp(0.8rem, 1.8vw, 1rem); } .timer-container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(15px, 2vw, 30px); width: 100%; max-width: 100%; flex-grow: 1; padding: 0 2vw; max-height: 60vh; } @media (max-width: 768px) { .timer-container { grid-template-columns: 1fr; gap: clamp(15px, 3vw, 30px); padding: 0 15px; } } .lane { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: clamp(15px, 2.5vh, 25px); text-align: center; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; height: 100%; overflow: hidden; } .lane h2 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); margin-bottom: clamp(10px, 1vh, 15px); color: #fff; font-weight: bold; text-transform: uppercase; font-family: "Segoe UI", Arial, sans-serif; } .swimmer-name { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: bold; margin-bottom: clamp(15px, 2vh, 25px); padding: clamp(8px, 1.5vh, 12px) clamp(12px, 2vw, 18px); background: rgba(255, 255, 255, 0.2); border-radius: 15px; border: 2px solid rgba(255, 255, 255, 0.3); color: #fff; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); animation: fadeIn 0.5s ease-in; text-align: center; word-wrap: break-word; line-height: 1.2; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .time-display { font-size: clamp(3rem, 13vw, 13rem); font-weight: bold; margin: clamp(10px, 1vh, 15px) 0; font-family: "Courier New", monospace; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); line-height: 1; } .status { font-size: clamp(1.5rem, 4vw, 5rem); margin: clamp(8px, 1vh, 12px) 0; padding: clamp(6px, 1vh, 10px) clamp(12px, 2vw, 18px); border-radius: 20px; display: inline-block; font-weight: 600; } .status.finished { background-color: rgba(73, 186, 228, 0.3); border: 2px solid #49bae4; } .status.ready { background-color: rgb(0 165 3 / 54%); border: 2px solid #06ff00; animation: pulse 1s infinite; } .status.armed { background-color: rgba(245, 157, 15, 0.3); border: 2px solid #f59d0f; animation: pulse 1s infinite; } .status.running { background-color: rgb(255 91 0 / 65%); border: 2px solid #f59d0f; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } } .status.standby { background-color: rgba(220, 242, 250, 0.3); border: 2px solid #DCF2FA; animation: standbyBlink 2s infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } } @keyframes standbyBlink { 0%, 70% { opacity: 1; } 85%, 100% { opacity: 0.6; } } .best-times { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); border-radius: 15px; padding: clamp(10px, 1.5vh, 15px); margin: 1vh 0 0 0; width: clamp(320px, 80vw, 960px); max-width: 960px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.2); flex-shrink: 0; align-self: center; display: flex; flex-direction: column; align-items: stretch; gap: clamp(12px, 2vh, 20px); box-sizing: border-box; } #leaderboard-container { text-align: left; display: grid; grid-template-columns: 1fr; gap: clamp(12px, 2vh, 20px); width: 100%; } @media (min-width: 768px) { #leaderboard-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } } .best-times h3 { font-size: clamp(0.9rem, 1.8vw, 1.1rem); margin: 0 auto; font-weight: bold; text-transform: uppercase; font-family: "Segoe UI", Arial, sans-serif; text-align: center; } .best-time-row { display: flex; justify-content: space-between; margin: clamp(3px, 0.5vh, 5px) 0; font-size: clamp(0.8rem, 1.5vw, 1rem); font-weight: 500; background: rgba(255, 255, 255, 0.1); padding: clamp(5px, 1vh, 8px) clamp(8px, 1.5vw, 12px); border-radius: 8px; } /* Leaderboard Styles */ #leaderboard-container { text-align: left; } .leaderboard-entry { display: flex; justify-content: space-between; align-items: center; margin: clamp(8px, 1vh, 12px) 0; font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; background: rgba(255, 255, 255, 0.15); padding: clamp(12px, 2vh, 16px) clamp(16px, 3vw, 24px); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.3); transition: all 0.3s ease; min-height: 50px; width: 100%; box-sizing: border-box; } .leaderboard-entry:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); } .leaderboard-entry .rank { color: #ffd700; font-weight: bold; min-width: 30px; font-size: clamp(1.2rem, 2.4vw, 1.5rem); } .leaderboard-entry .name { flex: 1; margin: 0 15px; color: #ffffff; font-weight: 600; } .leaderboard-entry .time { color: #00ff88; font-weight: bold; font-family: 'Courier New', monospace; min-width: 80px; text-align: right; } .leaderboard-entry.gold { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); border-color: #ffd700; color: #b8860b; font-weight: bold; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); } .leaderboard-entry.gold .rank { color: #7a4d00; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6); } .leaderboard-entry.gold .time { color: #0f5132; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); } .leaderboard-entry.silver { background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%); border-color: #c0c0c0; color: #696969; font-weight: bold; box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3); } .leaderboard-entry.silver .rank { color: #4b5563; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6); } .leaderboard-entry.silver .time { color: #0f5132; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); } .leaderboard-entry.bronze { background: linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%); border-color: #cd7f32; color: #8b4513; font-weight: bold; box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3); } .leaderboard-entry.bronze .rank { color: #7a3410; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6); } .leaderboard-entry.bronze .time { color: #0f5132; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); } .no-times { text-align: center; color: rgba(255, 255, 255, 0.7); font-style: italic; font-size: clamp(0.9rem, 1.8vw, 1.1rem); padding: 20px; } .learning-mode { background: rgba(245, 157, 15, 0.2); border: 2px solid #f59d0f; border-radius: 15px; padding: clamp(15px, 2vh, 20px); margin: 2vh 0; text-align: center; animation: pulse 2s infinite; width: 100%; position: absolute; top: 15vh; left: 50%; transform: translateX(-50%); z-index: 100; } .learning-mode h3 { color: #f59d0f; margin-bottom: 10px; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: bold; text-transform: uppercase; font-family: "Segoe UI", Arial, sans-serif; } .learning-mode p { font-size: clamp(0.9rem, 1.8vw, 1.1rem); }