/* ==========================================================
   MEGA STORE GLADBECK – Light Design
   ========================================================== */

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

:root {
    /* Markenfarben aus dem Logo */
    --brand-red:        #C8202D;
    --brand-red-dark:   #A81824;
    --brand-red-light:  #E84855;
    --brand-red-soft:   #FCE8EA;

    /* Neutrale Töne */
    --bg:               #FDFCFB;
    --bg-elevated:      #FFFFFF;
    --bg-subtle:        #F7F5F3;
    --border:           #ECE8E5;
    --border-strong:    #D9D4CF;

    --text:             #1A1614;
    --text-muted:       #6B6560;
    --text-soft:        #948D87;

    /* Akzente */
    --gold:             #B8965A;
    --success:          #2D8A4E;
    --danger:           #C8202D;

    /* Effekte */
    --shadow-sm:  0 1px 2px rgba(26,22,20,0.04);
    --shadow:     0 4px 16px rgba(26,22,20,0.06), 0 1px 2px rgba(26,22,20,0.04);
    --shadow-lg:  0 24px 60px -20px rgba(200,32,45,0.18), 0 8px 24px rgba(26,22,20,0.08);

    --radius-sm:  6px;
    --radius:     12px;
    --radius-lg:  20px;

    /* Typografie */
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(200,32,45,0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 100%, rgba(200,32,45,0.025) 0%, transparent 50%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01', 'cv11';
    overflow-x: hidden;
}

/* Feines Rauschen für Tiefe */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

main, header, footer, nav { position: relative; z-index: 2; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 600; }

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

a { color: var(--brand-red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-red-dark); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-red);
}
.eyebrow::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--brand-red);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(253,252,251,0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    display: grid; place-items: center;
    box-shadow: 0 6px 16px -4px rgba(200,32,45,0.4);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.brand-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 50%);
}
.brand-mark svg { position: relative; z-index: 1; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.brand-tag {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-top: 2px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--brand-red-soft);
    color: var(--brand-red-dark);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}
.header-info .dot {
    width: 8px; height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.8); }
}

@media (max-width: 640px) {
    .header-info .label-full { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero-icon {
    width: 84px; height: 84px;
    margin: 0 auto 32px;
    border-radius: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    position: relative;
    animation: float 6s ease-in-out infinite;
}
.hero-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    padding: 2px;
    background: linear-gradient(135deg, var(--brand-red), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.hero .eyebrow { margin-bottom: 20px; }

.hero h1 {
    margin-bottom: 24px;
}
.hero h1 em {
    font-style: italic;
    color: var(--brand-red);
    font-weight: 400;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
.hero-meta svg { color: var(--brand-red); flex-shrink: 0; }

/* ---------- Info-Karten ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 60px 0;
}

.info-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}
.info-card:hover::before { opacity: 1; }

.info-card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--brand-red-soft);
    color: var(--brand-red);
    display: grid; place-items: center;
    margin-bottom: 16px;
}

.info-card h3 { margin-bottom: 8px; font-size: 1rem; }
.info-card p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}
.info-card .small {
    display: block;
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-top: 4px;
}
.info-card a { color: var(--text); font-weight: 500; }
.info-card a:hover { color: var(--brand-red); }

/* ---------- Sektionen ---------- */
section.block {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p {
    max-width: 540px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* ---------- Sortiment-Pillen ---------- */
.tag-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all .25s ease;
}
.tag:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    transform: translateY(-2px);
}
.tag svg { color: var(--brand-red); }

/* ---------- Kontakt-Formular ---------- */
.contact-wrap {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.contact-wrap::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--brand-red-soft) 0%, transparent 70%);
    pointer-events: none;
}

.contact-wrap > * { position: relative; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}
.form-grid .full { grid-column: 1 / -1; }

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}
.field label .req { color: var(--brand-red); margin-left: 2px; }

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.field input:hover,
.field textarea:hover { border-color: var(--border-strong); }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 4px rgba(200,32,45,0.08);
}

.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.field-error { font-size: 0.78rem; color: var(--brand-red); margin-top: 2px; min-height: 1em; }

.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.consent input[type="checkbox"] {
    margin-top: 3px;
    width: 18px; height: 18px;
    accent-color: var(--brand-red);
    flex-shrink: 0;
    cursor: pointer;
}
.consent label { cursor: pointer; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: var(--brand-red);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 4px 14px rgba(200,32,45,0.3);
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 40%);
    opacity: 0;
    transition: opacity .25s ease;
}
.btn:hover { background: var(--brand-red-dark); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(200,32,45,0.35); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn .spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    display: none;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}
.form-feedback.is-visible { display: flex; }
.form-feedback.is-success { background: #E6F4EC; color: #1D6B3B; border: 1px solid #BFE0CC; }
.form-feedback.is-error   { background: var(--brand-red-soft); color: var(--brand-red-dark); border: 1px solid #F5C5C9; }

.recaptcha-note {
    margin-top: 18px;
    font-size: 0.75rem;
    color: var(--text-soft);
    text-align: center;
    line-height: 1.6;
}
.recaptcha-note a { color: var(--text-muted); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    background: var(--bg-subtle);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--brand-red); }
.footer-copy { color: var(--text-soft); font-size: 0.82rem; }

/* ---------- Inhaltsseiten (Impressum / Datenschutz) ---------- */
.legal-page {
    padding: 60px 0 80px;
}
.legal-page h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 12px;
}
.legal-page .lead {
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}
.legal-page h2 {
    font-size: 1.4rem;
    margin: 40px 0 14px;
    color: var(--text);
}
.legal-page h3 {
    font-size: 1.1rem;
    margin: 28px 0 10px;
    color: var(--text);
}
.legal-page p,
.legal-page li {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
}
.legal-page ul {
    margin: 8px 0 16px 24px;
}
.legal-page strong { color: var(--text); font-weight: 600; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 500;
}
.back-link:hover { color: var(--brand-red); }

/* ---------- Animationen beim Laden ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal .8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
.reveal-5 { animation-delay: 0.45s; }
.reveal-6 { animation-delay: 0.55s; }

@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- reCAPTCHA-Badge bei Bedarf verstecken (wir zeigen Hinweis selbst) ---------- */
.grecaptcha-badge { visibility: hidden !important; }
