:root {
  --color-text: #111111;
  --color-muted: #888888;
  --color-border: #cccccc;
  --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eaeaea;
}

.brand {
  position: absolute;
  left: 2rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] {
  color: var(--color-muted);
}

/* Home page: mountain photo as a static full-page background,
   nav overlaid on top so "Bruno Pisek" acts as the way back here. */

.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

.page-home .brand,
.page-home .site-nav a {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.page-home .site-nav a:hover,
.page-home .site-nav a[aria-current="page"] {
  color: #cccccc;
}

.page-home .nav-toggle span {
  background: #ffffff;
}

.page-home {
  background: url("../bruno-am-berg.jpg") center center / cover no-repeat fixed;
}

.home-main {
  min-height: 100vh;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 2rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
}

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-muted);
}

.content-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

/* Carousel */

.carousel {
  position: relative;
  flex: 1 1 420px;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track:empty::before {
  content: "Bilder folgen";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-prev,
.carousel-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--color-text);
}

.carousel-prev {
  left: 0.75rem;
}

.carousel-next {
  right: 0.75rem;
}

.carousel.has-multiple .carousel-prev,
.carousel.has-multiple .carousel-next {
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.6);
  padding: 0;
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--color-text);
}

/* Text */

.section-text {
  flex: 1 1 320px;
  max-width: 480px;
}

.text-placeholder {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  letter-spacing: 0.03em;
  border-bottom: 1px dotted var(--color-border);
  padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .section-inner {
    flex-direction: column;
    padding: 3rem 1.5rem;
  }

  .carousel {
    max-width: 100%;
  }
}
