/* Globale Variablen - "Professionell Elegante" Farbgebung passend zum Original-Logo */
:root {
    --primary-color: #2b3a42;
    /* Ein sehr dunkles, warmes Anthrazit/Schiefergrau für starken Text-Kontrast */
    --primary-light: #445963;
    /* Hellere Abstufung des Schiefergraus für weiche Übergänge */
    --secondary-color: #d1ccbd;
    /* Ein edles, erdiges Beige/Greige abgeleitet vom Logo-Hintergrund */
    --accent-color: #b0a78f;
    /* Ein etwas dunkleres Beige für Interaktionen/Hover */
    --bg-color: #faf9f6;
    /* Ein sehr warmes Off-White/Creme für edlen Hintergrund */
    --text-color: #2b3a42;
    /* Standard Textfarbe ist identisch mit Primary für Klarheit */
    --text-light: #5f6e78;
    --white: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
    /* Angepasst an das neue Dunkelblau */
}

/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 15px rgba(43, 58, 66, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 58, 66, 0.3);
}

.hero-logo-large {
    height: auto;
    width: 250px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    /* Schatten für das Original-Viereck */
    animation: fadeInDown 0.8s ease-out;
    margin-bottom: 2rem;
    align-self: flex-start;
    /* Ausrichtung nach ganz links im flex-column */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* Header & Navigation */
.header {
    background-color: var(--bg-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

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

.main-nav a {
    font-weight: 500;
    color: var(--primary-color);
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
}

.btn-nav:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(235, 233, 226, 0.4) 0%, rgba(209, 204, 189, 0.2) 100%);
    /* Helle, beige-graue Töne */
    color: var(--primary-color);
}

.hero .subtitle {
    color: var(--text-light);
}

.hero-content h1 {
    color: var(--primary-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-images-container {
    display: flex;
    justify-content: flex-end;
    /* Align to the right side of the grid cell */
    position: relative;
    align-items: center;
    /* Center vertically with respect to each other */
}

/* Base styles for the laptop image */
.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: rotate(2deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    /* Make it fill its container up to a max-width */
    max-width: 500px;
    position: relative;
    z-index: 1;
    /* Place it below the logo */
}

.hero-image img:hover {
    transform: rotate(0);
}

/* Positioning for the overlapping logo */
.hero-logo-container {
    position: absolute;
    top: -30px;
    left: -50px;
    background-color: var(--white);
    /* Weißer Rahmen als Passepartout für das Logo-Viereck */
    padding: 0.5rem;
    /* Etwas Luft für den Rahmen */
    border-radius: 4px;
    /* Kaum Rundung passend zur Viereckigkeit */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Sehr feine Abgrenzung */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: rotate(2deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image img:hover {
    transform: rotate(0);
}

/* Intro Section */
.intro {
    padding: var(--spacing-lg) 0;
    background-color: var(--white);
    text-align: center;
}

.intro-container {
    max-width: 800px;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
}

.lead-text strong {
    color: var(--primary-color);
}

/* Leistungen Section */
.services {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.12);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Über mich Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-images {
    position: relative;
    padding: 2rem;
}

.img-tradition {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 80%;
    margin-bottom: -20%;
    position: relative;
    z-index: 1;
    opacity: 0.9;
    filter: sepia(0.2);
}

.img-modern {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 75%;
    margin-left: auto;
    border: 12px solid var(--white);
    position: relative;
    z-index: 2;
}

.about-content .section-title {
    text-align: left;
}

.about-intro {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cv-timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--secondary-color);
    opacity: 0.3;
}

.cv-timeline li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.cv-timeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cv-timeline li:hover::before {
    transform: scale(1.2);
    background-color: var(--secondary-color);
}

.cv-timeline .year {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(209, 204, 189, 0.4);
    /* Sanfter beige Hintergrund */
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.cv-timeline strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

/* Kontakt Section */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.contact-method:hover {
    color: var(--secondary-color);
}

.contact-method .icon {
    font-size: 1.8rem;
    background: var(--white);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.contact-method:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.contact-details .value {
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    border-top: 5px solid var(--secondary-color);
}

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

.footer-logo {
    height: 70px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Dunklere Linie für hellen Hintergrund */
    padding-top: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--primary-light);
    margin-left: 1.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-images-container {
        justify-content: center;
        margin-top: 2rem;
    }

    .hero-logo-container {
        top: -10px;
        left: -10px;
        padding: 0.8rem;
    }

    .hero-logo-large {
        width: 150px;
    }

    .hero-image {
        margin-top: 0;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-images {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin-bottom: 3rem;
    }

    .img-tradition,
    .img-modern {
        width: 100%;
        margin: 0;
        border: none;
    }

    .img-tradition {
        display: none;
        /* Auf kleinen Screens vereinfachen wir das Bild */
    }

    .img-modern {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .contact-box {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links a {
        margin: 0 0.5rem;
    }
}