/**
 * Custom CSS for RS Kißlegg
 *
 * Additional styles and overrides that can be easily modified
 * without touching the main style.css file
 */

/* ============================================
   CUSTOM ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   HEADER CUSTOMIZATIONS
   ============================================ */
.site-header,
.site-main-header-wrap {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.site-branding img {
    max-height: 80px;
    width: auto;
}

/* Sticky Header on Scroll */
.header-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}

/* ============================================
   NAVIGATION MENU STYLING
   ============================================ */

/* Header: alle Menüpunkte in eine Zeile */
.site-main-header-inner-wrap {
    flex-wrap: nowrap !important;
}

.site-main-header-wrap .site-header-row-container-inner {
    max-width: 1440px !important;
    margin: 0 auto;
}

.header-menu-container > ul,
.primary-menu-container > ul {
    flex-wrap: nowrap !important;
}

.header-menu-container > ul > li > a,
.primary-menu-container > ul > li > a {
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
    font-size: 0.9em !important;
    white-space: nowrap;
}

.main-navigation a {
    color: var(--rsk-gray-700);
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--rsk-primary);
}

.main-navigation .current-menu-item > a {
    color: var(--rsk-primary);
    font-weight: 600;
}

/* ============================================
   FOOTER STYLING
   ============================================ */
.site-footer {
    background-color: var(--rsk-primary-dark);
    color: white;
    padding: var(--rsk-spacing-2xl) 0 var(--rsk-spacing-lg);
}

.site-footer a {
    color: var(--rsk-secondary);
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: var(--rsk-spacing-2xl) 0;
}

.content-section:nth-child(even) {
    background-color: var(--rsk-gray-50);
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.rsk-card {
    background: white;
    border-radius: var(--rsk-radius-lg);
    padding: var(--rsk-spacing-lg);
    box-shadow: var(--rsk-shadow-sm);
    transition: box-shadow 0.3s ease;
}

.rsk-card:hover {
    box-shadow: var(--rsk-shadow-md);
}

/* ============================================
   FORMS STYLING
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--rsk-gray-200);
    border-radius: var(--rsk-radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--rsk-primary);
}

/* ============================================
   CALENDAR STYLING (Simple Calendar Plugin)
   ============================================ */
.simcal-calendar {
    border: 1px solid var(--rsk-gray-200);
    border-radius: var(--rsk-radius-lg);
    overflow: hidden;
}

.simcal-calendar-head {
    background-color: var(--rsk-primary);
    color: white;
    padding: var(--rsk-spacing-md);
}

.simcal-event {
    background-color: var(--rsk-secondary);
    color: var(--rsk-primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: var(--rsk-radius-sm);
    font-size: 0.875rem;
}

/* ============================================
   GUTENBERG BLOCK EDITOR CUSTOMIZATIONS
   ============================================ */
.wp-block-button__link {
    background-color: var(--rsk-primary);
    border-radius: var(--rsk-radius-md);
}

.wp-block-button__link:hover {
    background-color: var(--rsk-primary-dark);
}

/* ============================================
   DOWNLOAD SECTION STYLING
   ============================================ */
.rsk-downloads-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--rsk-spacing-md);
}

.rsk-download-item {
    background: white;
    padding: var(--rsk-spacing-lg);
    border-radius: var(--rsk-radius-md);
    border: 1px solid var(--rsk-gray-200);
    transition: all 0.3s ease;
}

.rsk-download-item:hover {
    border-color: var(--rsk-primary);
    box-shadow: var(--rsk-shadow-md);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: var(--rsk-spacing-md) 0;
    font-size: 0.875rem;
    color: var(--rsk-gray-700);
}

.breadcrumbs a {
    color: var(--rsk-primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE IMAGES
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .main-navigation {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }
}
