/* =========================
 *  BASE
 * ========================= */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@font-face {
    font-family: "Augusta";
    src: url("../fonts/Augusta.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Augusta", system-ui, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-image: url("../img/stone.jpg");
    background-repeat: repeat;
    background-size: auto;
}

.text { font-size: 1rem; }

.headline1 {
    font-size: 3.6rem;
    font-weight: bold;
    margin-top: 0.3em;
    margin-bottom: -0.2em;
    text-shadow: 3px 4px 5px rgba(0, 0, 0, 0.7);
}

.headline2 {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0.8m;
    margin-bottom: 0.6em;
}

.headline3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

.white { color: #fff; }
.black { color: #000; }
.yellow { color: #ffff44; }
.bold { font-weight: bold; }

.gold-text {
    font-weight: bold;

    background: linear-gradient(
        45deg,
        #FFD700 0%,   /* Gold */
        #FFF200 25%,  /* stärker gelb */
        #FFD700 50%,  /* zurück zu Gold */
        #FFE866 75%,  /* helles warmes Gelb */
        #FFD700 100%  /* Gold Abschluss */
    );

    background-size: 360px 100%;
    background-repeat: repeat;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

/* Blur when menu open */
#menu-toggle:checked ~ .container {
filter: blur(3px);
}

/* =========================
 *  BURGER
 * ========================= */

.burger {
    position: fixed;
    top: 28px;
    left: 6px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    cursor: pointer;
    z-index: 6000;

    padding: 10px;

    background: rgba(0,0,0,0.1);
    border-radius: 6px;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;

    background: #d4af37;

    box-shadow:
    2px 2px 0 rgba(0,0,0,0.9),
    4px 4px 4px rgba(0,0,0,0.6);

    transition: transform 0.35s ease, opacity 0.2s ease;

    transform-origin: center;
    will-change: transform;
}

/* X Animation */
#menu-toggle:checked + .burger span:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked + .burger span:nth-child(2) {
opacity: 0;
}

#menu-toggle:checked + .burger span:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}

/* =========================
 *  SIDEBAR
 * ========================= */

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    color: #d4af37;

    /* 🌲 Hintergrundbild als Kachel */
    background-image: url("../img/woodbkg.jpg");
    background-repeat: repeat;
    background-size: auto;

    /* optional: dunkler Overlay für bessere Lesbarkeit */
    background-color: #1b1b1b;

    padding: 70px 28px;
    transition: left 0.35s ease;
    z-index: 5000;
}

.sidebar a {
    display: block;
    font-size: 2rem;
    margin: 15px 0;
    text-decoration: none;

    color: #d4af37;
    font-weight: bold;

    text-shadow:
    -1px -1px 0 rgba(0,0,0,0.95),
    1px 1px 0 rgba(0,0,0,0.95),
    3px 3px 3px rgba(0,0,0,0.75),
    6px 6px 8px rgba(0,0,0,0.4);
}

.sidebar a:hover {
    color: #ffdf70;
    text-shadow: 0 0 8px rgba(255, 223, 112, 0.5);
}

.sidebar a.active {
    color: #fff2a8;
    font-weight: bold;
}

#menu-toggle:checked ~ .sidebar {
left: 0;
}

/* =========================
 *  OVERLAY
 * ========================= */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 4000;
}

#menu-toggle:checked ~ .overlay {
opacity: 1;
pointer-events: all;
}

/* =========================
 *  CONTAINER
 * ========================= */

.container {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* =========================
 *  SECTIONS (PARCHMENT)
 * ========================= */

.container section {
    background-image: url("../img/parchment.jpg");
    background-repeat: repeat;
    padding: 30px;
    margin-bottom: 50px;
    border-radius: 10px;

    box-shadow:
    0 4px 10px rgba(0,0,0,0.3),
    0 10px 25px rgba(0,0,0,0.6),
    inset 0 0 15px rgba(0,0,0,0.2);

    transition: transform 0.2s;

    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.container section:hover {
    transform: translateY(-2px);
}

.container section:last-child {
    margin-bottom: 0;
}

.container section:not(.hero) {
    background-image: url("../img/parchment.jpg");
    background-repeat: repeat;
    padding: 30px;
    margin-bottom: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6),
    inset 0 0 15px rgba(0,0,0,0.2);
}

.container section,
#home.hero {
max-width: 1100px;
margin-left: auto;
margin-right: auto;
width: 100%;
}

/* =========================
 *  TEXT & LINKS
 * ========================= */

.container p {
    margin: 0.4em 0;
    line-height: 1.4;
}

.container a {
    color: #fff;
}

.container a span {
    color: inherit;
}

.container a:hover,
.container a:hover span {
    color: #f6cf59;
}

#top {
background-image: url("../img/woodbkg.jpg");
background-repeat: repeat; /* kachelt das Bild */
background-position: top left; /* Startpunkt der Kacheln */
padding: 50px 30px;
border-radius: 10px;
margin-bottom: 50px;
text-align: center; /* Überschrift zentrieren */
box-shadow:
0 4px 10px rgba(0,0,0,0.3),
0 10px 25px rgba(0,0,0,0.6),
inset 0 0 15px rgba(0,0,0,0.2);
}

/* =========================
 *  HERO (HOME)
 * ========================= */

#home.hero {
background: url("../img/gildenhalle.jpg") center/cover no-repeat;
aspect-ratio: 1670 / 880;

max-height: 45vh;
min-height: 280px;

margin-bottom: 50px;
border-radius: 10px;

position: relative;
overflow: hidden;

box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

#home.hero::after {
content: "";
position: absolute;
inset: 0;
background: rgba(0,0,0,0);
pointer-events: none;
}

/* =========================
 *  GALLERY
 * ========================= */

.gallery img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.bg-layer {
    min-height: 100vh;
    position: relative;
}

.bg-layer::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
    z-index: 0;
}

.gallery a {
    text-decoration: none;
    display: inline-block;
}


.gallery a {
    margin-right: 10px;
    margin-left: 10px;
    display: inline-block;
}
