:root {
    --tipp-kick-green: #2E7D32;
    --tipp-kick-light-green: #4CAF50;
    --tipp-kick-dark-green: #1B5E20;
}

body {
    background-color: #eee;
}

.bg-tipp-kick {
    background-color: var(--tipp-kick-green) !important;
}

.text-tipp-kick {
    color: var(--tipp-kick-green) !important;
}

.btn-tipp-kick {
    background-color: var(--tipp-kick-green);
    border-color: var(--tipp-kick-green);
    color: white;
}

.btn-tipp-kick:hover {
    background-color: var(--tipp-kick-dark-green);
    border-color: var(--tipp-kick-dark-green);
    color: white;
}

.btn-outline-tipp-kick {
    color: var(--tipp-kick-green);
    border-color: var(--tipp-kick-green);
    background-color: transparent;
}

.btn-outline-tipp-kick:hover {
    color: white;
    background-color: var(--tipp-kick-green);
    border-color: var(--tipp-kick-green);
}

/* Icon-Alignment-Fixes */
.material-symbols-outlined {
    vertical-align: middle;
    line-height: 1;
}

.btn .material-symbols-outlined {
    vertical-align: middle;
    margin-top: -2px;
}

.navbar-brand .material-symbols-outlined {
    vertical-align: middle;
    margin-top: -1px;
}

.nav-link .material-symbols-outlined {
    vertical-align: middle;
    margin-top: -1px;
}

/* Card-Title Icon Alignment */
.card-title .material-symbols-outlined {
    vertical-align: text-bottom;
    margin-bottom: 2px;
}

.card-game {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-game:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Spezielle Styling für Spiel-Karten */
.card-game-spiel {
    background-color: var(--tipp-kick-green);
    color: white;
    border: 2px solid var(--tipp-kick-green);
    transition: all 0.3s ease;
}

.card-game-spiel:hover {
    background-color: white;
    color: var(--tipp-kick-green);
    border-color: var(--tipp-kick-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-game-spiel .card-title,
.card-game-spiel .card-text {
    color: inherit;
}

/* Elfmeterschießen Styles */
.current-shooter {
    animation: pulse 2s infinite;
}

.current-shooter .card {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    border: 3px solid #007bff !important;
}

.team1-active .card {
    border-color: #007bff !important;
}

.team2-active .card {
    border-color: #007bff !important;
}

.team2-active .card .text-primary {
    color: #007bff !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.game-timer {
    font-size: 3rem;
    font-weight: bold;
    color: var(--tipp-kick-green);
}

.team-display {
    border: 2px solid var(--tipp-kick-green);
    border-radius: 10px;
    padding: 1rem;
}

.ball-color-black {
    background-color: #000;
    color: white;
}

.ball-color-white {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
}

@media (orientation: landscape) {
    .landscape-only {
        display: block !important;
    }

    .portrait-only {
        display: block !important;
    }
}

@media (orientation: portrait) {
    .landscape-only {
        display: none !important;
    }

    .portrait-only {
        display: block !important;
    }
}

/* Fußballfeld für Training */
.football-field-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.football-field {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    background:
        linear-gradient(90deg, #4CAF50 50%, #2E7D32 50%),
        linear-gradient(0deg, #4CAF50 50%, #2E7D32 50%);
    background-size: 40px 40px;
    border: 3px solid #2E7D32;
    border-radius: 10px;
    overflow: hidden;
}

/* Mittellinie */
.center-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
}

/* Mittlerer Kreis */
.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.center-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Tor */
.goal {
    position: absolute;
    width: 40px;
    height: 30px;
    background: #fff;
    border: 3px solid #000;
    border-radius: 5px;
}

.goal-top {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.goal-bottom {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

/* Strafraum */
.penalty-area {
    position: absolute;
    width: 120px;
    height: 60px;
    border: 3px solid #fff;
    background: transparent;
}

.penalty-area-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.penalty-area-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Torraum */
.goal-area {
    position: absolute;
    width: 60px;
    height: 30px;
    border: 3px solid #fff;
    background: transparent;
}

.goal-area-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.goal-area-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Ecken-Markierungen */
.corner-flag {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.corner-flag.top-left {
    top: 5px;
    left: 5px;
}

.corner-flag.top-right {
    top: 5px;
    right: 5px;
}

.corner-flag.bottom-left {
    bottom: 5px;
    left: 5px;
}

.corner-flag.bottom-right {
    bottom: 5px;
    right: 5px;
}

/* Spieler-Position */
.player-position {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #007bff;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.player-position:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.player-position .material-symbols-outlined {
    color: white;
    font-size: 24px;
}

/* Ball */
.ball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 5;
}

.ball-moving {
    animation: ballMove 1s ease-in-out;
}

@keyframes ballMove {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Anpassungen */
@media (max-width: 576px) {
    .football-field {
        height: 250px;
        max-width: 350px;
    }

    .center-circle {
        width: 60px;
        height: 60px;
    }

    .penalty-area {
        width: 100px;
        height: 50px;
    }

    .goal-area {
        width: 50px;
        height: 25px;
    }

    .player-position {
        width: 35px;
        height: 35px;
    }

    .player-position .material-symbols-outlined {
        font-size: 20px;
    }

    .ball {
        width: 18px;
        height: 18px;
    }

    .goal {
        width: 35px;
        height: 25px;
    }
}

/* Mannschafts-Karten im Modal */
.mannschaft-card {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.mannschaft-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--tipp-kick-green);
    transform: translateY(-2px);
}

/* Einheitliche Flaggen- und Logo-Darstellung */
.flagge-logo {
    object-fit: contain;
    object-position: center;
    background-color: transparent;
}

.flagge-logo-modal {
    height: 30px;
    width: auto;
    max-width: 40px;
}

.flagge-logo-spiel {
    height: 50px;
    width: auto;
    max-width: 60px;
}

.flagge-logo-spiel-gross {
    height: 60px;
    width: auto;
    max-width: 70px;
}

.flagge-logo-spiel-klein {
    height: 40px;
    width: auto;
    max-width: 50px;
}

.flagge-logo-statistik {
    height: 20px;
    width: auto;
    max-width: 25px;
}

/* Responsive Anpassungen für Flaggen/Logos */
@media (max-width: 576px) {
    .flagge-logo-modal {
        height: 25px;
        max-width: 35px;
    }

    .flagge-logo-spiel {
        height: 40px;
        max-width: 50px;
    }

    .flagge-logo-spiel-gross {
        height: 50px;
        max-width: 60px;
    }

    .flagge-logo-spiel-klein {
        height: 35px;
        max-width: 45px;
    }

    .flagge-logo-statistik {
        height: 18px;
        max-width: 22px;
    }
}

/* README-Komponente Styles */
.readme-content {
    line-height: 1.6;
}

.readme-content h1,
.readme-content h2,
.readme-content h3 {
    color: var(--tipp-kick-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.readme-content h1:first-child,
.readme-content h2:first-child,
.readme-content h3:first-child {
    margin-top: 0;
}

.readme-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.readme-content ul {
    margin-bottom: 1rem;
}

.readme-content li {
    margin-bottom: 0.5rem;
}

.readme-content a {
    color: var(--tipp-kick-green);
    text-decoration: none;
}

.readme-content a:hover {
    text-decoration: underline;
}

.readme-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.readme-content pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.readme-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.readme-content strong {
    font-weight: 600;
}

.readme-content em {
    font-style: italic;
}