@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .content {
    flex: 1 0 auto;
}

.content {
    padding-top: 20px; 
    padding-bottom: 40px;
}

.footer {
    flex-shrink: 0;
}

header, footer {
    background-color: #000;
    color: #fff;
}

img {
    height: auto;
}

p, li {
    font-size: 1.1rem;
}

a {
    color: #B93D27;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9E3521;
    text-decoration: underline;
}

button, .btn-primary {
    background-color: #B93D27 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* 2. Der Ziegel-Header & Footer (Puristisch) */
.brick-header, .footer {
    width: 100%;
    min-height: 110px;
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    /* Stabiles Ziegelmuster - Rot auf Dunkelbraun */
    background-color: #2a0e0a; 
    background-image:
        linear-gradient(335deg, #B93D27 12px, transparent 12px),
        linear-gradient(155deg, #B93D27 12px, transparent 12px),
        linear-gradient(335deg, #B93D27 12px, transparent 12px),
        linear-gradient(155deg, #B93D27 12px, transparent 12px);
    background-size: 30px 30px;
    background-position: 0px 1px, 2px 18px, 15px 16px, 18px 3px;
}

.brick-header {
    border-bottom: 2px solid #000;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    flex-wrap: wrap;
    gap: 15px;
}

.footer {
    border-top: 2px solid #000;
}

/* 3. Das Menü & Footer-Links (Kein Springen) */
.main-nav, .footer-nav {
    display: flex;
    gap: 10px;
}

.main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    z-index: 10;
}

.main-nav a, .footer-nav a {
    color: #fff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    background: #000;
    padding: 8px 18px;
    border: 2px solid #fff; 
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

/* Vision Cards and One-Pager Spacing */
.vision-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    contain: content;
}

@media (max-width: 992px) {
    .vision-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .vision-card {
        padding: 1.5rem 1rem;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Anchor links for headings */
h4 {
    position: relative;
}

.anchor-link {
    font-size: 0.7em;
    color: #ccc;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
    text-decoration: none !important;
    cursor: pointer;
}

h4:hover .anchor-link {
    opacity: 1;
}

/* Copy notification toast */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
}

.vision-card h4 {
    color: #8F1402;
    font-weight: 700;
    text-align: left;
}

.vision-card p {
    text-align: left;
    font-size: 1.1rem;
}

.vision-card ul {
    text-align: left;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.vision-card li {
    text-align: left;
    font-size: 1.1rem;
}

section {
    padding: 10px 0;
}

.section-divider {
    height: 5px;
}
/* Scroll Arrow Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
}

#start {
    position: relative;
    min-height: 70vh;
}

.scroll-arrow {
    color: #B93D27;
    font-size: 2.5rem;
    animation: bounce 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none !important;
    will-change: transform;
    pointer-events: none;
    cursor: default;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: none;
    color: #B93D27;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-7px);}
}

/* Hide scroll arrow when user has scrolled down significantly or direction is down */
/* Rule removed to keep arrow permanently visible */

/* Custom Trig-JS Transition Enhancements */
.enable-trig {
    transition: opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1), 
                transform 1.5s cubic-bezier(0.2, 1, 0.3, 1),
                filter 1.5s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, transform, filter;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.trig-fade-up {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    filter: blur(12px);
}

.trig-fade-up.trig {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* 4. Die Titel-Box (Gerade & Simpel) */
.title-container {
    background: #000;
    padding: 5px 20px;
    border: 2px solid #fff;
    text-align: center;
    box-shadow: none; /* Kein Schatten für Puristen-Look */
}

.brick-header h1 {
    color: #fff;
    font-size: 1.4rem; 
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
}

.brick-header h1 span {
    color: #fff; /* Wort FEUER in Weiß */
}

/* Mobile Optimierung */
@media (max-width: 1100px) {
    .brick-header, .footer {
        height: auto;
        min-height: 150px;
        flex-direction: column;
        padding: 25px 20px;
        gap: 15px;
    }
    .main-nav, .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .main-nav {
        position: relative; 
        top: 0; 
        right: 0; 
        transform: none;
        order: 2;
    }
    .brick-header a {
        order: 1;
    }
}

@media (max-width: 480px) {
    .brick-header h1 {
        font-size: 1.1rem;
    }
    .main-nav a {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Custom links */
.custom-link {
    color: #B93D27 !important;
    text-decoration: none;
}

.custom-link:hover {
    text-decoration: underline;
}

img-comparison-slider {
    --divider-width: 3px;
    --divider-color: #B93D27;
    --default-handle-color: #B93D27;
    --default-handle-width: 60px;
}

/* Lightbox & Interactive Images */
.clickable-img {
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.clickable-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.img-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.img-container::after {
    content: '\f00e'; /* FontAwesome search-plus icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 1; /* Permanently visible */
    transition: background 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.img-container:hover::after {
    background: #B93D27; /* Turn brand color on hover */
    transform: scale(1.1);
}

.img-caption {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.modal-dialog-lightbox {
    max-width: 95vw;
    margin: 1.75rem auto;
}

.modal-content-lightbox {
    background-color: transparent;
    border: none;
    width: fit-content;
    margin: auto;
    position: relative;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.btn-close-white {
    background-color: #B93D27;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 1060;
    border: 2px solid white !important;
}

/* Checkbox styling to match primary color */
.form-check-input:checked {
    background-color: #B93D27 !important;
    border-color: #B93D27 !important;
}

.form-check-input:focus {
    border-color: #B93D27 !important;
    box-shadow: 0 0 0 0.25rem rgba(185, 61, 39, 0.25) !important;
}

