/*
 * Theme Name:  FUKK Child
 * Description: Blocksy Child Theme – fukk.me
 * Template:    blocksy
 * Version:     1.0
 */

/* -----------------------------------------------
   0. FONTS – lokal, kein externer Request (DSGVO)
----------------------------------------------- */
@font-face {
    font-family: 'Courier New';
    src: local('Courier New'), local('CourierNew'),
         url('fonts/courier-new.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Courier New';
    src: local('Courier New Bold'), local('CourierNew-Bold'),
         url('fonts/courier-new-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* -----------------------------------------------
   1. BLOCKSY COLOR OVERRIDES
----------------------------------------------- */
:root {
    --theme-palette-color-1: #000000;
    --theme-palette-color-2: #000000;
    --theme-palette-color-3: #000000;
    --theme-palette-color-4: #ffffff;
    --theme-palette-color-5: #000000;
    --theme-palette-color-6: #333333;
    --theme-palette-color-7: #555555;
    --theme-palette-color-8: #f5f5f5;
}

/* -----------------------------------------------
   2. TYPOGRAFIE
----------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.site-title,
.page-title,
.entry-title,
.woocommerce-loop-product__title,
.product_title {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: #000;
}

/* H1 / Page Title: immer größer als H2 */
h1,
.entry-title,
.page-title {
    font-size: clamp( 2.5rem, 6vw, 4.5rem );
    line-height: 1;
}

/* H2 bleibt kleiner */
h2 {
    font-size: clamp( 1.6rem, 3.5vw, 2.5rem );
    line-height: 1.1;
}

h3 {
    font-size: clamp( 1.1rem, 2vw, 1.6rem );
    line-height: 1.2;
}

body,
p,
li,
label,
input,
textarea,
select,
button {
    font-family: system-ui, -apple-system, sans-serif;
    color: #000;
}

/* -----------------------------------------------
   3. WOOCOMMERCE BASE
----------------------------------------------- */

/* Produktkarte: overflow sichtbar für Chaos-Effekte */
.woocommerce ul.products li.product {
    overflow: visible;
}

/* Preis auf Produktseite: übergroß */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    display: block;
}

/* Preis in Produktkarte: leicht zu groß */
.woocommerce ul.products li.product .price {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
}

/* Buttons: Checkout + Cart bleiben sauber */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    animation: none !important;
    transform: none !important;
}

/* -----------------------------------------------
   4. CHAOS – KLASSEN & ANIMATIONEN
   Nie auf .woocommerce-cart / .woocommerce-checkout
----------------------------------------------- */

/* Flackern */
@keyframes fukk-flicker {
    0%, 89%, 91%, 93%, 100% { opacity: 1; }
    90%                      { opacity: 0.3; }
    92%                      { opacity: 0.8; }
}

.fukk-flicker {
    animation: fukk-flicker 7s ease-in-out infinite;
}

/* Hängende Animation */
@keyframes fukk-hang {
    0%, 100%   { transform: translateY(0); }
    30%        { transform: translateY(-5px); }
    55%, 70%   { transform: translateY(-5px); } /* hängt */
    85%        { transform: translateY(2px); }
}

.fukk-hang {
    animation: fukk-hang 5s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* Off-Grid: leicht verschoben */
.fukk-offgrid {
    transform: translate(4px, -3px) rotate(-0.6deg);
    display: inline-block;
}

/* Bild bricht aus Container */
.fukk-overflow {
    overflow: visible;
}

.fukk-overflow img,
img.fukk-overflow {
    transform: translate(6px, -8px) scale(1.05);
    position: relative;
    z-index: 1;
}

/* Typografie kippt leicht */
.fukk-tilt {
    display: inline-block;
    transform: rotate(-1.2deg);
}

/* -----------------------------------------------
   5. HEADLINE CHAOS – Homepage H1
----------------------------------------------- */

/* Buchstaben inline-block damit transform greift */
.home .entry-title .fukk-char,
.home .page-title .fukk-char,
.home h1 .fukk-char {
    display: inline-block;
    line-height: 1;
    /* Misprint-Schatten: leicht versetzt, wie schlechte Druckregistrierung */
    text-shadow: 2px 1px 0 rgba(0, 0, 0, 0.12);
}

/* Ohne JS: H1 leicht schräg als Fallback */
body.home .entry-title:not([aria-label]),
body.home .page-title:not([aria-label]) {
    transform: rotate( -0.5deg );
    display: inline-block;
}

/* -----------------------------------------------
   6. HOMEPAGE – INHALT (h2, h3, p, ul/li)
   NUR innerhalb .fukk-content – Navigation bleibt sauber
----------------------------------------------- */

/* H2: Letter-Chaos via JS + Misprint-Shadow */
.fukk-content h2 {
    letter-spacing: -0.03em;
    margin: 0 0 0.6em;
    text-shadow: 3px 2px 0 rgba( 0, 0, 0, 0.07 ), -1px 0 0 rgba( 0, 0, 0, 0.04 );
}

.fukk-content h2 .fukk-char {
    line-height: 1;
    text-shadow: 2px 1px 0 rgba( 0, 0, 0, 0.1 );
}

/* H3: Uppercase, weites Tracking, dickere off-register Unterstreichung */
.fukk-content h3 {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin: 0 0 0.5em;
    transform: rotate( 1deg );
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 9px;
}

/* Fließtext: JS übernimmt Wort-Chaos */
.fukk-content p {
    font-size: clamp( 1rem, 1.5vw, 1.125rem );
    line-height: 1.75;
    max-width: 65ch;
    margin: 0 0 1.25em;
}

/* Wort-Span: nur display sicherstellen */
.fukk-word {
    display: inline;
}

/* Liste: NUR in .fukk-content – Navigation nicht betroffen */
.fukk-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25em;
}

.fukk-content ul li {
    font-size: clamp( 1rem, 1.5vw, 1.125rem );
    line-height: 1.6;
    padding-left: 1.75em;
    margin-bottom: 0.35em;
    position: relative;
}

/* Alternating horizontal shifts */
.fukk-content ul li:nth-child( 2n ) { transform: translateX( 5px ); }
.fukk-content ul li:nth-child( 3n ) { transform: translateX( -4px ); }

/* Bullet via JS data-bullet Attribut */
.fukk-content ul li::before {
    content: attr( data-bullet );
    position: absolute;
    left: 0;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: #000;
}

/* Fallback wenn JS noch nicht gelaufen */
.fukk-content ul li:not([data-bullet])::before {
    content: '—';
}

/* Abgeschnittene Bullets: Zeichen zu groß → clippt */
.fukk-content ul li.fukk-li-cut {
    overflow: hidden;
}

.fukk-content ul li.fukk-li-cut::before {
    font-size: 1.6em;
    line-height: 0.9;
    top: 0;
    left: -0.1em;
    opacity: 0.75;
}

/* -----------------------------------------------
   7. FOOTER
----------------------------------------------- */
.fukk-footer {
    background: #000;
    color: #fff;
    padding: 3rem 2rem 2rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
}

.fukk-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fukk-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.fukk-footer-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.fukk-footer-nav a:hover {
    opacity: 0.5;
}

.fukk-footer-social {
    display: flex;
    gap: 1rem;
}

.fukk-footer-social a {
    color: #fff;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.fukk-footer-social a:hover {
    opacity: 1;
}

.fukk-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #222;
    padding-top: 1.5rem;
}

.fukk-footer-copy {
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.03em;
}

.fukk-footer-legal {
    display: flex;
    gap: 1.5rem;
}

.fukk-footer-legal a {
    color: #555;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.fukk-footer-legal a:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .fukk-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -----------------------------------------------
   6. 404
----------------------------------------------- */
.fukk-404-wrap {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
    background: #fff;
}

.fukk-404-number {
    position: absolute;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(140px, 30vw, 320px);
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.fukk-404-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 560px;
}

.fukk-404-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #000;
}

.fukk-404-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.fukk-404-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fukk-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: background 0.2s, color 0.2s;
}

.fukk-btn:hover {
    background: #333;
    color: #fff;
}

.fukk-btn--secondary {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.fukk-btn--secondary:hover {
    background: #000;
    color: #fff;
}

/* -----------------------------------------------
   7. PREFERS-REDUCED-MOTION
----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .fukk-flicker,
    .fukk-hang {
        animation: none;
    }

    .fukk-offgrid,
    .fukk-tilt {
        transform: none;
    }

    .fukk-overflow img,
    img.fukk-overflow {
        transform: none;
    }
}
