/*
Theme Name: JiGs BoK Coming Soon
Theme URI: https://jigsgroup.com
Author: JiGs Group
Description: Coming-Soon-Landingpage für JiGs BoK Fried Chicken – mit Anmeldeliste (Gäste & Partner), Double-Opt-in, Rund-Mails und Medien-Verwaltung im WordPress-Adminbereich.
Version: 2.0
Requires PHP: 8.0
License: Proprietary
Text Domain: jigsbok
*/

/* ==========================================================================
   JiGs BoK – Coming-Soon-Seite
   Dunkles Theme passend zur JiGs-Familie (Grundton #0E0B09),
   Stil angelehnt an jigs-slice.de: große Typo, Schritt-Nummern, Karten.
   ========================================================================== */

:root {
    --bg: #0E0B09;
    --bg-soft: #1A1512;
    --accent: #E8681C;         /* warme Akzentfarbe */
    --accent-soft: #F2A05C;
    --text: #F4EEE8;
    --text-dim: #A89C90;
    --border: #2C241E;
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent-soft); }

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
}

.grad {
    background: linear-gradient(100deg, var(--accent) 10%, #FFC24B 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------------------- Hero -- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11vh 24px 9vh;
    min-height: 92vh;
    overflow: hidden;
}

/* warmer Lichtschein hinter dem Logo */
.hero-glow {
    position: absolute;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 95vw);
    height: 520px;
    background: radial-gradient(ellipse at center,
        rgba(232, 104, 28, 0.22) 0%,
        rgba(232, 104, 28, 0.07) 45%,
        transparent 70%);
    pointer-events: none;
}

/* Logo: groß, mittig, sanft schwebend.
   Wenn die Logo-Datei da ist: <img> in .logo einsetzen, Klasse bleibt gleich. */
.logo {
    position: relative;
    animation: float 4.5s ease-in-out infinite;
    margin-bottom: 44px;
    user-select: none;
}
.logo .logo-text {
    font-size: clamp(68px, 13vw, 148px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    display: block;
    background: linear-gradient(160deg, #FFB35C 0%, var(--accent) 55%, #B84A10 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 14px 42px rgba(232, 104, 28, 0.35));
}
.logo .logo-sub {
    display: block;
    font-size: clamp(15px, 2.4vw, 24px);
    letter-spacing: 0.55em;
    text-indent: 0.55em;
    color: var(--text);
    font-weight: 700;
    margin-top: 14px;
    text-transform: uppercase;
}
.logo img {
    max-width: min(440px, 74vw);
    height: auto;
    filter: drop-shadow(0 14px 42px rgba(232, 104, 28, 0.35));
}

.glaze-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
    .logo { animation: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

.hero h1 {
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 20px;
}
.hero .intro {
    max-width: 560px;
    color: var(--text-dim);
    font-size: clamp(16px, 2vw, 19px);
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
    justify-content: center;
}

.scroll-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 22px;
    animation: float 2.2s ease-in-out infinite;
}

/* ---------------------------------------------------------- Sektionen -- */
/* Einheitlicher Abstands-Rhythmus: Handy ~60 px → Desktop ~100 px */
.band, .band-full {
    padding: clamp(60px, 8vw, 100px) 24px;
    text-align: center;
    width: 100%;
}
/* Gepanzerter Container: kein fremdes CSS kann die Zentrierung zerstören */
.armor {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    box-sizing: border-box;
}
.band-full { padding-left: 0; padding-right: 0; }
.band-full > .armor { padding: 0 24px; }
.band-alt {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
html, body { overflow-x: hidden; } /* nichts ragt seitlich raus */
.band h2 {
    font-size: clamp(26px, 4.4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 18px;
}
.band-intro {
    max-width: 640px;
    margin: 0 auto 40px;
    color: var(--text-dim);
    font-size: clamp(15px, 1.9vw, 17px);
}

/* Scroll-Reveal – greift NUR wenn JS läuft (html.jigs-js); Failsafe:
   html.jigs-showall (nach 3,5 s) blendet alles ein, egal was passiert. */
html.jigs-js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
html.jigs-js .reveal.in,
html.jigs-showall .reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* ------------------------------------------------------ Badges (Hero) -- */
.badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 26px;
}
.badge {
    border: 1px solid var(--border);
    background: rgba(26, 21, 18, 0.7);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
}

/* ------------------------------------------------------------ Marquee -- */
.marquee {
    background: var(--accent);
    overflow: hidden;
    padding: 12px 0;
    white-space: nowrap;
}
.marquee-track {
    display: inline-flex;
    animation: marquee 22s linear infinite;
}
.marquee-track span {
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.14em;
    padding-right: 8px;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ---------------------------------------------------- Zähler-Leiste --- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 44px;
}
.stat-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
}
.stat-box .stat-num {
    display: block;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    color: var(--accent);
    line-height: 1.1;
}
.stat-box .stat-lbl {
    display: block;
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 6px;
}

/* ------------------------------------------------------ Glasur-Karten -- */
.glaze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 44px;
    text-align: left;
}
.glaze {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px 22px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.glaze:hover { transform: translateY(-6px); border-color: var(--accent); }
.glaze::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.g1::before { background: linear-gradient(90deg, #E8C99B, #C89664); }
.g2::before { background: linear-gradient(90deg, #6B4A2B, #3E2B18); }
.g3::before { background: linear-gradient(90deg, #E8681C, #C4271B); }
.g4::before { background: linear-gradient(90deg, #FFC24B, #E8981C); }
.glaze-emoji { font-size: 30px; display: block; margin-bottom: 12px; }
.glaze h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.glaze p { color: var(--text-dim); font-size: 14px; }

/* ---------------------------------------------------------- Schritte -- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    max-width: 1040px;
    margin: 0 auto;
    text-align: left;
}
.step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
}
.step-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 14px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* ------------------------------------------------------ Partner-Card -- */
.partner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(120deg, rgba(232, 104, 28, 0.12), rgba(232, 104, 28, 0.03));
    border: 1px solid rgba(232, 104, 28, 0.4);
    border-radius: var(--radius);
    padding: 40px;
    text-align: left;
}
.partner-card h2 { margin-bottom: 14px; }
.partner-card .band-intro { margin: 0; }
.partner-card .btn-inline { flex-shrink: 0; }
.partner-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* --------------------------------------------------------------- Form -- */
.signup {
    width: 100%;
    max-width: 520px;
    margin: 36px auto 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: left;
}
.signup .form-title { font-size: 20px; margin-bottom: 4px; font-weight: 800; }
.signup .sub { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text-dim); }

input[type=text], input[type=email], input[type=password], textarea, select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
}

.choice { display: flex; gap: 10px; }
.choice label {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}
.choice input { display: none; }
.choice input:checked + span { color: var(--accent); font-weight: 700; }
.choice label:has(input:checked) { border-color: var(--accent); background: rgba(232, 104, 28, 0.08); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-dim); }
.consent input { margin-top: 4px; accent-color: var(--accent); }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    margin-top: 18px;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 10px 30px rgba(232, 104, 28, 0.25);
}
.btn:hover { background: #FF7A2A; transform: translateY(-2px); }
.btn-inline { width: auto; margin-top: 0; }
.btn-small { width: auto; padding: 9px 18px; font-size: 14px; margin-top: 0; box-shadow: none; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dim); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

.alert {
    max-width: 520px;
    margin: 24px auto 0;
    border-radius: var(--radius);
    padding: 18px 22px;
    font-size: 15px;
}
.alert-ok { background: rgba(58, 160, 90, 0.12); border: 1px solid #3AA05A; }
.alert-err { background: rgba(200, 60, 40, 0.12); border: 1px solid #C83C28; }

/* -------------------------------------------------------- Unterseiten -- */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px;
}
.page h1 { font-size: 32px; margin-bottom: 24px; color: var(--accent); }
.page h2 { font-size: 20px; margin: 28px 0 10px; }
.page p, .page li { color: var(--text-dim); margin-bottom: 12px; }
.page ul { padding-left: 20px; }
.placeholder {
    background: rgba(232, 104, 28, 0.1);
    border: 1px dashed var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-soft);
}

/* --------------------------------------------------------------- Fuß -- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 26px 24px;
    text-align: center;
}
.site-footer nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 14px;
    font-size: 14px;
}
.site-footer nav a:hover { color: var(--accent-soft); }
.site-footer .footnote { color: #6E635A; font-size: 12px; margin-top: 10px; }

/* ---------------------------------------------------------- Kopfleiste -- */
.site-header {
    position: sticky;
    top: 0;
    /* Bezugsrahmen für das mobile Aufklapp-Menü */
    /* (bewusst sticky + relative Kinder-Positionierung) */
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 22px;
    background: rgba(14, 11, 9, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .brand { display: flex; align-items: center; text-decoration: none; }
.site-header .brand img { height: 40px; width: auto; display: block; }
.site-header .brand-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--accent);
}
/* Burger-Button (nur mobil sichtbar) */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.main-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.main-nav a:hover { color: var(--text); }
.main-nav .nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
}
.main-nav .nav-cta:hover { background: #FF7A2A; color: #fff; }

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(14, 11, 9, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 8px 0 14px;
        text-align: center;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 20px; font-size: 16px; }
    .main-nav .nav-cta { margin: 8px 20px 0; }
}

/* --------------------------------------------- Consent-Dialog (Ebene 2) -- */
.consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.consent-overlay[hidden] { display: none; }
.consent-modal {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    max-width: 560px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
}
.consent-modal h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.consent-intro { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.consent-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--border);
    padding: 14px 0;
}
.consent-row p { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

/* Schalter */
.switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
    position: absolute;
    inset: 0;
    background: #3A3129;
    border-radius: 26px;
    transition: background 0.15s ease;
    cursor: pointer;
}
.switch span::before {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s ease;
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch-locked span { opacity: 0.55; cursor: not-allowed; }

/* ------------------------------------------------------ Cookie-Banner -- */
.cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    z-index: 100;
    font-size: 14px;
}
.cookie-banner p { color: var(--text-dim); margin-bottom: 12px; }
.cookie-actions { display: flex; gap: 10px; }

/* -------------------------------------------------------------- Admin -- */
.admin-wrap { max-width: 1040px; margin: 0 auto; padding: 40px 24px; }
.admin-wrap h1 { color: var(--accent); font-size: 26px; margin-bottom: 20px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.admin-bar .spacer { flex: 1; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.stat {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    min-width: 140px;
}
.stat .num { font-size: 26px; font-weight: 800; color: var(--accent); }
.stat .lbl { font-size: 13px; color: var(--text-dim); }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
table.list th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.tag { padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag-gast { background: rgba(90, 140, 220, 0.15); color: #8FB4EE; }
.tag-partner { background: rgba(232, 104, 28, 0.15); color: var(--accent-soft); }
.tag-pending { background: rgba(160, 160, 160, 0.15); color: #B5AB9F; }
.tag-confirmed { background: rgba(58, 160, 90, 0.15); color: #7BC493; }

.card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.card h2 { font-size: 18px; margin-bottom: 14px; }
.login-box { max-width: 380px; margin: 12vh auto; }

/* Medien-Verwaltung */
.media-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
}
.media-info { flex: 1; min-width: 0; }
.media-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.media-upload input[type=file] {
    color: var(--text-dim);
    font-size: 13px;
    max-width: 320px;
}
.media-preview {
    flex-shrink: 0;
    width: 180px;
    height: 130px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-conic-gradient(#171310 0% 25%, #211B16 0% 50%) 0 0 / 20px 20px;
}
.media-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.media-empty { color: #6E635A; font-size: 12px; text-align: center; line-height: 1.5; }

@media (max-width: 720px) {
    .media-card { flex-direction: column-reverse; }
    .media-preview { width: 100%; }
}

@media (max-width: 720px) {
    .choice { flex-direction: column; }
    table.list { font-size: 13px; }
    .admin-bar { flex-direction: column; align-items: stretch; }
    .partner-card { flex-direction: column; align-items: flex-start; }
    /* Handy: Buttons volle Breite, nichts ragt raus */
    .hero-cta { width: 100%; }
    .hero-cta .btn-inline,
    .partner-actions,
    .partner-actions .btn-inline { width: 100%; }
}
