:root {
    --sport30-external-bg: #d32f2f; 
    --sport30-field-green: #2e7d32; 
}

/* KORREKTUR: Erzwingt das Weiß für den oberen Link */
.text-link {
    color: #ffffff !important; /* !important erzwingt die Farbe */
    font-weight: bold;
    text-decoration: underline;
}
.text-link:hover {
    color: #e0e0e0 !important;
}
/* KORREKTUR: Erzwingt das Dunkelgrau für den unteren Link */
.text-link-dark {
    color: #37474f !important; /* !important erzwingt die Farbe */
    font-weight: bold;
    text-decoration: underline;
}
.text-link-dark:hover {
    color: #263238 !important;
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: sans-serif;
}

.sport30-design-container {
    width: 100vw;
    height: 100vh;
    background-color: var(--sport30-external-bg); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
    padding: 10px;
}

.external-heading {
    color: #e0e0e0; 
    font-size: 22px;
    margin: 0;
    text-align: center;
}

/* KORREKTUR: Text ist jetzt linksbündig (text-align: left) */
.external-paragraph {
    color: #ffffff; 
    font-size: 13px;
    text-align: left; /* Linksbündig */
    margin: 0 auto 5px auto;
    max-width: 400px;
    width: 100%;
    line-height: 1.4;
}

/* KORREKTUR: Der Link hat jetzt die normale weiße Farbe wie der restliche Satz */
.text-link {
    color: #ffffff; /* Gleiche Farbe wie der Satz */
    font-weight: bold;
    text-decoration: underline;
}
.text-link:hover {
    color: #e0e0e0;
}

.below-box-text {
    color: #ffffff; 
    font-size: 12px;
    font-style: italic;
    text-align: center;
    margin-top: -5px;
}

.below-controls-text {
    color: #37474f; 
    font-size: 12px;
    font-style: italic;
    text-align: center;
    margin-top: 5px;
    max-width: 400px;
    width: 100%;
}

/* KORREKTUR: Der Link hat jetzt die normale dunkelgraue Farbe wie der restliche Satz */
.text-link-dark {
    color: #37474f; /* Gleiche Farbe wie der Satz */
    font-weight: bold;
    text-decoration: underline;
}
.text-link-dark:hover {
    color: #263238;
}

.info-box-sport30 {
    width: 100%;
    background-color: var(--sport30-field-green); 
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    color: white;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    z-index: 1; 
    position: relative; 
}

.info-box-sport30 h1 {
    margin-top: 0;
    font-size: 20px;
}

.info-box-sport30 p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 25px; 
}

.field-label-link {
    position: absolute;
    bottom: 8px;
    right: 15px;
    text-decoration: none;
    z-index: 2; 
}

.field-label-link::after {
    content: "Designed by i-Cosmos.net 2026"; 
    color: rgba(255, 255, 255, 0.6); 
    font-size: 8px;
    font-weight: 300; 
    letter-spacing: 0.5px;
    text-align: right;
    display: block;
}

.field-label-link:hover::after {
    color: rgba(255, 255, 255, 1); 
}

.link-button {
    display: inline-block;
    background-color: white;
    color: var(--sport30-field-green);
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
}

.controls {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    z-index: 10; 
}

.explanation-text {
    color: #757575;
    font-size: 11px;
    margin: 0;
}

.reset-btn {
    background-color: #ff3d00 !important;
    color: white !important;
    padding: 4px 10px !important;
    font-size: 9px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.reset-btn:hover {
    background-color: #dd2c00 !important;
}

.controls-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.controls button:not(.reset-btn) {
    padding: 5px 8px;
    border: none;
    background-color: var(--sport30-field-green);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    font-size: 10px;
}

.controls button:not(.reset-btn):hover {
    background-color: #1b5e20;
}

.stats-display {
    font-size: 11px;
    color: #424242;
    font-weight: bold;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
    padding-top: 5px;
    width: 100%;
    justify-content: center;
}

.floating-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px; 
    height: 60px;
    opacity: 0; 
    z-index: 5; 
    pointer-events: none; 
}

@keyframes dynamicFly {
    0% { transform: translate(var(--startX), var(--startY)); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(var(--endX), var(--endY)); opacity: 0; }
}

.animate {
    animation-name: dynamicFly;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}