/*
Theme Name: Rackelhahn Child
Theme URI: https://burg-taverne.de
Description: Child Theme für Der Räudige Rackelhahn – Fantasy LARP Taverne
Author: Räudiger Rackelhahn
Template: twentytwentyfour
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2
Text Domain: rackelhahn-child
*/

/* =============================================
   RACKELHAHN DESIGN TOKENS
   Homepage-Palette (exakt aus main.css + front-page.php)
   ============================================= */
:root {
    /* Gold */
    --rk-gold:                #c9a84c;
    --rk-gold-dim:            #8a6e2a;
    --rk-gold-pale:           #f0dfa0;
    /* Red (CTA) */
    --rk-red:                 #8B1A1A;
    --rk-red-hi:              #a82020;
    --rk-red-border:          #c23030;
    /* Backgrounds */
    --rk-bg-darkest:          #0f0f0f;
    --rk-bg-dark:             #161616;
    --rk-bg-mid:              #1a1a1a;
    --rk-bg-card:             #1f1f1f;
    --rk-bg-section:          #242424;
    /* Border */
    --rk-border:              #333333;
    /* Text */
    --rk-text:                #c8c8c8;
    --rk-text-dim:            #999999;
    --rk-text-muted:          #707070;
    /* Nav */
    --rk-nav-bg:              #0a0a0a;
    /* Hero */
    --rk-hero-title:          #f0e8d0;
    --rk-hero-badge:          rgba(139,26,26,0.92);
    --rk-hero-overlay:        rgba(5,4,2,0.35);
    /* Radii */
    --rk-radius-sm:           4px;
    --rk-radius-md:           6px;
    --rk-radius-lg:           8px;
    /* Backwards-compat aliases (alte Variablennamen) */
    --rk-bg-primary:          #161616;
    --rk-bg-secondary:        #1f1f1f;
    --rk-gold-light:          #f0dfa0;
    --rk-text-primary:        #c8c8c8;
    --rk-text-secondary:      #999999;
    --rk-btn-primary:         #8B1A1A;
    --rk-btn-primary-hover:   #a82020;
    --rk-btn-primary-border:  #c23030;
    --rk-btn-primary-text:    #f0dfa0;
    --rk-badge-bg:            #8B1A1A;
    /* Fraktur / Gothic Headlines */
    --font-fraktur:           'UnifrakturMaguntia', cursive;
}

/* SECTION BACKGROUNDS */
.rk-section-wrap     { background: var(--rk-bg-dark); }
.rk-section-wrap.alt { background: var(--rk-bg-section); }

/* HERO STANDARD */
.rk-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rk-bg-darkest);
    position: relative;
    overflow: hidden;
}
.rk-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: var(--rk-gold);
    opacity: 0.4;
    z-index: 3;
}
.rk-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,4,2,0.72);
    z-index: 1;
    pointer-events: none;
}
.rk-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 700px;
    padding: 0 24px;
}

/* === HERO TYPOGRAPHY === */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    max-width: 800px;
    width: 100%;
}

/* Navigation z-index – keine position-Überschreibung (sticky bleibt erhalten) */
#rk-nav, header, .site-header, #masthead {
    z-index: 9999 !important;
}

/* BADGE – Homepage-Rot */
.rk-badge {
    display: inline-block;
    background: var(--rk-badge-bg);
    color: var(--rk-btn-primary-text);
    border: 1px solid var(--rk-btn-primary-border);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: var(--rk-radius-md);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* CARDS */
.rk-card {
    background: var(--rk-bg-card);
    border: 1px solid var(--rk-border);
    border-radius: var(--rk-radius-lg);
    padding: 20px;
    transition: border 0.15s;
}
.rk-card:hover { border-color: var(--rk-gold); }

/* BUTTONS */
.rk-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--rk-radius-md);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.rk-btn-gold {
    background: var(--rk-gold);
    color: var(--rk-bg-darkest);
    border: none;
}
.rk-btn-gold:hover { background: var(--rk-gold-pale); color: var(--rk-bg-darkest); }
.rk-btn-outline {
    background: transparent;
    color: var(--rk-gold);
    border: 1.5px solid var(--rk-gold);
}
.rk-btn-outline:hover {
    background: var(--rk-gold);
    color: var(--rk-bg-darkest);
}

/* GENERIC ACCORDION */
.rk-acc-header {
    background: var(--rk-bg-card);
    color: var(--rk-gold);
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--rk-border);
    border-radius: var(--rk-radius-md);
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: border 0.15s;
}
.rk-acc-header:hover { border-color: var(--rk-gold); }
.rk-acc-body {
    background: var(--rk-bg-dark);
    color: var(--rk-text);
    padding: 16px 20px;
    border: 1px solid var(--rk-border);
    border-top: none;
    border-radius: 0 0 var(--rk-radius-md) var(--rk-radius-md);
    font-size: 14px;
    line-height: 1.7;
}

/* DIVIDER */
.rk-divider {
    background: var(--rk-gold);
    opacity: 0.35;
}

/* === FRAKTUR HEADLINES ===
   H1 + H2 global auf Fraktur – Buttons/Badges/Nav bleiben Cinzel */
h1, h2 {
    font-family: var(--font-fraktur) !important;
}