/* style.css - Kernbohrtechnik Peter Schirra */

:root {
    --bg-color: #e6e6e6; /* Fallback */
    --concrete-gray: #b5b5b5;
    --dark-concrete: #8c8c8c;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --accent: #d4b581; /* Edles Beige */
    --accent-hover: #c2a16d;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-dark-bg: rgba(26, 26, 26, 0.85);
    --transition: all 0.3s ease;
}

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

body, html {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    /* Graue Sichtbeton-Optik als Hintergrund */
    background-color: #8c8c8c;
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

section {
    padding: 100px 0;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.glass-panel-dark {
    background: var(--glass-dark-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0, 0.4);
    border-radius: 16px;
    color: var(--text-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 60px 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

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

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

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    text-transform: lowercase;
}

.logo-text small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--dark-concrete);
    letter-spacing: 0.05em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-transform: uppercase;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin-bottom: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Weicher dunkler Verlauf zur Lesbarkeit */
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.7) 100%);
    z-index: 1;
}

/* Fallback/Default Hero Image - uses body background now */
.hero-section::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 80px;
    width: 100%;
}

.hero-logo-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    width: 360px;
    max-width: 35vw;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-text-col {
    flex: 1;
}

.accent {
    color: var(--accent);
}

.hero-content p.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Section Title */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title p {
    font-size: 1.25rem;
    color: #4a4a4a;
    font-weight: 500;
}

/* Vorteile */
.vorteile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vorteil-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.vorteil-card:hover {
    transform: translateY(-5px);
}

.vorteil-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.vorteil-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Leistungen */
.leistungen-section {
    padding: 80px 0;
}

.leistungen-content h2 {
    color: var(--accent);
    margin-bottom: 40px;
}

.leistungen-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.leistung-item h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leistung-item p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Galerie Slider */
.galerie-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.galerie-slider-outer {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.galerie-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.galerie-slide {
    flex: 0 0 35%;
    padding: 0 10px;
    box-sizing: border-box;
}

.galerie-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
}

.galerie-slide img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.slider-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(212, 181, 129, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    user-select: none;
    z-index: 10;
    line-height: 1;
}

.slider-arrow:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2010;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
    user-select: none;
    z-index: 2010;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--accent); }

/* Kontakt */
.kontakt-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.kontakt-info h2 {
    text-align: left;
    margin-bottom: 20px;
}

.kontakt-info > p {
    font-size: 1.15rem;
    font-weight: 500;
    color: #4a4a4a;
}

.info-details {
    margin-top: 30px;
    font-size: 1.1rem;
}

.info-details p {
    margin-bottom: 15px;
}

.info-details a:hover {
    color: var(--accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-glass {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.form-feedback {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.form-feedback.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.form-feedback.error {
    background: #ffebee;
    color: #c62828;
}

/* Footer */
.main-footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 60px 0 20px;
}

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

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1); /* Macht schwarzes Logo weiß */
    margin-bottom: 15px;
}

.footer-logo p {
    color: #999;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-social svg {
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* Responsive */
@media (max-width: 992px) {
    .kontakt-container {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .mobile-toggle {
        display: block;
    }

    .logo img {
        height: 62px; /* Größeres Logo im Header auf Mobil */
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;   /* Kein vertikales Zentrieren auf mobil */
        padding-top: 110px;        /* Genug Abstand zum fixed Header */
        padding-bottom: 60px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-logo-col {
        display: none; /* Logo in Hero auf Mobile ausblenden */
    }

    .hero-logo-img {
        display: none;
    }

    .hero-text-col {
        text-align: center;
    }

    .logo-text {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .leistungen-list {
        grid-template-columns: 1fr;
    }

    /* Slider: 2 Bilder auf Mobil */
    .galerie-slide {
        flex: 0 0 50%;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
