/* Body als Flexbox-Container */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* body nimmt immer volle Höhe ein */
    margin: 0;
    overflow-x: hidden;
}

/* Hauptcontent dehnen */
main {
    flex: 1 0 auto; /* wächst, füllt den restlichen Platz aus */
}


h1 {
    text-align: center;
}

.feuer-spielzeug {
    padding-bottom: 5rem;
}

.door-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1500px;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.door {
    width: 50vw;
    height: 100vh;
    transform-style: preserve-3d;
}

.left-door, .right-door {
    transition: transform 2.5s ease-in-out;
}

.left-door {
    transform-origin: left center;
}

.right-door {
    transform-origin: right center;
}

.left-door.open {
    transform: rotateY(-90deg);
}

.right-door.open {
    transform: rotateY(90deg);
}

.door img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Inhalt erst später einblenden */
#main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

#main-content.show {
    opacity: 1;
}

/* d-none utility */
.d-none {
    display: none !important;
}

/*--------------------------- STYLING DER INDEX SEITE --------------*/

.info-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.info-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    filter: brightness(0.6);
    transition: transform 0.3s ease;
}

.info-box:hover .info-bg {
    transform: scale(1.05);
}

.info-content {
    position: relative;
    z-index: 2;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.info-content h3 {
    margin: 0;
    font-weight: 700;
}


/*--------------------------- STYLING DES FOOTERS SEITE --------------*/

/* Footer normal */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    height: 4vh;
}

/*---------------------------- GRUPPENSEITE ----------------------------*/

/* Section Divider */
.section-divider {
    width: 1200px;
    height: 2px;
    background: linear-gradient(to right, transparent, #6b4f2a, transparent);
    margin: 0 auto;
}

@media (max-width: 576px) {
    .section-divider {
        width: 280px;
    }
}

/* People Block */
.people-block {
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f5f0;
}

.block-title {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Person Card */
.person-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none; /* wichtig falls als Link */
    color: inherit;
}

/* Optional: leichter Hover-Effekt für Klickgefühl */
.person-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Portraits */
.portrait {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

/* Rahmen */
.gold {
    border: 8px solid #c9a44c;
    box-shadow: 0 0 8px rgba(201,164,76,0.6);
}

.silver {
    border: 5px solid #bfc4c8;
}

.silver.thin {
    border-width: 3px;
}

.wood {
    border: 4px solid #7a4a2e;
    box-shadow: inset 0 0 0 2px #5a341e;
}

.wood.thin {
    border-width: 3px;
}

/* Rollenbeschreibung */
.role {
    font-size: 0.9rem;
    color: #555;
}

/* Untergeordnete Personen (Kinder, Nachwuchs) */
.person-card.child {
    padding-left: 1.5rem;
    border-left: 2px dashed #b08a5a;
    opacity: 0.9;
}

/* Kleinere Porträts */
.portrait.small {
    width: 160px !important;
    height: 160px !important;
}

.person-card.child .role {
    font-size: 0.85rem;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/*---------------------------- BOOTSTRAP GRID FIX ----------------------------*/
@media (max-width: 576px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/*---------------------------- STYLING DER PERSON SEITE -----------------------*/

.task-card {
    position: relative;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center; /* 🔑 zentriert Bild & Menü */
}

.task-card img {
    width: 100%;
    max-width: 20rem;   /* 🔑 kontrollierte Größe */
    height: auto;

    border-radius: 8px;
    display: block;
}

.task-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #f8f5f0;
    padding: 0.75rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: none;
    font-size: 0.9rem;
}


/* PERSONENSEITE – MITTELALTERLICHES PORTRÄT */
.person-portrait {
    width: 100%;
    max-width: 35rem;
    max-height: 80vh;

    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;

    border-radius: 14px;

    
    box-shadow:
        0 25px 50px rgba(0,0,0,0.45),
        inset 0 0 0 2px rgba(255,255,255,0.25);

    /* Bildwirkung */
    filter:
        contrast(1.05)
        saturate(0.75)
        sepia(0.15)
        brightness(0.95);
}

.person-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.35);
    pointer-events: none;
}

.person-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.02) 2px,
            rgba(0,0,0,0.02) 4px
        );
}

.person-portrait.gold {
    position: relative;
    padding: 0.75rem; /* +1–1.5px Wirkung */

    border-radius: 2px; /* fast kantig */

    background:
        linear-gradient(
            135deg,
            #6e5014 0%,
            #b08a2f 20%,
            #e6c77d 45%,
            #f5eab3 55%,
            #c9a44c 75%,
            #5a4010 100%
        );
}


.person-portrait.gold {
    box-shadow:
        0 30px 60px rgba(0,0,0,0.55),
        inset 0 0 0 1px rgba(255,255,255,0.35),
        inset 0 0 10px rgba(0,0,0,0.35);
}


.person-portrait.gold::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border-radius: 10px; /* innen weich */
    box-shadow:
        inset 0 3px 6px rgba(255,255,255,0.4),
        inset 0 -6px 14px rgba(0,0,0,0.5);
    pointer-events: none;
}

.person-portrait.gold::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(255,255,255,0.15),
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(0,0,0,0.25),
            transparent 45%
        );
    mix-blend-mode: overlay;
    pointer-events: none;
}



/* ============================= SILBERRAHMEN ============================= */
.person-portrait.silver {
    position: relative;
    padding: 0.75rem;
    border-radius: 2px;

    background:
        linear-gradient(
            135deg,
            #b0b0b0 0%,
            #d6d6d6 20%,
            #f0f0f0 45%,
            #e0e0e0 55%,
            #bfc4c8 75%,
            #8c8c8c 100%
        );

    box-shadow:
        0 30px 60px rgba(0,0,0,0.55),
        inset 0 0 0 1px rgba(255,255,255,0.35),
        inset 0 0 10px rgba(0,0,0,0.35);
}

.person-portrait.silver::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border-radius: 10px;
    box-shadow:
        inset 0 3px 6px rgba(255,255,255,0.3),
        inset 0 -6px 14px rgba(0,0,0,0.4);
    pointer-events: none;
}

.person-portrait.silver::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12), transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(0,0,0,0.20), transparent 45%);
    mix-blend-mode: overlay;
    pointer-events: none;
}


/* ============================= HOLZRAHMEN ============================= */
.person-portrait.wood {
    position: relative;
    padding: 0.75rem;
    border-radius: 2px;

    background:
        linear-gradient(
            135deg,
            #5a341e 0%,
            #7a4a2e 20%,
            #a35c3b 45%,
            #c07b50 55%,
            #7a4a2e 75%,
            #4e2c18 100%
        );

    box-shadow:
        0 30px 60px rgba(0,0,0,0.55),
        inset 0 0 0 1px rgba(255,255,255,0.25),
        inset 0 0 10px rgba(0,0,0,0.35);
}

.person-portrait.wood::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border-radius: 10px;
    box-shadow:
        inset 0 3px 6px rgba(255,255,255,0.15),
        inset 0 -6px 14px rgba(0,0,0,0.4);
    pointer-events: none;
}

.person-portrait.wood::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        repeating-linear-gradient(
            20deg,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        radial-gradient(circle at 60% 30%, rgba(255,255,255,0.08), transparent 40%);
    mix-blend-mode: overlay;
    pointer-events: none;
}



.person-text p {
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.person-text .lead {
    font-size: 1.15rem;
    line-height: 1.7;
}

.person-text .closing-quote {
    margin-top: 2rem;
    font-size: 1.05rem;
    color: #444;
}


@media (max-width: 768px) {
    .person-portrait {
        aspect-ratio: 4 / 5;
        max-height: 70vh;
    }
}




/*--------------------------- STYLING DER HISTORISCHES SEITE --------------*/

.historisch-section {
    background-color: transparent; /* nutzt deine Body-Farbe */
}


.historisch-card {
    background-color: rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    padding: 2rem;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
}

/* Text bleibt ruhig & gut lesbar */
.historisch-text p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.historisch-text .lead {
    font-weight: 500;
}

.historisch-img {
    border-radius: 16px;
    border: 4px solid rgba(107, 79, 42, 0.25);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/*--------------------------- STYLING DER TERMIN SEITE --------------*/


.termine-section {
    background-color: transparent;
}

.termin-card {
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.termin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.termin-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.termin-content {
    padding: 1.5rem;
}

.termin-content h4 {
    margin-bottom: 0.75rem;
}

.termin-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #5c5c5c;
}

.termin-meta li {
    margin-bottom: 0.25rem;
}

.termin-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.termin-link {
    font-weight: 600;
    color: #b04a1f;
    text-decoration: none;
}

.termin-link:hover {
    text-decoration: underline;
}


/*--------------------------- STYLING DER FEUER SEITE --------------*/

.equipment-img {
    width: 47.125rem;       /* 50px */
    height: 15.125rem;      /* 50px */
    object-fit: cover;
    border-radius: 0.375rem; /* 6px */
    overflow: hidden;
}

/*--------------------------- STYLING DER FEUER HAUPTSEITE --------------*/


/* SECTION */
.wif-grid-section {
    background: linear-gradient(180deg, #2b1208, #140705);
    color: #fff;
}

/* GRID */
.wif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 180px);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Positionierung */
.tile-spieler   { grid-column: 2; grid-row: 1; }
.tile-spielzeug { grid-column: 1; grid-row: 2; }
.tile-auftritte { grid-column: 3; grid-row: 2; }
.tile-galerie   { grid-column: 2; grid-row: 3; }

.wif-center {
    grid-column: 2;
    grid-row: 2;
}

/* TILE */
.wif-tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,.4);
    transition: transform .3s ease, box-shadow .3s ease;
}

.wif-tile span {
    background: rgba(0,0,0,.6);
    padding: .4rem .8rem;
    border-radius: 8px;
}

/* Hover Feuer-Effekt */
.wif-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,140,0,.0),
        rgba(255,80,0,.6)
    );
    opacity: 0;
    transition: opacity .3s ease;
}

.wif-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(255,90,0,.4);
}

.wif-tile:hover::before {
    opacity: 1;
}

/* CENTER */
.wif-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wif-center img {
    max-width: 140px;
    filter: drop-shadow(0 0 25px rgba(255,120,0,.6));
}

/* BACKGROUNDS */
.tile-spieler   { background-image: url("/images/wif/spieler.jpg"); }
.tile-spielzeug { background-image: url("/images/wif/spielzeug.jpg"); }
.tile-auftritte { background-image: url("/images/wif/auftritte.jpg"); }
.tile-galerie   { background-image: url("/images/wif/galerie.jpg"); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .wif-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .wif-tile,
    .wif-center {
        grid-column: auto;
        grid-row: auto;
        height: 180px;
    }

    .wif-center img {
        max-width: 120px;
    }
}


/*--------------------------- STYLING DER FEUER AUSRÜSTUNG SEITE --------------*/


.wif-tools-section {
    background: linear-gradient(180deg, #2b1208, #140705);
    color: #f5e6d0;
}


.wif-tool-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    height: 100%;

    background: rgba(20, 7, 5, 0.75);
    border-radius: 1rem;

    border: 1px solid rgba(255, 170, 90, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.wif-tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 120, 40, 0.6);
    box-shadow:
        0 0 0 1px rgba(255,120,40,0.4),
        0 15px 40px rgba(0,0,0,0.7),
        0 0 25px rgba(255,90,20,0.35);
}

.wif-tool-card:hover img {
    filter: drop-shadow(0 0 10px rgba(255,120,40,0.6));
}

.wif-tool-media img {
    width: 90px;
    height: auto;
    flex-shrink: 0;
}


.wif-tool-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffd2a1;
}

.wif-tool-desc {
    font-size: 0.9rem;
    color: #e6c7a0;
    margin-bottom: 0.5rem;
}

.wif-tool-users {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.85rem;
    color: #f0ddc0;
}

.wif-tool-users li {
    line-height: 1.3;
}


@media (max-width: 575px) {
    .wif-tool-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .wif-tool-media img {
        margin-bottom: 0.75rem;
    }

    .wif-tool-users {
        padding-left: 0;
        list-style: none;
    }
}



/*--------------------------- STYLING DER WB AUSRÜSTUNG SEITE --------------*/

/* Feuer-Card leicht hervorheben */
.info-box.fire .info-bg {
    filter: brightness(0.5) saturate(1.2);
}



/*--------------------------- STYLING DER SOCIAL MEDIA SEITE --------------*/


.social-icons a {
  font-size: 1.4rem;
  opacity: 0.8;
  transition: opacity .2s ease, transform .2s ease;
}

.social-icons a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/*--------------------------- STYLING DER HERO SECTION SEITE --------------*/

.hero-section {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    color: #F4DAA7;
}

/* Dunkler, subtiler Overlay */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Container über Overlay legen */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Logo */
.hero-logo {
    height: 140px;
    margin-bottom: 1rem;
}

/* Buttons */
.hero-section .btn {
    min-width: 220px;
    margin: 0.25rem;
}

@media (max-width: 576px) {
    .hero-section .btn {
        width: 100%;
    }
}