/* Nomenklatur-Seite: Spezifische Styles */

/* Grundlegende Container-Struktur */
.nomenklatur-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero-Bereich */
.nomenklatur-hero {
    padding: 60px 30px;
    background: linear-gradient(135deg, #88c4ff 0%, #c2e9fb 100%);
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nomenklatur-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #1e3c72;
    position: relative;
    z-index: 2;
}

.nomenklatur-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* Hintergrund-Elemente */
.bg-element {
    position: absolute;
    opacity: 0.1;
    font-size: 4.5rem;
    color: #1e3c72;
    z-index: 1;
}

.nomenklatur-element-1 {
    top: 20px;
    right: 50px;
    transform: rotate(15deg);
}

.nomenklatur-element-2 {
    bottom: 20px;
    left: 60px;
    transform: rotate(-10deg);
}

.nomenklatur-element-3 {
    top: 70px;
    left: 30%;
    transform: rotate(5deg);
}

/* Inhaltsbereich */
.nomenklatur-section {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    border: 1px solid #c2e9fb;
}

.nomenklatur-section h2 {
    color: #1e3c72;
    margin-top: 0;
    border-bottom: 2px solid #f2f2f2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.nomenklatur-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Hinweisboxen */
.info-box {
    background-color: #e8f4f8;
    border-left: 5px solid #1e3c72;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box h4 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 10px;
}

.warning-box {
    background-color: #fff4e5;
    border-left: 5px solid #ff9800;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.tip-box {
    background-color: #e8f5e9;
    border-left: 5px solid #4caf50;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Schwierigkeitsfilter */
.difficulty-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.difficulty-filter {
    padding: 8px 15px;
    background-color: #f0f7ff;
    border: 1px solid #88c4ff;
    color: #1e3c72;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-filter:hover {
    background-color: #d0e8ff;
}

.difficulty-filter.active {
    background-color: #1e3c72;
    color: white;
}

/* Schwierigkeitsanzeige */
.difficulty-indicator {
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.difficulty-level {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: normal;
}

.difficulty-0 {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.difficulty-1 {
    background-color: #fff8e1;
    color: #ff8f00;
}

.difficulty-2 {
    background-color: #ffebee;
    color: #c62828;
}

/* Molekül-Gruppen */
.molecule-groups-container {
    margin: 30px 0;
}

.molecule-group {
    margin-bottom: 50px;
}

.molecule-group h3 {
    color: #1e3c72;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.molecule-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Einzelne Moleküle */
.molecule-item {
    width: 250px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.molecule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.molecule-canvas {
    width: 220px;
    height: 220px;
    margin: 0 auto 15px auto;
    display: block;
}

.molecule-name {
    font-weight: bold;
    margin-top: 10px;
    color: #1e3c72;
}

.molecule-formula {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Challenge-Bereich */
.challenge-section {
    background-color: #f0f7ff;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    border: 1px solid #88c4ff;
    text-align: center;
}

.challenge-section h3 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 20px;
}

.challenge-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.challenge-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.challenge-question {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.question-number {
    flex: 0 0 30px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #1e3c72;
}

.challenge-molecule {
    flex: 0 0 220px;
    margin: 0 20px;
}

.challenge-answer {
    flex: 1;
    text-align: left;
}

.answer-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #c2e9fb;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.answer-input:focus {
    border-color: #1e3c72;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.2);
}

.answer-input.correct {
    border-color: #4caf50;
    background-color: #f1f8e9;
}

.answer-input.incorrect {
    border-color: #f44336;
    background-color: #ffebee;
}

.result-indicator {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.result-indicator.correct {
    color: #4caf50;
}

.result-indicator.incorrect {
    color: #f44336;
}

#challenge-results {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f0f7ff;
    text-align: center;
}

#challenge-results h4 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Hilfreiche Klassen */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.hidden {
    display: none !important;
}

/* Responsives Design */
@media (max-width: 768px) {
    .nomenklatur-hero h1 {
        font-size: 2rem;
    }
    
    .nomenklatur-hero p {
        font-size: 1rem;
    }
    
    .nomenklatur-section {
        padding: 25px;
    }
    
    .molecule-item {
        width: 100%;
        max-width: 280px;
    }
    
    .molecule-canvas {
        width: 180px;
        height: 180px;
    }
    
    .challenge-question {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .question-number {
        margin-bottom: 10px;
    }
    
    .challenge-molecule {
        margin: 0 0 15px 0;
        align-self: center;
    }
    
    .challenge-answer {
        width: 100%;
    }
}

/* Spezifische Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .nomenklatur-hero {
        padding: 40px 20px;
    }
    
    .nomenklatur-hero h1 {
        font-size: 1.8rem;
    }
    
    .molecule-canvas {
        width: 150px;
        height: 150px;
    }
    
    .difficulty-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .difficulty-filter {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}