/* ===== CSS Variables ===== */
:root {
    --primary-gold: #C9A961;
    --dark-gray: #3A3A3A;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(201, 169, 97, 0.3);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: var(--primary-gold);
}

.nav-menu .btn-primary {
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
}

.nav-menu .btn-primary:hover {
    background-color: var(--dark-gray);
    color: var(--primary-gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 90px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('static/dachintro.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.85) 0%, rgba(44, 44, 44, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-gray);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-gold);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* ===== Values Section ===== */
.values {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 20px;
}

.value-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.value-card h2 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-gold);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: var(--primary-gold);
    color: var(--white);
}

.feature-item:hover .feature-icon svg {
    stroke: var(--white);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--dark-gray);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.feature-item:hover h4 {
    color: var(--white);
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.service-image {
    height: 100%;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 58, 58, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.service-card:hover .service-overlay {
    background: rgba(201, 169, 97, 0.8);
}

.service-overlay h3 {
    color: var(--white);
    font-size: 1.8rem;
    text-align: center;
    padding: 20px;
}

.service-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--dark-gray);
}

/* ===== Vision Section ===== */
.vision {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, #2C2C2C 100%);
    color: var(--white);
}

.vision-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-gold);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
}

.vision-item h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.vision-item p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Process Section ===== */
.process {
    padding: 100px 0;
    background-color: var(--white);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-gold);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    margin-bottom: 60px;
    padding: 0 50px;
}

.process-step:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 80px);
}

.process-step:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 80px);
}

.process-number {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    background-color: var(--primary-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 0 0 10px var(--white);
}

.process-step:nth-child(odd) .process-number {
    right: calc(50% - 30px);
}

.process-step:nth-child(even) .process-number {
    left: calc(50% - 30px);
}

.process-step h3 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.contact-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 60px;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-button {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.contact-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
    border-color: var(--primary-gold);
}

.contact-button-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    transition: all 0.3s ease;
}

.contact-button:hover .contact-button-icon {
    background-color: var(--dark-gray);
    transform: scale(1.1);
}

.contact-button-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-button-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-button-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-button-value {
    font-size: 1.5rem;
    color: var(--dark-gray);
    font-weight: 700;
}

.contact-button:hover .contact-button-value {
    color: var(--primary-gold);
}

.contact-address {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.address-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
}

.address-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.address-text {
    text-align: left;
}

.address-text h4 {
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.address-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--primary-gold);
    font-style: italic;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-gold);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-gold);
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 30px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        padding-left: 80px !important;
        padding-right: 20px !important;
        text-align: left !important;
    }

    .process-number {
        left: 0 !important;
        right: auto !important;
    }

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

@media (max-width: 768px) {
    .service-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-image {
        min-height: 250px;
    }

    .service-content {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .hero {
        margin-top: 80px;
    }

    .logo img {
        height: 50px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .values-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-button {
        padding: 30px 20px;
    }

    .contact-button-icon {
        width: 80px;
        height: 80px;
    }

    .contact-button-value {
        font-size: 1.3rem;
    }

    .contact-address {
        flex-direction: column;
        text-align: center;
    }

    .address-text {
        text-align: center;
    }
}

/* ===== Legal Pages (Impressum & Datenschutz) ===== */
.legal-page {
    padding: 150px 0 80px;
    background-color: var(--light-gray);
    min-height: 100vh;
}

.legal-content {
    background-color: var(--white);
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-gold);
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.legal-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-content ul li {
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.8;
}

.legal-content a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--dark-gray);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.legal-back {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.legal-back .btn {
    display: inline-block;
    color: var(--white);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 120px 0 60px;
    }

    .legal-content {
        padding: 40px 30px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 30px 20px;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }
}
