/*
Theme Name: JZ Fischenthal
Theme URI: https://jugendarbeitfischenthal.ch
Author: Dominique Blake-Hofer
Description: Modernes, strukturiertes Kachel-Theme mit Slider und Neon-Sign für die Jugendarbeit Fischenthal.
Version: 1.0
Text Domain: dbh-jzf
*/

:root {
    --color-orange: #f58536;
    --color-teal: #39959e;
    --color-green: #b4d375;
    --color-dark: #2c3e50;
    --color-footer: #253545;
    --color-bg: #f4efe8;
    --color-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    /* Farbverlauf von Links nach Rechts (Helles Grün zu hellem Türkis) */
    background: linear-gradient(to right, #eff4df, #d7eef1);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--color-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: transparent; /* Weiss entfernt, damit der Verlauf durchscheint */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: none; /* Kein harter Schattenstrich mehr */
    position: relative;
    z-index: 100;
}

.site-logo img,
.custom-logo-link img {
    max-width: 220px;
    height: auto;
}

.main-navigation {
    width: 100%;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 10px 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-navigation li a {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.05rem;
    padding: 5px 10px;
    display: block;
}

.main-navigation li a:hover {
    color: var(--color-orange);
}

/* --- Hero Banner (Slider + Neon Sign) --- */
.hero-banner {
    background-color: #1a252f;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Slider */
.slider-container {
    width: 100%;
    position: relative;
    background-color: #000;
}

.slide {
    display: none;
    width: 100%;
    height: 400px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.slide:hover img {
    opacity: 1;
}

.fade {
    animation-name: fadeAnim;
    animation-duration: 1.5s;
}

@keyframes fadeAnim {
    from {opacity: .4} 
    to {opacity: 1}
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.3);
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.next { right: 15px; }
.prev { left: 15px; }

.prev:hover, .next:hover {
    background-color: rgba(255,255,255,0.8);
    color: #000;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--color-white);
}

/* Neon Sign Area */
.neon-container {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle, #2c3e50 0%, #1a252f 100%);
}

.neon-sign {
    font-size: 1.8rem; /* Schriftgrösse auf mobilen Geräten verkleinert für längeren Text */
    font-weight: 900;
    padding: 15px 25px; /* Etwas weniger Padding auf Mobile, damit es gut reinpasst */
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 2px; /* Zeichenabstand verkleinert */
    border: 4px solid;
    display: inline-block;
    text-align: center; /* Stellt sicher, dass das Schild zentriert ist, auch bei Zeilenumbruch */
    line-height: 1.3; /* Schönere Höhe bei mehrzeiligem Text */
}

.sign-open {
    color: #fff;
    border-color: #0ff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #0ff, 0 0 40px #0ff;
    box-shadow: 0 0 10px #0ff, inset 0 0 10px #0ff;
}

.sign-closed {
    color: #fff;
    border-color: #ff3333;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ff3333, 0 0 40px #ff3333;
    box-shadow: 0 0 10px #ff3333, inset 0 0 10px #ff3333;
}

/* --- Content & Tiles Grid --- */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.tile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tile {
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 150px;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.bg-orange { background-color: var(--color-orange); }
.bg-teal { background-color: var(--color-teal); }
.bg-green { background-color: var(--color-green); }
.bg-dark { background-color: var(--color-dark); }

/* Team Box */
.team-tile {
    background-color: var(--color-orange);
    border-radius: 15px;
    padding: 20px;
    color: var(--color-white);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.team-tile-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 5px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: transform 0.3s;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Page Content (Normal Pages) */
.page-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.page-title {
    margin-bottom: 30px;
    color: var(--color-teal);
}

/* Comments Style */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--color-bg);
}
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--color-bg); padding: 20px; border-radius: 10px; margin-bottom: 20px; }

/* --- Footer --- */
.site-footer {
    background-color: var(--color-footer);
    color: var(--color-white);
    position: relative;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

/* Orange Accent Line */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 20%;
    height: 10px;
    background-color: var(--color-orange);
    border-radius: 0 0 10px 10px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.soc-ig { background-color: var(--color-orange); }
.soc-wa { background-color: var(--color-teal); }
.soc-fb { background-color: var(--color-dark); }
.soc-go { background-color: var(--color-green); }

.social-links a:hover {
    transform: translateY(-3px);
}

/* Die SVGs innerhalb der Links anpassen */
.social-links a svg {
    width: 22px;
    height: 22px;
}

.footer-address {
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer Logos präsenter machen */
.footer-logos {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.footer-logos img {
    height: 120px;
    background: var(--color-white);
    padding: 15px;
    border-radius: 8px;
    object-fit: contain;
}

/* Site Design Credit */
.site-credit {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 0.85rem;
    opacity: 0.8;
}

.site-credit a {
    color: var(--color-orange);
    font-weight: 700;
}

.site-credit a:hover {
    color: var(--color-green);
    opacity: 1;
}

/* --- Responsive Desktop (ab 768px - Tablet) --- */
@media (min-width: 768px) {
    .hero-banner {
        flex-direction: row;
        height: 450px;
    }
    
    .slider-container {
        width: 65%;
    }
    
    .slide {
        height: 100%;
    }
    
    .neon-container {
        width: 35%;
        padding: 0;
    }
    
    .neon-sign {
        font-size: 2.5rem; /* Etwas grösser auf Desktop, passend für langen Text */
        padding: 20px 40px;
        letter-spacing: 4px;
    }
    
    .tile-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: dense;
    }
    
    .t-machmit { grid-column: 1; grid-row: 1; }
    .t-sackgaeld { grid-column: 2; grid-row: 1; }
    .t-specials { grid-column: 3; grid-row: 1; }
    .t-team-widget { grid-column: 4; grid-row: 1 / span 2; }
    
    .t-flyer { grid-column: 1; grid-row: 2; }
    .t-team-link { grid-column: 2; grid-row: 2; }
    .t-blog { grid-column: 3; grid-row: 2; }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --- Responsive Desktop Large (ab 992px) --- */
@media (min-width: 992px) {
    .site-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 30px;
    }
    
    .main-navigation {
        width: auto;
    }
    
    .main-navigation ul {
        justify-content: flex-end;
    }
}