/**
 * Herdecke Geniessen - Custom Styles
 * Sunset & Early Evening Palette:
 *   Primary Red:   #CC0000 / #E4242A (logo red, preserved)
 *   Sunset Orange: #E8652B (warm horizon)
 *   Golden Hour:   #F5A623 / #FCC950 (amber/gold)
 *   Twilight Blue: #1E3A5F (deep evening sky)
 *   Dusk Blue:     #2D5F8A (mid-evening)
 *   Sky Lavender:  #6B7FA3 (fading twilight)
 *   Warm Cream:    #FFF0E6 (sunset glow on clouds)
 *   Dark Night:    #0F1B2D (deep evening, footer)
 */

/* ================================================
   CSS CUSTOM PROPERTIES
   ================================================ */
:root {
    /* Logo red (kept) */
    --hg-primary: #CC0000;
    --hg-primary-dark: #A30000;
    --hg-primary-bright: #E4242A;
    --hg-primary-light: #E63939;

    /* Sunset tones */
    --hg-sunset-orange: #E8652B;
    --hg-sunset-peach: #F2956B;
    --hg-golden: #F5A623;

    /* Amber/gold (poster) */
    --hg-amber: #FCC950;
    --hg-amber-dark: #E5B53E;
    --hg-amber-light: #FFF3D4;

    /* Blue twilight tones */
    --hg-twilight: #1E3A5F;
    --hg-dusk: #2D5F8A;
    --hg-sky: #6B7FA3;
    --hg-night: #0F1B2D;

    /* Cream / warm tints */
    --hg-cream: #F7D1BE;
    --hg-cream-light: #FFF0E6;

    /* Semantic aliases */
    --hg-accent: #CC0000;
    --hg-accent-hover: #A30000;
    --hg-text: #2C2C2C;
    --hg-text-light: #5A6577;
    --hg-light-bg: #FFF6F0;
    --hg-white: #FFFFFF;
    --hg-border: #E8D8CF;
    --hg-shadow: 0 4px 24px rgba(15, 27, 45, 0.08);
    --hg-shadow-hover: 0 8px 36px rgba(15, 27, 45, 0.16);
    --hg-radius: 14px;
    --hg-radius-sm: 8px;
    --hg-transition: 0.3s ease;
    --hg-container-width: 1200px;
    --hg-container-narrow: 800px;
    --hg-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================================================
   BLOCK THEME OVERRIDES (Twenty Twenty-Five FSE)
   ================================================ */

/* Hide the default block-based header/footer when our PHP templates load */
.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-block-template-part[data-area="header"],
.wp-block-template-part[data-area="footer"] {
    display: none !important;
}

/* Ensure our custom PHP header/footer are visible */
.hg-header,
.hg-footer {
    display: block !important;
}

/* Smooth scrolling for single-page navigation */
html {
    scroll-behavior: smooth;
}

/* Active nav link highlight (single-page scroll spy) */
.hg-nav-menu li a.is-active {
    color: var(--hg-twilight) !important;
    position: relative;
}

.hg-nav-menu li a.is-active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--hg-amber);
    border-radius: 2px;
}

/* Section spacing for single-page flow */
.hg-section + .hg-section {
    border-top: 1px solid var(--hg-border);
}

.hg-section--light-bg + .hg-section,
.hg-section + .hg-section--light-bg,
.hg-section--highlight + .hg-section,
.hg-section--amber + .hg-section,
.hg-section--newsletter + .hg-section,
.hg-section--cta + .hg-section {
    border-top: none;
}

/* Reset block theme body constraints */
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none;
}

.wp-site-blocks {
    padding-top: 0 !important;
}

/* ================================================
   HEADER
   ================================================ */
.hg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--hg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--hg-transition);
    border-bottom: 3px solid var(--hg-twilight);
}

/* Offset header when WP admin bar is visible */
.admin-bar .hg-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .hg-header {
        top: 46px;
    }
}

.hg-header--scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--hg-container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
}

/* Logo */
.hg-header__logo a,
.hg-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hg-header__logo-img {
    height: 52px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.hg-header__logo .custom-logo {
    max-height: 52px;
    width: auto;
    border-radius: 4px;
}

.hg-header__site-title {
    font-family: var(--hg-font);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hg-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.hg-header__site-title:hover {
    color: var(--hg-accent-hover);
}

/* Navigation */
.hg-header__nav {
    display: flex;
    align-items: center;
}

.hg-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.hg-nav-menu li {
    position: relative;
}

.hg-nav-menu li a {
    display: block;
    padding: 12px 18px;
    font-family: var(--hg-font);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--hg-text);
    text-decoration: none;
    border-radius: var(--hg-radius-sm);
    transition: all var(--hg-transition);
}

.hg-nav-menu li a:hover,
.hg-nav-menu li.current-menu-item > a,
.hg-nav-menu li.current_page_item > a {
    color: var(--hg-twilight);
    background: rgba(30, 58, 95, 0.06);
}

/* Dropdown */
.hg-nav-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--hg-white);
    border-radius: var(--hg-radius-sm);
    box-shadow: var(--hg-shadow-hover);
    padding: 8px 0;
    min-width: 220px;
    z-index: 100;
    list-style: none;
    margin: 0;
}

.hg-nav-menu li:hover > ul.sub-menu {
    display: block;
}

.hg-nav-menu li ul.sub-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 0;
}

.hg-nav-menu li ul.sub-menu li a:hover {
    background: var(--hg-light-bg);
    color: var(--hg-accent);
}

/* Mobile Toggle */
.hg-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hg-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hg-primary);
    border-radius: 2px;
    transition: all var(--hg-transition);
}

.hg-header__toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hg-header__toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.hg-header__toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Offset body for fixed header */
body {
    padding-top: 80px !important;
}

/* ================================================
   GLOBAL RESETS & TYPOGRAPHY
   ================================================ */
.hg-main {
    font-family: var(--hg-font);
    color: var(--hg-text);
    line-height: 1.7;
}

.hg-main h1, .hg-main h2, .hg-main h3, .hg-main h4 {
    font-family: var(--hg-font);
    color: var(--hg-twilight);
    line-height: 1.3;
}

.hg-main a {
    color: var(--hg-dusk);
    text-decoration: none;
    transition: color var(--hg-transition);
}

.hg-main a:hover {
    color: var(--hg-twilight);
}

/* ================================================
   CONTAINER
   ================================================ */
.hg-container {
    max-width: var(--hg-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hg-container--narrow {
    max-width: var(--hg-container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================
   BUTTONS
   ================================================ */
.hg-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--hg-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--hg-transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.hg-btn--primary {
    background: var(--hg-accent);
    color: var(--hg-white);
}

.hg-btn--primary:hover {
    background: var(--hg-accent-hover);
    color: var(--hg-white);
    transform: translateY(-2px);
    box-shadow: var(--hg-shadow-hover);
}

.hg-btn--secondary {
    background: transparent;
    color: var(--hg-twilight);
    border: 2px solid var(--hg-twilight);
}

.hg-btn--secondary:hover {
    background: var(--hg-twilight);
    color: var(--hg-white);
}

.hg-btn--full {
    display: block;
    width: 100%;
    margin-top: 16px;
}

/* ================================================
   HERO SECTION (Front Page)
   ================================================ */
.hg-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(30, 58, 95, 0.92) 0%,
        rgba(45, 95, 138, 0.80) 25%,
        rgba(232, 101, 43, 0.70) 55%,
        rgba(245, 166, 35, 0.75) 80%,
        rgba(204, 0, 0, 0.80) 100%
    );
}

.hg-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 24px;
}

.hg-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--hg-white);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hg-hero__subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--hg-cream);
    font-weight: 600;
    margin-bottom: 20px;
}

.hg-hero__tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ================================================
   PAGE HERO (Inner Pages)
   ================================================ */
.hg-page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hg-twilight) url('../images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hg-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.90) 0%, rgba(45, 95, 138, 0.75) 50%, rgba(232, 101, 43, 0.65) 100%);
}

.hg-page-hero__content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
}

.hg-page-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--hg-white);
    margin-bottom: 12px;
    font-weight: 800;
}

.hg-page-hero__subtitle {
    font-size: 1.2rem;
    color: var(--hg-cream);
    font-weight: 500;
}

.hg-breadcrumb-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-decoration: none;
}

.hg-breadcrumb-link:hover {
    color: var(--hg-accent);
}

/* ================================================
   SECTIONS
   ================================================ */
.hg-section {
    padding: 80px 0;
}

.hg-section--light-bg {
    background: var(--hg-light-bg) url('../images/section-warm-bg.jpg') center/cover no-repeat;
}

.hg-section--highlight {
    background: linear-gradient(160deg, var(--hg-night) 0%, var(--hg-twilight) 100%);
    color: var(--hg-white);
    text-align: center;
    padding: 60px 0;
}

.hg-section--highlight .hg-section__title {
    color: var(--hg-amber);
}

.hg-section--newsletter {
    background: linear-gradient(135deg, var(--hg-twilight) 0%, var(--hg-night) 100%);
    color: var(--hg-white);
    text-align: center;
}

.hg-section--newsletter .hg-section__title {
    color: var(--hg-white);
}

.hg-section--newsletter .hg-section__intro {
    color: rgba(255, 255, 255, 0.85);
}

.hg-section--cta {
    background: linear-gradient(135deg, var(--hg-sunset-orange) 0%, var(--hg-primary) 100%);
    color: var(--hg-white);
}

.hg-section--cta .hg-section__title {
    color: var(--hg-white);
}

.hg-section--cta .hg-btn--primary {
    background: var(--hg-white);
    color: var(--hg-primary);
}

.hg-section__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.hg-section__title--center {
    text-align: center;
}

.hg-section__intro {
    font-size: 1.1rem;
    color: var(--hg-text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hg-section__intro--large {
    font-size: 1.25rem;
}

.hg-highlight-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--hg-text);
    border-left: 4px solid var(--hg-golden);
    padding-left: 20px;
    margin-top: 20px;
}

/* ================================================
   GRID LAYOUTS
   ================================================ */
.hg-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.hg-grid--2col {
    grid-template-columns: 1fr 1fr;
}

.hg-grid--reverse .hg-grid__text {
    order: 2;
}

.hg-grid--reverse .hg-grid__image,
.hg-grid--reverse .hg-grid__map {
    order: 1;
}

.hg-grid--content-sidebar {
    grid-template-columns: 2fr 1fr;
    align-items: start;
}

.hg-rounded-image {
    width: 100%;
    border-radius: var(--hg-radius);
    box-shadow: var(--hg-shadow);
}

/* ================================================
   COUNTDOWN
   ================================================ */
.hg-countdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.hg-countdown__item {
    text-align: center;
}

.hg-countdown__number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--hg-primary-bright);
    line-height: 1;
}

.hg-countdown__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* ================================================
   NEXT TERMIN
   ================================================ */
.hg-next-termin {
    text-align: center;
    padding: 20px;
}

.hg-next-termin__label {
    display: inline-block;
    background: var(--hg-sunset-orange);
    color: var(--hg-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.hg-next-termin__date {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--hg-white);
    margin-bottom: 8px;
}

.hg-next-termin__time,
.hg-next-termin__motto,
.hg-next-termin__location {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

/* ================================================
   TEILNEHMER GRID (Participant Cards)
   ================================================ */
.hg-teilnehmer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.hg-teilnehmer-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.hg-teilnehmer-card {
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    overflow: hidden;
    box-shadow: var(--hg-shadow);
    transition: all var(--hg-transition);
    text-decoration: none;
    color: var(--hg-text);
    display: flex;
    flex-direction: column;
}

.hg-teilnehmer-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hg-shadow-hover);
    color: var(--hg-text);
}

.hg-teilnehmer-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.hg-teilnehmer-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hg-transition);
}

.hg-teilnehmer-card:hover .hg-teilnehmer-card__image img {
    transform: scale(1.05);
}

.hg-teilnehmer-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hg-twilight) 0%, var(--hg-dusk) 100%);
}

.hg-teilnehmer-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hg-teilnehmer-card__content h3 {
    font-size: 1.2rem;
    color: var(--hg-twilight);
    margin-bottom: 4px;
}

.hg-teilnehmer-card__subtitle {
    color: var(--hg-sunset-orange);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.hg-teilnehmer-card__excerpt {
    font-size: 0.95rem;
    color: var(--hg-text-light);
    flex: 1;
}

.hg-teilnehmer-card__link {
    color: var(--hg-dusk);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 12px;
}

/* ================================================
   TERMINE TABLE
   ================================================ */
.hg-termine-table-wrapper {
    overflow-x: auto;
}

.hg-termine-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.hg-termine-table thead th {
    background: var(--hg-twilight);
    color: var(--hg-white);
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
}

.hg-termine-table thead th:first-child {
    border-radius: var(--hg-radius-sm) 0 0 0;
}

.hg-termine-table thead th:last-child {
    border-radius: 0 var(--hg-radius-sm) 0 0;
}

.hg-termine-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--hg-border);
}

.hg-termine-table tbody tr:nth-child(even) {
    background: var(--hg-light-bg);
}

.hg-termine-table tbody tr:hover {
    background: rgba(30, 58, 95, 0.05);
}

.hg-termin--past {
    opacity: 0.5;
}

.hg-termin--next td {
    background: rgba(245, 166, 35, 0.10);
    font-weight: 600;
}

/* ================================================
   INFO GRID (Gut zu wissen)
   ================================================ */
.hg-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.hg-info-card {
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    padding: 32px 28px;
    box-shadow: var(--hg-shadow);
    text-align: center;
    border-top: 4px solid transparent;
    transition: transform var(--hg-transition), box-shadow var(--hg-transition), border-color var(--hg-transition);
}

.hg-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hg-shadow-hover);
    border-top-color: var(--hg-golden);
}

.hg-info-card__icon {
    font-size: 3.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hg-amber-light) 0%, var(--hg-cream-light) 100%);
    line-height: 1;
}

.hg-info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--hg-twilight);
}

.hg-info-card p {
    font-size: 0.95rem;
    color: var(--hg-text-light);
    line-height: 1.5;
}

/* ================================================
   SIDEBAR CARD (Participant Detail)
   ================================================ */
.hg-sidebar-card {
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    padding: 28px;
    box-shadow: var(--hg-shadow);
    position: sticky;
    top: 100px;
}

.hg-sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hg-golden);
    color: var(--hg-twilight);
}

.hg-sidebar-card__item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hg-sidebar-card__icon {
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* ================================================
   MARKET OFFER BOX
   ================================================ */
.hg-market-offer {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.08) 0%, rgba(255, 240, 230, 0.5) 100%);
    border-left: 4px solid var(--hg-golden);
    border-radius: 0 var(--hg-radius-sm) var(--hg-radius-sm) 0;
    padding: 24px;
    margin-top: 32px;
}

.hg-market-offer h3 {
    color: var(--hg-twilight);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* ================================================
   CONTACT CARD & FORM
   ================================================ */
.hg-contact-card {
    background: var(--hg-light-bg);
    border-radius: var(--hg-radius);
    padding: 32px;
    margin-top: 32px;
}

.hg-contact-card h3 {
    margin-bottom: 16px;
    color: var(--hg-twilight);
}

.hg-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hg-contact-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--hg-border);
}

.hg-contact-list li:last-child {
    border-bottom: none;
}

.hg-contact-form {
    margin-top: 24px;
}

.hg-form-group {
    margin-bottom: 20px;
}

.hg-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--hg-text);
    font-size: 0.95rem;
}

.hg-form-group input[type="text"],
.hg-form-group input[type="email"],
.hg-form-group select,
.hg-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--hg-border);
    border-radius: var(--hg-radius-sm);
    font-family: var(--hg-font);
    font-size: 1rem;
    transition: border-color var(--hg-transition);
    background: var(--hg-white);
}

.hg-form-group input:focus,
.hg-form-group select:focus,
.hg-form-group textarea:focus {
    outline: none;
    border-color: var(--hg-dusk);
}

.hg-form-group--privacy label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--hg-text-light);
}

.hg-form-group--privacy input[type="checkbox"] {
    margin-top: 3px;
}

/* ================================================
   NEWSLETTER FORM
   ================================================ */
.hg-newsletter-form__inner {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 12px;
}

.hg-newsletter-form__input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--hg-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--hg-white);
    font-size: 1rem;
}

.hg-newsletter-form__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hg-newsletter-form__input:focus {
    outline: none;
    border-color: var(--hg-cream);
    background: rgba(255, 255, 255, 0.15);
}

.hg-newsletter-form__privacy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.hg-newsletter-form__privacy a {
    color: var(--hg-cream);
}

/* ================================================
   GALLERY
   ================================================ */
.hg-gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hg-gallery-filter__btn {
    padding: 8px 24px;
    border: 2px solid var(--hg-border);
    border-radius: 30px;
    background: transparent;
    color: var(--hg-text);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--hg-transition);
}

.hg-gallery-filter__btn:hover,
.hg-gallery-filter__btn--active {
    background: var(--hg-twilight);
    color: var(--hg-white);
    border-color: var(--hg-twilight);
}

.hg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.hg-gallery-item {
    border-radius: var(--hg-radius);
    overflow: hidden;
    position: relative;
}

.hg-gallery-item__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform var(--hg-transition);
}

.hg-gallery-item:hover .hg-gallery-item__img {
    transform: scale(1.05);
}

.hg-gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    background: var(--hg-white);
    border-radius: var(--hg-radius);
    color: var(--hg-text-light);
}

/* ================================================
   SIDEBAR MAP
   ================================================ */
.hg-sidebar-map {
    margin-top: 24px;
    border-radius: var(--hg-radius);
    overflow: hidden;
    box-shadow: var(--hg-shadow);
}

/* ================================================
   PROSE (Content Area)
   ================================================ */
.hg-prose p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.hg-prose h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

/* ================================================
   FOOTER
   ================================================ */
.hg-footer {
    background: var(--hg-night);
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
}

.hg-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--hg-transition);
}

.hg-footer a:hover {
    color: var(--hg-golden);
}

.hg-footer__inner {
    max-width: var(--hg-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hg-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hg-footer__col p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 12px;
}

.hg-footer__title {
    color: var(--hg-golden);
    font-family: var(--hg-font);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 20px;
}

.hg-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hg-footer__menu li {
    margin-bottom: 10px;
}

.hg-footer__menu li a {
    font-size: 0.95rem;
    padding: 2px 0;
    display: inline-block;
}

.hg-footer__menu li a:hover {
    color: var(--hg-golden);
    padding-left: 4px;
}

.hg-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.hg-footer__bottom p {
    margin: 0;
}

.hg-footer__legal {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hg-footer__legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.hg-footer__legal a:hover {
    color: var(--hg-golden);
}

.hg-footer__legal span {
    color: rgba(255, 255, 255, 0.2);
}

.hg-footer-widget {
    margin-bottom: 24px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .hg-grid--2col,
    .hg-grid--content-sidebar {
        grid-template-columns: 1fr;
    }

    .hg-grid--reverse .hg-grid__text,
    .hg-grid--reverse .hg-grid__image,
    .hg-grid--reverse .hg-grid__map {
        order: unset;
    }

    .hg-hero {
        min-height: 70vh;
    }

    .hg-page-hero {
        min-height: 40vh;
    }

    .hg-section {
        padding: 48px 0;
    }

    .hg-countdown {
        gap: 16px;
    }

    .hg-countdown__number {
        font-size: 2rem;
    }

    .hg-sidebar-card {
        position: static;
    }

    .hg-newsletter-form__inner {
        flex-direction: column;
    }

    /* HEADER — mobile */
    .hg-header__toggle {
        display: flex;
    }

    .hg-header__nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--hg-white);
        padding: 24px;
        overflow-y: auto;
        z-index: 999;
    }

    .hg-header__nav.is-open {
        display: block;
    }

    .hg-nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .hg-nav-menu li a {
        padding: 14px 16px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--hg-border);
    }

    .hg-nav-menu li ul.sub-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        padding-left: 16px;
        display: block;
        background: var(--hg-light-bg);
        border-radius: 0;
    }

    .hg-nav-menu li ul.sub-menu li a {
        font-size: 1rem;
        padding: 12px 16px;
    }

    /* LOGO STRIP — mobile */
    .hg-logo-strip__grid {
        gap: 20px 32px;
    }

    .hg-logo-strip__item {
        max-width: 100px;
        height: 45px;
    }

    /* DATE PILLS — mobile */
    .hg-date-pills {
        gap: 8px;
    }

    .hg-date-pill {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    /* LOCATION BANNER — mobile */
    .hg-location-banner {
        padding: 24px 16px;
        font-size: 0.95rem;
    }

    /* FOOTER — mobile */
    .hg-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 24px;
    }

    .hg-footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ================================================
   SKYLINE DECORATIVE BANNER
   ================================================ */
.hg-skyline-banner {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -2px;
    position: relative;
}

.hg-skyline-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Skyline used as hero bottom decoration */
.hg-hero .hg-skyline-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.hg-hero .hg-skyline-banner img {
    filter: brightness(0) invert(1);
    opacity: 0.15;
}

/* ================================================
   PARTICIPANT LOGO STRIP
   ================================================ */
.hg-logo-strip {
    padding: 48px 0;
    background: var(--hg-white);
    border-top: 3px solid var(--hg-golden);
    border-bottom: 1px solid var(--hg-border);
}

.hg-logo-strip__title {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--hg-text-light);
    margin-bottom: 28px;
    font-weight: 600;
}

.hg-logo-strip__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px 48px;
    max-width: var(--hg-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hg-logo-strip__item {
    flex: 0 0 auto;
    max-width: 140px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--hg-transition);
    filter: grayscale(30%);
    opacity: 0.8;
}

.hg-logo-strip__item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

.hg-logo-strip__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ================================================
   AMBER ACCENT SECTIONS (Poster inspired)
   ================================================ */
.hg-section--amber {
    background: linear-gradient(135deg, var(--hg-amber) 0%, var(--hg-golden) 100%);
    color: var(--hg-text);
    text-align: center;
    padding: 48px 0;
}

.hg-section--amber .hg-section__title {
    color: var(--hg-twilight);
}

.hg-section--amber .hg-section__intro {
    color: var(--hg-text);
}

.hg-section--amber .hg-btn--primary {
    background: var(--hg-primary);
    color: var(--hg-white);
}

.hg-section--amber .hg-btn--primary:hover {
    background: var(--hg-primary-dark);
}

/* Location banner (sunset gradient) */
.hg-location-banner {
    background: linear-gradient(135deg, rgba(232, 101, 43, 0.85) 0%, rgba(245, 166, 35, 0.85) 100%),
                url('../images/location-banner.jpg') center/cover no-repeat;
    text-align: center;
    padding: 48px 24px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hg-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hg-location-banner__icon {
    font-size: 1.6rem;
    margin-right: 8px;
}

/* Amber date pills (poster-inspired event date display) */
.hg-date-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 24px;
}

.hg-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hg-amber);
    color: var(--hg-primary);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all var(--hg-transition);
}

.hg-date-pill:hover {
    background: var(--hg-amber-dark);
    transform: translateY(-2px);
}

.hg-date-pill--past {
    opacity: 0.5;
    background: var(--hg-amber-light);
    color: var(--hg-text-light);
}

.hg-date-pill--next {
    background: var(--hg-primary);
    color: var(--hg-white);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* ================================================
   WERBEGEMEINSCHAFT FOOTER LOGO
   ================================================ */
.hg-footer__wg-logo {
    max-width: 180px;
    margin-bottom: 16px;
}

.hg-footer__wg-logo img {
    width: 100%;
    height: auto;
}

/* ================================================
   PARTICIPANT CARD WITH LOGO (enhanced)
   ================================================ */
.hg-teilnehmer-card__logo {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--hg-cream-light);
    border-bottom: 2px solid var(--hg-amber-light);
}

.hg-teilnehmer-card__logo img {
    max-width: 80%;
    max-height: 120px;
    object-fit: contain;
}

/* ================================================
   HERO with script watermark
   ================================================ */
.hg-hero__script-watermark {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.hg-hero__script-watermark img {
    width: 100%;
    height: auto;
}

/* ================================================
   TERMIN NEXT HIGHLIGHT (amber accent)
   ================================================ */
.hg-termin--next td {
    background: var(--hg-amber-light) !important;
    font-weight: 600;
    border-left: 3px solid var(--hg-amber);
}

/* ================================================
   COUNTDOWN with amber accent
   ================================================ */
.hg-countdown__number {
    color: var(--hg-amber) !important;
}

.hg-section--highlight {
    background: var(--hg-night) url('../images/skyline.png') bottom center / contain no-repeat;
    background-size: 100% auto;
    padding-bottom: 100px;
}

/* ================================================
   SCROLL ANIMATIONS
   Only hide elements when JS has loaded and added
   the 'hg-js' class to <html>. Without JS everything
   stays fully visible (progressive enhancement).
   ================================================ */
html.hg-js .hg-animate-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.hg-js .hg-animate-ready.hg-animate-in,
.hg-animate-ready.hg-animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .hg-teilnehmer-grid {
        grid-template-columns: 1fr;
    }

    .hg-info-grid {
        grid-template-columns: 1fr;
    }

    .hg-termine-table thead {
        display: none;
    }

    .hg-termine-table tbody tr {
        display: block;
        margin-bottom: 16px;
        background: var(--hg-white);
        border-radius: var(--hg-radius-sm);
        box-shadow: var(--hg-shadow);
        padding: 16px;
    }

    .hg-termine-table tbody td {
        display: block;
        padding: 4px 0;
        border: none;
    }

    .hg-termine-table tbody td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--hg-twilight);
    }
}
