/* CSS für den futuristischen Gradient-Background */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&family=Yanone+Kaffeesatz:wght@200..700&display=swap');

:root {
    --blue-accent: #0096FF;
    --container-width: 50em;
  }


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif; /* Beispielschriftart */
}

body {  
    margin: auto;
    background-color: #fff;
    color: #000;
    margin-top: 6.5rem;
}  

header {
    background-color: #000;
    color: white;
    padding: 1rem;
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    top: 0;
    position: fixed;
}

#contents-section {
    font-family: 'Work Sans', sans-serif; /* Beispielschriftart */
    max-width: 90vw;
    background-color: #fff;
    color: #000;
    margin: 2rem auto;
    padding: 0 1rem;
}

a {
     text-decoration: none;
     color: black;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: "Yanone Kaffeesatz";
    margin-left: 1.5rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
}

.contact-icon {
    display: none;
}

.input-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: var(--container-width);
    height: 25em;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    column-gap: 3em;
    justify-content: space-between;
}

@media only screen and (min-width: 801px) {
    .chart-tab.active {
        color: #000;
        font-weight: bold;
        display: flex;
        justify-content: center;
    }
    .chart-placeholder {
        margin-top: 1rem;
        background-color: white;
        align-self: auto;
    }   
}

@media only screen and (min-width: 501px) and (max-width: 800px) {
    #contents-section {
        width: 90vw;
    }
    .input-section {
        flex-wrap: nowrap;
        height: auto;
    }
    .results-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-content: center;
        flex-direction: column;
        column-gap: 1rem;
        margin: 2.5rem 0;
        height: auto;
    }
    .result-item {
        margin: 0.5rem 0;
    }
}

@media only screen and (max-width: 500px) {
    #contents-section {
        width: 100vw;
        background-color: #fff;
        color: #000;
        margin: 2rem auto;
        padding: 0 1rem;
    }
    .input-section {
        background: white;
        border: none;
        margin-bottom: 1.5rem;
        height: auto;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        column-gap: 2em;
        justify-content: space-between;
    }
    .results-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-content: center;
        flex-direction: column;
        column-gap: 1rem;
        margin: 2.5rem 0;
        height: auto;
    }
    body .results-section.active {
        background: white;
        border: none;
        padding: 1.5rem;
        display: block;
        max-width: var(--container-width);
        margin: auto;
    }
    .result-label {
        margin-bottom: 0.5rem;
        text-align: center;
    }
    .result-value {
        text-align: center;
    }
    body .chart-placeholder {
        max-width: 100%;
    }
    .contact-text {
        display: none; /* Verstecke den Text unter 500px */
    }

    .contact-icon {
        display: inline-block; /* Zeige das Icon unter 500px an */
        z-index: 100;
        margin-left: 10%;
    }
}


.form-group {
    margin-bottom: 1rem;
}

.form-group > label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 650;
}

.textarea-container {
    height: 2.5rem;
    font-size: 1rem;
}

select, input[type="text"], input[ type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.radio-group {
    margin-top: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
}

input[type="radio"] {
    margin-right: 0.5rem;
    height: 1.5rem;
    width: 1.5rem;
}

input[type="radio"]:checked {
    border-radius: 50%;
  }
  

.calculate-btn {
    background-color: #000;
    color: white;
    padding: 0.5rem 2rem;
    height: 3rem;
    width: 10rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    align-self: flex-end;
    font-size: 1rem;
    font-weight: 500;
}

.results-section.active {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    display: block;
    max-width: var(--container-width);
    margin: auto;
}

.results-section {
    display: none;
}

.tab-navigation {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.tab.active {
    border-bottom: 2px solid black;
    font-weight: bold;
}

.results-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 2.5rem 0;
}

.result-item {
    text-align: left;
    flex: 1;
}
.result-label {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.chart-tab-navigation {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.chart-section {
    margin-top: 2rem;
}

.chart-tab {
    display: none;
    border: none;
}

.chart-tab.active {
    color: #000;
    font-weight: bold;
    display: block;
}

.chart-placeholder {
    margin-top: 1rem;
    background-color: transparent;
    max-width: 80%;
    margin: auto;
}
