:root {
    --primary-color: #8EC3A7;
    --primary-dark: #7AB090;
    --primary-light: #B2D4C2;
    --text-color: #333333;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --success-color: #8EC3A7;
    --error-color: #F44336;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header Styles */
.hero {
    padding: 2rem 0;
    text-align: center;
}

.logo-container {
    margin-bottom: 1rem;
    text-align: center;
    perspective: 1000px;
    position: relative;
}

.logo-container img {
    display: inline-block;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.logo-container img.spinning {
    animation: coinSpin 1.5s ease-out;
}

@keyframes coinSpin {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(1080deg);
    }
}

.logo {
    max-width: 200px;
    height: 200px;
    width: 200px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
}

.logo-container.transform-active .logo {
    opacity: 0;
    transform: scale(0.5) rotate(1080deg);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.slogan {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Introduction Section */
.intro {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Calculator Section */
.calculator {
    padding: 2rem 0;
}

.calculator h2 {
    text-align: center;
    margin: 3rem 0 2rem 0;
    color: var(--primary-dark);
}

.calculator-container {
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.12);
    border-radius: 27px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    margin-bottom: 4rem;  
}

.chart-section {
    margin-top: 4rem;  
    margin-bottom: 4rem;  
}

.chart-container {
    width: 100%;
    height: 400px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding: 1rem;
}

@media (max-width: 768px) {
    .chart-section {
        margin-top: 8rem;  
        margin-bottom: 6rem;
    }
    
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
}

/* Contact Form */
section.contact {
    padding: 4rem 0;
}

section.contact.container {
    background-color: rgba(0, 0, 0, 0.12);
    padding: 2rem;
    text-align: center;
    border-radius: 27px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

.value-display {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--primary-dark);
}

.results {
    margin-top: 2rem;
    text-align: center;
}

.chart-container {
    width: 100%;
    height: 400px;
    max-width: 600px;
    margin: 0 auto 6rem auto;
    position: relative;
    padding: 1rem;
}

.chart-container canvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
    
    .savings-value {
        font-size: 1.25rem;
    }
}

.savings-section {
    margin-top: 2rem;
    text-align: center;
}

.savings-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    margin-top: 3rem;
}

.savings-numbers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.savings-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.savings-label {
    font-weight: 600;
    color: var(--text-color);
}

.savings-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
    
    .savings-value {
        font-size: 1.25rem;
    }
}

section.contact h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

section.contact p {
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="tel"],
input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    border-radius: 5px;
    font-size: 1rem;
}

input[type="tel"]:focus,
input[type="email"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

input[type="tel"]::placeholder,
input[type="email"]::placeholder,
input[type="text"]::placeholder {
    color: #999;
}

input[type="tel"]:focus,
input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(142, 195, 167, 0.2);
}

.cta-button {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 27px;
    cursor: pointer;
    margin: 2rem 0;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 400px;
    animation: breathing 3s ease-out infinite;
}

.cta-button:hover {
    animation: none;
    transform: scale(1.05);
}

.pulse-button {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 rgba(142, 195, 167, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(142, 195, 167, 0.4);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(142, 195, 167, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(142, 195, 167, 0);
    }
}

@keyframes breathing {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(142, 195, 167, 0.7);
    }
    
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 10px rgba(142, 195, 167, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(142, 195, 167, 0);
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-button.accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-button.accept:hover {
    background-color: var(--primary-dark);
}

.cookie-button.decline {
    background-color: #f5f5f5;
    color: #333;
}

.cookie-button.decline:hover {
    background-color: #e5e5e5;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 1.5rem;
        box-sizing: border-box;
        margin: 0 auto;
    }

    h1 {
        font-size: 2rem;
        padding: 0;
    }

    .calculator-container {
        padding: 1.5rem;
        margin: 0 auto;
        width: 95%;
        max-width: none;
        border-radius: 20px;
    }

    .calculator,
    section.contact {
        padding: 1rem;
    }

    section.contact.container {
        padding: 1.5rem;
        margin: 0 auto;
        width: 90%;
        max-width: none;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        margin: 0 auto;
    }

    .calculator-container {
        padding: 1rem;
        width: 95%;
        border-radius: 15px;
        margin: 0 auto;
    }

    section.contact.container {
        padding: 1rem;
        width: 85%;
        border-radius: 15px;
        margin: 0 auto;
    }
}

/* Danke-Seite Styles */
.thank-you-container {
    text-align: center;
    padding: 100px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-container h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.thank-you-container p {
    color: #34495e;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.back-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #8ec3a7;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #7ab394;
}

.thank-you-message {
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
    color: var(--text-color);
}

.contact-preference {
    background-color: rgba(0, 0, 0, 0.12);
    padding: 2rem;
    border-radius: 27px;
}

.contact-preference h2 {
    margin: 2rem 0;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.contact-preference p {
    margin-bottom: 2rem;
}

.preference-group {
    margin: 2rem 0;
}

.preference-group h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

.preference-btn {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 27px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preference-btn:hover {
    background-color: var(--primary-light);
    color: white;
}

.preference-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.selected-preferences {
    background-color: var(--gray-light);
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.submit-preferences {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    border-radius: 27px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.submit-preferences:hover {
    background-color: var(--primary-dark);
}

/* Cookie Banner für Danke-Seite */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cookie-button.accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-button.decline {
    background-color: var(--gray-medium);
    color: var(--text-color);
}

/* Legal Pages (Impressum & Datenschutz) */
.legal-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.legal-container h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .legal-container {
        margin: 2rem auto;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
}

/* Footer */
footer {
    color: white;
    padding: 2rem;
    text-align: center;
}

.social-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-icon {
    color: #000000;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #333333;
    transform: scale(1.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: white;
    text-decoration: none;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.legal-links {
    margin: 1.5rem 0;
}

.legal-links a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #666666;
}

.legal-links .separator {
    margin: 0 1rem;
    color: #000000;
}

.copyright {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .calculator-container {
        padding: 1rem;
    }
}

/* Custom Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: #8EC3A7;
    border-radius: 4px;
    outline: none;
    width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #8EC3A7;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-track {
    height: 6px;
    background: #8EC3A7;
    border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #8EC3A7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-container,
section.contact.container {
    animation: fadeIn 0.6s ease-out;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.fade-in.visible {
    opacity: 1;
}

/* Kontaktpräferenzen Formular */
.preferences-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:disabled + span {
    color: #999;
}

.specific-times {
    margin-left: 2rem;
}

.specific-times .checkbox-label {
    margin-top: 0.5rem;
}

/* Disabled Checkboxes */
.checkbox-label input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label:has(input[type="checkbox"]:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Social Media Icon Animations */
@keyframes flyIn {
    0% {
        transform: translateX(1000px);
        opacity: 0;
    }
    70% {
        transform: translateX(-20px);
    }
    85% {
        transform: translateX(10px);
    }
    95% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.social-icons .social-icon {
    opacity: 0;
}

.social-icons.animate .social-icon {
    animation: flyIn 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
}

.social-icons.animate .social-icon:nth-child(1) { animation-delay: 0s; }
.social-icons.animate .social-icon:nth-child(2) { animation-delay: 0.1s; }
.social-icons.animate .social-icon:nth-child(3) { animation-delay: 0.2s; }
.social-icons.animate .social-icon:nth-child(4) { animation-delay: 0.3s; }
.social-icons.animate .social-icon:nth-child(5) { animation-delay: 0.4s; }

/* Logo Transform Animation */
.logo-container {
    position: relative;
}

.logo-transform-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;  
    width: 100%;
}

.logo-social-icons {
    display: flex;
    gap: 20px;  
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.logo-social-icons .social-icon i {
    font-size: 28px;  
    color: var(--primary-color);
}

.logo-social-title {
    white-space: nowrap;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.1em;  
}

.logo-container.transform-active .logo-social-icons,
.logo-container.transform-active .logo-social-title {
    opacity: 1;
    pointer-events: auto;
}

.logo-social-icons .social-icon {
    transform: scale(0);
    transition: transform 0.4s ease;
}

.logo-container.transform-active .logo-social-icons .social-icon {
    transform: scale(1);
}

.logo-container.transform-active .logo-social-icons .social-icon:nth-child(1) { transition-delay: 0.1s; }
.logo-container.transform-active .logo-social-icons .social-icon:nth-child(2) { transition-delay: 0.2s; }
.logo-container.transform-active .logo-social-icons .social-icon:nth-child(3) { transition-delay: 0.3s; }
.logo-container.transform-active .logo-social-icons .social-icon:nth-child(4) { transition-delay: 0.4s; }
.logo-container.transform-active .logo-social-icons .social-icon:nth-child(5) { transition-delay: 0.5s; }

/* iPhone SE und kleinere Geräte */
@media only screen and (max-width: 375px) {
    .calculator-container {
        padding: 1.5rem;
    }

    .chart-section {
        margin-top: 6rem;  
        margin-bottom: 6rem;
    }
    
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
    
    .savings-value {
        font-size: 1.25rem;
    }

    .input-group {
        margin-bottom: 1.5rem;
    }

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

    .savings-info {
        gap: 1.5rem;
    }
}
