/* Grunddesign */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Header */
header {
    background: #111;
    color: white;
    padding: 20px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin: 0;
    font-size: 26px;
    font-weight: bold;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

nav a:hover {
    color: #ffcc00;
}

/* Hero */
.hero {
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e') center/cover no-repeat;
    color: white;
    padding: 140px 0;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.btn {
    background: #ffcc00;
    color: #111 !important;
    padding: 14px 28px;
    text-decoration: none !important;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    border: none;
}

.btn:hover {
    background: #e6b800;
}

/* Sektionen */
.section {
    padding: 70px 0;
}

.section.dark {
    background: #222;
    color: white;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Karten */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.section.dark .card {
    background: #333;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Leistungen-Liste */
.leistungen-list {
    list-style: none;
    padding: 0;
    font-size: 18px;
}

.leistungen-list li {
    margin-bottom: 10px;
}

/* Vergleich */
.webseiten-vergleich {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.webseite {
    border: 2px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Schlechte Webseite */
.bad-site .site-header {
    background: #555;
    color: white;
    padding: 12px;
    text-align: center;
}

.bad-site .site-content {
    padding: 15px;
    font-size: 14px;
    color: #444;
}

.bad-site .site-footer {
    background: #eee;
    padding: 10px;
    text-align: center;
    font-size: 12px;
}

/* Gute Webseite */
.good-site .site-header {
    background: #111;
    color: white;
    padding: 12px;
    text-align: center;
}

.good-site .site-hero {
    background: #ffcc00;
    padding: 20px;
    text-align: center;
}

.good-site .site-hero h3 {
    margin: 0 0 10px 0;
}

.mini-btn {
    background: #111;
    color: white;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.good-site .site-content {
    padding: 20px;
}

.good-site ul {
    padding-left: 20px;
}

.good-site .site-footer {
    background: #111;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 12px;
}

/* Vergleich – Texte */
.vergleich-einleitung {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #444;
}

.vergleich-vorteile {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.vergleich-vorteile h3 {
    margin-bottom: 10px;
}

.vergleich-vorteile ul {
    list-style: none;
    padding: 0;
}

.vergleich-vorteile ul li {
    margin-bottom: 8px;
    font-size: 16px;
}

.vergleich-abschluss {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    color: #333;
}

/* Preis-Sektion */
.preis-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #444;
}

.preis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.preis-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s ease;
}

.preis-card:hover {
    transform: translateY(-5px);
}

.preis-card h3 {
    margin-top: 0;
    font-size: 22px;
}

.preis {
    font-size: 32px;
    font-weight: bold;
    color: #ffcc00;
    margin: 10px 0 20px;
}

.preis-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.preis-card ul li {
    margin-bottom: 10px;
}

.preis-card.highlight {
    border: 2px solid #ffcc00;
    background: #fff8d6;
}

.preis-hinweis {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    color: #333;
}

/* Animationen */
.fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kontakt */
.kontakt {
    background: #111;
    color: white;
    text-align: center;
}

.kontakt a:not(.btn) {
    color: #ffcc00;
    text-decoration: none;
}

.kontakt a:not(.btn):hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Footer Buttons (Impressum / Datenschutz) */
.legal-links {
    margin-top: 10px;
}

.legal-btn {
    background: none;
    border: none;
    color: #ffcc00;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
    text-decoration: underline;
}

.legal-btn:hover {
    color: white;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.overlay-content {
    background: white;
    max-width: 700px;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #000;
}

/* Datenschutz im Overlay */
#datenschutz-overlay h2,
#impressum-overlay h2 {
    margin-bottom: 10px;
}

#datenschutz-overlay h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 18px;
}

#datenschutz-overlay p,
#datenschutz-overlay ul,
#impressum-overlay p {
    font-size: 16px;
    color: #333;
}

#datenschutz-overlay ul {
    padding-left: 20px;
}

#datenschutz-overlay li {
    margin-bottom: 6px;
}

/* Mobile Optimierung */
@media (max-width: 768px) {

    .section {
        padding: 50px 0;
    }

    .container {
        width: 95%;
    }

    .header-flex {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        display: inline-block;
        margin: 8px;
        font-size: 16px;
    }

    .hero {
        padding: 100px 20px;
        background-position: center;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .webseiten-vergleich {
        grid-template-columns: 1fr;
    }

    .vergleich-vorteile {
        grid-template-columns: 1fr;
    }

    .preis-grid {
        grid-template-columns: 1fr;
    }

    .preis-card {
        padding: 20px;
    }

    .preis {
        font-size: 28px;
    }

    .kontakt {
        padding: 60px 20px;
    }

    .kontakt p {
        font-size: 16px;
    }

    .kontakt .btn {
        margin-top: 20px;
    }

    footer {
        font-size: 14px;
        padding: 15px 0;
    }

    .overlay-content {
        padding: 20px;
    }
}

/* Extra kleine Geräte */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 26px;
    }

    .hero p {
        font-size: 16px;
    }

    nav a {
        font-size: 14px;
    }

    .btn {
        font-size: 15px;
        padding: 10px 20px;
    }

    .preis {
        font-size: 24px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 15px;
    }
}
