/* styles.css */

/* ─── Global Reset & Typography ────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Verdana, sans-serif;
  line-height: 1.5;
  color: #333;
}

/* Headings use Georgia */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
  margin-top: 0;
}

/* ---------- LANGUAGE VISIBILITY ---------- */

[lang]                        { display: none; }     /* hide everything */
body.lang-en  [lang="en"],
body.lang-de  [lang="de"]     { display: block; }    /* reveal the chosen one */



/* ─── Top Navigation ───────────────────────────────────────────────────── */
header {
  background-color: #222;
  color: white;
  padding: 1em 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

/* Prevent white stripe under fixed header */
html {
  scroll-padding-top: 70px; /* match header height */
}

/* ─── Hero Banner ──────────────────────────────────────────────────────── */
.banner {
  position: relative;
  height: 100vh;
  background-image: url('banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner .title {
  color: white;
  font-size: 3em;
  padding: 0.75em 1.5em;
  background: rgba(0, 0, 0, 0.5);
}

/* ─── About Section ───────────────────────────────────────────────────── */
#about {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.about-container {
  display: flex;
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.about-text {
  flex: 1 1 60%;
  text-align: left;
}

.about-text p {
  margin-bottom: 1em;
}

.about-image {
  flex: 1 1 40%;
}

.about-image img {
  width: 100%;
  display: block;
}

.about-image {
  position: relative;
  width: 100%;
}

.crossfade-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 1s ease-in-out;
  display: block;
}

/* Workshops section with header bar like the nav */
#workshops {
  background-color: #eee;
  padding: 60px 20px;
}

#workshops h2 {
  background-color: #222;
  color: white;
  padding: 0.75em 1em;
  text-align: center;
  margin: 0 0 1em 0;
  font-size: 2em;
}

.workshop-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2em auto;
  max-width: 800px;
}

.workshop-list li {
  background-color: white;
  margin: 1em 0;
  padding: 1em 1.5em;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.workshop-date {
  font-weight: bold;
  font-size: 1.2em;
  color: #222;
  margin-bottom: 0.5em;
}

.workshop-title {
  font-size: 1.1em;
  color: #555;
}

.contact-info {
  text-align: center;
  font-size: 1em;
}

.contact-info a {
  color: #222;
  text-decoration: underline;
}

#gallery {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

#gallery h2 {
  background-color: #222;
  color: white;
  padding: 0.75em 1em;
  margin-bottom: 1em;
  font-size: 2em;
}



[lang] {
  display: none;
}

[lang="en"],
[lang="de"] {
  display: block;
}

.lang-toggle {
  margin-left: auto;
}

#lang-btn {
  background-color: #444;
  color: white;
  border: none;
  padding: 0.3em 0.8em;
  cursor: pointer;
  font-size: 0.9em;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#lang-btn:hover {
  background-color: #666;
}

/* Top navigation container with padding */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2em;
}

/* Navigation list layout */
nav ul {
  display: flex;
  gap: 1.5em;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Language toggle button (already included earlier) */
.lang-toggle {
  margin-left: 1em;
}

/* Instagram label and link */
.instagram-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.2em;
  color: white;
}

.instagram-link a {
  color: #FAD737;
  text-decoration: none;
}

.instagram-link a:hover {
  text-decoration: underline;
}

.banner {
  position: relative;
  height: 100vh;
  background-image: url('banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1em;
}

.banner-text {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1em 2em;
  border-radius: 6px;
}

.banner-title {
  font-family: Georgia, serif;
  font-size: 7em;
  color: white;
  margin-bottom: 0.3em;
}

.banner-subtitle {
  font-family: Verdana, sans-serif;
  font-size: 2em;
  color: #ddd; 
}

.contact-block {
  font-size: 1.1em;
  text-align: center;
  margin-top: 2em;
  line-height: 1.6;
}


/* ─── Responsive: stack on small screens ───────────────────────────────── */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    margin: 0 auto;
    max-width: 80%;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
    padding: 1em;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 0.8em;
  }

  .instagram-link {
    margin-top: 1em;
    flex-direction: column;
    gap: 0.2em;
    font-size: 0.95em;
  }
}

#contact h2 {
  background-color: #222;
  color: white;
  padding: 0.75em 1em;
  text-align: center;
  font-size: 2em;
  margin-bottom: 1em;
}

#contact .contact-block {
  font-size: 1.25em;
  line-height: 1.8;
}

/* ─────────  GALLERY CAROUSEL  ───────── */

#gallery {
  padding: 3rem 1rem;
  text-align: center;
}

/* container that wraps slides + dots */
.carousel-container {
  width: 100%;
  max-width: 900px;          /* tweak to taste */
  margin: 0 auto;
  position: relative;        /* needed for absolutely-positioned slides */
}

/* wrapper that holds all <img> slides */
/* limit gallery height */
.carousel-slides img {
  max-height: 800px;      /* NEW  — never exceed 800 px */
  width: 100%;            /* already present, keeps it fluid */
  height: auto;           /* keeps aspect-ratio */
  object-fit: contain;    /* letterbox if needed, no cropping */
}


/* each image (slide) */
.carousel-slides img {
  width: 100%;               /* responsive width */
  height: auto;              /* natural height => container grows */
  object-fit: contain;       /* keep aspect-ratio, never crop */
  display: none;             /* hidden until .active */
  position: absolute;        /* stack on top of each other */
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* the currently shown slide */
.carousel-slides img.active {
  display: block;            /* let it dictate height */
  position: relative;
  opacity: 1;
}

/* dot nav */
.carousel-dots {
  margin-top: 1rem;
}

.carousel-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active,
.carousel-dots .dot:hover {
  background: #666;
}

/* ----------  LANGUAGE VISIBILITY  (keep at end)  ---------- */
body.lang-en [lang="de"],
body.lang-de [lang="en"] {        /* hide the opposite language */
  display: none !important;
}

	


/* ─── Additional sections (Workshops, Gallery, etc.) can go below ───── */
