/*
Theme Name: Clan Of Kerry
Theme URI: https://clan-of-kerry.de
Author: Alf Reuwsaat & Arena Agent
Author URI: https://arena.ai
Description: Ein exklusives, fotorealistisches und hochprofessionelles WordPress-Theme im mittelalterlichen Tavernen- und Kelten-Stil für die Gruppe "Clan Of Kerry". Perfekt ausbalanciert, edel proportioniert und für alle Bildschirmgrößen optimiert. Ohne Pergament-Hintergrund für einen klaren, modernen Tavernen-Look.
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clan-of-kerry
Tags: medieval, celtic, scottish, dark, tavern, photorealistic, custom-gallery, events
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=MedievalSharp&display=swap');

:root {
    --c-dark-wood: #140e08;
    --c-medium-wood: #26190f;
    --c-celtic-green: #11261b;
    --c-tartan-red: #6e1a1a;
    --c-antique-gold: #cca456;
    --c-gold-glow: #f0cd84;
    --c-parchment-text: #f8efe0; /* Knackiger heller Ton für optimale Lesbarkeit auf dunklen Karten */
    --c-white-title: #ffffff;
    
    --font-heading: 'Cinzel', serif;
    --font-medieval: 'MedievalSharp', cursive;
    --font-body: 'Cormorant Garamond', serif;
    
    --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--c-dark-wood);
    background-image: linear-gradient(rgba(20, 14, 8, 0.45), rgba(20, 14, 8, 0.65)), url('assets/images/neuer-tavernen-hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--c-parchment-text);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--c-gold-glow);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

h1 { font-size: 2.3rem; font-weight: 700; color: var(--c-white-title); }
h2 { font-size: 1.65rem; font-weight: 700; position: relative; padding-bottom: 0.4rem; color: var(--c-gold-glow); }
h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--c-antique-gold);
}
h3 { font-size: 1.3rem; color: var(--c-gold-glow); }

a {
    color: var(--c-gold-glow);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover { color: #ffffff; text-shadow: 0 0 8px var(--c-gold-glow); }

/* Wappen & WP Custom Logo: Majestätische Darstellung (ca. 285x285 Pixel) */
img.custom-logo, .custom-logo-link img {
    max-width: 285px !important;
    max-height: 285px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* Content-Container */
.site-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    width: 92%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.tavern-header {
    background: linear-gradient(180deg, rgba(17, 38, 27, 0.96), rgba(20, 14, 8, 0.94));
    border-bottom: 2px solid var(--c-antique-gold);
    box-shadow: var(--shadow-heavy);
    padding: 1.5rem 1rem;
    text-align: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.header-crest-wrap img {
    max-width: 285px !important;
    max-height: 285px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 auto 0.6rem;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.9));
    transition: transform 0.3s ease;
}

.header-crest-wrap img:hover {
    transform: scale(1.05);
}

.site-title {
    font-family: var(--font-medieval);
    font-size: 2.6rem;
    color: var(--c-gold-glow);
    text-transform: uppercase;
    text-shadow: 2px 2px 5px #000;
    margin-bottom: 0.2rem;
}

.site-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--c-parchment-text);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Social Media Button */
.social-links {
    margin: 0.8rem 0 0;
    display: flex;
    justify-content: center;
}

.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #1877f2;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.btn-facebook:hover {
    background: #0d65d9;
    color: #fff;
    transform: translateY(-1px);
}

/* Strikte Fixierung der Navigationsleiste am oberen Bildschirmrand beim Scrollen */
html, body {
    overflow-x: visible !important;
}

.main-navigation {
    background: var(--c-medium-wood);
    border-bottom: 2px solid var(--c-antique-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85);
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    width: 100%;
}

/* Anpassung an die obere WordPress Admin-Leiste */
body.admin-bar .main-navigation {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .main-navigation {
        top: 46px !important;
    }
}

/* JS Fallback Klasse, falls Hosting/Browser sticky blockiert */
.main-navigation.is-fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.95);
}
body.admin-bar .main-navigation.is-fixed-top {
    top: 32px !important;
}

.menu-toggle {
    display: none;
    width: 100%;
    background: var(--c-tartan-red);
    color: var(--c-gold-glow);
    border: none;
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-align: center;
}

.menu-container-wrap ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-parchment-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid rgba(197, 160, 89, 0.15);
}

.main-navigation li:first-child a {
    border-left: 1px solid rgba(197, 160, 89, 0.15);
}

.main-navigation a:hover, .main-navigation li.current-menu-item a {
    background: var(--c-tartan-red);
    color: var(--c-gold-glow);
}

/* MODERNE, EDLE TAVERNEN-KARTEN (Ohne Pergament-Bild im Hintergrund!) */
.parchment-box, .content-area {
    background-color: rgba(20, 14, 8, 0.9); /* Edler dunkler Tavernen-Glass-Look */
    color: var(--c-parchment-text);
    padding: 2.2rem;
    margin: 2rem 0;
    border: 2px solid var(--c-antique-gold);
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(6px);
}

.parchment-box h1, .parchment-box h2, .parchment-box h3,
.content-area h1, .content-area h2, .content-area h3 {
    color: var(--c-gold-glow);
}

.parchment-box h1 { font-size: 2.2rem; color: #fff; }
.parchment-box h2::after, .content-area h2::after {
    background: var(--c-antique-gold);
}

.parchment-box p, .content-area p {
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    color: #f0e6d2;
    line-height: 1.75;
}

/* Editorial Markt-Plakat Karte */
.market-promo-card {
    background: linear-gradient(135deg, #1f140c, #3b1010);
    border: 2px solid var(--c-antique-gold);
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
    margin: 2.5rem 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: center;
}

.market-promo-img {
    background: #000;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid var(--c-antique-gold);
}

.market-promo-img img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.market-promo-content {
    padding: 2.2rem;
    color: var(--c-parchment-text);
}

.market-promo-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--c-antique-gold);
    color: #000;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.8rem;
}

.market-promo-content h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border: none;
    padding-bottom: 0;
}
.market-promo-content h2::after { display: none; }

.market-dates-box {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(197, 160, 89, 0.4);
    padding: 1rem;
    border-radius: 4px;
    margin: 1.2rem 0;
    font-size: 1.05rem;
    color: #f0e6d2;
}

/* Keltische Buttons */
.btn-celtic {
    display: inline-block;
    background: linear-gradient(135deg, var(--c-tartan-red), #361010);
    color: var(--c-gold-glow);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border: 1px solid var(--c-antique-gold);
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: all 0.25s;
    text-align: center;
}

.btn-celtic:hover {
    background: var(--c-celtic-green);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Raster */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1.8rem;
}

/* Kompakte kleine Vorschaubilder-Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.gallery-item {
    position: relative;
    border: 2px solid var(--c-antique-gold);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    aspect-ratio: 1 / 1; /* Saubere quadratische kleine Vorschaubilder */
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}
    background: rgba(20, 14, 8, 0.92);
    border: 1px solid var(--c-antique-gold);
    border-radius: 6px;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--c-parchment-text);
}

.event-card-header {
    background: #2b221b;
    color: var(--c-gold-glow);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.event-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-body h3 {
    color: var(--c-gold-glow);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.tavern-footer {
    background: var(--c-dark-wood);
    border-top: 2px solid var(--c-antique-gold);
    color: #c4b39b;
    padding: 2.5rem 1rem 1.5rem;
    margin-top: auto;
}

.footer-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-widget h4 {
    color: var(--c-antique-gold);
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.15);
    padding-top: 1.2rem;
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    body { font-size: 1rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    
    .site-wrapper { width: 96%; }
    .header-crest-wrap img, img.custom-logo { max-width: 210px !important; max-height: 210px !important; }
    .site-title { font-size: 2rem; }
    .site-subtitle { font-size: 0.75rem; letter-spacing: 1px; }
    
    .menu-toggle { display: block; }
    .menu-container-wrap {
        display: none;
        background: #1e140d;
        border-top: 1px solid rgba(197, 160, 89, 0.3);
    }
    
    .main-navigation.toggled .menu-container-wrap {
        display: block;
        animation: slideDownMenu 0.3s ease-out forwards;
    }

    .menu-container-wrap ul { flex-direction: column; width: 100%; }
    .main-navigation a {
        padding: 1rem;
        text-align: center;
        border: none;
        border-bottom: 1px solid rgba(197, 160, 89, 0.15);
        font-size: 1.05rem;
    }

    .parchment-box, .content-area { padding: 1.4rem 1rem; margin: 1.2rem 0; }
    .market-promo-card { grid-template-columns: 1fr; margin: 1.5rem 0; }
    .market-promo-img { border-right: none; border-bottom: 2px solid var(--c-antique-gold); max-height: 250px; }
    .market-promo-img img { max-height: 250px; }
    .market-promo-content { padding: 1.5rem 1.2rem; }
    .market-promo-content h2 { font-size: 1.5rem; }
    
    .btn-celtic { width: 100%; margin-bottom: 0.5rem; }
    .event-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    #jitsi-meet-container { height: 480px !important; }

    /* Markt-Mitteilung am Handy als schicke obere Leiste im Lesefluss (Nie mehr schwebend/blockierend!) */
    .sticky-market-floating-notice {
        position: static !important;
        top: auto;
        bottom: auto;
        right: auto;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 2px solid var(--c-gold-glow);
        background: linear-gradient(90deg, #3b1010, #1f140c);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }
    .sticky-notice-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.7rem 1rem;
        gap: 0.8rem;
        text-align: left;
    }
    .sticky-notice-header {
        margin: 0;
        border: none;
        padding: 0;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .sticky-notice-body {
        margin: 0;
        font-size: 0.9rem;
        flex: 1;
    }
    .sticky-notice-cta {
        margin: 0;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

/* Fest verankerte Mitteilung am rechten Seitenrand (Nach unten gerückt für hochprofessionelle Optik) */
.sticky-market-floating-notice {
    position: fixed;
    top: auto;
    bottom: 35px;
    right: 0;
    transform: none;
    z-index: 9999;
    max-width: 220px;
    background: linear-gradient(135deg, rgba(20, 14, 8, 0.96), rgba(110, 26, 26, 0.9));
    border: 2px solid var(--c-gold-glow);
    border-right: none;
    border-radius: 8px 0 0 8px;
    box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.sticky-market-floating-notice:hover {
    transform: translateX(-6px);
    box-shadow: -8px 8px 30px rgba(240, 205, 132, 0.5);
    background: linear-gradient(135deg, rgba(17, 38, 27, 0.98), rgba(110, 26, 26, 0.95));
}

.sticky-notice-link {
    display: block;
    padding: 1rem 0.9rem;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.sticky-notice-header {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--c-gold-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 900;
    border-bottom: 1px solid rgba(197, 160, 89, 0.4);
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
}

.sticky-notice-body {
    font-size: 0.95rem;
    color: #f6ecd5;
    line-height: 1.45;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.sticky-notice-cta {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: #4dc983;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Nach oben Button (Scroll to Top am rechten unteren Rand) */
.scroll-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e1a1a, #11261b);
    border: 2px solid var(--c-gold-glow);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.85);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px) scale(1.08);
    background: linear-gradient(135deg, #cca456, #6e1a1a);
    box-shadow: 0 8px 25px rgba(240, 205, 132, 0.5);
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

@keyframes slideDownMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
