/* ==========================================
   MFG BAUUNTERNEHMUNG - STYLESHEET
   ========================================== */

/* ========== VARIABLEN - FARBEN ========== */
:root {
    /* Hauptfarben - Logo-basiert */
    --color-primary: #60564a;
    --color-secondary: #93261f;
    --color-accent: #93261f;
    
    /* Textfarben */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-white: #ffffff;
    
    /* Hintergrundfarben */
    --color-bg: #ffffff;
    --color-bg-light: #f5f3f0;
    --color-bg-dark: #60564a;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    
    /* Sonstiges */
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.1);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, .nav-link, .btn {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ========== HEADER / NAVIGATION ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg);
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo img {
    height: 100px;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
    background: rgba(147, 38, 31, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideshow 10s infinite;
}

.hero-slideshow img:nth-child(1) {
    animation-delay: 0s;
}

.hero-slideshow img:nth-child(2) {
    animation-delay: 5s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(96, 86, 74, 0.4), rgba(96, 86, 74, 0.8));
    z-index: -1;
}

@keyframes slideshow {
    0% { opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 1; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* ========== PAGE HEADER (Unterseiten) ========== */
.page-header {
    background: var(--color-primary);
    color: #ffffff;
    padding-top: 110px;
    padding-bottom: 30px;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-header h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== SECTIONS ========== */
.section {
    padding: var(--spacing-lg) 0;
}

.section:nth-child(even) {
    background: var(--color-bg-light);
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ========== ABOUT SECTION ========== */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* ========== TEAM SECTION ========== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.team-card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.team-role {
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.team-bio {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========== TEAM SHOWCASE ========== */
.team-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.team-showcase .team-card,
.certificate-card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.certificate-card img {
    max-width: 232px;
    margin: 0 auto;
    border-radius: var(--border-radius);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.certificate-label {
    color: var(--color-secondary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .team-showcase {
        grid-template-columns: 1fr;
    }
}

/* ========== HANDWERKSZEICHEN / GUILD SECTION ========== */
.guild-section {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background: var(--color-bg);
}

.guild-container {
    text-align: center;
}

.guild-emblem {
    width: 120px;
    height: auto;
    margin: 0 auto var(--spacing-sm);
    opacity: 0.85;
    transition: var(--transition);
}

.guild-emblem:hover {
    opacity: 1;
    transform: scale(1.05);
}

.guild-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* ========== MINIMAL HEADER (nur Home) ========== */
.header-minimal {
    background: var(--color-bg);
    text-align: center;
    padding: var(--spacing-sm);
    box-shadow: none;
    position: relative;
}

.header-minimal .header-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ========== HERO HOME (größer, mit Logo) ========== */
.hero-home {
    min-height: 60vh;
    padding-top: 0;
}

.hero-logo {
    width: 180px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--border-radius);
}

/* ========== NAV BAR (unter Hero) ========== */
.nav-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    background: var(--color-bg);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-bar .nav-link {
    font-weight: 500;
    color: var(--color-text);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-bar .nav-link:hover,
.nav-bar .nav-link.active {
    color: var(--color-text-white);
    background: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(147, 38, 31, 0.4);
}

/* ========== SERVICES SECTION ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.service-card p {
    color: var(--color-text-light);
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info h2,
.contact-form-wrapper h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-item h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ========== FORM STATUS ========== */
.form-status {
    margin-top: var(--spacing-sm);
    padding: 0;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-status-success {
    color: #2d7a3a;
}

.form-status-error {
    color: var(--color-secondary);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-text-white);
}

.btn-primary:hover {
    background: #7a1f19;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.footer-col h4 {
    color: #c4544e;
    margin-bottom: var(--spacing-sm);
}

.footer-col a,
.footer-col p {
    display: block;
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-xs);
}

.footer-col a:hover {
    color: #c4544e;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ========== ANIMATIONEN ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ========== CARD UPGRADE (Team & Services) ========== */
.team-card, .service-card, .certificate-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card::before, 
.service-card::before, 
.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; 
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover::before, 
.service-card:hover::before,
.certificate-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover, .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.15);
}

.team-image {
    width: 180px;
    height: 180px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-title {
    color: #ffffff !important; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    margin-bottom: 10px;
}

.hero-subtitle {
    color: #f0f0f0 !important;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ========== GALERIE STYLE (Card Version) ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.gallery-image-wrapper {
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-content {
    padding: 20px;
    text-align: center;
}

.gallery-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.gallery-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.15);
}

.gallery-item:hover::before {
    transform: scaleX(1);
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-sm);
        box-shadow: var(--shadow);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* ========== HERO WATERMARK ========== */
.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: auto;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content > *:not(.hero-watermark) {
    position: relative;
    z-index: 1;
}
