/* =========================================================
   RIGPA CHILD THEME - v0.1.0
   Design: Tiefblau + Gold, Cormorant Garamond + Inter
   ========================================================= */

/* --- CSS-VARIABLEN --- */
:root {
    --rigpa-gold:        #9B7E2E;
    --rigpa-gold-light:  #C4A84F;
    --rigpa-gold-pale:   #F5EDD6;
    --rigpa-deep:        #1A1A2E;
    --rigpa-deep2:       #16213E;
    --rigpa-mid:         #2A2A4A;
    --rigpa-cream:       #FAF8F3;
    --rigpa-text:        #2C2C2A;
    --rigpa-muted:       #6B6B6B;
    --rigpa-border:      #E0D9CC;
    --rigpa-serif:       'Cormorant Garamond', Georgia, serif;
    --rigpa-sans:        'Inter', system-ui, sans-serif;
}

/* --- RESET & BASIS --- */
body {
    font-family: var(--rigpa-sans);
    background: var(--rigpa-cream);
    color: var(--rigpa-text);
    line-height: 1.7;
}

/* --- HEADER / NAVIGATION --- */
.wp-site-blocks > header,
header.wp-block-template-part {
    background: var(--rigpa-deep) !important;
    border-bottom: 1px solid rgba(155,126,46,0.3);
}

.wp-block-site-title a,
.wp-block-site-title {
    font-family: var(--rigpa-serif) !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--rigpa-gold) !important;
    letter-spacing: .05em;
    text-decoration: none !important;
}

.wp-block-navigation a {
    color: rgba(255,255,255,0.75) !important;
    font-size: 13px !important;
    letter-spacing: .03em;
    text-decoration: none !important;
}

.wp-block-navigation a:hover {
    color: var(--rigpa-gold-light) !important;
}

/* --- FOOTER --- */
.wp-site-blocks > footer,
footer.wp-block-template-part {
    background: var(--rigpa-deep) !important;
    color: rgba(255,255,255,0.5) !important;
    border-top: 1px solid rgba(155,126,46,0.3);
}

footer p, footer a {
    color: rgba(255,255,255,0.5) !important;
    font-size: 13px !important;
}

/* --- TYPOGRAFIE GLOBAL --- */
h1, h2, h3, h4 {
    font-family: var(--rigpa-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--rigpa-text);
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }

.entry-title,
.wp-block-post-title {
    font-family: var(--rigpa-serif) !important;
    font-weight: 500 !important;
    color: var(--rigpa-text) !important;
}

/* --- GOLDENE TRENNLINIE --- */
.rigpa-divider-gold {
    width: 48px;
    height: 2px;
    background: var(--rigpa-gold);
    margin: 1.5rem 0;
    border: none;
}

/* --- SECTION-EYEBROW --- */
.rigpa-eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rigpa-gold);
    font-weight: 500;
    margin-bottom: .5rem;
    display: block;
}

/* =========================================================
   SINGLE EVENT TEMPLATE
   ========================================================= */

.rigpa-event-single {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Hero-Bereich */
.rigpa-event-hero {
    background: var(--rigpa-deep2);
    margin: -2rem -1.5rem 2.5rem;
    padding: 3rem 2rem 2.5rem;
    border-bottom: 3px solid var(--rigpa-gold);
}

.rigpa-event-hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.rigpa-event-hero-title {
    font-family: var(--rigpa-serif);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .75rem;
}

.rigpa-event-hero-subtitle {
    font-family: var(--rigpa-serif);
    font-size: 18px;
    font-style: italic;
    color: var(--rigpa-gold-light);
    margin-bottom: 1.25rem;
}

.rigpa-event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.rigpa-event-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}

.rigpa-event-hero-meta-item i {
    color: var(--rigpa-gold-light);
    font-size: 16px;
}

/* Slots-Tabelle */
.rigpa-event-slots {
    background: #fff;
    border: 1px solid var(--rigpa-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.rigpa-event-slots-title {
    background: var(--rigpa-gold-pale);
    padding: .75rem 1.25rem;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rigpa-gold);
    border-bottom: 1px solid var(--rigpa-border);
}

.rigpa-event-slot-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .875rem 1.25rem;
    border-bottom: 1px solid #f5f0e8;
    font-size: 14px;
}

.rigpa-event-slot-row:last-child {
    border-bottom: none;
}

.rigpa-event-slot-day {
    font-family: var(--rigpa-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--rigpa-text);
    min-width: 160px;
}

.rigpa-event-slot-time {
    color: var(--rigpa-muted);
}

/* Personen-Bereich */
.rigpa-event-persons {
    margin-bottom: 2.5rem;
}

.rigpa-event-persons-title {
    font-family: var(--rigpa-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--rigpa-text);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--rigpa-border);
}

.rigpa-event-persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.rigpa-person-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--rigpa-border);
    border-radius: 8px;
    padding: .625rem .875rem;
    text-decoration: none;
    transition: border-color .15s;
}

.rigpa-person-chip:hover {
    border-color: var(--rigpa-gold);
}

.rigpa-person-chip-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rigpa-deep);
    border: 1.5px solid var(--rigpa-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rigpa-serif);
    font-size: 14px;
    color: var(--rigpa-gold-light);
    flex-shrink: 0;
}

.rigpa-person-chip-info {
    min-width: 0;
}

.rigpa-person-chip-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--rigpa-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rigpa-person-chip-role {
    font-size: 11px;
    color: var(--rigpa-muted);
}

/* Anmelde-Button */
.rigpa-event-cta {
    background: var(--rigpa-deep);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.rigpa-event-cta-text {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.rigpa-event-cta-title {
    font-family: var(--rigpa-serif);
    font-size: 20px;
    color: #fff;
    margin-bottom: .25rem;
}

.rigpa-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--rigpa-gold);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-family: var(--rigpa-sans);
    letter-spacing: .03em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.rigpa-btn-gold:hover {
    background: var(--rigpa-gold-light);
    color: #fff;
}

.rigpa-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--rigpa-gold);
    border: 1px solid var(--rigpa-gold);
    border-radius: 5px;
    font-size: 13px;
    font-family: var(--rigpa-sans);
    letter-spacing: .03em;
    text-decoration: none;
    cursor: pointer;
}

.rigpa-btn-outline:hover {
    background: var(--rigpa-gold-pale);
}

/* Beschreibung */
.rigpa-event-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--rigpa-text);
    margin-bottom: 2.5rem;
}

.rigpa-event-description p {
    margin-bottom: 1.25rem;
}

/* =========================================================
   SINGLE PERSON TEMPLATE
   ========================================================= */

.rigpa-person-single {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.rigpa-person-hero {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rigpa-border);
    flex-wrap: wrap;
}

.rigpa-person-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--rigpa-deep);
    border: 3px solid var(--rigpa-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rigpa-serif);
    font-size: 42px;
    color: var(--rigpa-gold-light);
    flex-shrink: 0;
    overflow: hidden;
}

.rigpa-person-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rigpa-person-hero-info {
    flex: 1;
    min-width: 200px;
}

.rigpa-person-hero-name {
    font-family: var(--rigpa-serif);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 500;
    color: var(--rigpa-text);
    margin-bottom: .25rem;
}

.rigpa-person-hero-role {
    font-size: 15px;
    color: var(--rigpa-gold);
    margin-bottom: 1rem;
    letter-spacing: .02em;
}

.rigpa-person-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: 13px;
    color: var(--rigpa-muted);
}

.rigpa-person-hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rigpa-person-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--rigpa-text);
    margin-bottom: 2.5rem;
}

.rigpa-person-bio p { margin-bottom: 1.25rem; }

/* Events der Person */
.rigpa-person-events-title {
    font-family: var(--rigpa-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--rigpa-text);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--rigpa-border);
}

.rigpa-person-event-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0ebe0;
    text-decoration: none;
}

.rigpa-person-event-row:hover .rigpa-person-event-title {
    color: var(--rigpa-gold);
}

.rigpa-person-event-date {
    min-width: 44px;
    text-align: center;
    padding-top: 2px;
}

.rigpa-person-event-day {
    display: block;
    font-family: var(--rigpa-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--rigpa-text);
    line-height: 1;
}

.rigpa-person-event-month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rigpa-muted);
}

.rigpa-person-event-info { flex: 1; }

.rigpa-person-event-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--rigpa-text);
    margin-bottom: 3px;
    transition: color .15s;
}

.rigpa-person-event-meta {
    font-size: 12px;
    color: var(--rigpa-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.rigpa-person-event-role {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--rigpa-gold-pale);
    color: var(--rigpa-gold);
    border-radius: 3px;
}

/* =========================================================
   BADGES (global, erganzt kalender.css)
   ========================================================= */

.rigpa-badge {
    font-family: var(--rigpa-sans);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: .02em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {
    .rigpa-event-hero { padding: 2rem 1.25rem 1.75rem; }
    .rigpa-event-cta { flex-direction: column; }
    .rigpa-person-hero { flex-direction: column; align-items: center; text-align: center; }
    .rigpa-event-hero-meta { gap: 1rem; }
    .rigpa-event-slot-day { min-width: 120px; }
}
