:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --primary: #6b5e4a;
  --accent: #a68b6b;
  --text: #1f1f1f;
  --muted: #6c6c6c;
  --header-height: 94px;
  --hero-text: rgb(124, 135, 149);
  --hero-bg: rgb(244, 237, 210);
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   TYPOGRAFIE
========================= */

h1,
h2 {
  color: var(--primary);
  line-height: 1.1;
}

h2 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;

  text-transform: uppercase;
  letter-spacing: 0.12em;

  margin-bottom: 1.5rem;
}

p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.7;
  max-width: 65ch;
}

/* =========================
   SECTION TEXT
========================= */
.section-intro {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.section-intro p {
  max-width: 1100px;
  margin: 0 auto;

  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.8;
}

/* =========================
   TEXT UNTER CAROUSEL
========================= */
.section-text {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 1rem;
  text-align: center;
  opacity: 0.9;
}

.section-text p {
  max-width: 900px;
  margin: 0 auto;

  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
}

/* =========================
   SECTION SUBTITLE
========================= */
.section-subtitle {
  text-align: center;

  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--hero-text);

  margin: 4rem auto 2rem;
  padding: 0 1rem;
}

/* =========================
   LAYOUT
========================= */
main {
  width: 100%;
  padding: 0;
}

section {
  width: 100%;
  min-height: 100vh;
  padding: 5rem 2rem;
  border-bottom: 1px solid #e5ded3;
}

section:nth-child(even) {
  background: #f6f1ea;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================
   SKIP LINK
========================= */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: black;
  color: white;
  padding: 0.5rem;
}

.skip-link:focus {
  left: 0;
  z-index: 10000;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo {
  margin: 0;
}

.logo img {
  height: 60px;
  width: auto;
}

/* =========================
   MENU BUTTON
========================= */
.menu-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  z-index: 1100;
}

/* =========================
   NAVIGATION
========================= */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(320px, 90vw);

  background: var(--surface);
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);

  padding: 5rem 2rem 2rem;

  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  position: relative;
}

.nav a:hover,
.nav a:focus,
.nav a.active {
  color: var(--accent);
}

/* =========================
   HERO
========================= */
#home.hero {
  height: calc(100dvh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding: 0;
  border: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--surface);
  border-right: 2px solid rgba(207,198,182,0.5);
  padding: 0;
}

.hero-image::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image: url("images/meisterstueck_sw.png");

  background-size: 20%;
  background-repeat: no-repeat;

  background-position: 15% center;

  opacity: 0.30;

  z-index: 1;
}

.hero-image img {
  width: auto;
  height: 70%;
  max-width: 90%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.hero-text {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: var(--hero-bg);
  padding: 0 2rem 2rem;
  text-align: left;
}

.hero-text h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: 2px;
  color: var(--hero-text);
  font-weight: 400;
  text-transform: uppercase;
  word-spacing: 0.15em;
}

/* =========================
   CAROUSEL
========================= */
.carousel {
  position: relative;
  width: min(1000px, calc(100% - 2rem));
  margin: 2rem auto 0;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 56%;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ddd;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;

  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background: rgba(0,0,0,0.8);
}

/* =========================
   GALLERY OHNE LIGHTBOX
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: white;
  border: 1px solid #ddd;
  cursor: default;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 0.5rem;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* =========================
   ACCESSIBILITY
========================= */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .logo img {
    height: 48px;
  }

  #home.hero {
    height: auto;
    min-height: 100dvh;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 45vh;
    border-right: none;
    border-bottom: 2px solid rgba(207,198,182,0.5);
  }

  .hero-image img {
    width: 70%;
    height: auto;
    max-height: 55vh;
  }

  .hero-text {
    justify-content: center;
    text-align: center;
    padding: 2rem;
  }

  .carousel-item {
    flex-basis: 80%;
  }
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--surface);
  border-top: 1px solid #ddd;
  padding: 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content > p {
  margin-bottom: 2rem;
  color: var(--muted);
}

/* Accordion Bereich */
.footer-disclosures {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Details */
.footer-disclosures details {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

/* Titel */
.footer-disclosures summary {
  cursor: pointer;

  font-size: 1rem;
  font-weight: 500;

  color: var(--primary);

  list-style: none;
}

/* Marker entfernen */
.footer-disclosures summary::-webkit-details-marker {
  display: none;
}

/* Hover */
.footer-disclosures summary:hover,
.footer-disclosures summary:focus {
  color: var(--accent);
}

/* Inhalt */
.footer-panel {
  padding-top: 1rem;
}

.footer-panel p {
  margin: 0;

  font-size: 0.95rem;
  line-height: 1.6;

  color: var(--text);

  max-width: 900px;
}

/* =========================
   KONTAKT / STANDORTE
========================= */
.contact-locations {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding: 0 2rem;

  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.location-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.location-info h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  margin-bottom: 1rem;

  color: var(--primary);
}

.location-info p {
  margin: 0 0 1rem;
}

/* Google Consent */
.map-consent {
  background: #f6f1ea;
  padding: 2rem;
  border-radius: 16px;
}

.map-load-btn {
  margin-top: 1rem;

  background: var(--primary);
  color: white;

  border: none;
  border-radius: 8px;

  padding: 1rem 1.5rem;

  cursor: pointer;

  font-size: 1rem;
}

.map-load-btn:hover,
.map-load-btn:focus {
  background: var(--accent);
}

/* Map */
.map-container iframe {
  width: 100%;
  height: 500px;

  border: 0;
  border-radius: 16px;
}