/* Header - Linie ausblenden */
.header--no-border {
    border-bottom: none !important;
}

/* Blog List Header - zentriert mit Icon (wie bei Produkten) */
.blog-list__header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 0 32px !important;
}

.blog-list__header-icon {
    display: block !important;
    width: 29px !important;
    margin: 0 0 15px !important;
}

.blog-list__header h2 {
    margin: 0 !important;
}

@media (min-width: 1024px) {
    .blog-list__header {
        margin: 0 0 46px !important;
    }
    
    .blog-list__header-icon {
        margin: 0 0 21px !important;
    }
}

/* Intro Text Grösse - Hero Text und Hero Image */
/* Gross - verwendet die vorherige Mittel-Grösse */
.intro-text-size-large .hero-text h1,
.intro-text-size-large .hero-image h1 {
    font-size: clamp(2.25rem, 5.39vw, 6.47rem) !important;
}

/* Mittel - 65% der Gross-Grösse */
.intro-text-size-medium .hero-text h1,
.intro-text-size-medium .hero-image h1 {
    font-size: clamp(1.46rem, 3.5vw, 4.21rem) !important;
}

/* Klein - 50% der Gross-Grösse */
.intro-text-size-small .hero-text h1,
.intro-text-size-small .hero-image h1 {
    font-size: clamp(1.13rem, 2.7vw, 3.24rem) !important;
}

/* Cards - Icons: Kein Hintergrund, angemessene Größe */
.card--icon figure {
    margin-bottom: 0 !important; /* Kein Abstand zwischen Icon und Titel */
    background-color: transparent !important; /* Kein Hintergrund */
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    max-width: 120px !important; /* Maximale Breite für Icons */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Cards - Icons: Angemessene Größe */
.card--icon figure img {
    object-fit: contain !important; /* Icons vollständig anzeigen, ohne abzuschneiden */
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 120px !important; /* Maximale Höhe für Icons */
    display: block !important;
    position: static !important; /* Überschreibe position: static aus Haupt-CSS */
}

/* Cards - Titel: Kein Abstand nach Icon */
.card--icon .cards-h4,
.card--icon .h4 {
    margin: 0 0 12px !important; /* Kein oberer Abstand, nur unterer Abstand bleibt */
}

@media (min-width: 1400px) {
    .cards-h4 {
        margin: 41px 0 12px;
    }
    
    /* Cards - Titel: Kein Abstand nach Icon auch auf Desktop */
    .card--icon .cards-h4,
    .card--icon .h4 {
        margin: 0 0 12px !important; /* Kein oberer Abstand, nur unterer Abstand bleibt */
    }
}

.gallery__header p {
  max-width: 55em;
}

/* Blog List Grid - Mehr Abstand zwischen Zeilen */
.blog-list__grid {
    row-gap: 50px; /* Größerer Abstand zwischen den Zeilen */
}

@media (min-width: 768px) {
    .blog-list__grid {
        row-gap: 60px; /* Noch größerer Abstand auf größeren Bildschirmen */
    }
}

@media (min-width: 1024px) {
    .blog-list__grid {
        row-gap: 80px; /* Maximaler Abstand auf Desktop */
    }
}

/* Products - Bilder nicht abschneiden */
.products .product__image figure {
    height: 0;
    padding-top: 118%; /* Behält das Seitenverhältnis der Kacheln bei (wie in styles.css) */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products .product__image figure img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 10px) !important; /* Minimales Padding für größere Bilder */
    max-height: calc(100% - 10px) !important; /* Minimales Padding für größere Bilder */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Bilder vollständig anzeigen, ohne abzuschneiden */
    object-position: center !important;
}

@media (min-width: 768px) {
    .products .product__image figure img {
        max-width: calc(100% - 20px) !important; /* Minimales Padding auf größeren Bildschirmen */
        max-height: calc(100% - 20px) !important;
    }
}

@media (min-width: 1400px) {
    .products .product__image figure img {
        max-width: calc(100% - 35px) !important; /* Minimales Padding auf großen Bildschirmen */
        max-height: calc(100% - 35px) !important;
    }
}


/* Blog List - Bilder auf 900x900 croppen (quadratisch) */
.blog-list .blog-card figure {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Quadratisches Seitenverhältnis 1:1 */
    overflow: hidden;
}

.blog-list .blog-card figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild wird auf 900x900 gecroppt */
    object-position: center;
}

/* Kacheltitel: semantisch h3, optisch wie bisher .blog-card h4 (globales h3 in styles.css ist größer) */
.blog-list .blog-card h3 {
    font-size: clamp(1.25rem, 1.1979166667vw, 1.4375rem);
    line-height: 1.22;
    font-weight: 500;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

@media (min-width: 1800px) {
    .blog-list .blog-card h3 {
        font-size: 28px;
        margin-right: 10px;
    }
}

/* Contact Form - Dropdown-Pfeil für Select-Felder */
.contact-form select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.75 0.75L5.75 5.75L10.75 0.75' stroke='%23868686' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

@media (max-width: 1399.98px) {
    .contact-form select.form-input {
        background-position: right 10px center;
        background-size: 20px auto;
        padding-right: 35px;
    }
}

/* Contact Form - Spaltenbreiten für 2-spaltige Formulare */
.contact-form .form__wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(20px * -0.5);
    margin-right: calc(20px * -0.5);
    margin-top: calc(20px * -1);
}

.contact-form .form__field {
    padding-left: calc(20px * 0.5);
    padding-right: calc(20px * 0.5);
    margin-top: 20px;
    width: 100%; /* Standard: volle Breite */
}

/* Mobile Spalten (col-1 bis col-12) */
.contact-form .form__field.col-1 { width: calc(8.333333% - 20px); }
.contact-form .form__field.col-2 { width: calc(16.666667% - 20px); }
.contact-form .form__field.col-3 { width: calc(25% - 20px); }
.contact-form .form__field.col-4 { width: calc(33.333333% - 20px); }
.contact-form .form__field.col-5 { width: calc(41.666667% - 20px); }
.contact-form .form__field.col-6 { width: calc(50% - 20px); }
.contact-form .form__field.col-7 { width: calc(58.333333% - 20px); }
.contact-form .form__field.col-8 { width: calc(66.666667% - 20px); }
.contact-form .form__field.col-9 { width: calc(75% - 20px); }
.contact-form .form__field.col-10 { width: calc(83.333333% - 20px); }
.contact-form .form__field.col-11 { width: calc(91.666667% - 20px); }
.contact-form .form__field.col-12 { width: calc(100% - 20px); }

/* Desktop Spalten (col-md-1 bis col-md-12) - ab 768px */
@media (min-width: 768px) {
    .contact-form .form__field.col-md-1 { width: calc(8.333333% - 20px); }
    .contact-form .form__field.col-md-2 { width: calc(16.666667% - 20px); }
    .contact-form .form__field.col-md-3 { width: calc(25% - 20px); }
    .contact-form .form__field.col-md-4 { width: calc(33.333333% - 20px); }
    .contact-form .form__field.col-md-5 { width: calc(41.666667% - 20px); }
    .contact-form .form__field.col-md-6 { width: calc(50% - 20px); }
    .contact-form .form__field.col-md-7 { width: calc(58.333333% - 20px); }
    .contact-form .form__field.col-md-8 { width: calc(66.666667% - 20px); }
    .contact-form .form__field.col-md-9 { width: calc(75% - 20px); }
    .contact-form .form__field.col-md-10 { width: calc(83.333333% - 20px); }
    .contact-form .form__field.col-md-11 { width: calc(91.666667% - 20px); }
    .contact-form .form__field.col-md-12 { width: calc(100% - 20px); }
}

/* Blog Post Meta-Informationen (Datum und Autor) */
.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-post-meta__date,
.blog-post-meta__author {
    display: inline-block;
}

.blog-post-meta__separator {
    margin: 0 0.5rem;
    color: #999;
}

@media (min-width: 768px) {
    .blog-post-meta {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

/* Hero Image - Fullscreen */
.hero-image {
    margin-top: 0 !important;
    margin-bottom: 60px !important; /* Abstand zum nächsten Block */
    position: relative;
}

@media (min-width: 1024px) {
    .hero-image {
        margin-bottom: 120px !important; /* Größerer Abstand auf Desktop */
    }
}

.hero-image__main {
    position: relative;
    width: 100%;
    height: 100vh; /* Fullscreen */
    overflow: hidden;
}

.hero-image__main figure {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-image__main figure img,
.hero-image__main figure video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-image__main figure video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero Image Overlay - zentriert */
.hero-image__overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

/* Hero Image Code - unten bündig */
.hero-image__code {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    margin: 0 !important;
}
