/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  color: #333;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid #eee;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  transition: color 0.3s;
  padding: 0.3rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #333;
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Sections ===== */
.section {
  padding: 100px 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.6rem;
  color: #222;
}

.section-subtitle {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ===== Scroll Fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Body scroll lock for mobile menu ===== */
body.menu-open {
  overflow: hidden;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding-top: 60px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #bbb;
  animation: scroll-bounce 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: #bbb;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

.logo-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.logo-circle--small {
  width: 160px;
  height: 160px;
}

.logo-top {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: #222;
}

.logo-circle--small .logo-top {
  font-size: 1.2rem;
}

.logo-bottom {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666;
}

.logo-circle--small .logo-bottom {
  font-size: 0.6rem;
}

.tagline {
  font-size: 1rem;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.05em;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  display: block;
  border-radius: 6px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== About / Kreativkopf ===== */
.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-image {
  flex-shrink: 0;
}

.about-text h3 {
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #222;
}

.about-text p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 0.95rem;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  transition: color 0.3s;
  margin-top: 0.5rem;
}

.insta-link:hover {
  color: #c13584;
}

.icon-insta {
  flex-shrink: 0;
}

/* ===== Unterwegs / Termine Cards ===== */
.termine-container {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.termine-loading {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  padding: 3rem 0;
}

.termin-card {
  padding: 1.5rem 1.8rem;
  border: 1px solid #eee;
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.termin-card:hover {
  border-color: #ddd;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.termin-card--next {
  border-color: #c8ddb0;
  background: #fcfdf9;
}

.termin-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.termin-name {
  font-weight: 400;
  font-size: 1.05rem;
  color: #222;
}

.termin-badge {
  padding: 0.15rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #5a7a3a;
  background: #eef5e6;
  border-radius: 20px;
  white-space: nowrap;
}

.termin-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.termin-day {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.termin-date {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #888;
  min-width: 130px;
}

.termin-zeit {
  white-space: nowrap;
}

.termin-ort {
  font-size: 0.8rem;
  color: #999;
}

.termin-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
  transition: text-decoration-color 0.3s;
}

.termin-link:hover {
  text-decoration-color: #333;
}

/* ===== Impressum Page ===== */
.impressum-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 2rem 4rem;
  min-height: 100vh;
}

.impressum-title {
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: #222;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.impressum-section {
  margin-bottom: 2.5rem;
}

.impressum-section h2 {
  font-weight: 400;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.impressum-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.impressum-section ul li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.impressum-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #bbb;
}

.impressum-section h3 {
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.impressum-section p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.impressum-section a {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.impressum-section a:hover {
  color: #222;
}

/* Detail page back link (shared) */
.detail-back {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2rem;
  transition: color 0.3s, transform 0.3s;
}

.detail-back:hover {
  color: #333;
  transform: translateX(-3px);
}

/* ===== Detail Page ===== */
.detail-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 2rem 4rem;
  min-height: 100vh;
}

.detail-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f5f5f5;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.detail-title {
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.detail-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border: 1.5px solid #333;
  border-radius: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
  transition: background 0.3s, color 0.3s;
  margin-top: 1rem;
}

.detail-cta:hover {
  background: #333;
  color: #fff;
}

/* ===== Kontakt ===== */
.contact-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.contact-card {
  text-align: center;
  max-width: 500px;
}

.contact-lead {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.btn-insta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border: 1.5px solid #333;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

.btn-insta:hover {
  background: #333;
  color: #fff;
}

.contact-location {
  margin-top: 2.5rem;
  color: #aaa;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ===== Footer ===== */
.footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 2.5rem 2rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: #666;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #333;
  transition: width 0.3s;
}

.footer-links a:hover {
  color: #333;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #eee;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #bbb;
  letter-spacing: 0.05em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: absolute;
    right: 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  /* Gallery overlay always visible on touch devices */
  .gallery-overlay {
    opacity: 1;
  }

  .termin-card {
    padding: 1.2rem 1.4rem;
  }

  .termin-day {
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-start;
  }

  .termin-day + .termin-day {
    margin-top: 0.3rem;
  }

  .termin-date {
    font-size: 0.75rem;
    min-width: auto;
  }

  .section {
    padding: 80px 1.2rem 3rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .logo-circle {
    width: 160px;
    height: 160px;
  }

  .logo-top {
    font-size: 1.2rem;
  }
}
