:root {
    --primary: #D2691E;
    --primary-dark: #8B4513;
    --secondary: #F4A460;
    --light: #FAEBD7;
    --dark: #333;
    --sand: #F5DEB3;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: #f9f3e9;
    background-image: linear-gradient(to bottom, #fdf8f0, #f5e8d0);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 2rem;
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.top-navigation {
    background-color: var(--primary-dark);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu li a.active {
    background-color: var(--secondary);
    color: var(--primary-dark);
}

.language-select-wrapper {
    margin-left: auto;
}

.language-select {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--secondary);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.language-select:hover {
    background-color: #6b3c0f;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

header {
    background-color: var(--primary);
    background-image: linear-gradient(to right, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "🐫";
    font-size: 8rem;
    position: absolute;
    opacity: 0.1;
    top: -10px;
    right: 5%;
    transform: rotate(20deg);
}

header::after {
    content: "🐪";
    font-size: 8rem;
    position: absolute;
    opacity: 0.1;
    bottom: -30px;
    left: 5%;
    transform: rotate(-15deg);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.section-title,
.content-title {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.calculator-section {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary);
}

.wissenswertes-section {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary);
    margin-top: 1rem;
}

.gender-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gender-option {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-color: var(--light);
    min-width: 200px;
}

.gender-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
}

.gender-option.active {
    border-color: var(--primary);
    background-color: rgba(210, 105, 30, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.gender-icon {
    font-size: 3rem;
    margin-bottom: 0.7rem;
    display: block;
}

.form-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.input-with-unit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
}

input[type=range] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 10px;
    -webkit-appearance: none;
    background: var(--sand);
    border-radius: 5px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.value-display {
    background-color: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-left: 0rem;
    min-width: 70px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

select {
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    border: 2px solid var(--sand);
    font-size: 1rem;
    background-color: #fff;
    color: var(--dark);
    transition: border-color 0.3s;
}

select:focus {
    border-color: var(--primary);
    outline: none;
}

.select-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.extra-fields {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--secondary);
}

.calculate-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    letter-spacing: 1px;
}

.calculate-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(139, 69, 19, 0.3);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

.result-section {
    display: none;
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    position: relative;           
}

.result-section.active {
    display: flex;
}

.close-result {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 30;               
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--primary-dark);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    touch-action: manipulation;   
}

.close-result:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.recalculate-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.recalculate-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.result-value {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1rem 0;
    text-shadow: 2px 2px 0 var(--sand);
}

.camel-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.result-text {
    font-size: 1.3rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.share-section {
    margin-top: 2rem;
}

.share-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    color: #fff;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    touch-action: manipulation;
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(37, 211, 102, 0.3);
}

.share-btn.facebook {
    background-color: #1877F2;
}

.share-btn.facebook:hover {
    background-color: #0d5dbd;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(24, 119, 242, 0.3);
}

.share-btn.x {
    background-color: #000;
}

.share-btn.x:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.italian-promo-box {
    background: linear-gradient(135deg, #fff, #f0f8e8);
    border: 2px solid #4caf50;
    border-left: 8px solid #4caf50;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.italian-promo-box:hover {
    transform: translateY(-2px);
}

.promo-flag {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.promo-text strong {
    display: block;
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.promo-text p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.promo-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.promo-text a:hover {
    color: var(--primary-dark);
}

.faq-section,
.wissenswertes-section {
    grid-column: 1 / -1;
    margin-top: 3rem;
    background-color: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary);
}

.faq-item {
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--sand);
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.faq-question i {
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--dark);
    line-height: 1.7;
    padding-left: 2rem;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sand);
    color: #777;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.camel-footer {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 10px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        padding: 1rem;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .gender-selection {
        flex-direction: column;
        align-items: center;
    }

    .gender-option {
        width: 100%;
        max-width: 300px;
        min-width: unset;
    }

    .select-group {
        grid-template-columns: 1fr;
    }

    .input-with-unit {
        flex-direction: column;
        align-items: flex-start;
    }

    .value-display {
        margin-left: 0;
        margin-top: 0.5rem;
        align-self: flex-start;
    }

    .calculate-btn {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .result-section {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 3rem;
    }

    .camel-icon {
        font-size: 3.5rem;
    }

    .share-buttons {
        flex-direction: column;
        width: 100%;
    }

    .share-btn {
        width: 100%;
    }

    .faq-section {
        padding: 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
        flex-direction: column;
    }

    .faq-answer {
        padding-left: 0;
    }

    footer {
        padding-top: 1.5rem;
        margin-top: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .camel-footer {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }
}

@media (max-width: 480px) {
    .value-display {
        font-size: 1rem;
        min-width: 60px;
        padding: 0.4rem 0.8rem;
    }

    .language-select {
        font-size: 11px;
        padding: 4px 6px;
    }
}