/* ===================================================
   festform36 — Apple Liquid Glass Design System
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(28px);
    --glass-radius: 28px;
    --glass-radius-sm: 20px;
    --glass-edge: rgba(255, 255, 255, 0.5);
    --glass-edge-strong: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    --glass-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.06);

    --text-primary: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.55);
    --text-tertiary: rgba(0, 0, 0, 0.38);

    --accent-white: #ffffff;
    --bg-page: #f5f5f7;
    --card-highlight: rgba(255, 255, 255, 0.12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    --max-width: 1200px;

    --nav-height: 64px;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* --- Ambient Background --- */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    max-width: 100vw;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(230,230,235,0.4) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 50% 60%, rgba(240,240,245,0.3) 0%, transparent 50%);
}

/* ===================================================
   GLASS COMPONENT
   Apple Liquid Glass: translucent, blurred, with
   a white edge highlight that breaks at top-right
   to simulate a 3D gloss effect.
   =================================================== */
.glass {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius);
    box-shadow:
        inset 0 0 0 0.5px var(--glass-edge),
        var(--glass-shadow);
    z-index: 1;
}

/* The top-right gloss highlight — the key "Liquid Glass" effect.
   A white reflection that sits at the top-right, simulating
   light catching the glass edge in 3D. NOT a full border. */
.glass::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 40%;
    height: 40%;
    border-radius: 0 var(--glass-radius) 0 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.15) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 2;
}

/* Inset white edge glow — the thin, bright line that
   traces the glass contour but fades before completing
   the full rectangle, reinforcing the 3D glass illusion. */
.glass-edge {
    box-shadow:
        inset 1px 1px 0 0.5px var(--glass-edge-strong),
        inset -0.5px -0.5px 0 0.5px rgba(255, 255, 255, 0.15),
        var(--glass-shadow);
}

/* ===================================================
   NAV
   =================================================== */
nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 720px;
    padding: 0 28px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 100;
    border-radius: 40px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 8px;
}

.logo-highlight {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: rgba(255,255,255,0.15);
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
    min-height: auto;
    padding: 110px 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 780px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-sub {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 28px;
    border-radius: var(--glass-radius-sm);
    min-width: 120px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: center;
}

.hero-footnote {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

/* --- CTA Button --- */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 40px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow:
        inset 0 0 0 0.5px var(--glass-edge-strong),
        var(--glass-shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 0.5px var(--glass-edge-strong),
        0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ===================================================
   SECTIONS
   =================================================== */
.section {
    padding: 48px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.mat-qualitaet {
    font-size: 14px;
    color: var(--text-tertiary);
    max-width: 520px;
    margin: 12px auto 0;
    line-height: 1.6;
}

.section-light {
    background: rgba(255, 255, 255, 0.3);
    max-width: 100%;
    padding: 80px 20px;
}

.section-light .section-header {
    max-width: var(--max-width);
    margin: 0 auto 48px;
}

/* ===================================================
   MATERIALIEN — SECTION BACKGROUND (for glass effect)
   =================================================== */
#materialien {
    position: relative;
    isolation: isolate;
}

#materialien::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 30% 20%, rgba(180,180,190,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 70% 80%, rgba(160,160,170,0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Subtle workshop texture overlay */
#materialien::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('printfarm-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.04;
    filter: grayscale(1) blur(2px);
    pointer-events: none;
}

#materialien .section-header,
#materialien .material-grid {
    position: relative;
    z-index: 1;
}

/* ===================================================
   MATERIAL GRID — GLASS MORPHISM CARDS
   =================================================== */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.mat-card {
    padding: 32px;
    border-radius: var(--glass-radius-sm);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle corner gloss */
.mat-card::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 35%;
    height: 35%;
    border-radius: 0 var(--glass-radius-sm) 0 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.10) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.mat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.mat-card-highlight {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.30);
}

.mat-card-highlight:hover {
    background: rgba(255, 255, 255, 0.20);
}

/* ===================================================
   SVG FILAMENT SPOOL ICONS
   =================================================== */
.mat-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.25s ease;
}

.mat-card:hover .mat-icon {
    animation: spoolSpin 2.5s linear infinite;
}

@keyframes spoolSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Desaturated material colors for spools */
.mat-spool-pla   { color: #c8bfb2; }
.mat-spool-petg  { color: #b0bcc8; }
.mat-spool-abs   { color: #b8b0a5; }
.mat-spool-asa   { color: #c0b8a8; }
.mat-spool-carbon { color: #585858; }
.mat-spool-nylon { color: #404040; }

/* Per-card material color background tints (subtle wash) */
.mat-card-pla   { background: linear-gradient(135deg, rgba(200,191,178,0.12), rgba(200,191,178,0.04)) !important; }
.mat-card-petg  { background: linear-gradient(135deg, rgba(176,188,200,0.12), rgba(176,188,200,0.04)) !important; }
.mat-card-abs   { background: linear-gradient(135deg, rgba(184,176,165,0.12), rgba(184,176,165,0.04)) !important; }
.mat-card-asa   { background: linear-gradient(135deg, rgba(192,184,168,0.12), rgba(192,184,168,0.04)) !important; }
.mat-card-carbon { background: linear-gradient(135deg, rgba(88,88,88,0.15), rgba(88,88,88,0.05)) !important; }
.mat-card-nylon { background: linear-gradient(135deg, rgba(64,64,64,0.18), rgba(64,64,64,0.06)) !important; }

/* Bar colors match material (only affects bars via .mat-bars container) */
.mat-card-pla .mat-bars   { color: #c8bfb2; }
.mat-card-petg .mat-bars  { color: #b0bcc8; }
.mat-card-abs .mat-bars   { color: #b8b0a5; }
.mat-card-asa .mat-bars   { color: #c0b8a8; }
.mat-card-carbon .mat-bars { color: #888888; }
.mat-card-nylon .mat-bars { color: #707070; }

.mat-card-pla:hover   { background: linear-gradient(135deg, rgba(200,191,178,0.18), rgba(200,191,178,0.08)) !important; }
.mat-card-petg:hover  { background: linear-gradient(135deg, rgba(176,188,200,0.18), rgba(176,188,200,0.08)) !important; }
.mat-card-abs:hover   { background: linear-gradient(135deg, rgba(184,176,165,0.18), rgba(184,176,165,0.08)) !important; }
.mat-card-asa:hover   { background: linear-gradient(135deg, rgba(192,184,168,0.18), rgba(192,184,168,0.08)) !important; }
.mat-card-carbon:hover { background: linear-gradient(135deg, rgba(88,88,88,0.22), rgba(88,88,88,0.10)) !important; }
.mat-card-nylon:hover { background: linear-gradient(135deg, rgba(64,64,64,0.25), rgba(64,64,64,0.12)) !important; }

/* ===================================================
   MATERIAL PROPERTY BARS (Glass Style)
   =================================================== */
.mat-bars {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mat-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    min-width: 42px;
    letter-spacing: 0.02em;
}

.bar-track {
    flex: 1;
    height: 22px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    background: currentColor;
    opacity: 0.50;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    min-width: 0;
}

.bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.20) 40%,
        rgba(255,255,255,0.35) 60%,
        transparent 100%
    );
    pointer-events: none;
}

.bar-fill-glass {
    height: 100%;
    border-radius: 12px;
    background: currentColor;
    opacity: 0.15;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
}

.bar-value {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.mat-card h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mat-sub {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-tertiary);
}

.mat-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.mat-props {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mat-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.tag-highlight {
    background: rgba(255, 255, 255, 0.35);
    color: var(--text-primary);
}

.mat-usage {
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ===================================================
   PRICE TABLE
   =================================================== */
.price-note {
    padding: 20px 28px;
    border-radius: var(--glass-radius-sm);
    margin-bottom: 24px;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
}

.price-note strong {
    color: var(--text-primary);
}

.price-table {
    padding: 36px 40px;
    border-radius: var(--glass-radius);
    margin-bottom: 24px;
    text-align: center;
}

/* --- Simplified Pricing --- */
.price-simple {
    padding: 36px 40px;
    text-align: center;
}

.price-tagline {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.price-explanation {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

.price-cta {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 16px;
}

.price-example {
    padding: 28px 32px;
    border-radius: var(--glass-radius);
}

.price-example h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.price-example p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.example-total {
    font-size: 20px !important;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin: 8px 0;
}

.example-total strong {
    font-weight: 800;
}

.example-note {
    font-size: 13px !important;
    color: var(--text-tertiary) !important;
}

/* ===================================================
   USP GRID
   =================================================== */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.usp-card {
    padding: 32px;
    border-radius: var(--glass-radius);
}

.usp-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: block;
}

.usp-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.usp-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================================
   FORM
   =================================================== */
.form-container {
    padding: 40px;
    border-radius: var(--glass-radius);
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:hover, select:hover, textarea:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.25);
}

input:focus, select:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow:
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.8),
        0 0 0 3px rgba(200, 200, 210, 0.3);
}

input::placeholder, textarea::placeholder {
    color: var(--text-tertiary);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.upload-area {
    cursor: pointer;
}

.upload-placeholder {
    border: 1.5px dashed rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s, background 0.2s;
}

.upload-placeholder:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.5);
}

.upload-icon {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 8px;
}

.upload-placeholder p {
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-hint {
    font-size: 12px !important;
    color: var(--text-tertiary) !important;
    margin-top: 4px;
}

.file-name {
    margin-top: -12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-footnote {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.form-footnote a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.form-footnote a:hover {
    border-bottom-color: var(--text-primary);
}

.form-container .cta-button {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 18px 40px;
    margin-top: 8px;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    padding: 32px 40px;
    border-radius: var(--glass-radius) var(--glass-radius) 0 0;
    margin: 0 -20px;
    max-width: none;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
    padding-left: 40px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-links p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.7;
}

.footer-links strong {
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.widerruf-link-button {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 12px !important;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ===================================================
   LEGAL PAGES (Impressum, AGB, Widerruf)
   =================================================== */
.legal-page {
    padding: 120px 20px 60px;
    max-width: 780px;
    margin: 0 auto;
    min-height: 100vh;
}

.legal-content {
    padding: 48px;
    border-radius: var(--glass-radius);
}

.legal-content h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 24px 0 8px;
}

.legal-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 8px;
    color: var(--text-primary);
}

.legal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-date {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-primary);
}

.legal-hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

/* --- Widerrufsformular --- */
.widerruf-formular {
    padding: 28px 32px;
    border-radius: var(--glass-radius-sm);
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.widerruf-formular strong {
    color: var(--text-primary);
}

.widerruf-button-wrapper {
    text-align: center;
    margin: 32px 0;
}

.widerruf-button-wrapper p {
    margin-bottom: 12px;
    font-size: 15px;
}

.widerruf-button {
    font-size: 16px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.widerruf-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.widerruf-hint {
    font-size: 12px !important;
    color: var(--text-tertiary) !important;
    margin-top: 10px !important;
}

/* ===================================================
   COOKIE HINWEIS
   =================================================== */
.hinweis-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 640px;
    padding: 16px 24px;
    z-index: 200;
    border-radius: var(--glass-radius-sm);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: block;
    visibility: visible;
    opacity: 1;
}

.hinweis-banner.hidden {
    display: none !important;
}

.hinweis-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hinweis-text {
    flex: 1;
}

.hinweis-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.hinweis-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.hinweis-text a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hinweis-button {
    flex-shrink: 0;
    padding: 8px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        inset 0 0 0 0.5px var(--glass-edge-strong),
        var(--glass-shadow);
    transition: background 0.2s;
}

.hinweis-button:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 540px) {
    .hinweis-content {
        flex-direction: column;
        text-align: center;
    }
    .hinweis-button {
        width: 100%;
    }
}

/* ===================================================
   SOFORTPREIS-RECHNER
   =================================================== */
.calculator {
    padding: 0;
    border-radius: var(--glass-radius);
    overflow: hidden;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
}

/* --- Upload Zone --- */
.calc-upload {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.drop-zone {
    border: 1.5px dashed rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.35);
}

.drop-zone.has-file {
    border-style: solid;
    border-color: rgba(0, 100, 60, 0.3);
    background: rgba(255, 255, 255, 0.3);
}

.dz-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.dz-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    word-break: break-all;
}

.dz-hint {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* --- Parameters --- */
.calc-params {
    /* container */
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr 80px;
    gap: 12px;
}

.calc-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calc-field select,
.calc-field input {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.calc-field select:focus,
.calc-field input:focus {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.calc-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.calc-field-qty input {
    text-align: center;
    font-weight: 600;
}

/* --- Result Panel --- */
.calc-result {
    background: rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0.4;
    transition: opacity 0.4s;
}

.calc-result.visible {
    opacity: 1;
}

.result-inner {
    text-align: center;
    width: 100%;
}

.result-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.result-total {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1;
}

.result-details {
    margin-bottom: 16px;
}

.rd-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rd-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.rd-divider {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    margin-bottom: 4px;
    font-weight: 700;
}

.rd-divider span:last-child {
    font-size: 16px;
}

.result-breakdown {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.7;
    text-align: left;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.calc-order-btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 15px;
}

.calc-order-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: auto;
}

.calc-order-btn:not(:disabled) {
    background: rgba(200, 200, 210, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(0, 0, 0, 0.8);
    font-weight: 600;
    letter-spacing: 0.01em;
    transform: translateY(0);
    transition: all 0.3s;
    /* Irregular Liquid Glass edge — bright at top-left, 
       catching light at top-right corner, fading along bottom */
    box-shadow:
        inset 2px 2px 0 0.5px rgba(255, 255, 255, 0.6),
        inset -1px -1px 0 0.5px rgba(255, 255, 255, 0.08),
        inset 3px -2px 0 -1px rgba(255, 255, 255, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.04);
}

.calc-order-btn:not(:disabled):hover {
    background: rgba(215, 215, 225, 0.5);
    box-shadow:
        inset 2.5px 2.5px 0 0.5px rgba(255, 255, 255, 0.7),
        inset -1px -1px 0 0.5px rgba(255, 255, 255, 0.1),
        inset 4px -2px 0 -1px rgba(255, 255, 255, 0.3),
        0 6px 28px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.calc-order-btn:not(:disabled):active {
    background: rgba(180, 180, 192, 0.5);
    transform: translateY(0);
    box-shadow:
        inset 1px 1px 0 0.5px rgba(255, 255, 255, 0.4),
        inset -0.5px -0.5px 0 0.5px rgba(255, 255, 255, 0.05);
}

/* --- AGB Checkbox --- */
.agb-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    cursor: pointer;
}

.agb-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.agb-checkbox input[type="checkbox"]:checked {
    background: rgba(0, 120, 80, 0.15);
    border-color: rgba(0, 120, 80, 0.4);
}

.agb-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    font-size: 12px;
    font-weight: 700;
    color: rgba(0, 100, 60, 0.7);
}

.agb-checkbox span {
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-tertiary);
    user-select: none;
}

.agb-checkbox span a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.calc-email {
    margin-bottom: 12px;
}

.shipping-hint {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    margin-bottom: 10px;
    min-height: 16px;
    transition: color 0.3s;
}

.price-vat {
    font-size: 9px;
    color: var(--text-tertiary);
    text-align: center;
    margin: 3px 0 4px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.calc-email input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    color: var(--text-primary);
    text-align: center;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.calc-email input:focus {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.8);
}

.result-footnote {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 10px;
}

/* --- Calculator Info --- */
.calc-info {
    font-size: 13px;
    color: var(--text-tertiary);
    max-width: 640px;
    margin: 16px auto 0;
    text-align: center;
    line-height: 1.6;
    padding: 0 20px 32px;
}

.calc-info strong {
    color: var(--text-secondary);
}

/* --- Parts List — Per-Part Cards --- */
.parts-list {
    display: none;
    margin: -8px 0 0;
}

.parts-list.visible {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.part-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pc-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-vol {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.pc-remove {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.pc-remove:hover {
    background: rgba(200, 0, 0, 0.15);
    color: #cc0000;
}

.pc-controls {
    display: flex;
    gap: 8px;
    align-items: end;
    flex-wrap: wrap;
}

.pc-field {
    flex: 1;
    min-width: 110px;
}

.pc-field label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.pc-field select,
.pc-field input {
    width: 100%;
    padding: 6px 8px;
    font-family: var(--font);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
}

.pc-field select:focus,
.pc-field input:focus {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.pc-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23888' d='M5 7L1 2h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 22px;
}

.pc-field-qty {
    min-width: 60px;
    max-width: 70px;
}

.pc-field-color {
    min-width: 80px;
    max-width: 100px;
}

.pc-field-qty input {
    text-align: center;
    font-weight: 600;
}

.pc-subtotal {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    padding: 6px 0 6px 4px;
}

.calc-add-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 860px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }
    .calc-result {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .calc-row {
        grid-template-columns: 1fr 1fr;
    }
    .calc-field-qty {
        grid-column: span 2;
        display: flex;
        gap: 12px;
        align-items: center;
    }
    .calc-field-qty label {
        margin-bottom: 0;
        white-space: nowrap;
    }
    .calc-field-qty input {
        max-width: 100px;
    }
}

@media (max-width: 600px) {
    .calc-upload {
        padding: 20px;
    }
    .drop-zone {
        padding: 24px 16px;
    }
    .dz-icon {
        font-size: 28px;
    }
    .pc-controls {
        flex-wrap: wrap;
    }
    .pc-field {
        min-width: 80px;
    }
    .pc-field-color {
        min-width: 70px;
        max-width: 80px;
    }
    .pc-field-qty {
        min-width: 50px;
        max-width: 60px;
    }
    .result-total {
        font-size: 36px;
    }
    .material-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    .stat-item {
        width: 100%;
        max-width: 240px;
    }
    .usp-grid {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 20px;
    }
    .legal-content {
        padding: 24px;
    }
}

/* Mobile: sustainability stacked (text → visual) */
@media (max-width: 768px) {
    .sust-inner {
        display: block;
    }
    .sust-text {
        margin-bottom: 16px;
    }
    .sust-visual {
        height: 200px;
        width: 100%;
        position: relative;
        border-radius: var(--glass-radius);
    }

    /* Disable heavy backdrop-filter on mobile for performance */
    .glass, nav, .hinweis-banner, .cta-button {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Mobile popup fix */
@media (max-width: 600px) {
    .popup-modal {
        padding: 24px 20px;
        width: calc(100% - 16px);
        max-height: 90vh;
    }
    .popup-modal-wide {
        max-width: 100%;
    }
    .popup-content h1 {
        font-size: 20px;
    }
}

/* ===================================================
   NACHHALTIGKEIT
   =================================================== */
.sustainability {
    padding: 48px 20px;
    overflow: hidden;
    max-width: 100vw;
}

.sust-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.sust-text {
    padding: 40px;
    border-radius: var(--glass-radius);
}

.sust-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.sust-text h2 {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.sust-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.sust-text strong {
    color: var(--text-primary);
}

.sust-footnote {
    font-size: 12px !important;
    color: var(--text-tertiary) !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    font-style: italic;
}

/* --- Visual / Photo Area --- */
.sust-visual {
    position: relative;
    height: 400px;
    border-radius: var(--glass-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sust-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(120, 200, 120, 0.3) 0%, rgba(80, 160, 200, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    animation: sustPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sustPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0.9; }
}

/* Abstract leaf/wing shapes (CSS-only decorative elements) */
.sust-leaf {
    position: absolute;
    border-radius: 50% 0 50% 0;
    pointer-events: none;
    opacity: 0.12;
}

.sust-leaf-1 {
    width: 160px;
    height: 110px;
    background: linear-gradient(135deg, #8bc48b, #5a9e6f);
    top: 12%;
    right: 25%;
    transform: rotate(-25deg);
    animation: leafFloat 7s ease-in-out infinite;
    border-radius: 60% 0 50% 0;
}

.sust-leaf-2 {
    width: 120px;
    height: 160px;
    background: linear-gradient(225deg, #7ab87a, #4a8f5f);
    bottom: 15%;
    left: 18%;
    transform: rotate(45deg);
    animation: leafFloat 9s ease-in-out infinite reverse;
    border-radius: 50% 0 60% 0;
}

.sust-leaf-3 {
    width: 90px;
    height: 70px;
    background: linear-gradient(45deg, #6aaa6a, #3a7f4f);
    top: 45%;
    left: 55%;
    transform: rotate(15deg);
    animation: leafFloat 6s ease-in-out infinite 1s;
    border-radius: 40% 0 60% 0;
}

.sust-leaf-4 {
    width: 100px;
    height: 130px;
    background: linear-gradient(160deg, #9dd09d, #6aaf6a);
    top: 60%;
    right: 10%;
    transform: rotate(-40deg);
    animation: leafFloat 8s ease-in-out infinite 2s;
    border-radius: 55% 0 45% 0;
}

.sust-leaf-5 {
    width: 70px;
    height: 90px;
    background: linear-gradient(300deg, #b5dbb5, #7fc07f);
    bottom: 30%;
    left: 40%;
    transform: rotate(60deg);
    animation: leafFloat 5s ease-in-out infinite 0.5s;
    border-radius: 45% 0 55% 0;
}

@keyframes leafFloat {
    0%, 100% { transform: var(--tw, rotate(0deg)) translateY(0); }
    50% { transform: var(--tw, rotate(0deg)) translateY(-14px); }
}

.sust-leaf-1 { --tw: rotate(-25deg); }
.sust-leaf-2 { --tw: rotate(45deg); }
.sust-leaf-3 { --tw: rotate(15deg); }
.sust-leaf-4 { --tw: rotate(-40deg); }
.sust-leaf-5 { --tw: rotate(60deg); }

@keyframes leafFloat {
    0%, 100% { transform: var(--tw, rotate(0deg)) translateY(0); }
    50% { transform: var(--tw, rotate(0deg)) translateY(-14px); }
}

.calc-vat {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 4px;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.legal-footnote {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.payment-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s;
}

.payment-link:hover {
    border-bottom-color: var(--text-primary);
}

.shipping-highlight {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.popup-footnote {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Versand Popup --- */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup-overlay.open {
    display: flex;
    opacity: 1;
}

.popup-modal {
    position: relative;
    width: calc(100% - 40px);
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: var(--glass-radius);
    background: rgba(255, 255, 255, 0.96);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay.open .popup-modal {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-tertiary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

.popup-content h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
    padding-right: 36px;
}

.popup-content h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 8px;
}

.popup-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.popup-content .legal-date {
    margin-bottom: 16px;
}

.popup-content .payment-link {
    font-size: 15px;
}

.popup-content .shipping-highlight {
    font-size: 18px;
}

/* Wider popup for long legal text */
.popup-modal-wide {
    max-width: 720px;
}

.popup-content-long {
    line-height: 1.8;
}

.popup-content-long h2 {
    font-size: 17px;
    margin-top: 28px;
}

.popup-content-long h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 6px;
}

.popup-content-long p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.popup-content-long strong {
    color: var(--text-primary);
}

.popup-content-long em {
    color: var(--text-tertiary);
    font-style: normal;
    font-weight: 500;
}

.popup-content-long a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
    nav {
        top: 12px;
        width: calc(100% - 24px);
        padding: 0 18px;
        height: 56px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 16px 40px;
    }

    .hero-stats {
        gap: 10px;
    }

    .stat-item {
        padding: 12px 20px;
        min-width: 90px;
    }

    .stat-number {
        font-size: 26px;
    }

    .section {
        padding: 48px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 24px;
    }

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

    .price-table {
        text-align: center;
    }

    .footer {
        padding: 24px 16px;
        margin: 0 -16px;
    }
}
