/* Hukainsel Game Styles - Bereinigte Version */
.hukainsel-registration,
.hukainsel-game {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.hukainsel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #FFF8DC;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #D2B48C;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info .avatar {
    font-size: 40px;
    margin-right: 15px;
    border: 3px solid #8B4513;
    border-radius: 50%;
    padding: 5px;
    background: #2a2828;
}

.user-info .details {
    display: flex;
    flex-direction: column;
}

.user-info .animal {
    font-weight: bold;
    color: #8B4513;
    font-size: 18px;
    font-family: 'Georgia', serif;
}

/* User Experience Styles */
.user-experience {
    font-size: 14px;
    color: #4a5568;
    margin-top: 4px;
    font-weight: 500;
    line-height: 1.4;
}

.user-experience::before {
    content: "📊 ";
    color: #4299e1;
}

.experience {
    font-size: 14px;
    color: #029c59;
    margin-top: 4px;
    font-weight: 500;
}

.clan-experience {
    font-size: 16px;
    color: #029c59;
    margin-top: 4px;
    font-weight: 600;
}

/* Scent Marks */
.scent-marks {
    display: flex;
    align-items: center;
    background: #FFD700;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    border: 2px solid #DAA520;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.scent-marks .icon {
    margin-right: 8px;
    font-size: 20px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

/* Conquerable Territories - EINHEITLICHE DEFINITION */
.conquerable-territories-info {
    margin: 20px 0 30px 0;
    text-align: center;
}

.conquerable-territories-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #8B4513 0%, #DAA520 100%);
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
    border: 2px solid #8B4513;
    font-weight: bold;
    font-size: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.conquerable-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* NEUER CONTAINER FÜR PUNKTE-TABELLE UND KARTE NEBENEINANDER */
.points-and-map-container {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    align-items: flex-start;
}

/* Clan Points Table */
.clan-points-table {
    flex: 0 0 auto;          /* verhindert extremes Mitwachsen */
    min-width: 420px;
    max-width: 420px;        /* macht die Tabelle schmaler */
    min-height: 650px; /* feste Mindesthöhe */
    text-align: center;
    padding: 6px 8px;        /* weniger Innenabstand → weniger Höhe */
    background: linear-gradient(135deg, #f8f9fa 0%, #30587f 100%);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    margin-bottom: 15px;
}

.clan-points-table h3 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.points-table-container {
    padding: 15px;
/*  background: #fff8dc; */
    border-radius: 18px;
/*  border: 2px solid #d2b48c; */
    box-shadow: inset 0 0 10px rgba(139, 69, 19, 0.1);
}

.points-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2px;
    border-collapse: separate;
    border-spacing: 0 3px;
    border: 3px solid #8B4513;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.25);
}

.points-table thead {
    background: linear-gradient(to right, #8B4513, #A0522D);
}

.points-table th {
    color: white;
    padding: 6px 10px;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #654321;
}

.points-table tbody tr {
    background: white;
}

.points-table td {
    padding: 10px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.points-table td:hover {
    background-color: #f8f9fa;
}

/* Clan-spezifische Farben */
.cat-clan {
    background: linear-gradient(to right, #DA70D6, #8B008B);
    color: white;
    border-right: 2px solid #8B4513;
}

.dog-clan {
    background: linear-gradient(to right, #FFD700, #FFA500);
    color: #8B4513;
}
.husky-clan {
    background: linear-gradient(to right, #4B0082 0%, #8A2BE2 100%) !important;
    color: gold !important;
    border-right: 2px solid #4B0082 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
}


/* Letzte Zeile ohne unteren Rand */
.points-table tbody tr:last-child td {
    border-bottom: none;
}

/* Benutzer-Hukapoints */
.user-hukapoints {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    margin-top: 2px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: inline-block;
    text-align: center;
}

.user-hukapoints strong {
    display: block;
}

/* Insel-Besitzer Banner */
.island-owner-info {
    margin: 15px 0;
    text-align: center;
}

.island-owner-banner {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(75, 0, 130, 0.4);
    border: 2px solid gold;
    margin-bottom: 10px;
}

.island-owner-text {
    background: linear-gradient(135deg, #27ae60, #2ecc71); /* farbiger Hintergrund */
    color: gold;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 20px; /* Abstand nach unten */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.4); /* neuer Rahmen */
}

/* Territory Map */
.territory-map {
    flex: 1;
    min-width: 300px;
}

.territory-map h3 {
    color: #fb8530;
    margin-bottom: 15px;
    font-size: 25px;
    text-align: center;
}

.map-container {
    margin: 0 auto;
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 695px;
}

/* Stats and Shop */
.stats-shop {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stats, .shop {
    flex: 1;
    background: #2a2828;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #E0E0E0;
}

.stats h3, .shop h3 {
    margin-top: 0;
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B4513;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.marks {
    color: #FFD700;
    font-weight: bold;
}

/* Tasks */
.tasks {
    background: #2a2828;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #E0E0E0;
}

.tasks h3 {
    margin-top: 0;
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B4513;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.task-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fafafa;
}

.task-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #8B4513;
}

.task-item.completed {
    background: #E8F5E9;
    border-color: #4CAF50;
    opacity: 0.9;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.completed-badge {
    background: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.task-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-points {
    font-weight: bold;
    color: #a0903e;
    font-size: 16px;
}

.complete-button {
    background: #8B4513;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
}

.complete-button:hover {
    background: #A0522D;
    transform: translateY(-2px);
}

/* Buttons */
.buy-button {
    background: #8B4513;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
    min-width: 60px;
}

.buy-button:hover {
    background: #A0522D;
    transform: translateY(-2px);
}

.buy-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.reset-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.reset-button:hover {
    background: #FF5252;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hukainsel-registration,
.hukainsel-game {
    animation: fadeIn 0.5s ease-out;
}

.task-item,
.shop-item {
    animation: slideIn 0.3s ease-out;
    animation-fill-mode: both;
}


.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #8B4513;
}

.item-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-icon {
    font-size: 1.25rem;
}

.item-name {
    font-weight: bold;
    color: #2c3e50;
}

.item-desc {
    font-size: 0.875rem;
    color: #7f8c8d;
}

.item-action {
    margin-left: 1rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    .stats-shop {
        flex-direction: column;
    }
    
    .task-grid {
        grid-template-columns: 1fr;
    }
    
    .hukainsel-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info .avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* NEU: Responsive für Punkte-Tabelle und Karte */
    .points-and-map-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .map-container {
        transform: scale(0.9);
        transform-origin: top center;
    }
    
    /* Conquerable Territories Responsive */
    .conquerable-territories-banner {
        flex-direction: column;
        gap: 8px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .conquerable-icon {
        font-size: 18px;
        margin-right: 0;
    }
    
    /* User Experience Responsive */
    .user-experience,
    .experience,
    .clan-experience {
        font-size: 12px;
        margin-top: 2px;
    }
    
    .territory-map {
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .points-table {
        font-size: 14px;
    }
    
    .points-table th,
    .points-table td {
        padding: 12px 15px;
    }
    
    .clan-points-table h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .user-hukapoints {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .conquerable-territories-banner {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Game Title - Ganz oben */
.game-title {
    text-align: center;
    color: #8B4513;
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0 20px 0;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3);
    background: #444342;
    padding: 15px;
    border-radius: 15px;
    border: 3px solid #D2B48C;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Erweiterter Header mit separaten Spalten */
.hukainsel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #FFF8DC;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #D2B48C;
}

/* Neue Header-Spalten */
.header-hukapoints,
.header-conquerable {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: bold;
    min-width: 150px;
    text-align: center;
}

.header-hukapoints {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #DAA520;
}

.header-conquerable {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: 2px solid #8B4513;
}

.header-hukapoints .icon,
.header-conquerable .icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .hukainsel-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-hukapoints,
    .header-conquerable {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hukainsel-registration,
    .hukainsel-game {
        padding: 10px;
    }
    
    .hukainsel-header {
        padding: 10px;
    }
    
    .user-info .avatar {
        font-size: 32px;
    }
    
    .user-info .animal {
        font-size: 16px;
    }
    
    .scent-marks {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .scent-marks .icon {
        font-size: 16px;
    }
    
    .task-item {
        padding: 12px;
    }
}
/* Kurze Anleitung im Clan-Points-Table */
.kurze-anleitung {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #847f25;
    font-size: 14px;
    line-height: 1.5;
}

.kurze-anleitung h4 {
    margin: 0 0 10px 0;
    color: #8B4513 !important;
    font-size: 16px;
    font-weight: bold;
}

.kurze-anleitung p {
    margin: 8px 0;
    color: #495057;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .kurze-anleitung {
        font-size: 12px;
        padding: 12px;
    }
    
    .kurze-anleitung h4 {
        font-size: 14px;
    }
}
