/* --- Design Tokens --- */
:root {
    /* --- Theme Variables (Light Mode Default) --- */
    --color-bg: #FFFFFF;
    /* Pure white bg for max contrast */
    --color-surface: #FAFAFA;
    --color-surface-alt: #F0F0F0;
    --color-surface-card: #FFFFFF;

    --color-text: #000000;
    /* Pure Black */
    --color-text-strong: #000000;
    --color-muted: #444444;
    /* Darker grey for readability */

    --color-gold: #882465;
    /* Classic Gold */
    --color-gold-dim: #ae1578;

    --color-border: #111111;
    /* Black/Dark borders in light mode */
    --color-border-light: #333333;

    --color-overlay-bg: rgba(255, 255, 255, 0.98);
    --color-header-scroll-bg: rgba(255, 255, 255, 0.95);

    --color-hero-text: #FFFFFF;
    /* Hero always needs white text due to image bg */
    --color-hero-overlay: radial-gradient(circle at 70% 50%, transparent 0%, rgba(0, 0, 0, 0.4) 120%);

    --map-filter: none;
    --img-brightness: brightness(1);
    /* Full brightness in light mode */
    --nav-blend-mode: normal;
    --header-text: #000000;
    --header-bg-scroll: rgba(255, 255, 255, 0.95);

    /* Typography */
    --font-heading: 'Bodoni Moda', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing */
    --container-width: 1320px;
    --section-pad: 100px;

    /* Ease */
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s var(--ease-out);
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.fluid-container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 0;
    /* Let scroll bleed */
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
    scroll-margin-top: 80px; /* offset for fixed header */
}

.section-alt {
    background-color: var(--color-surface-alt);
}

.bg-white {
    background-color: var(--color-bg) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-card {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-light);
    padding: 3rem;
    border-radius: 4px;
    /* Slight rounding for modern feel */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Very subtle shadow */
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-strong);
    font-weight: 400;
}

.section-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.section-heading {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #7f3286;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Consolidated heading classes */
h3,
.h3-style {
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-strong);
    font-weight: 700;
}

.italic {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-hero-text);
    margin-left: 0.2rem;
    white-space: nowrap;
}

#main-header.scrolled .italic,
#main-header.scrolled .brand-text {
    color: var(--header-text);
}

/* --- Navigation & Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 3rem;
    transition: transform 0.4s ease, background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#main-header.scrolled {
    background-color: var(--header-bg-scroll);
    backdrop-filter: blur(10px);
    padding-top: 0;
    padding-bottom: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-controls {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--header-text);
    transition: color 0.4s ease;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.brand-text {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-hero-text);
    margin-left: 0.2rem;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .brand-text {
        display: none;
    }
}


.menu-trigger {
    background: none;
    border: none;
    color: var(--color-hero-text);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.4s ease;
    /* Above overlay */
}

#main-header.scrolled .menu-trigger {
    color: var(--header-text);
}

.menu-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-lines {
    width: 30px;
    height: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.menu-lines .line {
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.line:last-child {
    width: 70%;
}

.menu-trigger:hover .line:last-child {
    width: 100%;
}

/* --- Nav Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 999;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-menu {
    text-align: center;
}

.nav-item {
    overflow: hidden;
    margin: 1rem 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-text-strong);
    display: block;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out);
    position: relative;
}

.nav-overlay.active .nav-link {
    transform: translateY(0);
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-footer {
    position: absolute;
    bottom: 3rem;
    width: 100%;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.6s 0.3s ease;
}

.nav-overlay.active .nav-footer {
    opacity: 1;
}

.nav-phone {
    color: var(--color-text-strong);
    margin-top: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    height: auto;
    padding: clamp(2rem, 5vh, 5rem) 0;
    overflow-x: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 12px;
    z-index: 2;
    pointer-events: none;
}

.hero-section::before {
    top: 0;
    background: linear-gradient(to right, #b48a3e, #f8e8b5, #b48a3e);
}

.hero-section::after {
    bottom: 0;
    background: linear-gradient(to right, #b48a3e, #f8e8b5, #b48a3e);
}

@media (max-width: 600px) {
    .hero-section::before,
    .hero-section::after {
        height: 6px;
    }
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 0;
}

.hero-image-wrapper {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.hero-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* For parallax */
    filter: brightness(0.6) contrast(1.1);
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-hero-overlay);
    opacity: 0.7;
}

.hero-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    color: #fff;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    /* Explicit gap between lines */
}

.hero-title .line {
    display: block;
    width: 100%;
    height: auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 1rem auto;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-hero-text);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
    border: 2px solid var(--color-gold-dim);

}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-gold);
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
}

/* --- Refined Hero Header (New) --- */
.centered-hero {
    align-items: center;
    text-align: center;
}

/* --- Hero Ankauf Badge --- */
.hero-ankauf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #b48a3e, #f8e8b5, #b48a3e);
    color: #1a0a00;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    margin-bottom: clamp(0.5rem, 1.5vh, 1.2rem);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.hero-ankauf-badge .badge-dot {
    color: #7f3286;
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .hero-ankauf-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
        gap: 0.4rem;
        clip-path: none;
    }
}

.hero-title-box {
    position: relative;
    padding: 1.5rem 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: none;
    transition: opacity 0.3s ease;
}

.hero-title-box::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    background: linear-gradient(135deg, #b48a3e, #f8e8b5, #b48a3e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-title-box:hover::before {
    background: linear-gradient(135deg, #f8e8b5, #fffbe0, #f8e8b5);
}

.hero-title-box:hover {
    box-shadow: 0 0 18px rgba(180, 138, 62, 0.35);
}

.hero-title-script {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #fff;
    line-height: 1.2;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem auto;
    color: rgba(255, 255, 255, 0.9);
}

.sep-line {
    flex: 1;
    height: 1px;
    background-color: #b48a3e;
}

.sep-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-logo-container {
    margin: 0;
    display: flex;
    justify-content: center;
}

.hero-logo {
    width: 220px;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Desktop-specific hero adjustments */
@media (min-width: 1024px) {
    .hero-section {
        position: relative;
    }

    .hero-container {
        justify-content: center;
        padding-bottom: 0;
        position: static;
    }

    .centered-hero {
        margin-top: 0;
    }

    .hero-title-box {
        padding: clamp(1.5rem, 3vh, 3.5rem);
        margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
        overflow: visible;
        width: fit-content;
        max-width: 95%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title-script {
        font-size: clamp(2rem, 3.5vw, 3.2rem);
        line-height: 1.2;
        display: inline-block;
        white-space: nowrap;
        margin: 0;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 1.5vh, 1.3rem);
        max-width: 650px;
        margin: 0 auto clamp(0.4rem, 1vh, 0.8rem) auto;
    }

    .hero-separator {
        max-width: 400px;
        margin: 0 auto clamp(0.5rem, 1.2vh, 1rem) auto;
        gap: 1.5rem;
    }

    .hero-logo {
        width: clamp(180px, 25vw, 350px);
        max-height: 22vh;
        width: auto;
        height: auto;
        max-width: clamp(180px, 25vw, 350px);
    }

    .hero-logo-container {
        margin: 0;
    }

    .hero-text-block {
        max-width: 900px;
    }

    /* Position CTA buttons centered below logo */
    .hero-cta {
        position: relative;
        margin-top: 0;
        gap: 1.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
}

.hero-cta .btn-primary,
.hero-cta .btn-secondary {
    min-width: auto;
    font-weight: 500;
    color: var(--color-hero-text);
}

.hero-cta .btn-primary:hover,
.hero-cta .btn-secondary:hover {
    font-weight: 600;
    border: 2px solid var(--color-hero-text);
    color: var(--header-text);
}

.hero-cta .btn-whatsapp-text:hover{
    color: var(--color-hero-text);
}

/* Button Updates */
.btn-script {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.15rem;
    text-transform: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-cta .btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .hero-title-box {
        padding: 1.5rem 1rem;
        width: 100%;
    }

    .hero-title-box::before {
        /* top/bottom border only on mobile */
        background: linear-gradient(to right, #b48a3e, #f8e8b5, #b48a3e);
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }
}

/* --- Intro Section --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-visual {
        order: -1;
    }

    .intro-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.intro-visual {
    position: relative;
    overflow: hidden;
}

.intro-img {
    transition: transform 0.5s ease;
    width: 100%;
}

.intro-visual:hover .intro-img {
    transform: scale(1.05); /* Added slight zoom on hover instead of grayscale removal */
}

.body-text {
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Button Magnetic */
.btn-magnetic {
    display: inline-block;
    border: 1px solid var(--color-border);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    color: var(--color-text);
}

.btn-magnetic:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-text {
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

/* --- Collection (Edelmetalle) Scroll --- */
.horizontal-scroller {
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    cursor: grab;
}

.horizontal-scroller::-webkit-scrollbar {
    display: none;
}

.scroll-track {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
    width: max-content;
}

.collection-item {
    width: 350px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.collection-item:hover {
    transform: translateY(-10px);
}

.item-visual {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.item-visual img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collection-item:hover img {
    transform: scale(1.05);
}

.item-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--color-text-strong);
}

.item-info p {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* --- Watches (Uhrenankauf) Section --- */
.watches-section {
    background-color: var(--color-surface-alt);
    overflow: hidden;
}

.watches-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 900px) {
    .watches-layout {
        grid-template-columns: 1fr;
    }

    .watches-visual {
        min-height: 380px;
    }

    .small-card {
        position: relative;
        bottom: auto;
        right: auto;
        width: 50%;
        margin: 1rem auto 0;
        display: block;
    }
}

.duties-list {
    margin-bottom: 3rem;
    border-left: 1px solid var(--color-border);
    padding-left: 2rem;
}

.duties-list li {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.duties-list li:hover {
    color: var(--color-gold);
}

.watches-visual {
    position: relative;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.watch-card {
    position: relative;
    z-index: 1;
    width: 80%;
}

.watch-card img {
    border: 1px solid var(--color-border);
}

.small-card {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 40%;
    z-index: 2;
    border: 1px solid var(--color-border);
    filter: var(--img-brightness);
}

.watch-overlay {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--color-gold);
    color: #000;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* --- Archive / Militaria --- */
.archive-section {
    background-color: var(--color-bg);
    color: var(--color-muted);
}

.archive-category {
    margin-bottom: 4rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.archive-cta {
    margin-top: 4rem;
    text-align: right;
    padding-right: 2rem;
    /* Fix: prevent sticking on desktop */
}

.text-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    position: relative;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Footer --- */
.footer-section {
    padding-top: 6rem;
    padding-bottom: 2rem;
    background: #1e0f22;
    color: #fff;
    border-top: 3px solid #b48a3e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
    align-items: start;
}

.footer-content {
    display: none;
    /* Hide the old flex footer */
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .brand-col {
        grid-column: 1 / -1; /* span full width */
        align-items: center;
        text-align: center;
    }

    .brand-col .footer-logo {
        max-width: 180px;
    }

    .brand-col .footer-brand {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .brand-col {
        align-items: center;
    }

    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
    }

    .legal-links a {
        margin-right: 0.75rem;
    }
}

/* --- Detailed Contact Section & Utilities --- */
.text-center {
    text-align: center;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Consolidated with h3 style above - keeping for backward compatibility */
.subsection-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-strong);
    font-weight: 400;
}

/* Callout box for highlighted content */
.callout-box {
    padding: 1.5rem;
    background: var(--color-gold);
    
    border-radius: 4px;
    text-align: center;
    max-width: 800px;
    margin: 3rem auto 0;
}

.callout-box p {
    margin: 0;
    color: var(--color-hero-text);
}

.contact-brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--header-text);
    text-decoration: none;
}

.contact-brand-logo .brand-text {
    font-size: 2rem;
    margin-top: 0.5rem;
    white-space: normal;
    /* Allow wrapping if needed */
}

.contact-brand-logo .logo-img {
    height: 80px;
    /* Specific size for contact section */
    width: auto;
}

.address-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.address-col p {
    font-size: 1.2rem;
    color: var(--color-text);
}

.opening-hours h3 {
    font-family: var(--font-body);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* --- More Utilities --- */
.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.font-small {
    font-size: 0.9em;
}

.font-bold {
    font-weight: 600;
}

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

.w-100 {
    width: 100%;
}

.h-auto {
    height: auto;
}

.block {
    display: block;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-visual-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Specific Section Adjustments */
.section-heading-sm {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    line-height: 1.3;
}

.section-sub {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-gold);
    text-align: center;
    margin-top: 0.5rem;
}

.expert-seal {
    max-width: 200px;
    height: auto;
}

/* --- Expertisen Section --- */
.expertisen-seal-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    margin: 1rem 0;
}

.expertisen-seal-section .expert-seal {
    max-width: 300px;
    height: auto;
}

.expertisen-highlight-text {
    font-size: 1.5rem;
    color: var(--color-text-strong);
    margin-top: 1rem;
}


.brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-col .footer-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 1rem auto;
}

.brand-col .footer-brand {
    font-family: var(--font-accent);
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    display: block;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.footer-col h5 {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-link,
.footer-phone {
    color: rgba(255, 255, 255, 0.85);
    display: block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-phone:hover {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.legal-links a {
    margin-right: 1.5rem;
}

.legal-links a:hover {
    color: var(--color-gold);
}

/* --- Archive Gallery --- */
.archive-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 6rem;
}

.archive-gallery-2col {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .archive-gallery-2col {
        grid-template-columns: 1fr;
    }
}

.archive-card {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold-dim);
}

.archive-card .card-visual {
    width: 100%;
    aspect-ratio: 1.6;
    /* 600x375 */
    overflow: hidden;
}

.archive-card .card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: var(--img-brightness);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.archive-card:hover .card-visual img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1);
}

.archive-card .card-info {
    padding: 1.5rem;
    background-color: #333;
    color: #fff;
    transition: background-color 0.3s ease;
}

.archive-card:hover .card-info {
    background-color: #7f3286;
}

.archive-card .card-info h4 {
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-card .card-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Map Section */
.map-section {
    padding: 0;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.map-container {
    width: 100%;
    height: 450px;
    /* Optional: Dark mode filter for the map to match the theme */
    filter: var(--map-filter);
    transition: filter 0.5s ease;
}

.map-container:hover {
    filter: none;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- Floating Contact Sidebar --- */
.floating-contact-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: var(--color-surface-card);
    border: 1px solid var(--color-border);
    border-right: none;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 70px;
}

.contact-btn:first-child {
    border-top-left-radius: 8px;
}

.contact-btn:last-child {
    border-bottom-left-radius: 8px;
}

.contact-btn:not(:last-child) {
    border-bottom: none;
}

.contact-btn svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    writing-mode: horizontal-tb;
    text-align: center;
}

.contact-btn:hover {
    transform: translateX(-5px);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
}

.contact-btn:hover svg {
    transform: scale(1.1);
}

/* Specific button hover colors */
.contact-phone:hover {
    background: var(--color-gold);
    color: var(--color-text)
}

.contact-whatsapp:hover {
    background: var(--color-gold);
    color: var(--color-hero-text);
}

.contact-email:hover {
    background: var(--color-gold);
    color: var(--color-text)
}

/* Mobile: Move to bottom */
@media (max-width: 768px) {
    body {
        padding-bottom: 72px; /* Reserve space for fixed bottom contact bar */
    }

    .floating-contact-sidebar {
        right: auto;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .contact-btn {
        flex: 1;
        padding: 1rem 0.5rem;
        border: 1px solid var(--color-border);
        border-bottom: none;
        border-right: none;
    }

    .contact-btn:first-child {
        border-top-left-radius: 0;
        border-left: none;
    }

    .contact-btn:last-child {
        border-bottom-left-radius: 0;
        border-right: none;
    }

    .contact-btn:not(:last-child) {
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }

    .contact-btn:hover {
        transform: translateY(-3px);
    }

    .contact-label {
        font-size: 0.65rem;
    }

    .contact-btn svg {
        width: 20px;
        height: 20px;
        margin-bottom: 0.3rem;
    }
}

/* --- Mobile Refinements (Task 6) --- */
@media (max-width: 768px) {

    /* Global Padding Fix (Impressum, Footer, etc.) */
    .container,
    .footer-bottom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        width: 100%;
    }

    /* Prevent long words from overflowing (e.g. Impressum) */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Hero Section Alignment */
    .hero-container {
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 4vh;
    }

    .hero-text-block {
        align-items: center;
        width: 100%;
    }

    .hero-title {
        font-size: 3rem;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-primary span,
    .btn-secondary span {
        text-align: center;
        width: 100%;
        display: block;
        font-size: 0.9rem;
    }

    .archive-cta {
        padding-right: 1rem;
    }
}

/* --- Watch Bento Grid (Task 13) --- */
.watch-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-top: 3rem;
}

.watch-bento-item {
    position: relative;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.watch-bento-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 300px;
}

/* Specific Placements */
.watch-bento-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.watch-bento-item:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.watch-bento-item:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
}

.watch-bento-item:nth-child(3) img {
    max-height: 500px;
    /* Allow taller image */
}

.watch-bento-info {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .watch-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .watch-bento-item:nth-child(1),
    .watch-bento-item:nth-child(2),
    .watch-bento-item:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

}

/* --- Watch Landscape Grid (Task 16) --- */
.watch-landscape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.watch-landscape-grid .archive-card {
    background: #fff;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.watch-landscape-grid .archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.watch-landscape-grid .card-visual {
    width: 100%;
    aspect-ratio: 3/2;
    /* Rectangular Landscape */
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-landscape-grid .card-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.6s ease;
}

.watch-landscape-grid .archive-card:hover .card-visual img {
    transform: scale(1.05);
}

.watch-landscape-grid .card-info {
    background-color: #333;
    color: #fff;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: left;
    transition: background-color 0.3s ease;
}

.watch-landscape-grid .archive-card:hover .card-info {
    background-color: #7f3286;
}

.watch-landscape-grid .card-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* --- Page Borders Below Hero --- */
.page-borders-wrapper {
    position: relative;
    background-color: transparent;
}

@media (min-width: 1024px) {
    .page-borders-wrapper {
        border-left: max(10vw, 120px) solid #7f3286;
        border-right: max(10vw, 120px) solid #7f3286;
    }

    .page-borders-wrapper::before,
    .page-borders-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 15px;
        z-index: 5;
    }
    .page-borders-wrapper::before {
        left: 0;
        background: linear-gradient(to right, #b48a3e, #f8e8b5);
    }
    .page-borders-wrapper::after {
        right: 0;
        background: linear-gradient(to left, #b48a3e, #f8e8b5);
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .page-borders-wrapper {
        border-left: max(5vw, 50px) solid #7f3286;
        border-right: max(5vw, 50px) solid #7f3286;
    }

    .page-borders-wrapper::before,
    .page-borders-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 10px;
        z-index: 5;
    }
    .page-borders-wrapper::before {
        left: 0;
        background: linear-gradient(to right, #b48a3e, #f8e8b5);
    }
    .page-borders-wrapper::after {
        right: 0;
        background: linear-gradient(to left, #b48a3e, #f8e8b5);
    }
}

@media (max-width: 767px) {
    .page-borders-wrapper {
        border-left: 15px solid #7f3286;
        border-right: 15px solid #7f3286;
    }

    .page-borders-wrapper::before,
    .page-borders-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 6px;
        z-index: 5;
    }
    .page-borders-wrapper::before {
        left: 0;
        background: linear-gradient(to right, #b48a3e, #f8e8b5);
    }
    .page-borders-wrapper::after {
        right: 0;
        background: linear-gradient(to left, #b48a3e, #f8e8b5);
    }
}

/* ================================================
   COMPREHENSIVE RESPONSIVE DESIGN — ALL DEVICES
   ================================================ */

/* --- Large desktop (1440px+) --- */
@media (min-width: 1440px) {
    :root {
        --section-pad: 130px;
    }

    .hero-title-script {
        font-size: clamp(3rem, 3.5vw, 4.5rem);
    }
}

/* --- Small tablet / large phone landscape (600px–767px) --- */
@media (max-width: 767px) {
    :root {
        --section-pad: 60px;
    }

    #main-header {
        padding: 1.2rem 2rem;
    }

    .logo-img {
        height: 60px;
    }

    .nav-link {
        font-size: 2.8rem;
    }

    .nav-item {
        margin: 0.6rem 0;
    }

    .hero-logo {
        width: 180px;
    }

    .archive-gallery {
        gap: 1.5rem;
    }

    .duties-list li {
        font-size: 1.4rem;
    }
}

/* --- Mobile (max 600px) — phones in portrait --- */
@media (max-width: 600px) {
    :root {
        --section-pad: 40px;
    }

    #main-header {
        padding: 1rem 1.5rem;
    }

    .logo-img {
        height: 50px;
    }

    .nav-link {
        font-size: 2.2rem;
    }

    .nav-item {
        margin: 0.4rem 0;
    }

    .section-heading {
        margin-bottom: 1.25rem;
    }

    .archive-gallery {
        gap: 1rem;
    }

    .archive-card .card-info {
        padding: 1rem;
    }

    .map-container {
        height: 280px;
    }

    .address-grid {
        gap: 2rem;
    }

    .contact-brand-logo .logo-img {
        height: 60px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo {
        width: 150px;
    }
}

/* --- Ultra-small phones (max 414px) --- */
@media (max-width: 414px) {
    .hero-title-script {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
        white-space: normal;
        word-break: break-word;
    }

    .hero-title-box {
        padding: 1rem 0.75rem;
    }

    .hero-ankauf-badge {
        font-size: 0.6rem;
        letter-spacing: 0.12em;
        padding: 0.35rem 0.9rem;
        gap: 0.35rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-logo {
        width: 130px;
    }

    .nav-link {
        font-size: 1.9rem;
    }

    .section-heading {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.85rem;
        padding: 0.85rem 1.5rem;
    }
}

/* --- iPad portrait (768px) — ensure layouts are sane --- */
@media (max-width: 768px) {
    .watches-visual {
        min-height: 320px;
    }

    .watch-bento-grid {
        gap: 1rem;
    }

    .address-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

/* --- Desktop content-width cap (prevents excessive line length at > 1600px) --- */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}