/* dn: leinwand — grund-look & -gefühl */

/* ======================================= */
/* ===== NEU: HINTERGRUND-STILE FÜR SEITEN ===== */
/* ======================================= */
.landing-style-bg {
    background-image: url('../images/home.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.landing-style-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 60% schwarzer Schleier */
    z-index: 0;
}

/* dn: partikelschicht — feine bewegungsebene */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Partikel über dem Schleier */
}

/* dn: stapel — inhalt schwebt über der kulisse */
/* Sicherstellen, dass der Inhalt über dem Hintergrund liegt */
/* FIX: don't override position for header/main (breaks sticky and centering) */
nav, header, main, footer {
    /* position: relative;  <-- remove this */
    z-index: 2; /* Inhalt über den Partikeln */
}

/* ======================================= */
/* ===== NEU: LANDING PAGE STILE ===== */
/* ======================================= */
.division-card {
    background: rgba(18, 18, 18, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    width: min(100%, 340px);
    display: grid;
    gap: .6rem;
    align-content: center;
    justify-items: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}

@media (min-width: 1024px) {
    .division-card { min-height: 260px; gap: 2.25rem; }
}

.division-card .card-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(70% 70% at 50% 0%, rgba(212,175,55,0.08), rgba(0,0,0,0) 70%);
    opacity: .85;
    pointer-events: none;
}

.division-card.has-bg::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.55));
    z-index: 1;
}

.division-card.has-bg {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
}

.division-card > * { position: relative; z-index: 2; }

.division-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 18px 44px rgba(212,175,55,0.12), 0 16px 36px rgba(0,0,0,0.6);
}

.division-card .icon {
    font-size: 3rem;
    line-height: 1;
    color: #d4af37;
    filter: drop-shadow(0 2px 8px rgba(212,175,55,0.25));
}

.division-card .card-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.division-card .card-desc {
    color: #a0aec0;
    font-size: .95rem;
    line-height: 1.55;
    max-width: 22rem;
}

.division-card .card-cta {
    margin-top: .25rem;
    color: #ffd166;
    font-weight: 700;
    letter-spacing: .4px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: transform .2s ease, color .2s ease;
}

.division-card .card-cta::after {
    content: '›';
    display: inline-block;
    transform: translateY(-1px);
    opacity: .9;
}

.division-card:hover .card-cta {
    transform: translateY(-1px);
    color: #ffe29b;
}

.landing-main {
    padding: 0;
    min-height: calc(100vh - var(--header-h, 60px));
    display: grid;
    align-content: start;
    gap: clamp(2rem, 4vw, 3rem);
    padding-block: clamp(2rem, 6vh, 4rem);
}

/* HERO */
.landing-hero {
    display: grid;
    gap: 1rem;
    justify-items: center;
    padding-inline: 1rem;
}
.hero-title {
    font-size: clamp(1.8rem, 4.2vw, 3rem);
    line-height: 1.15;
    letter-spacing: 1px;
    /* subtle gold gradient text */
    background: linear-gradient(180deg, #fff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 16px rgba(212,175,55,0.06);
}
.hero-sub {
    max-width: 56rem;
    color: #cfcfcf;
}
.hero-cta {
    display: flex;
    gap: .75rem;
    margin-top: .5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
    -webkit-user-drag: none;
    user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(180deg, rgba(212,175,55,0.22) 0%, rgba(212,175,55,0.12) 100%);
    border-color: rgba(212,175,55,0.45);
    color: #ffd166;
    box-shadow: 0 8px 26px rgba(212,175,55,0.12), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.btn-primary:hover {
    background: linear-gradient(180deg, rgba(212,175,55,0.32), rgba(212,175,55,0.18));
    border-color: rgba(212,175,55,0.75);
    box-shadow: 0 12px 36px rgba(212,175,55,0.18);
}
.btn-ghost {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.16);
    color: #e5e7eb;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.25);
}

/* Unified division grid */
.division-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    justify-items: center;
}
@media (min-width: 640px) {
    .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .division-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Header / Navigationsleiste */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: 0 1rem;
}
.main-header .header-logo {
    display: flex;
    align-items: center;
    height: 52px;
    text-decoration: none !important;
}
.main-header .header-logo img {
    height: 100%;
    width: auto;
    display: block;
}

/* Nav-List */
.main-header nav ul {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Links: keine Unterstreichung, konsistente Farben */
.main-header nav a,
.main-header nav a:link,
.main-header nav a:visited,
.main-header nav a:hover,
.main-header nav a:focus,
.main-header nav a:active {
    text-decoration: none !important;
    color: #e5e7eb; /* gray-200 */
}
.main-header nav a {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

/* Hover/Focus */
.main-header nav a:hover,
.main-header nav a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

/* Aktiver Menüpunkt */
.main-header nav a.active {
    color: #ffd166;
    background: rgba(212, 175, 55, 0.14);
}

/* Deutlicher Fokus für Tastatur */
.main-header nav a:focus-visible {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5);
}

/* dn: banner — header pro firma */
.page-header {
    position: relative;
}

/* dn: rhythmus — standardabstände */
main {
    padding: 40px 0;
}

/* NEW: landing page should not inherit generic main padding and should center vertically */
.landing-main {
    padding: 0; /* override generic main padding */
    min-height: calc(100vh - var(--header-h, 60px));
    display: grid;
    align-content: start;
    gap: clamp(2rem, 4vw, 3rem);
    padding-block: clamp(2rem, 6vh, 4rem);
}

/* Landing: generous column spacing already set, now constrain middle column and center rows */
@media (min-width: 1024px) {
    .landing-columns {
        /* center column has controlled width; side columns stay flexible */
        grid-template-columns: 1fr minmax(420px, 560px) 1fr;
        align-items: center; /* ensure vertical alignment of all three columns */
    }

    /* Left/Right stacks: vertically center their contents and align cards nicely */
    .division-stack {
        display: grid;
        gap: 2rem;
        align-content: center;   /* center stack vertically within viewport */
        justify-items: center;   /* center cards horizontally */
        min-height: calc(100vh - var(--header-h, 60px));
    }

    /* Keep landing cards visually consistent on desktop so nothing looks cramped */
    .landing-main .division-card {
        height: 300px;          /* fixed height only for landing to align rows */
        width: min(100%, 360px);/* balanced width for a clean column */
    }
}

.landing-columns {
    gap: clamp(2.5rem, 6vw, 5.5rem);
}

.content-box {
    background-color: rgba(18, 18, 18, 0.9);
    border: 1px solid #4a4d53;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

/* Optional: etwas Abstand für die mittlere Intro-Box im Hub */
/* Removed empty ruleset for .content-box at min-width: 1024px */

/* dn: typografie — hauptüberschriften & slogans */
.main-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slogan-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #ccc;
    text-transform: none;
    letter-spacing: 0;
}

/* NEU: Fehlende Highlight-Klasse für goldenen Text */
.highlight-text {
    color: #d4af37;
}

/* ======================================= */
/* ===== NEU: TEAM-SEITE STILE ===== */
/* ======================================= */
.team-member-card {
    transition: transform 0.3s ease;
}
.team-member-card:hover {
    transform: translateY(-8px);
}

.team-image-container {
    width: 160px;
    height: 184px; /* Angepasst für Sechseck-Proportionen */
    background-color: #d4af37; /* Farbe des Rahmens */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    padding: 4px; /* Erzeugt den Rahmen */
    transition: transform 0.3s ease;
}
.team-member-card:hover .team-image-container {
    transform: scale(1.05);
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.team-member-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.25rem;
}

.team-member-title {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Team: smaller avatar for compact cards */
.team-avatar-sm {
    width: 96px;
    height: 96px;
}

/* Team: contact rows inside cards */
.team-contact {
    margin-top: .5rem;
    font-size: .9rem;
    color: #a0aec0;
    display: grid;
    gap: .25rem;
}
.team-contact .row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

/* Team avatars: enforce square, cover, and round shape */
.team-avatar {
    width: 8rem;  /* 128px */
    height: 8rem; /* 128px */
    object-fit: cover;
    border-radius: 9999px;
}

/* Safety: any image inside a team card should cover to avoid stretching */
.team-member-card img {
    object-fit: cover;
}

/* ======================================= */
/* ===== NEU: KARRIERE-BEREICH STILE (Version 3) ===== */
/* ======================================= */
.job-listing {
    background-color: rgba(30, 30, 30, 0.6);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.job-listing:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.15);
}

.job-listing .job-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-listing .job-title .icon {
    font-size: 1.75rem;
    line-height: 1;
}

.job-listing .job-content {
    flex: 1;
}

.job-listing .job-image-placeholder {
    width: 180px;
    height: 180px;
    background-color: #1f1f1f;
    border: 1px dashed #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    flex-shrink: 0;
    text-align: center;
    padding: 1rem;
}

.job-listing .job-description {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.job-listing .job-responsibilities {
    margin-top: 1rem;
    color: #b0b0b0;
}

.job-listing .job-responsibilities .highlight-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.job-listing .job-responsibilities-list {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-listing .job-responsibilities-list li {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    color: #ccc;
    transition: background-color 0.3s, border-color 0.3s;
}

.job-listing .job-responsibilities-list li:hover {
    background-color: #333;
    border-color: #555;
}


/* dn: tabs — schlanke underline-nav */
.tab-button {
    background-color: transparent;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
}
.tab-button:hover {
    color: #fff;
    border-bottom-color: var(--theme-accent-color, #fff);
}
.tab-button.active {
    color: #fff;
    border-bottom-color: var(--theme-accent-color, #fff);
}

/* dn: listen — lager & markt zeilen */
#lager-liste li, #ankauf-liste li, #verkauf-liste li {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#lager-liste li:hover, #ankauf-liste li:hover, #verkauf-liste li:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.15);
}

/* dn: aktionen — kleine chips & buttons */
.copy-btn {
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
    -webkit-user-drag: none;
}

.copy-btn:hover {
    background-color: #d4af37;
    color: #0d0d0d;
}

.copy-btn:disabled {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
    cursor: not-allowed;
}

/* NEU: Stile für FAQ und Produkt-Items */
.faq-item, .product-item {
    background-color: #2a2a2a;
    border: 1px solid #444;
}

/* ======================================= */
/* ===== NEU: FADE-IN ANIMATION ===== */
/* ======================================= */
main > section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

main > section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Subtiles Auftauchen der Karten */
@keyframes fadeUpSmall {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card-appear {
    animation: fadeUpSmall .5s ease-out both;
}

/* Hub-Intro (mittlere Box auf der Landing) */
.hub-intro {
    border-color: rgba(212,175,55,0.25) !important;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(212,175,55,0.10), inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* Typewriter (hero) */
.typewriter-wrap {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.typewriter-wrap .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #d4af37;
    animation: blink 1s steps(1) infinite;
    transform: translateY(2px);
    opacity: .9;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Slightly larger hero line */
.hero-line {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: .5rem;
}

.hero-block {
    max-width: 48rem;
    margin-inline: auto;
}

.hero-block .slogan-text {
    margin-top: .75rem;
}

/* ======================================= */
/* ===== NEU: WARENKORB STILE ===== */
/* ======================================= */
#cart-list li {
    background-color: #1b1b1b;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: .75rem .9rem;
}

.badge {
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    background-color: rgba(212,175,55,0.12);
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 999px;
    font-weight: 700;
    padding: .15rem .5rem;
    font-size: .8rem;
}

/* dn: kontakt — karten mit feinem goldrand */
.contact-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(212,175,55,0.45);
    background: rgba(18,18,18,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.55),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,175,55,0.8);
    box-shadow:
        0 18px 40px rgba(212,175,55,0.18),
        0 12px 28px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}
.contact-card.has-bg {
    background-size: cover;
    background-position: center;
}
.contact-card.has-bg::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.6));
}
.contact-card .inner {
    position: relative;
    z-index: 1;
    padding: 1.75rem;
    color: #e5e7eb;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.contact-card .title {
    color: #ffd166;
    margin-bottom: .75rem;
}

/* Kontakt: Chips über dem Titel (24H, Flag, etc.) */
.contact-chips {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem;
    align-items: center;
    justify-content: center;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);
    color: #ffd166;
    padding: .15rem .6rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 700;
}
.chip img { height: 12px; width: 18px; object-fit: cover; border-radius: 2px; }

/* Kontakt: Meta-Infos im Card-Body */
.contact-meta {
    display: grid;
    gap: .5rem;
    margin: 1rem 0 1.25rem;
}
.contact-meta .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.contact-meta .left {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #e5e7eb;
}
.contact-meta .right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Kontakt: Status-Zeile unten */
.contact-status {
    color: #ffd166;
    font-weight: 700;
    text-align: center;
}

/* ======================================= */
/* ===== NEU: THEME-SPEZIFISCHE STILE ===== */
/* ======================================= */
.theme-labor { --theme-accent-color: #4ade80; } /* Grün */
.theme-giesserei { --theme-accent-color: #f97316; } /* Orange */
.theme-warenlager { --theme-accent-color: #3b82f6; } /* Blau */
.theme-fertigung { --theme-accent-color: #8b5cf6; } /* Lila */
/* NEU: Mühle */
.theme-muehle { --theme-accent-color: #84cc16; } /* Lime */

.theme-labor .page-header { background-image: url('../images/Labor.png'); }
.theme-giesserei .page-header { background-image: url('../images/header-giesserei.png'); }
.theme-warenlager .page-header { background-image: url('../images/warenlager2.png'); }
.theme-fertigung .page-header { background-image: url('../images/header-fertigung.jpg'); }
.theme-muehle .page-header { background-image: url('../images/muehle.png'); }

/* ===== CONTACT PAGE — Neon/Glassmorphism Enhancements ===== */
/* UNIFY HEADERS: disable special gradient on contact titles */
/*
.contact-page .main-title {
    background: linear-gradient(180deg, #ffffff 0%, #ffd166 55%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 14px rgba(212,175,55,0.12);
}
*/

/* Keep the location image clearly visible */
.contact-page .contact-card.has-bg::before {
    /* lighter vignette for readability, but show the map */
    background: radial-gradient(120% 80% at 50% 10%, rgba(0,0,0,.12), rgba(0,0,0,.28) 60%, rgba(0,0,0,.38) 100%);
}
.contact-page .contact-card.has-bg::after {
    /* smaller, softer bottom gradient behind text */
    height: 30%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(16,16,16,0.28) 40%, rgba(10,10,10,0.45) 100%);
}

/* CONTACT: lighter glass so image shines through */
.contact-page .glass-panel {
    background: linear-gradient(180deg, rgba(20,20,20,0.16), rgba(20,20,20,0.22));
    border: 1px solid rgba(212,175,55,0.24);
    /* keep spacing compact */
    padding: .85rem 1rem;
}

/* CONTACT: compact contact rows to free more image space */
.contact-page .contact-meta { margin: .35rem 0 .6rem; }

/* Optional: status line kept for future use; not rendered anymore */
/* ...existing code... */

/* Ensure cards fade-in smoothly */
.contact-page .contact-card { animation: fadeUpSmall .5s ease-out both; }

/* Entfernen des Unterstrichs für die Beschreibungstexte in den Firmenkarten */
.company-card-description {
    text-decoration: none !important;
}

a:hover .company-card-description {
    text-decoration: none !important;
}

/* Landing — Company Cards v2 (Glassmorphism) */
.division-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    justify-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    perspective: 1000px; /* 3D tilt stage */
}
@media (min-width: 640px) {
    .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .division-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .division-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.division-card {
    background: rgba(28, 28, 32, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 0.6rem;
    height: 320px; /* equal height */
    width: min(100%, 360px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease, filter 200ms ease;
    will-change: transform;
}

/* Fallback if backdrop-filter unsupported */
@supports not (backdrop-filter: blur(1px)) {
    .division-card { background: rgba(18, 18, 18, 0.85); }
}

/* Media: no distortion, no cropping */
.division-card .card-media {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;       /* füllt die gesamte Karte */
    object-position: center;
    opacity: 0.22;           /* lesbar, aber sichtbar */
    filter: none;
    z-index: 0;
    pointer-events: none;
}

/* Icon/emoji remains subtle accent */
.division-card .icon {
    font-size: 1.5rem;
    line-height: 1;
    color: #d4af37;
    filter: drop-shadow(0 2px 6px rgba(212,175,55,0.3));
    margin-top: .15rem;
}

/* Titles and text */
.division-card .card-title {
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #fff;
}
.division-card .card-desc {
    color: #a0aec0;
    font-size: .95rem;
    line-height: 1.5;
    padding-inline: 1rem;
}

/* CTA */
.division-card .card-cta {
    margin-bottom: .75rem;
    color: #ffd166;
    font-weight: 700;
    letter-spacing: .4px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: color 180ms ease, transform 180ms ease;
}
.division-card .card-cta::after {
    content: '→';
    display: inline-block;
    transition: transform 180ms ease;
}

/* Hover/Focus micro-interactions */
.division-card:hover,
.division-card:focus-visible {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 18px 44px rgba(212,175,55,0.12), 0 16px 36px rgba(0,0,0,0.6);
}
.division-card:hover .card-cta,
.division-card:focus-visible .card-cta {
    color: #ffe29b;
}
.division-card:hover .card-cta::after,
.division-card:focus-visible .card-cta::after {
    transform: translateX(3px);
}

/* Accessible focus ring */
.division-card:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Subtle scale; 3D tilt is set inline via JS. Keep base scale here. */
.division-card[data-hovered="true"] {
    transform: scale(1.03);
}

/* Reduced motion: disable transforms/tilt */
@media (prefers-reduced-motion: reduce) {
    .division-card,
    .division-card .card-cta::after {
        transition: none !important;
    }
    .division-card,
    .division-card[data-hovered="true"] {
        transform: none !important;
    }
}

/* Firmenkarten: keine Unterstreichung, keine blaue Linkfarbe */
#division-grid a,
#division-grid a:link,
#division-grid a:visited,
#division-grid a:hover,
#division-grid a:focus,
#division-grid a:active {
	text-decoration: none !important;
	color: inherit !important;
}

/* Redundanter Schutz auf Kartenebene (falls andere Stile greifen) */
.division-card,
.division-card:hover,
.division-card:focus {
	text-decoration: none !important;
	color: inherit !important;
}
.division-card * {
	text-decoration: none !important;
	color: inherit !important;
}

/* Titel-Schrift an globale Typo angleichen */
.division-card .card-title {
	font-family: inherit;     /* statt abweichender Sonder-Schrift */
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Optional: dezente CTA-Optik ohne Unterstreichung beibehalten */
.division-card .card-cta {
	text-decoration: none !important;
}

/* Form control normalization for cart row */
#catalog-select,
#catalog-qty,
#add-to-cart {
  box-sizing: border-box;
}

/* Prevent layout jump from number input spinners */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Ensure consistent line-height within inputs */
input, select, button {
  line-height: 1.25;
}

/* Enhance "Hinzufügen" button feedback */
#add-to-cart {
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 200ms ease, background-color 200ms ease, filter 200ms ease;
  /* subtle glow baseline to match theme */
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.15);
}
#add-to-cart:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.25);
}
#add-to-cart:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.22) inset;
}
#add-to-cart:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}