:root {
    --bg-color: #FCF6DE;
    --accent-color: #ADCA78;
    --text-color: #333;
    --button-hover: #9BB96B;
    --beige: #EDE5C7;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100%;
    overflow-x: hidden;
}

body:not(.no-background) {
    background-color: #FCF6DE;
    background-image: url('images/background.jpg');
    background-position: bottom;
    background-repeat: repeat-x;
    background-size: auto 50vh;
    background-attachment: fixed;
}

body.no-background {
    background-color: #FCF6DE;
    background-image: none;
}

#app {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(252, 246, 222, 0.95);
    box-sizing: border-box;
    z-index: 15;
}

h1, h2 {
    color: var(--accent-color);
}

p {
    line-height: 1.6;
}

.fade {
    opacity: 0;
    transition: opacity 0.5s;
}

.fade.show {
    opacity: 1;
}

.button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 1rem 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: var(--button-hover);
}

.options {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    margin: 1rem 0;
}

.options label {
    flex: 1 1 0;
    cursor: pointer;
    padding: 0.5rem 0;
    border: 2px solid var(--accent-color);
    border-left: none;
    background-color: var(--beige);
    transition: background-color 0.3s;
    text-align: center;
}

.options label:first-child {
    border-left: 2px solid var(--accent-color);
}

.options label:hover {
    background-color: #e0dabd;
}

.options input[type="radio"] {
    display: none;
}

.options label:has(input[type="radio"]:checked) {
    background-color: var(--accent-color);
    color: white;
}




.progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    pointer-events: none;
}

#boot {
    width: 300px;
    position: absolute;
    bottom: 0;
    transition: left 0.8s ease;
    z-index: 10;
}

.plant-container {
    position: absolute;
    bottom: 12px;
    transition: left 0.8s ease;
    width: 100px;
    height: 200px;
    pointer-events: none;
    z-index: 5;
}

.plant {
    width: 100%;
    display: block;
}

.plant.dead-plant {
    margin-top: 40px;
}

.fire {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    display: none;
    pointer-events: none;
}

.fire-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.1s linear;
}

.result-gauge {
    width: 300px;
    height: 150px;
    margin: 2rem auto;
    position: relative;
    background: var(--beige);
    border-radius: 150px 150px 0 0;
    overflow: hidden;
}

.needle {
    width: 4px;
    height: 80%;
    background: var(--accent-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transition: transform 1s ease;
}

.question-text {
    background-color: var(--accent-color);
    color: white;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.importance-question {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.likert-bar {
    display: flex;
    border: 2px solid var(--accent-color);
    overflow: hidden;
    width: 250px;
    margin: 1rem 0;   /* statt auto -> kein zentrieren mehr */
}

.bar-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.bar-option input[type="radio"] {
    display: none;
}

.bar-option span {
    display: block;
    padding: 0.5rem 0;
    background-color: var(--beige);
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.bar-option:hover span {
    background-color: #e0dabd;
}

.bar-option input[type="radio"]:checked + span {
    background-color: var(--accent-color);
    color: white;
}

/* Ergebnisbereich */
#results {
    padding: 2rem;
    background-color: var(--beige);
}

.result-bar {
    margin: 2rem 0;
}

.result-bar .bar-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.bar-track {
    position: relative;
    height: 30px;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ccc;
}

.result-bar.large .bar-track {
    height: 40px;
}

.result-bar.small .bar-track {
    height: 30px;
    max-width: 75%;
}

.bar-segment {
    flex: 1;
}

.bar-segment.red {
    background-color: #D96C6C;
}

.bar-segment.yellow {
    background-color: #E6D66E;
}

.bar-segment.green {
    background-color: #6BAE75;
}

.bar-marker {
    position: absolute;
    top: -20px;
    left: 0;
    height: 70px;
    pointer-events: none;
}

.marker-line {
    position: absolute;
    top: 20px;
    width: 4px;
    height: 40px;
    background-color: black;
}

.marker-label {
    position: absolute;
    top: 0;
    left: -10px;
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
}

.bar-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.bar-title {
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.category-nav span {
    position: relative;
    padding: 0.3rem 0.5rem;
    cursor: default;
    color: #555;
}

.category-nav span.active {
    color: var(--accent-color);
    font-weight: bold;
}

.category-nav span.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.teddy-result {
    text-align: center;
    margin-bottom: 2rem;
}

.teddy-result img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.result-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-radius: 10px;
}

.result-text {
    flex: 1 1 250px;
    min-width: 200px;
}

.result-text p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.5;
}

.teddy-result {
    flex: 0 0 auto;
}

.teddy-result img.teddy-image {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
}


@media (max-width: 600px) {
    #boot {
        width: 200px;
    }
    .plant-container {
        width: 70px;
        height: 70px;
    }
    .result-gauge {
        width: 200px;
        height: 100px;
    }
}

@media (max-width: 1199px) {
    .progress-container {
        display: none;
    }
}