/* ============================================================
   Wandgestaltung Shop — Premium Editorial Design
   Minimal, calm, high-end wall & interior brand
   ============================================================ */

:root {
    /* Neutral, soft palette */
    --color-bg: #f6f5f2;
    --color-bg-pure: #fffefc;
    --color-surface: #ffffff;
    --color-text: #2c2b28;
    --color-text-soft: #5a5854;
    --color-text-muted: #8c8984;
    --color-border: #e4e1db;
    --color-border-soft: #ebe9e4;
    --color-accent: #5C2E2E;
    --color-accent-hover: #2E2E2E;
    --color-success: #5a7c65;
    --color-danger: #a65d58;
    --color-danger-soft: #c48f8b;
    /* Legacy aliases for compatibility */
    --primary-color: var(--color-accent);
    --secondary-color: var(--color-text-soft);
    --success-color: var(--color-success);
    --danger-color: var(--color-danger);
    --light-bg: var(--color-bg);
    --border-color: var(--color-border);
    --text-muted: var(--color-text-muted);
    --text-primary: var(--color-text);
    --text-secondary: var(--color-text-soft);
    /* Spacing – generous white space */
    --space-section: 6rem;
    --space-section-sm: 4rem;
    --space-block: 2.5rem;
    --space-unit: 1.5rem;
    --container-max: 1320px;
    --radius: 0;
}

/* ------------------------------------------------------------ Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
}

main {
    flex: 1;
}

main:has(.google-reviews-section) {
    display: flex;
    flex-direction: column;
}

/* Homepage: body background matches the footer's darkest tone so
   any flex-stretch gap blends invisibly with the burgundy footer area. */
.page-homepage {
    background-color: #311d22;
}

/* Prevent main from flex-growing on the homepage — eliminates the band
   of body-background that would otherwise appear between the last section
   and the footer on viewports taller than the page content. */
.page-homepage main {
    flex: 0 0 auto;
}

/* ------------------------------------------------------------ Typography */
h1, h2, h3, h4, h5, h6 {
    /*font-family: 'Cormorant Garamond', 'Georgia', serif;*/
    font-family: 'Urbanist', 'Georgia', serif;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.01em;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.3px;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: var(--space-unit);
    font-weight: 600;
    letter-spacing: -0.2px;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4, h5, h6 { font-weight: 500; }

p {
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-text-soft);
}

.lead {
    font-size: 1.125rem;
    color: var(--color-text-soft);
    letter-spacing: 0.02em;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.display-4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.text-white h5 {
    color: var(--color-bg-pure) !important;
}

/* ------------------------------------------------------------ Layout & containers */
.container {
    max-width: var(--container-max);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

section {
    margin-bottom: var(--space-section);
}

section:last-of-type {
    margin-bottom: var(--space-section-sm);
}

/* ------------------------------------------------------------ Navigation */
.navbar {
    padding: 1.75rem 0;
    background-color: var(--color-bg-pure) !important;
    border-bottom: 1px solid var(--color-border-soft);
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text) !important;
    letter-spacing: 0.03em;
}


.nav-link {
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--color-text-soft) !important;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-text) !important;
}

.navbar-light .navbar-toggler {
    border-color: var(--color-border);
}

.dropdown-menu {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(44, 43, 40, 0.06);
}

.dropdown-item {
    color: var(--color-text-soft);
}

.dropdown-item:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ------------------------------------------------------------ User dropdown menu (Header kullanıcı menüsü) */
.user-dropdown-menu,
.user-menu-wrap .user-menu-dropdown {
    min-width: 220px; /* Menü minimum genişliği */
    max-width: min(92vw, 320px); /* Küçük ekranlarda taşmayı engeller */
    margin-top: 0.65rem; /* İkon ile menü arasındaki boşluk */
    padding: 10px; /* Menü iç boşluğu */
    overflow: hidden; /* Hover arka planının köşelerde taşmasını engeller */
    background: rgba(255,255,255,0.72); /* Cam efekti arka plan */
    backdrop-filter: blur(12px); /* Cam efekti blur */
    -webkit-backdrop-filter: blur(12px); /* Safari blur desteği */
    border: 1px solid rgba(255,255,255,0.35); /* Cam efekti dış çizgi */
    border-radius: 16px; /* Menü köşe yuvarlama */
    box-shadow: 0 20px 45px rgba(0,0,0,0.18); /* Menü gölgesi */
    transform-origin: top right; /* Açılış animasyonunun çıkış noktası */
}

.user-menu-wrap .user-menu-dropdown.show {
    animation: userDropdownIn 180ms ease-out; /* Menü açılırken animasyon */
}

@keyframes userDropdownIn {
    from {
        opacity: 0; /* Başlangıçta görünmez */
        transform: translateY(-6px) scale(0.98); /* Hafif yukarıdan gelir */
    }
    to {
        opacity: 1; /* Tam görünür */
        transform: translateY(0) scale(1); /* Normal konuma oturur */
    }
}

.user-menu-wrap .user-menu-header {
    padding: 10px 10px 8px; /* Header iç boşluğu */
    pointer-events: none; /* Header satırı tıklanamaz */
}

.user-dropdown-menu .dropdown-header,
.user-menu-wrap .user-menu-header {
    background: transparent; /* Header satırı arka planı */
    font-weight: 600; /* Header yazı kalınlığı */
    color: #111; /* Header metin rengi */
}

.user-menu-wrap .user-menu-name {
    display: block; /* Satır düzeni */
    font-weight: 600; /* İsim kalınlığı */
    color: var(--color-text); /* İsim rengi */
    line-height: 1.2; /* Satır yüksekliği */
}

.user-menu-wrap .user-menu-email {
    display: block; /* Alt satırda mail */
    margin-top: 0.2rem; /* İsim-mail arası boşluk */
    font-size: 0.82rem; /* Mail font boyutu */
    color: var(--color-text-soft); /* Mail rengi */
    opacity: 1; /* Tam opaklık */
    line-height: 1.3; /* Okunabilir satır yüksekliği */
}

.user-menu-wrap .user-menu-dropdown .dropdown-divider {
    border-top-color: var(--color-border-soft); /* Ayraç rengi */
    margin: 0.25rem 0; /* Ayraç etrafında hafif boşluk */
}

.header-icons .user-menu-wrap .user-menu-dropdown {
    float: none; /* Header genel ul float kuralını dropdown için sıfırlar */
}

.user-menu-wrap .user-menu-dropdown li {
    display: block; /* Header genel li inline-block kuralını dropdown için sıfırlar */
    margin: 0; /* Satır dış boşluklarını sıfırlar */
    padding: 0; /* Satır iç boşluklarını sıfırlar */
}

.user-dropdown-menu a,
.user-menu-wrap .user-menu-dropdown a,
.user-menu-wrap .user-menu-dropdown li > a.dropdown-item {
    display: flex; /* İkon + metin hizalaması */
    align-items: center; /* Dikey orta hizalama */
    gap: 10px; /* İkon-metni arası boşluk */
    width: 100%; /* Tıklanabilir alan menü genişliği kadar */
    box-sizing: border-box; /* Padding dahil tam genişlik */
    margin: 0; /* Kenar boşluğu yok */
    padding: 10px 10px; /* Satır iç boşluk */
    border-radius: 10px; /* Link satırı köşe yuvarlama */
    color: #1a1a1a; /* Link metin rengi */
    text-decoration: none; /* Alt çizgiyi kapat */
    opacity: 1; /* Tam görünürlük */
    transition: background-color 0.18s ease, transform 0.18s ease; /* Hover geçişi */
}

.user-menu-wrap .user-menu-dropdown li > a.dropdown-item i {
    color: var(--color-text-soft); /* İkon varsayılan rengi */
    opacity: 1; /* Tam görünürlük */
    font-size: 0.97rem; /* İkon boyutu */
}

.user-menu-wrap .user-menu-dropdown li > a.dropdown-item:hover i,
.user-menu-wrap .user-menu-dropdown li > a.dropdown-item:focus i {
    color: var(--color-text); /* Hover/focus ikon rengi */
    opacity: 1;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu a:focus,
.user-menu-wrap .user-menu-dropdown li > a.dropdown-item:hover,
.user-menu-wrap .user-menu-dropdown li > a.dropdown-item:focus {
    background: #d4d4d48c; /* Hover/focus satır arka planı */
    transform: translateX(2px); /* Hover'da hafif sağa kayma */
}

/* ------------------------------------------------------------ User dropdown menu - mobile uyum */
@media (max-width: 575px) {
    .user-dropdown-menu,
    .user-menu-wrap .user-menu-dropdown {
        min-width: 220px; /* Mobilde okunabilir minimum genişlik */
        width: min(78vw, 260px); /* Mobilde daha ideal/sıkı genişlik */
        max-width: calc(100vw - 20px); /* Ekran taşmasını önler */
        margin-top: 0.5rem; /* Tetikleyici ikon ile menü arası boşluk */
        position: absolute !important; /* Sayfayla birlikte kayması için absolute */
        top: 100%; /* Tetikleyici ikonun hemen altına konumlanır */
        right: -6px; /* Sağ kenara fazla yapışmayı azaltır */
        left: auto; /* Sola sabitlemeyi kapatır */
        z-index: 1060; /* Header içeriklerinin üstünde kalır */
    }

    .user-menu-wrap .user-menu-dropdown.dropdown-menu-end {
        right: 0; /* Mobilde sağa hizalı kalır */
        left: auto; /* Sola kaymayı engeller */
        transform: none !important; /* Bootstrap konum düzeltmesini nötrler */
    }

    .user-menu-wrap .user-menu-header,
    .user-dropdown-menu .dropdown-header,
    .user-menu-wrap .user-menu-dropdown a,
    .user-menu-wrap .user-menu-dropdown li > a.dropdown-item {
        padding: 11px 12px; /* Mobilde satır yüksekliğini dengeler */
        white-space: normal; /* Uzun metinlerin taşmadan satır kırmasını sağlar */
    }
}

/* ------------------------------------------------------------ Buttons */
.btn {
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    transition: all 0.2s ease;
    border-width: 1px;
    /*letter-spacing: 0.02em;*/
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-pure);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-bg-pure);
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:first-child:active,
:not(.btn-check) + .btn-primary:active {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-bg-pure);
}

.btn-primary:focus-visible,
.btn-primary:focus {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-pure);
    box-shadow: 0 0 0 0.25rem rgba(91, 35, 40, 0.35);
}

.btn-outline-primary {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-pure);
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:first-child:active,
:not(.btn-check) + .btn-outline-primary:active {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-bg-pure);
}

.btn-outline-primary:focus-visible,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(91, 35, 40, 0.25);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-secondary {
    border-color: var(--color-border);
    color: var(--color-text-soft);
}

.btn-outline-secondary:hover {
    background-color: var(--color-bg);
    border-color: var(--color-text-soft);
    color: var(--color-text);
}

.btn-outline-success {
    border-color: var(--color-success);
    color: var(--color-success);
}

.btn-outline-success:hover {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-bg-pure);
}

.btn-outline-danger {
    border-color: var(--color-danger-soft);
    color: var(--color-danger);
}

.btn-outline-danger:hover {
    background-color: rgba(166, 93, 88, 0.08);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.btn-success {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-bg-pure);
}

.btn-success:hover {
    background-color: #4a6b54;
    border-color: #4a6b54;
    color: var(--color-bg-pure);
}

.btn-outline-warning {
    border-color: #a89880;
    color: #6b5d4d;
}

.btn-outline-warning:hover {
    background-color: rgba(168, 152, 128, 0.12);
    border-color: #8a7a6a;
    color: #5a4d40;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
}

/* ------------------------------------------------------------ Cards */
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-surface);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    border-color: var(--color-border-soft);
}

.product-card {
    overflow: hidden;
}

/* Square image container: the <a> wrapper is the ratio-constrained box.
   Double-locking (ratio on wrapper + img) works reliably on Android Chrome,
   Samsung Internet, and iOS Safari regardless of flex-item height quirks. */
.product-card > a {
    display: block;           /* block in column-flex card layout */
    aspect-ratio: 1 / 1;     /* fixed square container */
    overflow: hidden;         /* clip any resize overflow */
    flex-shrink: 0;           /* prevent flex from squishing the image row */
    border-radius: .375rem .375rem 0 0; /* match Bootstrap card top radius */
}

.product-card .card-img-top {
    width: 100%;
    height: 100%;             /* fill the fixed-ratio <a> container */
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;     /* belt-and-suspenders for browsers without parent ratio */
}

.product-card img {
    transition: transform .4s ease, filter .4s ease;
}

.product-card:hover img {
    transform: scale(1.03);
    filter: brightness(.92);
}

.collection-card {
    overflow: hidden;
}

.collection-card .collection-cover {
    transition: transform .4s ease, filter .4s ease;
}

.collection-card:hover .collection-cover {
    transform: scale(1.03);
    filter: brightness(.92);
}

.product-card .btn {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.card-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
}

.card-header.bg-primary {
    background-color: var(--color-accent) !important;
    color: var(--color-bg-pure);
    border-bottom: none;
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.125rem;
}

.card-title a {
    color: var(--color-text);
}

.card-title a:hover {
    color: var(--color-accent);
}

/* ------------------------------------------------------------ Forms */
.form-control,
.form-select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    background-color: var(--color-bg-pure);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.form-control:hover,
.form-select:hover {
    background-color: #f5f3f1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(61, 58, 53, 0.08);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

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

.iconinput-group {
    position: relative;
}

.iconinput-group input {
    padding-left: 2rem;
}
.iconinput-group i {
    position: absolute;
    top: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

/* ------------------------------------------------------------ Alerts */
.alert {
    border-radius: var(--radius);
    border-width: 1px;
    border-left-width: 4px;
    padding: 1.25rem 1.5rem;
}

.alert-primary {
    background-color: var(--color-bg);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.alert-success {
    background-color: rgba(90, 124, 101, 0.08);
    border-color: var(--color-success);
    color: #3d5a45;
}

.alert-danger {
    background-color: rgba(166, 93, 88, 0.06);
    border-color: var(--color-danger);
    color: #7a4542;
}

.alert-info {
    background-color: rgba(92, 88, 84, 0.06);
    border-color: var(--color-text-muted);
    color: var(--color-text-soft);
}

/* ------------------------------------------------------------ Tables */
.table {
    margin-bottom: 0;
    border-color: var(--color-border);
}

.table th {
    border-top: none;
    border-bottom: 1px solid var(--color-border);
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1.25rem 1rem;
}

.table td {
    padding: 1.25rem 1rem;
    border-color: var(--color-border);
    color: var(--color-text-soft);
}

.table-hover tbody tr:hover {
    background-color: var(--color-bg);
}

/* ------------------------------------------------------------ Badges & utilities */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius);
}

.bg-primary { background-color: var(--color-accent) !important; }
.bg-success { background-color: var(--color-success) !important; }
.bg-danger { background-color: var(--color-danger) !important; }
.bg-light { background-color: var(--color-bg) !important; }
.text-primary { color: var(--color-accent) !important; }

/* Footer tek parça modern yapı */

.site-footer {
    margin-top: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
                linear-gradient(140deg, #5c3136 0%, #46282d 55%, #311d22 100%) !important;
    border-top: 0;
}

/* Artık tek gövde, iki parça hissi yok */
.site-footer-main {
    padding: 4.2rem 0 3.0rem;
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Okunurluk için çok hafif bir karartma katmanı */
.site-footer-body {
    position: relative;
}

.site-footer-body::before {
    content: "";
    position: absolute;
    inset: -22px -16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.06) 55%, rgba(0,0,0,0.12) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    z-index: -1;
}

/* Intro */
.site-footer-intro {
    max-width: 820px;
    margin-bottom: 4rem;
}

.site-footer-kicker {
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer-intro h3 {
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: clamp(1.55rem, 2.6vw, 2.3rem);
    font-weight: 700;
    line-height: 1.2;
}

.site-footer-intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.75;
}

/* Kolonlar */
.site-footer-col h5 {
    margin-bottom: 0.78rem;
    font-weight: 700;
    font-size: 1.03rem;
    color: #fff;
}

.site-footer-col p,
.site-footer-col a,
.site-footer-col li {
    color: rgba(255, 255, 255, 0.87);
    font-size: 0.94rem;
    line-height: 1.72;
}

.site-footer-links {
    columns: 1;
    column-gap: 1.1rem;
    margin: 0;
}

.site-footer-links li {
    break-inside: avoid;
    margin-bottom: 0.45rem;
}

.site-footer-links a {
    text-decoration: none;
    font-weight: 400;
    transition: color .2s ease, font-weight .2s ease;
}

.site-footer-links a:hover {
    color: #fff !important;
    font-weight: 700;
}

/* Kontakt blok */
.site-footer-contact-lines {
    display: grid;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
}

.site-footer-contact-lines i {
    color: rgba(255, 255, 255, 0.92);
    margin-right: 0.4rem;
}

.site-footer-contact-lines div,
.site-footer-contact-lines a {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Social alanı küçük bir ayrımla daha premium dursun */
.site-footer-social-block {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.10);
}

/* Social icon listesi — yatay, hover efektli */
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0.6rem 0 0;
    list-style: none;
}

.footer-social-links li {
    display: flex;
}

.footer-social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease,
                border-color 0.22s ease, transform 0.22s ease;
}

.footer-social-links li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-3px);
}

/* Grid: 2×2 — başlıklar aynı satırda hizalı */
.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 4rem;
    row-gap: 3.5rem;
    margin-top: 4rem;
}


/* Mobil: tek sütun */
@media (max-width: 991.98px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
        row-gap: 2.8rem;
    }
}

/* "Hauptwebsite besuchen" CTA link */
.site-footer-main-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}

.site-footer-main-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.9);
}

/* Motif daha elegan watermark */
.site-footer-motive {
    position: absolute;
    right: -34px;
    bottom: -8px;
    width: clamp(360px, 40vw, 640px);
    opacity: 0.20;
    z-index: 1;
    pointer-events: none;
    filter: blur(0.2px);
}

.site-footer-motive img {
    width: 100%;
    display: block;
}

/* Bottom */
.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding: 1rem 0 1.15rem;
    position: relative;
    z-index: 2;
}

.site-footer-bottom p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.45;
}

/* Cookie-Einstellungen button in footer — visually matches footer text links */
.site-footer-cookie-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    font-family: inherit;
    line-height: 1.45;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.site-footer-cookie-btn:hover,
.site-footer-cookie-btn:focus-visible {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.55);
    outline: none;
}

/* ------------------------------------------------------------ Google reviews section */
.google-reviews-section {
    --reviews-cream: #f7f1ea;
    --reviews-cream-deep: #ebddd1;
    --reviews-burgundy: var(--color-accent);
    --reviews-burgundy-deep: #3f2024;
    --reviews-gold: #c7a469;
    --reviews-border: rgba(92, 46, 46, 0.14);
    --reviews-shadow: 0 22px 60px rgba(92, 46, 46, 0.12);
    position: relative;
    flex: 1 0 auto;
    margin-bottom: 0 !important;
    padding: clamp(3rem, 5.5vw, 4.35rem) 0 clamp(1.85rem, 4vw, 2.6rem);
    background:
        radial-gradient(circle at top right, rgba(199, 164, 105, 0.14) 0%, transparent 28%),
        linear-gradient(180deg, rgba(255, 254, 252, 0.98) 0%, var(--reviews-cream) 56%, var(--reviews-cream-deep) 100%);
    overflow: hidden;
}

.google-reviews-section::before,
.google-reviews-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.google-reviews-section::before {
    left: -8%;
    bottom: 14%;
    width: clamp(220px, 28vw, 360px);
    height: clamp(220px, 28vw, 360px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 46, 46, 0.08) 0%, rgba(92, 46, 46, 0) 72%);
}

.google-reviews-section::after {
    left: clamp(1.5rem, 4vw, 3.5rem);
    right: clamp(1.5rem, 4vw, 3.5rem);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(92, 46, 46, 0.16) 14%, rgba(199, 164, 105, 0.55) 50%, rgba(92, 46, 46, 0.16) 86%, transparent 100%);
}

.google-reviews-shell {
    position: relative;
    z-index: 1;
}

.google-reviews-intro {
    margin-bottom: clamp(1.15rem, 2.4vw, 1.85rem);
}

.google-reviews-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.85fr);
    gap: 1.5rem 2rem;
    align-items: end;
}

.google-reviews-copy-block {
    max-width: 60rem;
}

.google-reviews-eyebrow {
    margin: 0 0 0.9rem;
    color: var(--reviews-burgundy);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.google-reviews-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.35rem, 4.4vw, 4rem);
    font-weight: 600;
    line-height: 0.98;
    color: var(--reviews-burgundy-deep);
}

.google-reviews-copy {
    margin: 0.8rem 0 0;
    max-width: 50ch;
    color: var(--color-text-soft);
    font-size: 0.98rem;
    line-height: 1.68;
}

.google-reviews-score {
    padding: 1.35rem 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--reviews-border);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 18px 46px rgba(92, 46, 46, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.google-reviews-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.google-reviews-google-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.google-reviews-google-logo svg {
    display: block;
    width: auto;
    height: 22px;
}

.google-reviews-brand-text {
    color: var(--color-text-soft);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.google-reviews-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.55rem;
}

.google-reviews-stars,
.google-review-stars {
    color: var(--reviews-gold);
    letter-spacing: 0.18em;
}

.google-reviews-stars {
    font-size: 0.95rem;
}

.google-reviews-rating-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.7rem;
    font-weight: 600;
    line-height: 1;
    color: var(--reviews-burgundy-deep);
}

.google-reviews-rating-text {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

.google-reviews-marquee {
    position: relative;
    overflow: hidden;
    padding-block: 0.25rem;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.google-reviews-track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    animation: google-reviews-scroll 34s linear infinite;
    will-change: transform;
}

.google-reviews-marquee:hover .google-reviews-track,
.google-reviews-marquee:focus-within .google-reviews-track {
    animation-play-state: paused;
}

@keyframes google-reviews-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.google-review-card {
    position: relative;
    flex: 0 0 clamp(250px, 26vw, 320px);
    min-height: auto;
    padding: 1.05rem 1.15rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--reviews-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 249, 244, 0.88) 100%);
    box-shadow: 0 16px 36px rgba(92, 46, 46, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.google-review-card::before {
    content: "\201c";
    position: absolute;
    top: 0.65rem;
    right: 0.95rem;
    color: rgba(92, 46, 46, 0.08);
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    line-height: 0.7;
}

.google-review-card::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(92, 46, 46, 0) 0%, rgba(199, 164, 105, 0.62) 50%, rgba(92, 46, 46, 0) 100%);
}

.google-review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(92, 46, 46, 0.22);
    box-shadow: 0 28px 72px rgba(92, 46, 46, 0.15);
}

.google-review-card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.google-review-stars {
    font-size: 0.76rem;
}

.google-review-label {
    color: rgba(92, 46, 46, 0.7);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.google-review-quote {
    margin: 0;
    color: var(--color-text);
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.google-reviews-actions {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.google-reviews-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    justify-content: center;
    padding: 0.74rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(92, 46, 46, 0.18);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 30px rgba(92, 46, 46, 0.08);
    color: var(--reviews-burgundy-deep);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.google-reviews-cta-secondary {
    background: rgba(255, 255, 255, 0.38);
    box-shadow: none;
}

.google-reviews-cta i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.google-reviews-cta:hover,
.google-reviews-cta:focus {
    color: #fff;
    background: var(--reviews-burgundy);
    border-color: var(--reviews-burgundy);
    transform: translateY(-2px);
}

.google-reviews-cta:hover i,
.google-reviews-cta:focus i {
    transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
    .google-reviews-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
                mask-image: none;
    }

    .google-reviews-track {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .google-reviews-heading-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .google-reviews-section {
        padding: 2.7rem 0 2rem;
    }

    .google-reviews-score {
        padding: 1.2rem 1.25rem;
    }

    .google-review-card {
        flex-basis: 260px;
        padding: 1rem 1rem 0.95rem;
        border-radius: 18px;
    }

    .google-review-card::before {
        top: 0.6rem;
        right: 0.8rem;
        font-size: 3.2rem;
    }

    .google-reviews-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .google-reviews-cta {
        width: 100%;
    }
}

/* Mobil */
@media (max-width: 991.98px) {
    .site-footer-main {
        padding: 3rem 0 2rem;
    }

    .site-footer-intro {
        margin-bottom: 1.35rem;
    }

    .site-footer-body::before {
        inset: -16px -10px;
        border-radius: 16px;
    }

    .site-footer-motive {
        opacity: 0.12;
        right: -64px;
        bottom: 26px;
    }
}
/* ------------------------------------------------------------ Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--color-text);
}

.breadcrumb-item.active {
    color: var(--color-text-soft);
}

/* ------------------------------------------------------------ Pagination */
.pagination .page-link {
    color: var(--color-text-soft);
    border-color: var(--color-border);
    padding: 0.5rem 0.875rem;
}

.pagination .page-link:hover {
    background-color: var(--color-bg);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-pure);
}

/* ------------------------------------------------------------ Shadow override – minimal */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(44, 43, 40, 0.04) !important;
    border: 1px solid var(--color-border) !important;
}

/* ------------------------------------------------------------ Hero (fallback) */
.hero-section {
    background-color: var(--color-bg);
    margin-bottom: 0;
    padding: var(--space-section) 0;
    border-bottom: 1px solid var(--color-border-soft);
}

.hero-image {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder-icon {
    font-size: 12rem;
    color: var(--color-border);
}

/* ============================================================ Hero Slider — Cinematic + Glassmorphism
   V2 Ken Burns zoom · film grain · word-by-word reveal · glass card
   Swiper fade transition · circular nav · progress bars (bottom-right)
   ================================================================== */
.hero-slider {
    width: 100%;
    margin-bottom: 0;
}

.hero-swiper {
    width: 100%;
    height: 90vh;
    min-height: 580px;
    max-height: 920px;
}

/* ── Slide base ── */
.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

/* ── Slide image — <picture> element with object-fit cover ── */
.hero-swiper .slide-bg {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
    will-change: transform;
    /* Ken Burns runs on ALL slides from page load so they're in sync during cross-fade */
    animation: heroBgKenBurns 12s ease-out forwards;
}

.hero-swiper .slide-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes heroBgKenBurns {
    0%   { transform: scale(1.08) translate(0,     0    ); }
    100% { transform: scale(1.18) translate(-1.5%, -1.5%); }
}

/* ── V2 gradient — bottom vignette + faint left edge ── */
.hero-swiper .slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.62) 100%),
        linear-gradient( 90deg, rgba(8,4,2,0.28) 0%, rgba(8,4,2,0) 55%);
    z-index: 1;
}

/* ── Film grain (V2 signature) ── */
.hero-swiper .slide-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.065;
    mix-blend-mode: overlay;
    z-index: 2;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Content area — anchored at bottom, container-aligned ── */
/* padding mirrors .home-story-section's centered 1240px container:
   max(section-padding, (viewport - 1240px) / 2) */
.hero-swiper .slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10vh;
    z-index: 3;
    padding: 0 max(clamp(1.25rem, 5vw, 4rem), calc((100% - 1240px) / 2));
}

/* ── Content wrapper — left-aligned within full-bleed content band ── */
.slide-glass {
    display: block;
    max-width: min(720px, 85%);
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    padding: 0;
}

/* ── Kicker chip — gold dot (V2 gold palette) ── */
.slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.70rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    opacity: 0;
}

.slide-kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a96e;
    box-shadow: 0 0 8px #c9a96e;
    flex-shrink: 0;
}

/* ── Title ── */
.hero-swiper .slide-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.19;
    text-shadow: 0 2px 20px rgba(0,0,0,0.55);
}

/* Word-by-word reveal — .v2-word spans injected by JS */
.hero-swiper .slide-title .v2-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.hero-swiper .slide-title .v2-word > span {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
}

/* Italic golden accent (last word or .accent class) */
.hero-swiper .slide-title .v2-accent {
    font-style: italic;
    color: #c9a96e;
    font-weight: 500;
}

/* ── Subtitle ── */
.hero-swiper .slide-subtitle {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.72;
    max-width: 50ch;
    opacity: 0;
    text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}

/* ── CTA — white button, turns gold on hover (V2 style) ── */
.slide-actions { opacity: 0; }

.slide-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.9rem;
    background: #ffffff;
    color: #1e1512;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.slide-cta-primary .arrow { transition: transform 0.3s ease; }

.slide-cta-primary:hover {
    transform: translateY(-2px);
    background: #c9a96e;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.slide-cta-primary:hover .arrow { transform: translateX(4px); }

/* ── Entry animations ── */
@keyframes heroWordReveal {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Default: invisible on all slides */
.hero-swiper .slide-kicker,
.hero-swiper .slide-title .v2-word > span,
.hero-swiper .slide-subtitle,
.hero-swiper .slide-actions {
    opacity: 0;
}

/* Active slide — staggered cascade */
.hero-swiper .swiper-slide-active .slide-kicker {
    animation: heroFadeIn 0.8s ease 0.15s forwards;
}

.hero-swiper .swiper-slide-active .slide-title .v2-word > span {
    animation: heroWordReveal 0.9s cubic-bezier(.22,.85,.3,1) calc(0.38s + var(--i, 0) * 0.1s) forwards;
}

.hero-swiper .swiper-slide-active .slide-subtitle {
    animation: heroFadeUp 0.8s cubic-bezier(0.22,0.61,0.36,1) 0.85s forwards;
}

.hero-swiper .swiper-slide-active .slide-actions {
    animation: heroFadeUp 0.7s cubic-bezier(0.22,0.61,0.36,1) 1.1s forwards;
}

/* ── Navigation — circular glass buttons ── */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    padding: 0;
    line-height: 0;
}

.hero-nav svg { width: 19px; height: 19px; }

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-prev { left:  2rem; }
.hero-nav-next { right: 2rem; }

/* ── Pagination — thin progress bars, bottom-right
   Override Swiper defaults (.swiper-pagination-bullets adds left:0; width:100%)  ── */
.hero-pagination {
    position: absolute !important;
    bottom: 3rem !important;
    right: clamp(1.5rem, 6vw, 5.5rem) !important;
    left: auto !important;
    width: auto !important;
    transform: none !important;
    text-align: left !important;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hero-pagination .swiper-pagination-bullet {
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    transition: background 0.2s, width 0.2s;
}

.hero-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.45);
}

.hero-pagination .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.3);
    width: 52px;
}

.hero-pagination .swiper-pagination-bullet-active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left center;
    animation: heroBulletProgress 8s linear forwards;
}

@keyframes heroBulletProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── Scroll indicator — V2 text + animated line ── */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    animation: heroFadeIn 0.9s 1.6s ease backwards;
}

.hero-scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
    margin: 0.55rem auto 0;
    animation: heroScrollLine 2s ease-in-out infinite;
}

@keyframes heroScrollLine {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; transform-origin: top; }
    50%       { transform: scaleY(1);   opacity: 1;   transform-origin: top; }
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .hero-swiper { height: 78vh; min-height: 500px; }
    .slide-glass { max-width: 90%; }
    .hero-nav-prev { left: 1rem; }
    .hero-nav-next { right: 1rem; }
    .hero-pagination { right: 1.5rem !important; }
}

@media (max-width: 767.98px) {
    .hero-swiper { height: 72vh; min-height: 460px; }
    .hero-swiper .slide-content { padding: 0 1.5rem; bottom: 8vh; }
    .slide-glass { max-width: 100%; padding: 0 1rem; }
    .hero-nav { display: none; }
    .hero-pagination { right: 1.25rem !important; bottom: 2rem !important; }
    .hero-scroll-hint { display: none; }
}

@media (max-width: 479.98px) {
    .hero-swiper { height: 68vh; min-height: 420px; }
    .hero-swiper .slide-title { font-size: 1.9rem; }
    .hero-swiper .slide-subtitle { font-size: 0.9rem; }
    .slide-glass { padding: 0 1rem; }
}

/* ------------------------------------------------------------ Featured Categories */

.homepage-categories-section {
    background: #f5f3f0;
}

.category-col {
    padding: 0.75rem;
    margin-top: 0;
}

.category-box {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(44, 43, 40, 0.12);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.category-box:hover {
    box-shadow: 0 12px 36px rgba(44, 43, 40, 0.22);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Zoom the background image on hover */
.category-box:hover .category-image {
    transform: scale(1.06);
}

.category-image {
    width: 100%;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gradient overlay — stronger at bottom for name legibility */
.category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(20, 15, 10, 0.72) 0%,
        rgba(20, 15, 10, 0.18) 50%,
        rgba(20, 15, 10, 0) 100%
    );
    opacity: 0.9;
    transition: opacity 0.35s ease;
}

.category-box:hover .category-image::after {
    opacity: 1;
    background: linear-gradient(
        to top,
        rgba(20, 15, 10, 0.82) 0%,
        rgba(20, 15, 10, 0.28) 55%,
        rgba(20, 15, 10, 0.05) 100%
    );
}

.category-placeholder {
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-placeholder i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--color-text-muted);
}

/* Category name — bottom left */
.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.1rem 1.1rem;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 2rem;
    text-align: left;
    z-index: 2;
    letter-spacing: 0.01em;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* CTA label that appears on hover */
.category-hover-cta {
    position: absolute;
    bottom: 1.05rem;
    right: 1rem;
    z-index: 2;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-box:hover .category-hover-cta {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .category-name {
        font-size: 3rem;
        padding: 1rem;
    }
    .category-placeholder i { font-size: 2rem; }
}

@media (min-width: 768px) {
    .category-col {
        padding: 2.5%;
    }
}

@media (min-width: 1200px) {
    .category-col {
        padding: 0.75rem;
    }

    .category-name {
        font-size: 1.7rem;
    }
}


/* ------------------------------------------------------------ Product grid – large imagery feel */
.card-img-top {
    object-fit: cover;
}

/* Spacing for home/listing sections */
.py-5 {
    padding-top: var(--space-section) !important;
    padding-bottom: var(--space-section) !important;
}


.py-3r5 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.pt-0 {
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: var(--space-section-sm) !important;
        padding-bottom: var(--space-section-sm) !important;
    }
}


.product-detail-container {
    padding-top: 2rem;
    padding-bottom: var(--space-section) !important;
}
/* ------------------------------------------------------------ Dropdown submenu (nav) */
.dropdown-submenu { position: relative; }

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu { display: block; }

.dropdown-submenu > a.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: middle;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        left: 0;
        margin-left: 1rem;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }
    .dropdown-submenu:hover > .dropdown-menu { display: block; }
    .dropdown-submenu > a.dropdown-toggle::after {
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }
}

/* ------------------------------------------------------------ Nav tabs (product detail editor) */
.nav-tabs .nav-link {
    color: var(--color-text-soft) !important;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--color-accent) !important;
    border-bottom-color: var(--color-accent);
    background: transparent;
}

/* ------------------------------------------------------------ Img thumbnail (product gallery) */
.img-thumbnail {
    cursor: pointer;
    transition: border-color 0.2s ease;
    border: 1px solid var(--color-border);
    border-radius: 0;
}

.img-thumbnail:hover {
    border-color: var(--color-accent);
}

#product-description-tabs {
    margin-top: 30px;
}

#product-description-tabs .tab-content {
    padding: 2.2rem 1.2rem;
}

#product-description-tabs .nav-link {
    font-weight: 600;
    font-size: 1rem;
}

/* ------------------------------------------------------------ Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ------------------------------------------------------------ Messages */
.alert-dismissible .btn-close {
    filter: none;
    opacity: 0.6;
}

/* ------------------------------------------------------------ Responsive typography & spacing */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: var(--space-section-sm) 0;
        margin-bottom: 0;
    }
    .display-4 { font-size: 2rem; font-weight: 500; }
    .navbar { padding: 1.25rem 0; }
    .navbar-brand { font-size: 1.25rem; }
}

/* ------------------------------------------------------------ Subtle motion */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card {
    animation: fadeIn 0.35s ease;
}

/* ------------------------------------------------------------ Section headings – editorial */

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-4 {
    margin-bottom: 2.5rem !important;
}

.text-center.mb-5,
.mb-5 {
    margin-bottom: 3rem !important;
}



/* Checkout / cart summary cards */
.card-header.bg-light {
    background-color: var(--color-bg) !important;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.card-body .border-bottom {
    border-color: var(--color-border) !important;
}

.card-body .border-top {
    border-color: var(--color-border) !important;
}

.card-body .fw-bold.fs-4,
.card-body .fw-bold.fs-5 {
    color: var(--color-accent);
}


.favorite-toggle {
    z-index: 2;

}

.favorite-toggle.position-absolute {
    /* position-absolute buttons are the ones at the top right of the product cards */
    padding: 0.4rem 0.6rem;
}

/* Product list category filter */
.category-tree .category-item.active a {
    color: var(--color-accent) !important;
}
.category-tree .category-item a:hover {
    color: var(--color-accent) !important;
}


.product-dim-form input:focus {
     box-shadow: 0px 0px 3px 1px #c1c0bc;
}


.newsletter-form-ajax input {
    border: 2px solid #1a1a1a;
    border-radius: 20px;
    background: transparent;
}

.newsletter-form-ajax input:focus {
     box-shadow: 0px 0px 8px 4px rgba(0, 0, 0, .15);
}

.contact-form-ajax-page_contact input, .contact-form-ajax-page_contact textarea,
.contact-form-ajax-contact input, .contact-form-ajax-contact textarea
{
    border: 2px solid #1a1a1a;
    border-radius: 20px;
}

.contact-form-ajax-page_contact input:focus, .contact-form-ajax-page_contact textarea:focus {
     box-shadow: 0px 0px 8px 4px rgba(0, 0, 0, .15);
}

.newsletter-form-ajax button, .contact-form-ajax-page_contact button {
    border-radius: 20px;
}


.br-20 {
    border-radius: 20px;
}

.borderw-2 {
    border-width: 2px;
}


.temporarily-hidden {
    display: none !important;
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS (global)
   ============================================ */

.anim-text {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

.anim-img {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

.anim-text.is-visible,
.anim-img.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.nav-link.anim-text {
    transition: opacity 0.7s ease, transform 0.7s ease, color 0.2s ease;
}

.reseller-btn.anim-text {
    transition: opacity 0.7s ease, transform 0.7s ease, background-color 0.2s ease, color 0.2s ease;
}

.homepage-info-img-wrap.anim-img {
    transition: box-shadow 0.35s ease, opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: reduce) {
    .anim-text,
    .anim-img {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   Material Eigenschaften Card (.mat-eig-card)
   Used by the shared partial shop/components/material_eigenschaften_card.html
   ============================================================ */
.mat-eig-card {
    border: 1px solid #e8e1d9;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.mat-eig-header {
    background: #f7f2ed;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e8e1d9;
}

.mat-eig-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a3f35;
}

.mat-eig-list {
    padding: 0.5rem 0;
}

.mat-eig-list li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-bottom: 1px solid #f3ede7;
    font-size: 0.875rem;
}

.mat-eig-list li:last-child {
    border-bottom: none;
}

.mat-eig-label {
    min-width: 140px;
    flex-shrink: 0;
    font-weight: 500;
    color: #7b746d;
}

.mat-eig-value {
    font-weight: 600;
    color: #2d2419;
    word-break: break-word;
}

@media (max-width: 400px) {
    .mat-eig-list li {
        flex-direction: column;
        gap: 0.15rem;
    }

    .mat-eig-label {
        min-width: unset;
    }
}

/* -------------------------------------------------------- Material custom dropdown */
.mat-custom-dropdown {
    position: relative;
}

.mat-custom-toggle {
    width: 100%;
    border: 1px solid #dfd9d2;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    text-align: left;
    font-size: .9375rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mat-custom-toggle:hover,
.mat-custom-toggle:focus,
.mat-custom-toggle.show {
    border-color: #4b372d !important;
    color: #4b372d !important;
    background: #fff !important;
    box-shadow: 0 0 0 .15rem rgba(75, 55, 45, .15) !important;
}

.mat-custom-toggle.is-invalid {
    border-color: var(--bs-danger) !important;
    box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .25) !important;
}

.mat-custom-menu {
    width: 100%;
    border: 1px solid #e7ddd3;
    border-radius: 10px;
    padding: .3rem;
}

.mat-custom-item {
    border-radius: 8px;
    color: #4b372d;
    font-size: .9rem;
}

.mat-custom-item:hover,
.mat-custom-item:focus {
    background: #f7f2ed;
    color: #4b372d;
}

.mat-custom-item.active,
.mat-custom-item:active {
    background: #f3ebe4;
    color: #4b372d;
}

/* ============================================================
   Premium Material Cards (.mc-grid / .mc-card)
   Visual material selection replacing the text dropdown.
   Reference aesthetic: luxury interior design configurators.
   ============================================================ */
.mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.mc-grid--invalid {
    outline: 2px solid var(--bs-danger, #dc3545);
    outline-offset: 3px;
    border-radius: 14px;
}

.mc-card {
    position: relative;
    border: 2px solid #ece4db;
    border-radius: 12px;
    background: #fdfbf9;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    outline: none;
    padding: 0;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    width: 100%;
}

.mc-card:hover {
    border-color: #c4b5a5;
    box-shadow: 0 6px 20px rgba(45, 36, 25, 0.09);
    transform: translateY(-2px);
}

.mc-card:focus-visible {
    border-color: #5b2328;
    box-shadow: 0 0 0 3px rgba(91, 35, 40, 0.12);
}

.mc-card--selected {
    border-color: #b08d57;
    box-shadow: 0 4px 24px rgba(176, 141, 87, 0.18),
                0 1px 4px rgba(45, 36, 25, 0.06);
    background: #fffdf9;
}

.mc-card--selected:hover {
    border-color: #9a7a4a;
    transform: translateY(-1px);
}

.mc-card__check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #b08d57;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    box-shadow: 0 2px 8px rgba(176, 141, 87, 0.35);
    z-index: 2;
}

.mc-card--selected .mc-card__check {
    display: flex;
}

.mc-card__img-wrap {
    width: 100%;
    height: 96px;
    overflow: hidden;
    background: #f0e9e2;
    position: relative;
    border-bottom: 1px solid #ece4db;
}

.mc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mc-card:hover .mc-card__img {
    transform: scale(1.06);
}

.mc-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b8ad;
    font-size: 1.6rem;
}

.mc-card__body {
    padding: 0.55rem 0.65rem 0.5rem;
}

.mc-card__name {
    font-size: 0.82rem;
    font-weight: 650;
    color: #2d2419;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mc-card__price {
    font-size: 0.73rem;
    color: #8c7b6b;
    font-weight: 500;
}

.mc-card__price strong {
    color: #4b372d;
    font-weight: 700;
}

/* Mobile: always 2 columns */
@media (max-width: 480px) {
    .mc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .mc-card__img-wrap {
        height: 76px;
    }
    .mc-card__body {
        padding: 0.4rem 0.5rem 0.35rem;
    }
    .mc-card__name {
        font-size: 0.77rem;
    }
    .mc-card__price {
        font-size: 0.7rem;
    }
    .mc-card__info-link {
        font-size: 0.65rem;
        padding: 0.15rem 0;
    }
}

/* "Material ansehen" link inside each card */
.mc-card__info-link {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #8c7b6b;
    text-decoration: none;
    margin-top: 0.3rem;
    padding: 0.2rem 0;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mc-card__info-link:hover {
    color: #5b2328;
    text-decoration: underline;
}
.mc-card__info-link:focus-visible {
    outline: 2px solid rgba(91, 35, 40, 0.3);
    outline-offset: 1px;
    border-radius: 2px;
}

/* Product detail — compare link */
.pd-compare-link {
    font-size: 0.72rem;
    color: #8c7b6b;
    text-decoration: none;
    transition: color 0.15s;
    font-family: 'Inter', sans-serif;
}
.pd-compare-link:hover {
    color: #5b2328;
    text-decoration: underline;
}
.pd-compare-link .bi {
    font-size: 0.72rem;
    margin-right: 0.1rem;
}

/* Selection confirmation badge (appears briefly after picking a material) */
.mc-confirm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: #f5f0e8;
    border: 1px solid #d9c9a8;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b5a3e;
    margin-top: 0.5rem;
    animation: mc-badge-in 0.3s ease-out;
}
.mc-confirm-badge .bi { color: #b08d57; }

@keyframes mc-badge-in {
    0%   { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Smooth reveal for preview card and Eigenschaften card */
.mat-sel-preview-card,
.mat-eig-card {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mat-sel-preview-card[data-revealing="true"],
.mat-eig-card[data-revealing="true"] {
    animation: mc-card-reveal 0.35s ease-out;
}

@keyframes mc-card-reveal {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Material Selection Preview Card (.mat-sel-preview-card)
   Two-column layout: text left ~62%, image right ~38%.
   Shown inline below the material dropdown — before dimension inputs.
   Driven entirely by material_selector.js (updateMatPreviewCard).
   ============================================================ */
.mat-sel-preview-card {
    border: 1px solid #e2d9d1;
    border-radius: 12px;
    background: #fdf9f6;
    overflow: hidden;
}

/* Two-column flex container */
.mat-sel-preview-content {
    display: flex;
    align-items: stretch;
    min-height: 0;
}

/* LEFT column: name + property rows + Mehr Infos */
.mat-sel-preview-text {
    flex: 1;
    min-width: 0;
    padding: 0.95rem 1.1rem;
}

/* RIGHT column: texture image — always visible, shows img or placeholder */
.mat-sel-preview-media {
    flex: 0 0 38%;
    max-width: 38%;
    position: relative;
    overflow: hidden;
    border-left: 1px solid #ece4db;
    background: #f0e9e2;
    border-radius: 0 12px 12px 0;
    min-height: 130px;
}

.mat-sel-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder shown when no materialImageUrl is set */
.mat-sel-preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #b0a89e;
}
.mat-sel-preview-placeholder .bi {
    font-size: 1.5rem;
    opacity: 0.7;
}
.mat-sel-preview-placeholder span {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    padding: 0 0.5rem;
}

/* Material name */
.mat-sel-preview-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d2419;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

/* Property rows */
.mat-sel-preview-props {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    margin-bottom: 0;
}

.mat-sel-preview-props li {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.815rem;
    line-height: 1.4;
}

.mat-sel-prop-label {
    color: #7b746d;
    font-weight: 500;
    white-space: nowrap;
    min-width: 90px;
    flex-shrink: 0;
}

.mat-sel-prop-label::after {
    content: ':';
}

.mat-sel-prop-val {
    color: #2d2419;
    font-weight: 600;
}

/* Mehr Infos link */
.mat-sel-more-info-row {
    margin-top: 0.65rem;
}

.mat-sel-more-info-link {
    font-size: 0.8rem;
    color: #7c5c3a;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid #d4c4b0;
    border-radius: 20px;
    padding: 0.25rem 0.7rem;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mat-sel-more-info-link:hover {
    background: #f3ebe4;
    border-color: #b5997a;
    color: #4b372d;
}

/* Mobile (≤640px): single column — image below text */
@media (max-width: 640px) {
    .mat-sel-preview-content {
        flex-direction: column;
    }

    .mat-sel-preview-media {
        flex: 0 0 auto;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid #ece4db;
        border-radius: 0 0 12px 12px;
        min-height: 0;
        max-height: 170px;
        position: static;
    }

    .mat-sel-preview-img {
        position: static;
        height: 170px;
        object-fit: cover;
    }

    .mat-sel-prop-label {
        min-width: 80px;
    }
}

/* ============================================================
   Material Selection Preview Card — full-width image variant
   (Phase UX-P1: image + name only; detail info moved to Beschreibung tab)
   ============================================================ */

/* Full-width image area */
.mat-sel-preview-media-full {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: #f0e9e2;
    border-radius: 12px 12px 0 0;
}

.mat-sel-preview-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
    transition: opacity 0.18s ease; /* UX-P5: smooth fade on auto-slide + manual navigation */
}

.mat-sel-preview-placeholder-full {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #b0a89e;
}
.mat-sel-preview-placeholder-full .bi {
    font-size: 2rem;
    opacity: 0.6;
}
.mat-sel-preview-placeholder-full span {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* UX-P2: Gallery slider arrows + dots (shown inside mat-sel-preview-media-full) */
.mat-sel-gallery {
    position: relative;
    cursor: grab;
    user-select: none;
}
.mat-sel-gallery:active { cursor: grabbing; }

.mat-sel-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.82);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #4b372d;
    box-shadow: 0 2px 8px rgba(45,36,25,.18);
    cursor: pointer;
    z-index: 4;
    transition: background 0.15s, transform 0.15s;
    padding: 0;
    line-height: 1;
}
.mat-sel-gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}
.mat-sel-gallery-prev { left: 7px; }
.mat-sel-gallery-next { right: 7px; }

.mat-sel-gallery-dots {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 4;
}
.mat-sel-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.mat-sel-gallery-dot--active {
    background: #fff;
    transform: scale(1.25);
}

/* Premium material info panel inside the Beschreibung tab
   Layout: LEFT = image gallery, RIGHT = material facts */
.material-info-panel {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    padding: 1.2rem 0;
}

@media (max-width: 767.98px) {
    .material-info-panel {
        grid-template-columns: 1fr;
    }
    /* On mobile, stack gallery above facts */
    .mip-gallery-col { order: -1; }
    /* UX-P3: compact but visible mobile height (140-180px target) */
    .mat-sel-preview-media-full {
        height: 160px;
    }
}

.mip-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    min-height: 120px;
    background: #f0e9e2;
    border: 1px solid #e2d9d1;
}

/* Fix 1: mobile material info panel — cap image height to avoid oversized block */
@media (max-width: 767.98px) {
    .mip-image-wrap {
        aspect-ratio: unset;
        height: 160px;
        min-height: unset;
    }
}

.mip-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mip-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    color: #b0a89e;
    font-size: 0.8rem;
}

.mip-props {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mip-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d2419;
    margin-bottom: 0.9rem;
    line-height: 1.3;
}

.mip-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid #f0e8e0;
    font-size: 0.875rem;
}
.mip-row:last-child { border-bottom: none; }

.mip-label {
    color: #7b746d;
    font-weight: 500;
    min-width: 120px;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.mip-val {
    color: #2d2419;
    font-weight: 600;
    /* Fix 5: prevent Einsatzbereiche overflow on desktop */
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.mip-more-info {
    /* Kept for backward compat — no longer rendered by JS but avoids lint errors */
    display: none;
}

/* Material description block — shown when description_html or description is available */
.mip-description {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0e8e0;
    font-size: 0.875rem;
    color: #4e4a45;
    line-height: 1.7;
}
.mip-description p:last-child { margin-bottom: 0; }

/* Gallery column in material info panel */
.mip-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mip-gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Fix 2: fade transition for auto-slide */
    transition: opacity 0.18s ease;
}

.mip-thumb-strip {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.mip-thumb {
    width: 76px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #f0e9e2;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.mip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.mip-thumb.mip-thumb-active,
.mip-thumb:hover {
    border-color: #5b2328;
}

/* Skeleton shimmer — UX-P3 */
@keyframes mip-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.skeleton-shimmer {
    border-radius: 8px;
    background: linear-gradient(90deg, #f0ebe5 25%, #fdf9f6 50%, #f0ebe5 75%);
    background-size: 600px 100%;
    animation: mip-shimmer 1.4s ease-in-out infinite;
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}
.skeleton-shimmer * { visibility: hidden !important; }

/* UX-P4: Tab empty state — shown when no material is selected */
.dc-tab-empty-state {
    color: #8c7b6b;
    font-size: 0.875rem;
    font-style: italic;
    padding: 0.5rem 0 0.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.dc-tab-empty-state .bi { opacity: 0.65; font-style: normal; }

/* ============================================================
   Reusable section-header accent (used across cards site-wide)
   Matches .pd-price-header, .pd-step-card .card-header
   ============================================================ */
.dc-section-header {
    background: #f7f2ed;
    border-bottom: 1px solid #ece2d9;
    border-left: 3px solid #5b2328;
    padding: .78rem 1rem;
    color: #4b372d;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: .01em;
}
.dc-section-header h5,
.dc-section-header h6 {
    margin: 0;
    color: #4b372d;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: .01em;
}

/* ============================================================
   Full-width Beschreibung tab section
   ============================================================ */
.pd-desc-section {
    background: #fff;
    border: 1px solid #e9e3dc;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.pd-desc-section .nav-tabs {
    background: #f7f2ed;
    border-bottom: 1px solid #ece2d9;
    border-left: 3px solid #5b2328;
    padding: 0 1rem;
    gap: 0;
}

.pd-desc-section .nav-tabs .nav-link {
    color: #6b5c52;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.72rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s, border-color 0.15s;
}
.pd-desc-section .nav-tabs .nav-link.active {
    color: #5b2328;
    font-weight: 700;
    border-bottom-color: #5b2328;
    background: transparent;
}
.pd-desc-section .tab-content {
    padding: 1.2rem 1.4rem;
}

/* ============================================================
   Cart-success modal
   ============================================================ */
.dc-cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 14, 0.48);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}
.dc-cart-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.dc-cart-modal {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(30, 20, 14, 0.22), 0 2px 8px rgba(30, 20, 14, 0.10);
    padding: 2.2rem 2rem 1.8rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.22s ease;
}
.dc-cart-modal-overlay.is-open .dc-cart-modal {
    transform: translateY(0) scale(1);
}
.dc-cart-modal-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
}
.dc-cart-modal-check svg {
    width: 32px;
    height: 32px;
    stroke: #2e7d32;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    transition: stroke-dashoffset 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.dc-cart-modal-overlay.is-open .dc-cart-modal-check svg {
    stroke-dashoffset: 0;
}
.dc-cart-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d2419;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.dc-cart-modal-sub {
    font-size: 0.88rem;
    color: #7b746d;
    margin-bottom: 1.6rem;
}
.dc-cart-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.dc-cart-modal-actions .btn-go-cart {
    background: #5b2328;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.dc-cart-modal-actions .btn-go-cart:hover {
    background: #7a3038;
    transform: translateY(-1px);
    color: #fff;
}
.dc-cart-modal-actions .btn-keep-shopping {
    background: transparent;
    color: #5b2328;
    border: 1.5px solid #d5ccc4;
    border-radius: 10px;
    padding: 0.6rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.dc-cart-modal-actions .btn-keep-shopping:hover {
    border-color: #5b2328;
    background: #fdf5f0;
    transform: translateY(-1px);
}

/* ============================================================
   Dimension + Quantity input premium depth */
/* ============================================================ */
/* -------------------------------------------------------- Dimension + Quantity input premium depth */

/* Subtle inset shadow and warm-brand focus ring on Höhe, Breite, Fläche, Menge inputs */
#heightCm,
#widthCm,
#areaDisplay,
#quantity {
    box-shadow:
        0 1px 3px rgba(45, 36, 25, 0.07),
        inset 0 1px 2px rgba(45, 36, 25, 0.05);
    border-color: #d5ccc4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#heightCm:focus,
#widthCm:focus,
#quantity:focus {
    border-color: #a07a52;
    box-shadow:
        0 0 0 3px rgba(124, 92, 58, 0.10),
        0 1px 3px rgba(45, 36, 25, 0.07),
        inset 0 1px 2px rgba(45, 36, 25, 0.04);
    outline: none;
}

/* -------------------------------------------------------- Ähnliche Produkte cards */
.related-products-grid .card-title {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.5;
}
.related-products-grid .card-title a {
    color: #6c757d;
}
.related-products-grid .card-title a:hover {
    color: var(--color-accent);
}

.related-products-grid .card a {
    display: block;
    overflow: hidden;
    border-radius: .375rem .375rem 0 0;
}
.related-products-grid .card a .card-img-top {
    transition: transform 0.35s ease;
}
.related-products-grid .card a:hover .card-img-top {
    transform: scale(1.07);
}

/* ============================================================
   DC TOAST NOTIFICATION SYSTEM
   ============================================================ */

#dc-toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: 380px;
    width: 380px;
    pointer-events: none;
}

.dc-toast {
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .85rem 1rem .85rem .95rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.13), 0 1px 4px rgba(0,0,0,.07);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
    /* entrance/exit */
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .34s ease, transform .34s cubic-bezier(.22,.61,.36,1);
    will-change: transform, opacity;
}

.dc-toast--in  { opacity: 1; transform: translateX(0); }
.dc-toast--out { opacity: 0; transform: translateX(32px); }

/* Colour variants */
.dc-toast--success { border-left-color: #6a3737; }
.dc-toast--success .dc-toast__icon { color: #6a3737; }

.dc-toast--error   { border-left-color: #6a3737; }
.dc-toast--error   .dc-toast__icon { color: #6a3737; }

.dc-toast--warning { border-left-color: #fd7e14; }
.dc-toast--warning .dc-toast__icon { color: #fd7e14; }

.dc-toast--info    { border-left-color: #0d6efd; }
.dc-toast--info    .dc-toast__icon { color: #0d6efd; }

.dc-toast--primary { border-left-color: var(--color-accent); }
.dc-toast--primary .dc-toast__icon { color: var(--color-accent); }

.dc-toast__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.dc-toast__body {
    font-size: .9rem;
    color: #2d2d2d;
    line-height: 1.45;
    flex: 1;
}

.dc-toast__close {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: .25rem;
    flex-shrink: 0;
    transition: color .15s ease;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dc-toast__close:hover { color: #333; }

/* Progress bar */
.dc-toast__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: currentColor;
    opacity: .25;
    transform-origin: left;
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
    #dc-toast-container {
        bottom: .75rem;
        right: 50%;
        transform: translateX(50%);
        width: 92vw;
        max-width: 92vw;
    }

    .dc-toast {
        transform: translateY(-16px);
    }
    .dc-toast--in  { transform: translateY(0); }
    .dc-toast--out { transform: translateY(-20px); }

    .dc-toast__close {
        min-width: 36px;
        min-height: 36px;
        font-size: 1.5rem;
    }
}



.img-triple-button-container {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 480px), (min-width: 768px) and (max-width: 990px)  {
    .img-triple-button-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .img-triple-button-container .sm-colspan2 { /*  button:nth-child(3) {*/
        grid-column: span 2;
        margin-left: 0 !important;
        margin-top: 0.75rem;
    }

    .img-triple-button-container button {
        padding: 0.75rem 0.5rem;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   Compact Trust Row
   ─────────────────────────────────────────────────────────────────────────
   Reusable horizontal badge strip for product detail, cart and checkout
   pages. Communicates 4,8 Google rating + secure payment + Austrian
   production. Stacks vertically on small screens.
   ════════════════════════════════════════════════════════════════════════ */

.compact-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .9rem;
    padding: .65rem .85rem;
    margin: 1rem 0;
    background: #fdf8f0;
    border: 1px solid rgba(184, 134, 11, .18);
    border-radius: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .82rem;
    color: #2a2a2a;
    line-height: 1.35;
}

.compact-trust-row__item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #3a3a3a;
}

.compact-trust-row__sep {
    width: 1px;
    height: 14px;
    background: rgba(0, 0, 0, .14);
    display: inline-block;
}

.compact-trust-row__stars {
    color: #f5b041;
    letter-spacing: .04em;
    font-size: .9rem;
    line-height: 1;
}

.compact-trust-row__icon {
    color: #b8860b;
    font-size: 1rem;
    line-height: 1;
}

.compact-trust-row__strong { font-weight: 600; color: #1a1a1a; }

@media (max-width: 575.98px) {
    .compact-trust-row {
        gap: .35rem .7rem;
        font-size: .78rem;
        padding: .6rem .7rem;
    }
    .compact-trust-row__sep { display: none; }
}


/* ════════════════════════════════════════════════════════════════════════
   Site-wide Top Bar — Google rating + CTA
   ─────────────────────────────────────────────────────────────────────────
   Slim utility strip rendered in base.html before <header>. Communicates
   the 4,8 Google rating across every page.
   ════════════════════════════════════════════════════════════════════════ */

.site-topbar {
    background: #1a1a1a;
    color: #f5f5f5;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .82rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.site-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: .55rem clamp(.85rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-topbar-rating {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
    color: #f5f5f5;
    line-height: 1.2;
}
.site-topbar-stars {
    color: #f5b041;
    letter-spacing: .08em;
    font-size: .95rem;
}
.site-topbar-rating strong { font-weight: 600; }
.site-topbar-rating-meta { color: #cfcfcf; }

.site-topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #f5f5f5;
    text-decoration: none;
    padding: .25rem .7rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.site-topbar-cta:hover,
.site-topbar-cta:focus {
    background: #b8860b;
    color: #fff;
    border-color: #b8860b;
    text-decoration: none;
}
.site-topbar-cta i { font-size: .9rem; }

@media (max-width: 575.98px) {
    .site-topbar-inner {
        padding: .5rem .85rem;
        font-size: .76rem;
    }
    .site-topbar-rating-meta { display: none; }
    .site-topbar-cta span:not(:last-child) { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   Footer Google reviews link
   ════════════════════════════════════════════════════════════════════════ */

.site-footer-google-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1rem;
    padding: .55rem .9rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    line-height: 1.3;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.site-footer-google-link:hover,
.site-footer-google-link:focus {
    background: rgba(184,134,11,.18);
    color: #f0d68a;
    border-color: rgba(184,134,11,.55);
    text-decoration: none;
}
.site-footer-google-link strong { font-weight: 600; }
.site-footer-google-stars {
    color: #f5b041;
    letter-spacing: .06em;
    font-size: .9rem;
    line-height: 1;
}
.site-footer-google-link i { font-size: .95rem; }

/* ── Header icon tooltips ─────────────────────────────────────────────────
   Minimal CSS-only tooltips for .dc-icon-tip[data-tip] list items.
   Shows on hover/focus on desktop; hidden on mobile (<992px). */
.dc-icon-tip {
    position: relative;
}
.dc-icon-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(30, 21, 18, 0.92);
    color: #f5f3ef;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 9999;
}
.dc-icon-tip:hover::after,
.dc-icon-tip:focus-within::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 991.98px) {
    .dc-icon-tip::after { display: none; }
}
