@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald/Oswald-SemiBold.ttf') format('truetype');
    font-weight: 600; /* SemiBold */
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald/Oswald-Light.ttf') format('truetype');
    font-weight: 300; /* Light */
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: normal; /* 400 */
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: bold; /* 700 */
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Italic.ttf') format('truetype');
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-weight: normal;
    position: relative;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    z-index: -1;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container.container-wide {
    max-width: 900px;
    text-align: left;
}

.container.container-wide p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.container.container-wide h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.container.container-wide h1 {
    text-align: center;
}

.container.container-wide h3 {
    margin-top: 20px;
    margin-bottom: 12px;
}

.container.container-wide ul {
    margin-left: 15px;
    margin-bottom: 20px;
    padding-left: 0;
}

.container.container-wide li {
    margin-bottom: 5px;
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.container.container-wide li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: -5px;
    color: #1E3A8A;
    font-weight: bold;
    font-size: 1.4em;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(135deg, #22C55E 0%, #1E3A8A 100%);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo a:hover {
    text-decoration: none;
}

.logo-img {
    height: 95px;
    width: auto;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
}

/* Top Navigations-Menü für geschützte Seiten */
.top-nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 100px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-section-logo-menu {
    flex-shrink: 0;
}

.nav-section-info {
    flex: 1;
    justify-content: center;
}

.nav-section-logout {
    flex-shrink: 0;
    margin-left: auto;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 85px;
    width: auto;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1E3A8A;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu-item:hover {
    background-color: #f0f4ff;
    color: #22C55E;
}

.nav-menu-item.nav-menu-stat {
    cursor: default;
    color: #666;
}

.nav-menu-item.nav-menu-stat:hover {
    background-color: transparent;
    color: #666;
}

.nav-menu-item.nav-menu-logout {
    color: #dc3545;
}

.nav-menu-item.nav-menu-logout:hover {
    background-color: #ffeaea;
    color: #c82333;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .top-nav-menu {
        gap: 40px;
    }
    
    .nav-section {
        gap: 10px;
    }
    
    .nav-menu-item {
        font-size: 0.85rem;
        padding: 6px 10px;
        gap: 6px;
    }
    
    .nav-logo-img {
        height: 65px;
    }
    
    .nav-icon {
        width: 18px;
        height: 18px;
    }
    
    .nav-menu-item span {
        display: none;
    }
    
    .nav-menu-item.nav-menu-stat span {
        display: inline;
    }
    
    .nav-menu-item.nav-menu-logout span {
        display: inline;
    }
}

@media (max-width: 480px) {
    .top-nav-menu {
        gap: 30px;
        justify-content: center;
    }
    
    .nav-section {
        gap: 8px;
    }
    
    .nav-logo-img {
        height: 55px;
    }
    
    .nav-section-logout {
        margin-left: 0;
    }
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.status-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.success-icon {
    background-image: url('../icons/check.svg');
}

.error-icon {
    background-image: url('../icons/close.svg');
}

.alert-icon{
    background-image: url('../icons/alert.svg');
}

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

.message {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1rem;
}

.username {
    color: #1E3A8A;
    font-weight: bold;
}

.btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

.form-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.error-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    color: #dc3545;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 10;
    margin-top: 5px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid #dc3545;
    padding: 10px 10px 5px 10px;
}

.tooltip-icon {
    width: 17px;
    height: 17px;
    margin-right: 5px;
}

.error-tooltip.visible {
    display: block;
}

.error-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #dc3545 transparent;
}

.tooltip-text {
    vertical-align: top;
}

form{
    margin: 10px 0;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #1E3A8A;
}

.error-details {
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: left;
}

.success-details {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: left;
}

.notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notice.success {
    border: 2px solid #28a745;
    color: #28a745;
}

.notice.error {
    border: 2px solid #dc3545;
    color: #dc3545;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}

/* Navigations-Footer Komponente */
.navigation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-link {
    text-decoration: none;
    color: #1E3A8A;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.nav-link:hover {
    color: #22C55E;
    text-decoration: underline;
}

.nav-link-back {
    /* Links ausgerichtet */
}

.nav-link-logout {
    /* Rechts ausgerichtet */
}

@media (max-width: 600px) {
    .navigation-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .nav-link-logout {
        align-self: flex-end;
    }
}

.debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 0.8rem;
    text-align: left;
    color: #666;
}

.form-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.validation-criteria {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.validation-criteria li {
    color: #dc3545; /* Red for invalid */
    margin-bottom: 2px;
}

.validation-criteria li.valid {
    color: #28a745; /* Green for valid */
}

.validation-criteria li::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    background-image: url('../icons/close.svg');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-top: -2px !important;
}

.validation-criteria li.valid::before {
    background-image: url('../icons/check.svg');
}

input.invalid {
    border-color: #dc3545;
}

input.valid {
    border-color: #28a745;
}

a {
    text-decoration: none;
    color: #1E3A8A;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #22C55E;
    text-decoration: underline;
}

a:active {
    color: #22C55E;
    text-decoration: underline;
}

a:focus {
    color: #22C55E;
    text-decoration: underline;
}

a:visited {
    text-decoration: none;
}

@media (max-width: 600px) {
    body {
        padding: 20px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .container {
        padding: 25px 20px;
        margin: 0;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 100px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Cookie-Fußzeile */
.cookie-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    pointer-events: none;
}

.cookie-footer > * {
    pointer-events: auto;
}

.cookie-footer-content {
    position: relative;
    background: white;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 300px;
    opacity: 1;
    width: 100%;
    transform: translateY(0);
    /* Beim Öffnen: opacity zuerst (0.1s), dann translateY (0.4s) */
    transition: opacity 0.1s ease 0s, transform 0.4s ease 0.1s, max-height 0.4s ease 0.1s;
}

.cookie-footer-content::before {
    content: '';
    position: absolute;
    visibility: visible;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #1E3A8A 91%, #22C55E 100%);
    z-index: 1;
    transition: opacity 0.1s ease 0s, transform 0.4s ease 0.1s, max-height 0.4s ease 0.1s, visibility 0.4s ease 0.1s;
}

.cookie-footer.collapsed .cookie-footer-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(100%);
    /* Beim Schließen: translateY zuerst (0.4s), dann opacity (0.1s) */
    transition: transform 0.4s ease 0s, opacity 0.1s ease 0.4s, max-height 0.4s ease 0s;
}

.cookie-footer.collapsed .cookie-footer-content::before {
    visibility: hidden;
}

.cookie-footer-toggle {
    position: fixed;
    bottom: -60px;
    right: 20px;
    width: 60px;
    height: 100px;
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 70%);
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-75px);
    /* Gleiche Animation wie Menü: beim Öffnen opacity zuerst, dann translateY */
    transition: opacity 0.1s ease 0s, transform 0.4s ease 0.1s, background 0.3s ease, border-radius 0.4s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    color: white;
    z-index: 998;
    opacity: 1 !important;
    visibility: visible !important;
    vertical-align: top;
    align-items: normal;
}

.cookie-footer.collapsed ~ .cookie-footer-toggle {
    border-radius: 20px 20px 0 0;
    transform: translateY(0);
    /* Gleiche Animation wie Menü: beim Schließen translateY zuerst, dann opacity */
    transition: transform 0.4s ease 0s, opacity 0.1s ease 0.4s, background 0.3s ease, border-radius 0.4s ease;
}

.cookie-footer-toggle:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #16A34A 100%);
}

.cookie-footer-toggle svg {
    transition: transform 0.3s ease, fill 0.3s ease;
    transform-origin: center;
    margin-top: 10px;
}

.cookie-footer-toggle:hover svg {
    transform: scale(1.2);
}

.cookie-footer.collapsed ~ .cookie-footer-toggle svg {
    transform: rotate(180deg);
}

.cookie-footer.collapsed ~ .cookie-footer-toggle:hover svg {
    transform: rotate(180deg) scale(1.2);
}

.cookie-footer.hidden {
    display: none;
}

.cookie-footer.hidden ~ .cookie-footer-toggle {
    display: none !important;
}

.cookie-footer-inner {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-footer-menu {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-menu-item {
    color: #1E3A8A;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
    display: block;
}

.cookie-menu-item:hover {
    color: #22C55E;
    text-decoration: underline;
}

.cookie-menu-item:active {
    color: #22C55E;
}

/* Cookie-Popup */
.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-popup.active {
    display: flex;
}

.cookie-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cookie-popup-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: cookiePopupSlideIn 0.3s ease;
}

@keyframes cookiePopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-popup-content h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 15px;
    font-size: 2rem;
}

.cookie-popup-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cookie-popup-checkboxes {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-checkbox-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    position: relative;
}

.cookie-checkbox-label:hover {
    background-color: rgba(30, 58, 138, 0.05);
}

.cookie-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.cookie-checkbox-custom {
    position: relative;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #1E3A8A;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cookie-checkbox-label input[type="checkbox"]:checked ~ .cookie-checkbox-custom {
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    border-color: #1E3A8A;
}

.cookie-checkbox-label input[type="checkbox"]:checked ~ .cookie-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 40%;
    transform: translateY(-50%) rotate(45deg);
    width: 7px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.cookie-checkbox-label input[type="checkbox"]:disabled ~ .cookie-checkbox-custom {
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    border-color: #1E3A8A;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-checkbox-label input[type="checkbox"]:disabled ~ .cookie-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 40%;
    transform: translateY(-50%) rotate(45deg);
    width: 7px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.cookie-checkbox-label input[type="checkbox"]:disabled ~ .cookie-checkbox-text {
    opacity: 0.8;
}

.cookie-checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.cookie-checkbox-text strong {
    color: #1E3A8A;
    font-size: 1rem;
    font-weight: bold;
}

.cookie-checkbox-text small {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.cookie-popup-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.cookie-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

.cookie-popup-btn:active {
    transform: translateY(0);
}

.cookie-btn-save {
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    color: white;
}

.cookie-btn-all {
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    color: white;
}

.cookie-btn-reject {
    background: #e5e7eb;
    color: #374151;
}

.cookie-btn-reject:hover {
    background: #d1d5db;
}

/* Blur-Effekt für Hintergrund */
body.cookie-popup-open {
    overflow: hidden;
}

body.cookie-popup-open .container {
    filter: blur(4px);
    pointer-events: none;
}

@media (max-width: 600px) {
    .cookie-popup-content {
        padding: 30px 20px;
    }
    
    .cookie-popup-content h2 {
        font-size: 1.5rem;
    }
    
    .cookie-popup-text {
        font-size: 0.9rem;
    }

    .cookie-footer-content::before {
        background: linear-gradient(135deg, #1E3A8A 77%, #22C55E 100%);
    }

}

.cookie-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    padding: 10px 30px;
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 5px;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

.cookie-btn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .cookie-footer-inner {
        padding: 15px 20px;
    }
    
    .cookie-text {
        font-size: 0.85rem;
    }
    
    .cookie-footer-menu {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .cookie-menu-item {
        text-align: center;
        padding: 5px 10px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px 30px;
    }
    
    .cookie-footer-toggle {
        width: 50px;
        height: 70px;
        bottom: -30px;
        right: 15px;
        transform: translateY(-152px);
    }
    
    .cookie-footer.collapsed .cookie-footer-toggle {
        right: 15px;
        transform: translateY(0);
    }
    
    .cookie-footer-toggle:hover {
        height: 40px;
    }
    
    .cookie-footer-content {
        max-height: 400px;
    }
}

/* Tile Grid für Home-Seite */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tile {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #f9f9ff 0%, #eeeeee 100%);
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
    border-color: #1E3A8A;
    text-decoration: none;
    background: linear-gradient(135deg, #eeeeee 0%, #f9fff9 100%);
}

.tile:hover::before {
    transform: scaleX(1);
}

.tile-content {
    position: relative;
    z-index: 1;
}

.tile h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #1E3A8A;
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.tile:hover h3 {
    color: #22C55E;
}

.tile-wide {
    grid-column: 1 / -1;
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #f9f9ff 0%, #eeeeee 100%);
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.tile-wide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tile-wide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
    border-color: #1E3A8A;
    text-decoration: none;
    background: linear-gradient(135deg, #eeeeee 0%, #f9fff9 100%);
}

.tile-wide:hover::before {
    transform: scaleX(1);
}

.tile-wide h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #1E3A8A;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.tile-wide:hover h3 {
    color: #22C55E;
}

.tile-wide .tile-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

@media (max-width: 600px) {
    .tile-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tile {
        padding: 25px 20px;
    }
    
    .tile h3 {
        font-size: 1.25rem;
    }
    
    .tile-wide {
        padding: 30px 20px;
    }
    
    .tile-wide h3 {
        font-size: 1.5rem;
    }
}

/* Zentrierung für Home-Seite */
.home-container .subtitle {
    text-align: center;
}

.home-container .footer {
    text-align: center;
}

.home-container .message {
    text-align: center;
}

/* Shop Styles */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.shop-item {
    background: linear-gradient(135deg, #f9f9ff 0%, #eeeeee 100%);
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shop-item-clickable {
    cursor: pointer;
}

.shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.2);
    border-color: #1E3A8A;
    background: linear-gradient(135deg, #eeeeee 0%, #f9fff9 100%);
}

.shop-item-unaffordable {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed;
    pointer-events: none;
}

.shop-item-unaffordable:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
    background: linear-gradient(135deg, #f9f9ff 0%, #eeeeee 100%);
}

.shop-item-content {
    text-align: center;
}

.shop-item h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #1E3A8A;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.shop-item-type {
    color: #1E3A8A;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.shop-item-description {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
    min-height: 40px;
}

.shop-item-price {
    margin: 20px 0;
}

/* Preis-Anzeige entfernt, da Preis jetzt im Button steht */

.price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #22C55E;
}

.shop-buy-btn {
    width: 100%;
    margin-top: 15px;
    font-size: 1rem;
    padding: 12px 20px;
}

.shop-buy-btn:hover {
    transform: none;
    box-shadow: none;
}

.shop-buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .shop-item {
        padding: 20px;
    }
    
    .money-value {
        font-size: 1.3rem;
    }
}

/* Packs Grid Styles */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pack-group-item {
    background: linear-gradient(135deg, #f9f9ff 0%, #eeeeee 100%);
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.pack-group-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.2);
    border-color: #1E3A8A;
    background: linear-gradient(135deg, #eeeeee 0%, #f9fff9 100%);
}

.pack-item-content {
    text-align: center;
}

.pack-group-item h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #1E3A8A;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.pack-item-type {
    color: #1E3A8A;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.pack-count {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pack-count-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.pack-count-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pack-open-btn {
    width: 100%;
    margin-top: 15px;
    font-size: 1rem;
    padding: 12px 20px;
}

.pack-open-btn:hover {
    transform: none;
    box-shadow: none;
}

.pack-open-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .packs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pack-group-item {
        padding: 20px;
    }
    
    .pack-count-number {
        font-size: 2rem;
    }
}

/* Pack-Öffnen-Popup */
.pack-open-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pack-open-popup.active {
    display: flex;
}

.pack-open-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pack-open-popup-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 1400px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: cookiePopupSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.pack-open-popup-content h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 15px;
    font-size: 2rem;
}

.pack-open-popup-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.pack-open-players {
    margin: 30px 0;
    text-align: left;
}

/* Pack-Öffnen-Popup mit Karten-Grid */
.pack-open-players.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    justify-items: center;
}

/* Zentrierung wenn weniger als 5 Karten */
.pack-open-players.cards-grid.pack-cards-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.pack-open-players.cards-grid.pack-cards-centered .player-card {
    flex: 0 0 auto;
    width: calc((100% - 100px) / 5); /* Gleiche Größe wie bei 5 Karten im Grid */
    max-width: calc((100% - 100px) / 5);
}

@media (max-width: 1400px) {
    .pack-open-players.cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .pack-open-players.cards-grid.pack-cards-centered .player-card {
        width: calc((100% - 75px) / 4); /* Gleiche Größe wie bei 4 Karten im Grid */
        max-width: calc((100% - 75px) / 4);
    }
}

@media (max-width: 1200px) {
    .pack-open-players.cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pack-open-players.cards-grid.pack-cards-centered .player-card {
        width: calc((100% - 50px) / 3); /* Gleiche Größe wie bei 3 Karten im Grid */
        max-width: calc((100% - 50px) / 3);
    }
}

@media (max-width: 900px) {
    .pack-open-players.cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pack-open-players.cards-grid.pack-cards-centered {
        gap: 20px;
    }
    
    .pack-open-players.cards-grid.pack-cards-centered .player-card {
        width: calc((100% - 20px) / 2); /* Gleiche Größe wie bei 2 Karten im Grid */
        max-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .pack-open-players.cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pack-open-players.cards-grid .player-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .pack-open-players.cards-grid.pack-cards-centered {
        grid-template-columns: 1fr;
    }
}

.pack-open-player-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pack-open-player-item:hover {
    background-color: rgba(30, 58, 138, 0.05);
    transform: translateY(-2px);
}

.pack-open-player-name {
    color: #1E3A8A;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.pack-open-player-info {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.pack-open-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.pack-open-popup-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.pack-open-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

.pack-open-popup-btn:active {
    transform: translateY(0);
}

.pack-open-btn-team {
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    color: white;
}

.pack-open-btn-more {
    background: #e5e7eb;
    color: #374151;
}

.pack-open-btn-more:hover {
    background: #d1d5db;
}

/* Blur-Effekt für Hintergrund */
body.pack-open-popup-open {
    overflow: hidden;
}

body.pack-open-popup-open .container {
    filter: blur(4px);
    pointer-events: none;
}

@media (max-width: 600px) {
    .pack-open-popup-content {
        padding: 30px 20px;
    }
    
    .pack-open-popup-content h2 {
        font-size: 1.5rem;
    }
    
    .pack-open-popup-text {
        font-size: 0.9rem;
    }
    
    .pack-open-players {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Profile Styles */
.profile-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.profile-section h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.profile-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.profile-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1E3A8A;
}

.btn-primary {
    background: linear-gradient(135deg, #1E3A8A 0%, #22C55E 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Team Details Header */
.team-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.team-details-header h2 {
    margin: 0;
}

/* Team Crest (Wappen) */
.team-crest-container {
    flex: 0 0 auto;
}

.team-crest {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-crest-shield {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.team-crest-shield svg,
.team-crest-shield img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-crest-icon {
    position: relative;
    width: 40%;
    height: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.team-crest-icon svg,
.team-crest-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-picker-svg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-picker-svg svg {
    width: 100%;
    height: 100%;
}

/* Color Picker Styles */
.color-pickers-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.color-picker-wrapper {
    flex: 1;
    min-width: 280px;
}

.color-picker-container {
    margin-top: 10px;
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 300px;
}

.color-picker-item {
    aspect-ratio: 1;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.color-picker-item:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-picker-item.selected {
    border-color: #1E3A8A;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.3);
}

.color-picker-item.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1E3A8A;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

/* Icon Picker Styles */
.icon-picker-container {
    margin-top: 10px;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    max-width: 600px;
}

.icon-picker-item {
    aspect-ratio: 1;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--team-background-color, #FFFFFF);
    padding: 8px;
}

.icon-picker-item:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: #e5e7eb;
}

.icon-picker-item.selected {
    border-color: #1E3A8A;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.3);
    background: #e0e7ff;
}

.icon-picker-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 600px) {
    .team-details-header {
        flex-direction: column;
        align-items: center;
    }
    
    .team-crest-container {
        align-self: center;
    }
    
    .team-name-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .team-name-input {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .color-pickers-group {
        flex-direction: column;
        gap: 20px;
    }
    
    .color-picker-wrapper {
        min-width: 100%;
    }
    
    .color-picker-grid {
        max-width: 100%;
    }
    
    .icon-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 10px;
    }
}

/* Spielkarten-Styles */
.player-card {
    aspect-ratio: 2.5 / 3.5; /* Standard Spielkarten-Verhältnis */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #ddd;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* Obere Ecke links: Rating und Position */
.card-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-rating {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1;
    color: #1E3A8A;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.team-spirit-bonus {
    font-size: 1.2rem;
    margin-left: 2px;
    color: #22c55e;
    font-weight: 600;
}

.card-position {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Obere Ecke rechts: Team-Logo (oberhalb) und Flagge (darunter) mit Codes */
.card-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.card-team-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.card-team-logo {
    width: 25px;
    height: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.card-team-short {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: #1E3A8A;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.card-flag-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.card-flag {
    width: 25px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-country-code {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: #1E3A8A;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

/* Zentriertes Bild */
.card-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 10px 10px 10px;
    min-height: 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
}

.card-image-icon {
    font-size: 4rem;
    opacity: 0.5;
}

/* Name unten */
.card-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    color: #333;
    padding: 8px 5px;
    margin-top: auto;
    line-height: 1.2;
    word-wrap: break-word;
    text-transform: uppercase;
}

/* Highlight-Farben für verschiedene Positionen */
.card-trainer {
    border-top: 5px solid #FFD700; /* Gelb */
    background: linear-gradient(to bottom, #fff9e6 0%, #ffffff 20%);
}

.card-trainer .card-rating {
    color: #B8860B;
}

.card-goalkeeper {
    border-top: 5px solid #22C55E; /* Grün */
    background: linear-gradient(to bottom, #e6f9f0 0%, #ffffff 20%);
}

.card-goalkeeper .card-rating {
    color: #16a34a;
}

.card-defense {
    border-top: 5px solid #3B82F6; /* Blau */
    background: linear-gradient(to bottom, #e6f0ff 0%, #ffffff 20%);
}

.card-defense .card-rating {
    color: #2563eb;
}

.card-attack {
    border-top: 5px solid #F97316; /* Orange/Rot */
    background: linear-gradient(to bottom, #fff3e6 0%, #ffffff 20%);
}

.card-attack .card-rating {
    color: #ea580c;
}

/* Team- und Länder-Karten */
.card-team {
    border-top: 5px solid #6366F1; /* Indigo */
    background: linear-gradient(to bottom, #eef2ff 0%, #ffffff 20%);
}

.card-country {
    border-top: 5px solid #10B981; /* Grün */
    background: linear-gradient(to bottom, #d1fae5 0%, #ffffff 20%);
}

/* Spielzug-Karten */
.card-move {
    border-top: 5px solid #EC4899; /* Pink */
    background: linear-gradient(to bottom, #fce7f3 0%, #ffffff 20%);
}

.card-move .card-rating {
    color: #DB2777;
}

/* Grid für Karten (4 Spalten) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .player-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Pack-Öffnen Animationen */
.pack-card-animating {
    transition: opacity 0.3s ease;
}

/* Position-Farbe Pulsieren */
.pack-card-color-pulse {
    animation: packColorPulse 0.5s ease;
}

@keyframes packColorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Spezifische Farben für Positionen beim Pulsieren */
.pack-card-color-pulse.card-attack {
    animation: packColorPulseAttack 0.5s ease;
}

.pack-card-color-pulse.card-defense {
    animation: packColorPulseDefense 0.5s ease;
}

.pack-card-color-pulse.card-goalkeeper {
    animation: packColorPulseGoalkeeper 0.5s ease;
}

.pack-card-color-pulse.card-trainer {
    animation: packColorPulseTrainer 0.5s ease;
}

@keyframes packColorPulseAttack {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
    50% {
        box-shadow: 0 0 40px 15px rgba(249, 115, 22, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

@keyframes packColorPulseDefense {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
    50% {
        box-shadow: 0 0 40px 15px rgba(59, 130, 246, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

@keyframes packColorPulseGoalkeeper {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
    50% {
        box-shadow: 0 0 40px 15px rgba(34, 197, 94, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

@keyframes packColorPulseTrainer {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        box-shadow: 0 0 40px 15px rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Rating und Position erscheinen */
.pack-rating-reveal {
    animation: packRatingReveal 0.5s ease;
}

.pack-position-reveal {
    animation: packPositionReveal 0.5s ease;
}

@keyframes packRatingReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes packPositionReveal {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Karte vollständig erscheinen */
.pack-card-reveal .card-top-right,
.pack-card-reveal .card-image-container,
.pack-card-reveal .card-name {
    animation: packCardReveal 1s ease;
}

@keyframes packCardReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Formation Styles */
.team-formation-section {
    margin: 40px 0;
}

.team-formation-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 2rem;
}

.formation-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px 10px;
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.formation-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
}

.formation-row-top {
    justify-content: space-around;
    padding: 0 10%;
}

.formation-row-second {
    justify-content: center;
    gap: 30px;
    padding: 0 15%;
}

.formation-row-third {
    justify-content: center;
}

.formation-row-fourth {
    justify-content: space-around;
    padding: 0;
    gap: 15px;
}

.formation-row-bottom {
    justify-content: center;
    padding: 0;
    margin-top: 20px;
}

/* Team-Stärke-Statistiken: Absolut positioniert, damit der Torwart zentriert bleibt */
.team-strength-stats {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.team-strength-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.team-strength-label {
    color: #666;
    font-weight: 500;
}

.team-strength-value {
    color: #1E3A8A;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
}

.team-strength-bonus {
    color: #22c55e;
}

.team-strength-total {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 2px solid #e5e7eb;
}

.team-strength-total .team-strength-label {
    font-weight: bold;
    color: #1E3A8A;
}

.team-strength-total .team-strength-value {
    font-size: 1.3rem;
    color: #1E3A8A;
}

/* Trainer-Container: Positioniert den Trainer separat außerhalb der Formation-Rows */
.formation-trainer-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

.formation-slot {
    width: 180px;
    height: 252px; /* 180px * 1.4 (2.5/3.5 Verhältnis) */
    border: 2px dashed #94a3b8;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.formation-slot:hover {
    border-color: #475569;
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.formation-slot[data-position="AN"] {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.formation-slot[data-position="AN"]:hover {
    border-color: #ea580c;
    background: rgba(249, 115, 22, 0.2);
}

.formation-slot[data-position="VE"] {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.formation-slot[data-position="VE"]:hover {
    border-color: #2563eb;
    background: rgba(59, 130, 246, 0.2);
}

.formation-slot[data-position="TW"] {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.formation-slot[data-position="TW"]:hover {
    border-color: #16a34a;
    background: rgba(34, 197, 94, 0.2);
}

.formation-slot[data-position="TR"] {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.formation-slot[data-position="TR"]:hover {
    border-color: #e6c200;
    background: rgba(255, 215, 0, 0.2);
}

.formation-slot.filled {
    border-style: solid;
    border-width: 2px;
    padding: 0;
    background: transparent;
}

.formation-slot.filled:hover {
    transform: scale(1.05);
}

.slot-placeholder {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #64748b;
    text-align: center;
}

.formation-slot[data-position="AN"] .slot-placeholder {
    color: #f97316;
}

.formation-slot[data-position="VE"] .slot-placeholder {
    color: #3b82f6;
}

.formation-slot[data-position="TW"] .slot-placeholder {
    color: #22c55e;
}

.formation-slot[data-position="TR"] .slot-placeholder {
    color: #ffd700;
}

.formation-slot.filled .slot-placeholder {
    display: none;
}

.formation-slot .player-card {
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: none;
}

/* Karten-Komponenten in der Aufstellung kleiner machen */
.formation-slot .player-card .card-inner {
    padding: 6px;
}

.formation-slot .player-card .card-top-left {
    top: 6px;
    left: 6px;
    gap: 3px;
}

.formation-slot .player-card .card-rating {
    font-size: 1.3rem;
}

.formation-slot .player-card .card-position {
    font-size: 0.7rem;
}

.formation-slot .player-card .card-top-right {
    top: 6px;
    right: 6px;
    gap: 6px;
}

.formation-slot .player-card .card-team-logo {
    width: 18px;
}

.formation-slot .player-card .card-team-short {
    font-size: 0.6rem;
    padding: 1px 3px;
}

.formation-slot .player-card .card-flag {
    width: 18px;
}

.formation-slot .player-card .card-country-code {
    font-size: 0.6rem;
    padding: 1px 3px;
}

.formation-slot .player-card .card-image-container {
    margin: 40px 8px 8px 8px;
}

.formation-slot .player-card .card-image-icon {
    font-size: 3rem;
}

.formation-slot .player-card .card-name {
    font-size: 0.8rem;
    padding: 6px 4px;
}

.formation-slot-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.formation-slot-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.draggable-player-card {
    cursor: grab;
    transition: opacity 0.2s ease;
}

.draggable-player-card:active {
    cursor: grabbing;
}

.draggable-player-card.dragging {
    opacity: 0.5;
}

/* Spielerauswahl-Popup */
.player-select-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.player-select-popup.active {
    display: flex;
}

.player-select-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.player-select-popup-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: cookiePopupSlideIn 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-select-popup-content h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 15px;
    font-size: 2rem;
}

.player-select-popup-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.player-select-popup-grid-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 -20px;
    padding: 0 20px;
    min-height: 0;
}

/* Scrollbar-Styling für den Grid-Container */
.player-select-popup-grid-container::-webkit-scrollbar {
    width: 8px;
}

.player-select-popup-grid-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.player-select-popup-grid-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.player-select-popup-grid-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.player-select-popup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-items: center;
    margin: 30px 0;
}

@media (max-width: 1200px) {
    .player-select-popup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .player-select-popup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .player-select-popup-grid {
        grid-template-columns: 1fr;
    }
}

.player-select-popup-grid .player-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2.5 / 3.5;
}

.player-select-popup-grid .player-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.player-select-popup-grid .player-card.selected {
    border: 3px solid #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.player-select-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-select-popup-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Blur-Effekt für Hintergrund */
body.player-select-popup-open {
    overflow: hidden;
}

body.player-select-popup-open .container {
    filter: blur(4px);
    pointer-events: none;
}

@media (max-width: 900px) {
    .player-select-popup-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .player-select-popup-content {
        padding: 30px 20px;
    }
    
    .player-select-popup-content h2 {
        font-size: 1.5rem;
    }
    
    .player-select-popup-text {
        font-size: 0.9rem;
    }
    
    .player-select-popup-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
}

.team-inventory-section {
    margin: 60px 0 40px 0;
}

.team-inventory-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 2rem;
}

/* Responsive Design für Formation */
@media (max-width: 900px) {
    .formation-container {
        padding: 15px 5px;
        min-height: 500px;
    }
    
    .formation-slot {
        width: 150px;
        height: 210px; /* 150px * 1.4 (2.5/3.5 Verhältnis) */
    }
    
    .formation-row-top {
        padding: 0 5%;
    }
    
    .formation-row-second {
        padding: 0 10%;
        gap: 20px;
    }
    
    .formation-row-fourth {
        padding: 0;
        gap: 10px;
    }
    
    .formation-row-bottom {
        padding: 0;
    }
    
    .team-strength-stats {
        right: 10px;
        font-size: 0.85rem;
    }
    
    .team-strength-value {
        font-size: 1rem;
    }
    
    .team-strength-total .team-strength-value {
        font-size: 1.2rem;
    }
    
    .formation-trainer-container {
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 600px) {
    .formation-container {
        padding: 10px 5px;
        min-height: 400px;
    }
    
    .formation-slot {
        width: 120px;
        height: 168px; /* 120px * 1.4 (2.5/3.5 Verhältnis) */
    }
    
    .slot-placeholder {
        font-size: 1rem;
    }
    
    .formation-row {
        gap: 10px;
        margin: 10px 0;
    }
    
    .formation-row-top {
        padding: 0 2%;
    }
    
    .formation-row-second {
        padding: 0 5%;
        gap: 15px;
    }
    
    .formation-row-fourth {
        padding: 0;
        gap: 10px;
    }
    
    .formation-row-bottom {
        padding: 0;
    }
    
    .team-strength-stats {
        right: 5px;
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .team-strength-item {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .team-strength-value {
        font-size: 0.9rem;
    }
    
    .team-strength-total .team-strength-value {
        font-size: 1.1rem;
    }
    
    .formation-trainer-container {
        bottom: 10px;
        left: 10px;
    }
}

/* Game-Seite Styles */
.game-step {
    margin: 30px 0;
}

.game-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.game-type-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.game-type-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.game-type-btn h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
}

.game-type-btn p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.power-ups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.power-up-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.power-up-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.power-up-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.power-up-item:hover::before {
    opacity: 1;
}

.power-up-item.selected {
    border-color: #667eea;
    border-width: 3px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.power-up-item.selected::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.power-up-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2rem;
}

.power-up-description {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
}

.power-up-count {
    color: #888;
    font-size: 0.85rem;
    margin: 10px 0;
}

.power-up-selected-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #667eea;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    z-index: 10;
}

.power-up-item.selected .power-up-selected-indicator {
    display: flex;
    animation: powerUpSelect 0.3s ease;
}

@keyframes powerUpSelect {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.power-up-check-icon {
    line-height: 1;
}

.game-step-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.game-info-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.game-info-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.luck-display,
.moves-display,
.opponent-display,
.power-ups-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.luck-item,
.move-item,
.opponent-item,
.power-up-display-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
}

.move-description {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.player-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.player-selection-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

/* Checkboxen verstecken - Karte selbst funktioniert als Checkbox */
.player-selection-checkbox {
    display: none;
}

.player-selection-card.selected {
    border: 3px solid #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

/* Gruppen für Angreifer/Verteidiger */
.player-selection-group {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.player-selection-group h3 {
    margin: 0 0 20px 0;
    color: #1E3A8A;
    font-size: 1.4rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

.player-selection-info {
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.game-success-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.game-success-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3rem;
    border-bottom: 2px solid #22c55e;
    padding-bottom: 10px;
}

.success-card,
.success-players,
.success-luck,
.success-power-ups,
.success-moves,
.success-opponent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.success-player,
.success-power-up,
.success-move {
    padding: 10px;
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 6px;
    color: #333;
}

@media (max-width: 768px) {
    .game-type-selection {
        grid-template-columns: 1fr;
    }
    
    .power-ups-grid {
        grid-template-columns: 1fr;
    }
    
    .player-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .game-step-actions {
        flex-direction: column;
    }
    
    .game-step-actions .btn {
        width: 100%;
    }
}