@import 'tailwindcss';
@import '@fontsource/plus-jakarta-sans/latin-400.css';
@import '@fontsource/plus-jakarta-sans/latin-500.css';
@import '@fontsource/plus-jakarta-sans/latin-700.css';
@import '@fontsource/plus-jakarta-sans/latin-800.css';
@import '@fortawesome/fontawesome-free/css/all.min.css';

@theme {
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    --color-kotsch-blue: #2563eb;
    --color-kotsch-purple: #7c3aed;
}

:root {
    --bg: #ffffff;
    --bg-body: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f8fafc;
    --bg-dark: #020617;

    --text: #0f172a;
    --text-main: #0f172a;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-gray: #64748b;
    --text-light: #cbd5e1;
    --text-white: #ffffff;

    --white: #ffffff;
    --black: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;

    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --primary-glow: rgba(37, 99, 235, 0.25);
    --accent: #7c3aed;
    --success: #10b981;

    --radius: 24px;
    --shadow-soft: 0 24px 60px -32px rgba(15, 23, 42, 0.28);
    --shadow-lg: 0 40px 90px -40px rgba(15, 23, 42, 0.35);
    --card-bg: #ffffff;
    --card-glow: rgba(37, 99, 235, 0.14);

    --container-width: 1400px;
    --section-padding: 120px 5%;
    --mobile-pad: clamp(20px, 5vw, 32px);
    --tap-min: 48px;
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* Globaler Riegel gegen horizontales Scrollen (clip bricht position:sticky NICHT
       und schneidet vertikal nicht ab — anders als overflow:hidden). body allein
       genügt nicht, da der html-Wurzel-Scroll davon unberührt bleibt. */
    overflow-x: clip;
}

body {
    margin: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: clip;
    line-height: 1.6;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100%, var(--container-width));
    margin: 0 auto;
}

.hub-hero {
    padding: 156px 5% 94px !important;
    text-align: center !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.11), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88) !important;
    color: var(--text-main) !important;
    position: relative !important;
    overflow: hidden !important;
}

.hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(226, 232, 240, 0.42) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.42) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 72%);
    pointer-events: none;
}

.hub-hero > .container {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
}

.hub-hero .label,
.hub-kicker,
.shop-kicker,
.ith-label-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: fit-content !important;
    margin: 0 auto 24px !important;
    padding: 9px 16px !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(239, 246, 255, 0.94) !important;
    color: var(--primary) !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.hub-hero h1 {
    max-width: 940px;
    margin: 0 auto 24px !important;
    color: var(--text-main) !important;
    font-size: clamp(3rem, 8vw, 5.6rem) !important;
    font-weight: 900 !important;
    line-height: 0.96 !important;
    letter-spacing: -0.055em !important;
}

.hub-hero h1 span {
    color: var(--primary) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.hub-hero p,
.hub-hero .lead {
    max-width: 760px !important;
    margin: 0 auto !important;
    color: var(--text-muted) !important;
    font-size: clamp(1.05rem, 2vw, 1.28rem) !important;
    line-height: 1.72 !important;
}

.hub-section {
    padding: 82px 5% 118px;
    background: var(--bg-light);
}

.hub-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.hub-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 32px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.hub-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.25rem;
}

.hub-card-kicker {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-card h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.55rem;
    line-height: 1.1;
}

.hub-card p {
    margin: 0;
    color: var(--text-muted);
}

.hub-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-height: var(--tap-min);
    margin-top: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--text-main);
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.shop-demo-warning {
    padding: 16px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
    line-height: 1.6;
}

.shop-button:disabled,
.shop-button-secondary:disabled,
.shop-button-light[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.62;
    filter: grayscale(0.35);
    transform: none !important;
    pointer-events: none;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 92px;
    padding: 0 clamp(24px, 4vw, 5%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.site-logo-wordmark {
    display: block;
    height: 46px;
    width: auto;
    max-width: min(320px, 22vw);
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: clamp(14px, 1.7vw, 30px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--tap-min);
    height: var(--tap-min);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.32);
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 72px;
    min-height: var(--tap-min);
    padding: 10px 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.language-toggle:hover,
.language-toggle-active {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.32);
    color: var(--primary);
}

.google-translate-mount {
    position: fixed;
    left: -9999px;
    bottom: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.goog-te-banner-frame,
body > .skiptranslate iframe {
    display: none !important;
}

.goog-tooltip,
.goog-tooltip:hover,
.goog-te-balloon-frame,
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.goog-text-highlight {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body {
    top: 0 !important;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--tap-min);
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: rgba(37, 99, 235, 0.07);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.nav-cart-link strong {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 0.78rem;
}

.nav-cart-link:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.32);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--tap-min);
    padding: 12px 30px;
    border-radius: 8px;
    background: var(--text-main);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-nav:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-nav-label-mobile {
    display: none;
}

.nav-links {
    align-items: center;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

main {
    padding-top: 92px;
}

.flash-banner {
    width: min(100% - 32px, 920px);
    margin: 24px auto 0;
    padding: 16px 20px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.flash-banner-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.flash-banner-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.16);
}

section {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    padding: var(--section-padding);
}

.bg-gray {
    background-color: var(--bg-light);
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.1;
}

h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text-main);
    margin-bottom: 25px;
}

p {
    margin: 0;
}

p.lead {
    max-width: 650px;
    margin-bottom: 40px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.label {
    display: block;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

footer {
    background: var(--bg-dark);
    color: white;
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.footer-brand-lockup {
    display: block;
    margin-bottom: 24px;
}

.footer-brand-wordmark {
    display: block;
    height: 56px;
    width: auto;
    max-width: min(100%, 320px);
    object-fit: contain;
}

.footer-brand-wordmark-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 20px 38px -26px rgba(15, 23, 42, 0.7);
}

.footer-brand p {
    max-width: 350px;
    margin-bottom: 30px;
    color: #94a3b8;
}

.socials a {
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: var(--primary);
}

.footer-col h4 {
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    margin-top: 40px;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

.hero-brand-mark {
    display: block;
    width: 88px;
    height: auto;
    margin: 0 auto 28px;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(37, 99, 235, 0.18));
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.shop-hero {
    padding: 150px 5% 110px;
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.11), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}

.shop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.shop-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 440px);
    gap: 36px;
    align-items: center;
}

.shop-hero-copy h1,
.shop-page-title {
    margin: 22px 0 24px;
    font-size: clamp(3rem, 8vw, 5.6rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -3px;
    color: var(--text-dark);
}

.shop-hero-copy h1 span,
.shop-page-title span {
    color: var(--primary);
}

.shop-hero-panel,
.shop-surface,
.shop-summary-card,
.shop-form-panel,
.shop-card,
.shop-detail-card,
.shop-gallery-card,
.shop-cart-item,
.shop-empty-state,
.admin-panel,
.admin-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.shop-hero-panel,
.shop-summary-card,
.shop-form-panel,
.shop-detail-card,
.shop-gallery-card,
.shop-empty-state,
.admin-panel,
.admin-metric-card {
    padding: 28px;
}

.shop-feature-list,
.shop-highlight-list,
.shop-summary-list,
.shop-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.shop-feature-list li,
.shop-highlight-list li,
.shop-summary-list li,
.shop-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
}

.shop-feature-list i,
.shop-highlight-list i,
.shop-check-list i {
    margin-top: 4px;
    color: var(--primary);
}

.shop-stat-row,
.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.shop-stat-card {
    padding: 18px;
    border-radius: 22px;
    background: var(--bg-light);
    border: 1px solid #dbeafe;
}

.shop-stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-stat-card strong,
.admin-metric-card strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.shop-section {
    padding: 0 5% 120px;
}

.shop-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.shop-filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #ffffff;
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.shop-filter-pill:hover,
.shop-filter-pill.is-active {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.shop-product-grid,
.shop-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 28px;
}

.shop-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: var(--shadow-lg);
}

.shop-card-media,
.shop-cart-item-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.shop-card-media {
    min-height: 220px;
    padding: 28px;
}

.shop-cart-item-media {
    width: 124px;
    min-width: 124px;
    height: 124px;
    border-radius: 24px;
    overflow: hidden;
}

.shop-card-media img,
.shop-cart-item-media img,
.shop-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-card-body {
    padding: 26px;
    display: grid;
    gap: 18px;
}

.shop-card-meta,
.shop-inline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.09);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shop-muted-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shop-card-title,
.shop-panel-title {
    margin: 0;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -1px;
}

.shop-card-title {
    font-size: 1.65rem;
}

.shop-panel-title {
    font-size: 1.9rem;
}

.shop-card-copy,
.shop-copy {
    color: var(--text-muted);
    line-height: 1.75;
}

.shop-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-price-current {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.shop-price-compare {
    color: var(--text-muted);
    text-decoration: line-through;
}

.shop-button,
.shop-button-secondary,
.shop-button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--tap-min);
    padding: 14px 22px;
    border-radius: 16px;
    border: none;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.shop-button {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 18px 32px -24px rgba(37, 99, 235, 0.65);
}

.shop-button:hover,
.shop-button-secondary:hover,
.shop-button-light:hover {
    transform: translateY(-2px);
}

.shop-button-secondary {
    background: var(--text-dark);
    color: var(--white);
}

.shop-button-light {
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: var(--text-dark);
}

.shop-inline-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.shop-qty-input,
.shop-input,
.shop-select,
.shop-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
    color: var(--text-dark);
    padding: 14px 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.shop-qty-input {
    width: 92px;
    text-align: center;
}

.shop-input:focus,
.shop-select:focus,
.shop-textarea:focus,
.shop-qty-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.shop-textarea {
    min-height: 160px;
    resize: vertical;
}

.shop-form-grid,
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.shop-field {
    display: grid;
    gap: 10px;
}

.shop-field label,
.admin-label {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-dark);
}

.shop-field-full {
    grid-column: 1 / -1;
}

.shop-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.shop-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.shop-radio-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
    background: #ffffff;
}

.shop-radio-card input {
    margin: 0;
}

.shop-detail-grid,
.shop-cart-grid,
.admin-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
    gap: 32px;
    align-items: start;
}

.shop-gallery-card {
    overflow: hidden;
    min-height: 420px;
}

.shop-gallery-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.shop-gallery-thumb {
    border-radius: 18px;
    border: 1px solid #dbeafe;
    overflow: hidden;
    background: var(--bg-light);
    padding: 14px;
}

.shop-key-facts {
    display: grid;
    gap: 14px;
}

.shop-key-fact {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.shop-key-fact:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.shop-cart-items {
    display: grid;
    gap: 18px;
}

.shop-cart-item {
    display: flex;
    gap: 18px;
    align-items: stretch;
    padding: 18px;
}

.shop-cart-item-body {
    flex: 1;
    display: grid;
    gap: 12px;
}

.shop-cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.shop-summary-list li {
    justify-content: space-between;
}

.shop-summary-list strong {
    font-weight: 800;
    color: var(--text-dark);
}

.shop-summary-total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.shop-empty-state {
    text-align: center;
}

.shop-empty-state i {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.shop-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.shop-order-chip,
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.admin-shell {
    grid-template-columns: 300px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 116px;
    padding: 24px;
    border-radius: 30px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.admin-brand img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
}

.admin-brand strong {
    display: block;
    font-size: 1.15rem;
}

.admin-brand span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transform: translateX(2px);
}

.admin-content {
    display: grid;
    gap: 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.admin-header h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1;
    letter-spacing: -2px;
}

.admin-metric-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-form-actions,
.shop-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.validation-error {
    color: #b91c1c;
    font-size: 0.88rem;
    font-weight: 700;
}

@media (max-width: 1280px) {
    nav {
        padding-inline: 28px;
    }

    .site-logo-wordmark {
        height: 42px;
        max-width: min(250px, 20vw);
    }

    .nav-cart-label {
        display: none;
    }

    .nav-cart-link {
        padding-inline: 15px;
    }

    .btn-nav {
        padding-inline: 22px;
    }
}

@media (max-width: 1180px) {
    nav {
        height: 92px;
        padding-block: 0;
        gap: 16px;
        flex-wrap: nowrap;
    }

    main {
        padding-top: 92px;
    }

    .logo {
        order: 1;
        flex: 0 1 auto;
        min-width: 0;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .language-toggle {
        min-width: var(--tap-min);
        padding-inline: 12px;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 28px;
        width: min(360px, calc(100vw - 56px));
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 26px 70px -34px rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(20px);
        overflow: visible;
        scrollbar-width: auto;
        z-index: 1001;
    }

    nav.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        white-space: nowrap;
        padding: 13px 14px;
        border-radius: 14px;
        border: 1px solid transparent;
        background: transparent;
        font-size: 0.86rem;
    }

    .nav-links a:hover {
        background: rgba(37, 99, 235, 0.08);
        border-color: rgba(37, 99, 235, 0.16);
    }

    .shop-hero-grid,
    .shop-detail-grid,
    .shop-cart-grid,
    .admin-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-summary-list strong {
        overflow-wrap: anywhere;
        min-width: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 92px;
    }

    .hub-hero {
        padding: 122px var(--mobile-pad) 74px !important;
    }

    .hub-hero h1 {
        font-size: clamp(2.55rem, 12vw, 4rem) !important;
        letter-spacing: -0.045em !important;
    }

    .hub-section {
        padding: 64px var(--mobile-pad) 92px;
    }

    nav {
        padding-inline: var(--mobile-pad);
    }

    section {
        padding-inline: var(--mobile-pad);
    }

    footer {
        padding-inline: var(--mobile-pad);
    }

    .shop-stat-row,
    .admin-card-grid,
    .shop-form-grid,
    .shop-radio-grid,
    .shop-confirm-grid {
        grid-template-columns: 1fr;
    }

    .site-logo-wordmark {
        height: 40px;
        max-width: min(220px, 56vw);
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        padding: 9px 12px;
        font-size: 0.74rem;
    }

    .nav-cart-link {
        padding: 10px 14px;
    }

    .btn-nav {
        padding: 12px 16px;
        border-radius: 14px;
    }

    .btn-nav-label-desktop {
        display: none;
    }

    .btn-nav-label-mobile {
        display: inline;
    }

    .shop-hero {
        padding: 132px var(--mobile-pad) 84px;
    }

    .shop-section {
        padding-inline: var(--mobile-pad);
        padding-bottom: 92px;
    }

    .shop-form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .shop-form-actions > * {
        width: 100%;
    }

    .shop-card-media {
        min-height: 200px;
    }

    .shop-gallery-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-cart-item {
        flex-direction: column;
    }

    .shop-cart-item-media {
        width: 100%;
        height: 200px;
    }

    .admin-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 640px) {
    main {
        padding-top: 92px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-logo-wordmark {
        height: 36px;
        max-width: min(190px, 44vw);
    }

    .footer-brand-wordmark {
        height: 50px;
    }

    .footer-brand-wordmark-panel {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-brand-mark {
        width: 72px;
        margin-bottom: 22px;
    }

    .btn-nav {
        width: auto;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn-nav {
        width: auto;
        padding-inline: 14px;
    }

    .language-toggle {
        min-width: 50px;
        padding-inline: 10px;
    }

    .nav-cart-label {
        display: none;
    }

    .nav-cart-link {
        padding-inline: 12px;
    }

    .nav-cart-link strong {
        min-width: 22px;
        height: 22px;
        font-size: 0.72rem;
    }

    .shop-card-body,
    .shop-summary-card,
    .shop-form-panel,
    .shop-detail-card,
    .shop-gallery-card,
    .admin-panel,
    .admin-metric-card,
    .shop-hero-panel {
        padding: 22px;
    }

    .shop-gallery-card {
        min-height: 280px;
    }

    .shop-gallery-stack {
        grid-template-columns: 1fr;
    }

    .shop-key-fact {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 430px) {
    nav {
        padding-inline: 14px;
        gap: 8px;
    }

    .site-logo-wordmark {
        height: 32px;
        max-width: 42vw;
    }

    .nav-actions .btn-nav {
        display: none;
    }

    .nav-links {
        right: 14px;
        width: calc(100vw - 28px);
    }
}

/* =====================================================================
   KOTSCH.TECH — PREMIUM 3D HOMEPAGE (light theme, fully animated)
   Brand colors: blue #2563eb · purple #7c3aed · green #10b981
   ===================================================================== */

/* ---------------------------------------------------------------------
   A. HELPER TOKENS
   --------------------------------------------------------------------- */
:root {
    color-scheme: light;
    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
    --tilt-max: 9deg;
    --glow-blue: rgba(37, 99, 235, 0.45);
    --glow-purple: rgba(124, 58, 237, 0.40);
    --glow-green: rgba(16, 185, 129, 0.40);
    --surface-blur: saturate(160%) blur(18px);
    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-border: rgba(15, 23, 42, 0.07);
    --hero-grid: rgba(37, 99, 235, 0.10);
    --ring-soft: rgba(37, 99, 235, 0.16);
}

/* ---------------------------------------------------------------------
   B. GLOBAL CHROME
   --------------------------------------------------------------------- */
nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
}

footer {
    border-top: 1px solid var(--nav-border);
}

/* ---------------------------------------------------------------------
   D. 3D + SCROLL MOTION UTILITIES
   --------------------------------------------------------------------- */

/* Pointer-driven 3D tilt (JS sets the transform on hover) */
.tilt {
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease-out-soft);
    will-change: transform;
}

.tilt.is-tilting {
    transition: transform 0.08s linear;
}

.tilt-scene {
    perspective: 1100px;
    perspective-origin: 50% 35%;
}

/* Layers lifted toward the viewer inside a tilt */
.tilt-pop { transform: translateZ(40px); }
.tilt-pop-lg { transform: translateZ(80px); }

/* Enhanced reveal with depth (extends existing .reveal baseline) */
.reveal.reveal-3d {
    transform: perspective(1400px) translateY(70px) rotateX(10deg);
    transform-origin: 50% 100%;
}

.reveal.reveal-3d.active {
    transform: perspective(1400px) translateY(0) rotateX(0deg);
}

/* Staggered children entrance (works when .stagger is the reveal element
   itself OR a descendant of one) */
.reveal.active .stagger > *,
.reveal.active.stagger > * {
    animation: kt-rise 0.7s var(--ease-out-soft) both;
}
.reveal.active .stagger > *:nth-child(1),
.reveal.active.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.reveal.active .stagger > *:nth-child(2),
.reveal.active.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.reveal.active .stagger > *:nth-child(3),
.reveal.active.stagger > *:nth-child(3) { animation-delay: 0.19s; }
.reveal.active .stagger > *:nth-child(4),
.reveal.active.stagger > *:nth-child(4) { animation-delay: 0.26s; }
.reveal.active .stagger > *:nth-child(5),
.reveal.active.stagger > *:nth-child(5) { animation-delay: 0.33s; }
.reveal.active .stagger > *:nth-child(6),
.reveal.active.stagger > *:nth-child(6) { animation-delay: 0.40s; }

@keyframes kt-rise {
    from { opacity: 0; transform: translateY(28px) translateZ(0); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Floating ambient orbs (decorative, GPU only) */
.kt-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    animation: kt-float 14s ease-in-out infinite;
}
@keyframes kt-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(0, -32px, 0) scale(1.08); }
}

/* Scroll-linked depth — progressive enhancement (Chrome/Edge). */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .s-rise {
            animation: kt-s-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }
        @keyframes kt-s-rise {
            from { opacity: 0; transform: translateY(60px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .s-parallax {
            animation: kt-s-parallax linear both;
            animation-timeline: view();
            animation-range: cover 0% cover 100%;
        }
        @keyframes kt-s-parallax {
            from { transform: translateY(38px); }
            to   { transform: translateY(-38px); }
        }
    }
}

/* ---------------------------------------------------------------------
   E. AUTO 3D — every device drifts & rotates in space (idle animation).
      Applied to a wrapper; pointer .tilt lives on the inner element so
      the two never fight over the same transform.
   --------------------------------------------------------------------- */
.kt-float3d { transform-style: preserve-3d; }

@media (prefers-reduced-motion: no-preference) {
    .kt-float3d {
        animation: kt-float3d 13s ease-in-out infinite;
        will-change: transform;
    }
    .kt-float3d.kt-f-2 { animation-duration: 16s; animation-delay: -4s; }
    .kt-float3d.kt-f-3 { animation-duration: 19s; animation-delay: -8s; }
}

@keyframes kt-float3d {
    0%   { transform: translate3d(0, 0, 0)     rotateX(0deg)   rotateY(0deg); }
    25%  { transform: translate3d(0, -14px, 24px) rotateX(2.5deg) rotateY(6deg); }
    50%  { transform: translate3d(0, 2px, 0)   rotateX(0deg)   rotateY(0deg); }
    75%  { transform: translate3d(0, -9px, 12px)  rotateX(-2deg)  rotateY(-6deg); }
    100% { transform: translate3d(0, 0, 0)     rotateX(0deg)   rotateY(0deg); }
}

/* ---------------------------------------------------------------------
   E2. CONTENT-BUILD — real content STAGES IN as a [data-scene] enters.
       Per item: --at (start 0-1), --i (stagger order), --span (duration).
       This is "stuff appears / happens", not just an angle change.
   --------------------------------------------------------------------- */
.appear, .appear-l, .appear-r, .appear-pop, .appear-up {
    --at: 0; --span: 0.3; --i: 0;
    --pp: clamp(0, calc((var(--enter, 1) - var(--at) - var(--i) * 0.05) / var(--span)), 1);
    opacity: var(--pp);
}
.appear    { transform: translateY(calc((1 - var(--pp)) * 26px)); }
.appear-up { transform: translateY(calc((1 - var(--pp)) * 60px)); }
.appear-l  { transform: translateX(calc((1 - var(--pp)) * -40px)); }
.appear-r  { transform: translateX(calc((1 - var(--pp)) * 40px)); }
.appear-pop { transform: scale(calc(0.6 + var(--pp) * 0.4)); transform-origin: center; }

/* Vertical "grow" for bars/columns that build up */
.grow-up { transform-origin: bottom; transform: scaleY(clamp(0.04, calc((var(--enter,1) - var(--at,0)) / var(--span,0.4)), 1)); }

/* ---------------------------------------------------------------------
   F. REDUCED MOTION — disable transforms, floats & scroll effects
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .tilt,
    .reveal,
    .reveal.reveal-3d,
    .s-rise,
    .s-parallax,
    .kt-float3d,
    .iphone-device,
    .mac-device,
    .ith-scene,
    .ith-scene *,
    .appear, .appear-l, .appear-r, .appear-pop, .appear-up, .grow-up {
        transform: none !important;
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
    }

    .kt-orb { animation: none !important; }
    .reveal.active .stagger > * { animation: none !important; }
}
