/* Base styles */
html {
    background: #1b1811 url(../images/background.jpg) no-repeat top fixed;
    background-size: cover;
    line-height: 1.15;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

header img {
    width: 82vw;
    max-width: 800px;
}

/* Font declarations - Khand */
@font-face {
    font-display: swap;
    font-family: 'Khand';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/khand-v21-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Khand';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/khand-v21-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Khand';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/khand-v21-latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Khand';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/khand-v21-latin-700.woff2') format('woff2');
}

/* Grid system */
.kor-g {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
}

/* Base grid classes */
[class*="kor-u-"] {
    display: inline-block;
    vertical-align: top;
    text-rendering: auto;
}

.kor-u-1 {
    width: 100%;
}

/* Medium screens (tablets) */
@media screen and (min-width: 48em) {
    .kor-u-md-1-2 {
        width: 50%;
    }

    header img {
        width: 78vw;
    }
}

/* Large screens (desktops) */
@media screen and (min-width: 64em) {
    .kor-u-lg-1-3 {
        width: 33.3333%;
    }

    header img {
        width: 75vw;
    }
}

/* Typography and base styles */
body {
    font-family: 'Khand', sans-serif;
    color: #f9f2dd;
    text-shadow: 2px 2px 4px #000;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

a {
    color: #f9f2dd;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #a45b25;
    text-decoration: underline;
}

header {
    text-align: center;
    margin-top: 45px;
    padding: 0 1rem;
}

footer {
    margin: 50px 0;
    text-align: center;
    padding: 1rem;
}


/* Section styles */
section {
    margin: 2rem 0;
    padding: 0 1rem;
}

/* Info sections */
.info-section {
    margin: 3rem 0;
    padding: 1.5rem;
    background-color: rgba(42, 36, 23, 0.6);
    border-radius: 8px;
    border-left: 4px solid #a45b25;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.info-section h2 {
    margin-top: 0;
    padding-top: 0.5rem;
    border-bottom: 2px solid #a45b25;
    padding-bottom: 0.8rem;
    text-decoration: none;
}

.info-content {
    padding: 1rem 0;
}

.description {
    color: #a45b25;
    text-transform: uppercase;
    margin: 40px 0 20px 0;
    text-align: center;
}

.description p {
    text-align: center;
    margin: 0;
    padding: 0;
}

.description .social {
    margin-top: 30px;
}

.description .social a {
    margin: 0 5px;
    display: inline-block;
}

.privacy, .impressum {
    margin: 0 auto;
    max-width: 800px;
    width: 90%;
}

.anreise img {
    width: 90vw;
    max-width: 800px;
}

.impressum {
    text-align: center;
}

.impressum .container {
    margin: auto;
    text-align: left;
    max-width: 600px;
}

/* Typography - headings and text */
h2, h3, h4, h5 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h2 {
    color: #f9f2dd;
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-align: center;
    text-decoration: solid underline #f9f2dd 4px;
    padding-bottom: 0.3em;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

h4 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

h5 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.privacy p, .impressum p {
    line-height: 1.6;
    margin-bottom: 1.2em;
}

/* Festival text styles */
.date {
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: bold;
}

.wachenroth {
    color: #f9f2dd;
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: bold;
    line-height: 1;
    margin: 0.2em 0;
}

.subtext {
    font-size: clamp(1rem, 3vw, 1.5rem);
}

/* Section specific styles */
.bands {
    margin-top: 4rem;
    padding: 10px;
    text-align: center;
}

.bands div {
    text-align: center;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.bands img {
    vertical-align: middle;
    transition: filter 0.4s ease, transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.bands img:hover {
    filter: brightness(0.6);
    transform: scale(1.03);
}

.anreise,
.tickets {
    text-align: center;
    margin: 3rem auto;
}

.tickets img,
.anreise img {
    max-width: 100%;
    height: auto;
}

/* Accessibility improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Optimized CSS for responsive image loading */

/* Preload critical images */
head::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    background-image: url(../images/logo.png);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Image loading optimization */
img[loading="lazy"] {
    transition: opacity 0.3s;
}

/* Container max-width */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Print styles */
@media print {
    .social,
    .bands a,
    .skip-link,
    .tickets a[target="_blank"],
    .anreise a[target="_blank"] {
        display: none;
    }

    body {
        background: white !important;
        color: black !important;
        text-shadow: none !important;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h2, h3, h4 {
        page-break-after: avoid;
    }

    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


.info p, .info ul {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    text-align: center;
}

.info h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.info ul {
    list-style: none;
    padding: 0;
}

/* Festival info button */
.info-button {
    display: inline-block;
    background-color: #a45b25;
    color: #f9f2dd;
    font-family: 'Khand', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    padding: 0.8em 1.5em;
    margin: 1.5em auto;
    border: 2px solid #f9f2dd;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.info-button:hover,
.info-button:focus {
    background-color: #f9f2dd;
    color: #a45b25;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Price labels */
.price-label {
    display: inline-block;
    padding: 0.1em 0.4em;
    margin: 0 0.1em;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);

    background-color: #a45b25;
    color: #f9f2dd;
}
