/* Allgemeine Stile */
:root {
    --primary-color: #1a365d;    /* Dunkelblau */
    --secondary-color: #2c5282;  /* Mittelblau */
    --accent-color: #4299e1;     /* Helles Blau */
    --text-color: #2d3748;       /* Dunkelgrau */
    --light-bg: #f7fafc;         /* Helles Grau */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

/* Header und Navigation */
header {
    background-color: #f31b10;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100px;
}

.logo {
    height: 80px;
    width: auto;
    margin: 0.5rem 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.2rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--white);
    opacity: 0.8;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Favicon Styles */
[rel="icon"], [rel="apple-touch-icon"] {
    border-radius: 50%;
}

/* Hauptbereich */
main {
    position: relative;
    z-index: 1;
    background-color: var(--white);
    max-width: 1200px;
    margin: 120px auto 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

section {
    margin-bottom: 4rem;
    padding-top: 1rem; /* Zusätzlicher Abstand nach oben */
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 2rem 0; /* Angepasster Abstand */
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 1.5rem 0; /* Angepasster Abstand */
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

/* Preise */
.pricing {
    background-color: var(--light-bg);
    padding: 3rem;
    border-radius: 12px;
}

.price-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.price-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.price-item:hover {
    transform: translateY(-5px);
}

.price-item p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Kontakt */
.contact {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: #f31b10;
    color: var(--white);
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

.footer-contact {
    text-align: left;
}

.footer-contact h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.footer-contact p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

footer nav {
    text-align: right;
}

footer nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

footer nav ul li {
    margin: 0.5rem 0;
}

footer nav ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

footer nav ul li a:hover {
    color: var(--white);
    opacity: 0.8;
}

/* Provisionsstruktur */
.provision-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.provision-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.provision-content p {
    margin: 1rem 0;
    line-height: 1.6;
}

.provision-table {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
}

.provision-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--accent-color);
}

.provision-row:last-child {
    border-bottom: none;
}

.provision-cell {
    padding: 1rem;
    text-align: center;
    background-color: var(--white);
}

.provision-row:first-child .provision-cell {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

.provision-row:not(:first-child) .provision-cell:first-child {
    border-right: 1px solid var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    main {
        max-width: 95%;
        margin: 60px auto 0;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 1rem;
    }

    .logo {
        height: 60px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    main {
        margin-top: 140px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .services, .price-list {
        grid-template-columns: 1fr;
    }

    .service-item, .price-item {
        padding: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-contact {
        text-align: center;
    }

    footer nav ul {
        align-items: center;
    }

    .provision-content {
        padding: 1rem;
    }

    .provision-table {
        margin: 1rem auto;
    }

    .provision-cell {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    header {
        padding: 0.5rem;
    }

    .logo {
        height: 50px;
    }

    main {
        margin-top: 160px;
    }

    .pricing, .contact {
        padding: 1.5rem;
    }

    .price-item p {
        font-size: 1.1rem;
    }

    footer {
        padding: 1rem 0;
    }
}

/* Für sehr große Bildschirme */
@media (min-width: 1400px) {
    main {
        max-width: 1320px;
    }

    body {
        font-size: 18px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Für Hochformat-Displays (z.B. Smartphones) */
@media (max-height: 600px) and (orientation: portrait) {
    .header-image {
        height: 100vh;
    }

    nav ul {
        padding: 0.5rem;
    }

    main {
        margin-top: 30px;
    }
}

/* Für Querformat-Displays */
@media (min-width: 1024px) and (orientation: landscape) {
    .header-image {
        height: 100vh;
    }
}

/* Für Retina-Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-image {
        background-size: cover;
    }
}
