/* 🎨 Liveboard – Stylesheet
   Optimiert für mobile Zuschaueroberfläche
   Autor: Eugen (2025)
*/

:root {
    --primary: #2563eb;
    --bg: #f8fafc;
    --card: #fff;
    --muted: #6b7280;
}

* {
    box-sizing: border-box;
}

/* Grundlayout */
html, body {
    background: var(--bg);
	color: #0f172a;
    font-family: Inter, system-ui, Roboto, Arial, sans-serif;
	height: 100%;
    margin: 0;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
}

/* Kopfbereich */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.title {
    font-size: 1.3rem;
    font-weight: 700;
	line-height: 1.2;
}

.small {
    font-size: 0.85rem;
    color: var(--muted);
}

/* PWA Install */
.pwa-install {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: none;
}

.pwa-card {
	background: #ffffff;
	padding: 16px 18px;
	max-width: 320px;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	text-align: center;
	font-family: sans-serif;
}

.pwa-button {
	background: #007aff;
	border: none;
	padding: 10px 16px;
	color: white;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	width: 100%;
	margin-top: 8px;
}

.pwa-close {
	background: transparent;
	border: none;
	margin-top: 10px;
	color: #666;
	cursor: pointer;
}

.pwa-ios {
	font-size: 15px;
	color: #333;
	padding-top: 10px;
}

/* Kartenlayout */
.card {
    background: var(--card);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
	animation: fadeIn 0.4s ease;
}

/* Scoreboard */
.scoreboard-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-logo {
  width: 60px;
  height: 60px;
  /*border-radius: 50%;*/
  object-fit: cover; 
  /*object-fit: contain; */
  /*background-color: #334155;*/
  margin-bottom: 0.4rem;
  /*box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);*/
}

.team-name {
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}

.score-center {
  text-align: center;
}

.score {
    font-size: 2.4rem;
    font-weight: bold;
	margin-bottom: 0.3rem;
}

.minute {
    font-size: 1rem;
	color: var(--muted);
	margin-top: 0.3rem;
    text-align: center;
}

/* Ticker */
.ticker h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #334155;
  padding-bottom: 0.4rem;
}

#ticker-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ticker-item {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f1f5f9;
    font-size: 0.95rem;
}

.ticker-item:first-child {
  font-weight: 600;
  color: #60a5fa;
}

/* Footer */
.footer {
	text-align: center;
	font-size: 0.8rem;
	opacity: 0.75;
	margin-top: 1.5rem;
}
.footer a { 
	color: #60a5fa; 
	text-decoration: none; 
}

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

/* Buttons */
.btn {
    background: var(--primary);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.btn:hover {
   background-color: #1d4ed8;
}

img {
	max-height: 60px;
	width: auto;
}

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

@keyframes slideDown {
	from { 
		opacity: 0; 
		transform: translateY(-5px); 
	}
	to { 
		opacity: 1; 
		transform: translateY(0); 
	}
}

/* Pulsier-Effekt für geänderte Scores */
@keyframes pulse {
    0% { transform: scale(1); color: #ffcc00; }
    50% { transform: scale(1.3); color: #ffffff; }
    100% { transform: scale(1); color: #ffcc00; }
}

/* Mobile Anpassung */
@media (max-width: 500px) {
  .team-logo {
    width: 48px;
    height: 48px;
  }
  .score-center .score {
    font-size: 2rem;
  }
  .minute {
    font-size: 0.9rem;
  }
}



