* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
h1, h2, h3 {
    color: #004c99;
    margin-bottom: 15px;
}
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
strong {
    color: #c90000;
    font-weight: 700;
}
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background-color: #c90000;
    color: white;
    margin-top: 10px;
}
.btn-primary:hover {
    background-color: #a00000;
}
.btn-secondary {
    background-color: #004c99;
    color: white;
    width: 100%;
    margin-top: 20px;
}
.btn-secondary:hover {
    background-color: #003366;
}
header {
    background-color: white;
    border-bottom: 3px solid #c90000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.container h3 {
    color: #004c99;
}
.header-logo {
    height: 40px;
    width: auto;
    display: block;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #c90000;
}
.hero h1,
.hero p.subheadline,
.privatkredit-hero h1,
.privatkredit-hero p.subheadline,
.kmu-kredite-hero h1,
.kmu-kredite-hero p.subheadline,
.autokredit-hero h1,
.autokredit-hero p.subheadline {
    color: #ffffff !important;
    background-color: rgba(0, 76, 153, 0.8) !important;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 0px;
}
.privatkredit-hero h1,
.privatkredit-hero p.subheadline,
.kmu-kredite-hero h1,
.kmu-kredite-hero p.subheadline,
.autokredit-hero h1,
.autokredit-hero p.subheadline {
    background-color: rgba(163, 32, 32, 0.8) !important;
}
.hero strong {
    color: #FFD700;
    font-weight: bold;
}
.hero, .autokredit-hero, .privatkredit-hero, .onlinekredit-hero, .kmu-kredite-hero {
    background: linear-gradient(rgba(0, 76, 153, 0.8), rgba(0, 76, 153, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/sofortkredit-schweiz.webp') no-repeat center center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
}
.autokredit-hero {
    background: linear-gradient(rgba(190, 0, 0, 0.8), rgba(190, 0, 0, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/autokredit.webp') no-repeat center center/cover;
}
.privatkredit-hero {
    background: linear-gradient(rgba(190, 0, 0, 0.8), rgba(190, 0, 0, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/privatkredit.webp') no-repeat center center/cover;
}
.onlinekredit-hero {
    background: linear-gradient(rgba(0, 76, 153, 0.8), rgba(0, 76, 153, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/onlinekredit.webp') no-repeat center center/cover;
}
.kmu-kredite-hero {
    background: linear-gradient(rgba(190, 0, 0, 0.8), rgba(190, 0, 0, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/kmu-kredite.webp') no-repeat center center/cover;
}
.ueber-uns-hero {
    background: linear-gradient(rgba(0, 76, 153, 0.8), rgba(0, 76, 153, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/ueber-uns.webp') no-repeat center center/cover;
}
.calculator-section {
    padding: 40px 0;
}
.calculator-box {
    display: flex;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.text-content {
    flex: 1;
    padding: 40px;
}
.calculator-form-wrapper {
    flex: 1;
    background-color: #F0FFEE;
    padding: 40px;
}
.benefit-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.benefit-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}
.benefit-list li .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: #00c950;
    color: white;
    text-align: center;
    border-radius: 50%;
}
body.no-scroll {
    overflow: hidden;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #004c99;
    position: relative;
    transition: background-color 0.3s ease;
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: #004c99;
    position: absolute;
    transition: transform 0.3s ease;
}
.hamburger-icon::before {
    transform: translateY(-8px);
}
.hamburger-icon::after {
    transform: translateY(8px);
}
.nav-toggle.active .hamburger-icon {
    background-color: transparent;
}
.nav-toggle.active .hamburger-icon::before {
    transform: translateY(0) rotate(45deg);
}
.nav-toggle.active .hamburger-icon::after {
    transform: translateY(0) rotate(-45deg);
}
.kredit-container h3 {
    text-align: center;
    color: #c90000;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row label {
    flex: 1;
    display: block;
    font-weight: bold;
    color: #555;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}
.interest-rate-info {
    text-align: center;
    color: #555;
    font-size: 0.9em;
}
.hidden-input {
    display: none;
}
.results {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background-color: #e6e6e6;
    border-radius: 5px;
}
.result-item {
    flex: 1;
}
.result-item label {
    display: block;
    font-size: 0.9em;
    color: #000015;
}
.result-item .large-text {
    font-size: 1.8em;
    font-weight: bold;
    color: #c90000;
    display: block;
    margin-top: 5px;
}
.benefits-section {
    padding: 40px 0;
    text-align: center;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.benefit-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.seo-text {
    padding: 40px 0 60px 0;
    background-color: white;
}
footer {
    background-color: #2c3e50;
    color: white;
    text-align: left;
    padding: 20px 0;
    font-size: 0.9em;
    margin-top: 50px;
}
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding-top: 40px;
    font-size: 0.9em;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #4a637a;
}
.footer-col h3 {
    color: #FFFAFA;
    margin-bottom: 15px;
    font-size: 1.1em;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li a {
    color: #ecf0f1;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: #c90000;
}
.disclaimer-text {
    opacity: 0.8;
    line-height: 1.5;
}
.footer-bottom {
    text-align: center;
    padding: 15px 0;
}
.footer-bottom a {
    color: #FFFAFA; 
    text-decoration: none;
    font-weight: bold; 
}
footer strong {
    color: #FFFAFA; 
    font-weight: bold; 
}
.rechenbeispiel-box {
    font-size: 13px;
    margin-bottom: 5px;
}
.modal-hidden {
    display: none !important; 
}
.cookie-banner-hidden {
    display: none !important;
}
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9000;
}
.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cookie-banner-content p {
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}
.cookie-actions {
        flex-direction: column;
    display: flex;
    gap: 10px;
}
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9001; 
    display: none; 
}
.modal-active {
    display: flex !important; 
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}
.setting-group {
    border-top: 1px solid #eee;
    padding: 15px 0;
}
.setting-group h3 {
    font-size: 1em;
    margin-top: 0;
}
.setting-group .description {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
}
.modal-footer {
    padding-top: 20px;
    text-align: right;
}
.switch-control {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 24px;
    margin-right: 15px;
}
.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: #c90000;
}
input:checked + .slider:before {
    transform: translateX(21px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}
.label-text {
    position: absolute;
    left: 70px;
    top: 5px;
}
@media (max-width: 900px) {
.hero {
    background: linear-gradient(rgba(0, 76, 153, 0.8), rgba(0, 76, 153, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/sofortkredit-schweiz-m.webp') no-repeat center center/cover;
}
.autokredit-hero {
    background: linear-gradient(rgba(190, 0, 0, 0.8), rgba(190, 0, 0, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/autokredit-m.webp') no-repeat center center/cover;
}
.privatkredit-hero {
    background: linear-gradient(rgba(190, 0, 0, 0.8), rgba(190, 0, 0, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/privatkredit-m.webp') no-repeat center center/cover;
}
.onlinekredit-hero {
    background: linear-gradient(rgba(0, 76, 153, 0.8), rgba(0, 76, 153, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/onlinekredit-m.webp') no-repeat center center/cover;
}
.kmu-kredite-hero {
    background: linear-gradient(rgba(190, 0, 0, 0.8), rgba(190, 0, 0, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/kmu-kredite-m.webp') no-repeat center center/cover;
}
.ueber-uns-hero {
    background: linear-gradient(rgba(0, 76, 153, 0.8), rgba(0, 76, 153, 0.6)), url('https://www.sofortkredit-schweiz.ch/images/ueber-uns-m.webp') no-repeat center center/cover;
}
    .calculator-box {
        flex-direction: column;
    }
    .kreditrechner-wrapper { order: 1; }
    .text-content { order: 2; }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 20px;
    }
}
@media (max-width: 600px) {
    h1 { font-size: 2em; }
    header .container {
        padding: 10px 20px;
    }
    nav.main-nav {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    nav.main-nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 76, 153, 0.95);
        z-index: 999;
        padding-top: 80px;
        text-align: center;
    }
    nav.main-nav.active ul {
        flex-direction: column;
        width: 100%;
    }
    nav.main-nav.active ul li {
        margin: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    nav.main-nav.active ul li a {
        color: white;
        font-size: 1.5em;
        padding: 15px 0;
    }
    nav.main-nav.active ul li a:hover {
        color: #c90000;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .results {
        flex-direction: column;
        gap: 15px;
    }
    .result-item .large-text {
        font-size: 1.5em;
    }
    .header-logo {
        height: 35px;
    }
.cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .cookie-banner-content p {
        width: 100%;
        text-align: left;
    }
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    .cookie-actions button {
        width: 100%;
        margin-bottom: 5px;
    }
    .modal-content {
        padding: 20px;
        width: 95%;
        max-width: none;
        max-height: 90vh;
        overflow-y: auto;
    }
    .setting-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }
    .switch-control {
        margin-top: 10px;
        margin-right: 0; 
    }
    .modal-footer {
        text-align: center;
    }
    .modal-footer button {
        width: 100%;
    }
}