/* 
   Metallbau-Onepager Style Sheets
   Light & Steel Navy Blue Premium Design
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --bg-light-100: #ffffff; /* Primary light background */
    --bg-light-200: #f4f6f9; /* Secondary light blueish-grey background */
    --bg-light-300: #eef1f6; /* Inputs / Tertiary light elements */
    
    --blue-primary: #1d3557; /* Deep steel/navy blue (rich contrast) */
    --blue-light: #457b9d;   /* Steel blue highlight */
    --blue-dark: #102035;    /* Dark navy blue */
    --blue-warm: #f0f4f8;    /* Very light blue-grey tint for focus/hover */
    
    --text-main: #1d242e;
    --text-muted: #54657a;
    --text-light: #ffffff;
    
    --border-color: rgba(29, 53, 87, 0.15);
    --border-color-hover: rgba(29, 53, 87, 0.4);
    
    --blue-glow: rgba(29, 53, 87, 0.1);
    --blue-glow-strong: rgba(29, 53, 87, 0.25);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --max-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-primary) var(--bg-light-300);
}

/* Custom Scrollbar for Chrome/Safari/Edge */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light-300);
}
::-webkit-scrollbar-thumb {
    background: var(--blue-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--blue-primary);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light-100);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 700;
}

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

/* --- Container Utility --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(29, 53, 87, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo svg {
    transition: var(--transition-smooth);
}

.logo:hover svg {
    transform: rotate(60deg);
}

.logo span {
    background: linear-gradient(135deg, var(--text-main) 50%, var(--blue-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 6px 0;
    color: var(--text-muted);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue-primary);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--blue-primary);
}

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

/* Mobile Toggle Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-main);
    margin: 6px auto;
    transition: var(--transition-smooth);
}

/* --- Hero Section (Light Mode Overlay on Workshop Image) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Light haze overlay to make dark welding photo blend perfectly with white design */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, var(--bg-light-100) 95%), 
                linear-gradient(90deg, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0.5) 100%),
                url('assets/hero_bg.png') no-repeat center center/cover;
    padding-top: var(--header-height);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(29, 53, 87, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-family: 'Outfit', sans-serif;
    color: var(--blue-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tagline::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: var(--blue-primary);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero-title span {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 60%, var(--blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.btn-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--blue-primary);
    color: var(--text-light);
    border: 1px solid var(--blue-primary);
    box-shadow: 0 4px 15px rgba(29, 53, 87, 0.2);
}

.btn-primary:hover {
    background-color: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: 0 4px 20px var(--blue-glow-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(29, 53, 87, 0.2);
}

.btn-secondary:hover {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
    background-color: var(--blue-warm);
    transform: translateY(-2px);
}

/* --- Section Structure & Headings --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-tag {
    color: var(--blue-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--blue-primary);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- Services / Gallery Section --- */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px auto;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3/2;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    background-color: var(--bg-light-200);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(29, 53, 87, 0.95) 0%, rgba(29, 53, 87, 0.5) 70%, transparent 100%);
    color: #fff;
    transform: translateY(100%);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 25px rgba(29, 53, 87, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.gallery-desc {
    font-size: 0.85rem;
    color: #e5e9f0;
}

.gallery-note {
    text-align: center;
    max-width: 820px;
    margin: 50px auto 0 auto;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--blue-primary);
    background-color: var(--blue-warm);
    border: 1px solid var(--border-color);
    padding: 18px 28px;
    border-radius: 8px;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(29, 53, 87, 0.03);
}

/* --- About Section (Über Uns) --- */
.about-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-title {
    font-size: 2.2rem;
    line-height: 1.25;
}

.about-text {
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--blue-primary);
    border-left: 3px solid var(--blue-primary);
    padding-left: 20px;
    margin-top: 24px;
    line-height: 1.4;
}

/* --- Contact Section (Kontakt) --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-title {
    font-size: 1.8rem;
    margin-bottom: -10px;
}

.contact-info-desc {
    color: var(--text-muted);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: var(--bg-light-200);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.contact-method-item:hover {
    border-color: var(--border-color-hover);
    background: var(--blue-warm);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: var(--blue-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--blue-primary);
    stroke-width: 1.5;
    fill: none;
}

.contact-method-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-method-details p, .contact-method-details a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-method-details a:hover {
    color: var(--blue-primary);
}

/* Contact Form */
.contact-form {
    background: var(--bg-light-200);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.form-control {
    background-color: var(--bg-light-100);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-primary);
    background-color: var(--blue-warm);
    box-shadow: 0 0 8px var(--blue-glow-strong);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231d3557'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-light-100);
    cursor: pointer;
    position: relative;
    margin-top: 3px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--blue-primary);
    border-color: var(--blue-primary);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid var(--text-light);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group label a {
    color: var(--blue-primary);
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-group label a:hover {
    color: var(--blue-dark);
}

/* Form Response Messages */
.form-feedback {
    display: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-feedback.success {
    display: block;
    background-color: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: #2e7d32;
}

.form-feedback.error {
    display: block;
    background-color: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.3);
    color: #c62828;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-light-200);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo .logo {
    font-size: 1.35rem;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-bottom-links button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: var(--transition-fast);
    padding: 0;
}

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

/* --- Modals for Legal Information --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 53, 87, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    background-color: var(--bg-light-100);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), 0 0 30px var(--blue-glow);
}

.modal.active .modal-content {
    transform: translateY(0);
}

/* --- Lightbox Modal Styles --- */
.lightbox-modal .modal-backdrop {
    background-color: rgba(20, 26, 35, 0.82);
}

/* Outer wrapper: row layout on desktop (prev | content | next) */
.lightbox-wrapper {
    position: relative;
    z-index: 2001;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.active .lightbox-wrapper {
    transform: scale(1);
}

/* Keep original lightbox-content as the image column */
.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 70vw;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 8px;
    border: 4px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background-color: #fff;
    transition: opacity 0.2s ease;
}

.lightbox-content img.fading {
    opacity: 0;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 38px;
    height: 38px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.lightbox-counter {
    margin-top: 8px;
    color: rgba(255,255,255,0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
}

/* Desktop navigation arrows */
.lightbox-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
}

.lightbox-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Mobile controls: hidden on desktop */
.lightbox-controls-mobile {
    display: none;
}



.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--bg-light-100);
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.4rem;
    color: var(--blue-primary);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.03);
}

.modal-close:hover {
    color: var(--text-main);
    background-color: rgba(0, 0, 0, 0.08);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.modal-body {
    padding: 24px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.modal-body h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    color: var(--text-main);
}

.modal-body h4:first-of-type {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 14px;
}

.modal-body ul {
    margin-bottom: 14px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 6px;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-light), var(--blue-primary));
    z-index: 1002;
    transition: width 0.1s ease;
}

/* --- Trust Stats Bar --- */
.trust-bar {
    background-color: var(--bg-light-200);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
    position: relative;
    z-index: 5;
}

.trust-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 160px;
}

.trust-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--blue-primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.trust-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.trust-divider {
    width: 1px;
    height: 45px;
    background-color: var(--border-color);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Floating Scroll-to-Top Button --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--blue-primary);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 53, 87, 0.2);
}

.scroll-top svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--blue-dark);
    box-shadow: 0 6px 20px var(--blue-glow-strong);
}

.scroll-top:hover svg {
    transform: translateY(-2px);
}

/* --- About Badges (Über Uns) --- */
.about-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 35px 0;
}

.about-badge {
    background: var(--bg-light-100);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: var(--transition-fast);
}

.about-badge:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 53, 87, 0.08);
}

.about-badge svg {
    width: 26px;
    height: 26px;
    stroke: var(--blue-primary);
    stroke-width: 1.8;
    fill: none;
    flex-shrink: 0;
}

.about-badge span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* --- Media Queries --- */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Navigation drawer for mobile */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-light-100);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .logo span {
        line-height: 1.1;
    }
    
    /* Animated Hamburger Menu */
    .nav-toggle.open .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--blue-primary);
    }
    .nav-toggle.open .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--blue-primary);
    }
    
    .hero {
        text-align: center;
        justify-content: center;
    }
    
    .hero-content {
        align-items: center;
        max-width: 100%;
    }
    
    .hero-tagline::before {
        display: none;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .btn-container {
        justify-content: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .gallery-item {
        aspect-ratio: 3/2;
    }
    
    .about-tagline {
        text-align: center;
        border-left: none;
        border-top: 3px solid var(--blue-primary);
        padding-left: 0;
        padding-top: 16px;
        margin-top: 20px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 40px;
    }

    .trust-divider {
        display: none;
    }
    
    .trust-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    
    .trust-stat {
        min-width: 0;
    }
    
    .trust-number {
        font-size: 2.3rem;
    }
    
    .about-badges {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }

    /* Lightbox Mobile: hide desktop arrows, show mobile controls */
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    .lightbox-controls-mobile {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 16px;
    }

    .lightbox-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .lightbox-content img {
        max-width: 90vw;
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .gallery-item {
        aspect-ratio: 4/3;
    }
}
