/* Grundlegende Farben und Typografie */
:root {
    --primary-bg: #cbc6be; /* Haupt-Hintergrundfarbe (beige) */
    --secondary-bg: #e8e4d9; /* helleres Beige für alternierende Abschnitte */
    --text-color: #000000;
    --accent-color: #000000;
    --card-bg: #ffffff;
    --link-color: #003366;
}

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

body {
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--primary-bg);
    line-height: 1.6;
}

/* Container für zentrierten Inhalt */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-bg);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 80px; /* schlanker sichtbarer Bereich */
}

/* Logo als Text */
.logo-text {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    line-height: 1;
}

.logo-initials {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo-name {
    font-family: "Playfair Display", serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-top: -0.3rem;
}

/* Bild‑Logo – Größe definieren */
.logo img {
    height: 150px;
    width: auto;
    display: block;
}

/* Navigation */
.nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-list li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.nav-list li a:hover {
    color: var(--link-color);
}

/* Hamburger Menü – versteckt auf großen Bildschirmen */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 22px;
    position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.nav-toggle-label span {
    top: 9px;
}

.nav-toggle-label span::before {
    content: '';
    top: -8px;
}

.nav-toggle-label span::after {
    content: '';
    bottom: -8px;
}

/* Wenn das Menü geöffnet ist, drehen die Linien zu einem X */
.nav-toggle:checked + .nav-toggle-label span {
    background-color: transparent;
}
.nav-toggle:checked + .nav-toggle-label span::before {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label span::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Bereich */
.hero {
    position: relative;
    height: 90vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: url('assets/hero_banner.jpeg') no-repeat center center/cover;
}

/* Transparentes Overlay für mehr Kontrast – niedrige Opazität um Augen sichtbar zu machen */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    margin-bottom: 0.2em;
}

.hero .subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 1.5em;
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #333333;
}

/* Allgemeine Abschnittsüberschriften */
section h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Über mich */
.about {
    padding: 4rem 0;
}

/* Layout für Über-mich-Bereich */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.about-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .about-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .about-image, .about-text {
        flex: 1;
    }
    .about-image img {
        max-width: 100%;
    }
    .about-text {
        margin-left: 2rem;
    }
}

/* Leistungen */
.services {
    padding: 4rem 0;
    background-color: var(--secondary-bg);
}
.service-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.6rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.service-item h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}
.service-item ul {
    list-style: disc inside;
    font-size: 0.95rem;
}
.service-item li {
    margin-bottom: 0.4rem;
}

/* Kontaktbereich */
.contact {
    padding: 4rem 0;
}
.contact form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-bg);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.footer-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: flex-start;
    }
}

.footer-item h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}
.footer-item p,
.footer-item a {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-color);
    text-decoration: none;
}
.footer-item a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background-color: var(--primary-bg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    .nav-list li a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }
    .nav-toggle-label {
        display: block;
    }
    /* Wenn die Navigation aufgeklappt ist */
    .nav-toggle:checked ~ .nav {
        max-height: 350px;
    }
    /* Kleinere Logo-Größe auf Mobilgeräten */
    .logo-initials {
        font-size: 2rem;
    }
    .logo-name {
        font-size: 0.7rem;
    }

    /* Reduziere Bild-Logo auf kleineren Bildschirmen */
    .logo img {
        height: 90px;
    }
}

/* ------------------------------
   Unterseiten-Stile
   ------------------------------ */
.page-hero {
    background-color: var(--secondary-bg);
    padding: 6rem 0 2rem;
    margin-top: 80px; /* Offset für die feste Navigation */
    text-align: center;
}

.page-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.6rem;
    font-weight: 700;
}

.legal {
    padding: 3rem 0;
}

.legal h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.legal p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}