/* ═══════════════════════════════════════════
   Edler Bauen – Baustelle Theme
   Gold/Brown construction-site design
   applied to segmented grid structure
   ═══════════════════════════════════════════ */

:root {
  --gold: #ffc107;
  --gold-dark: #e8a800;
  --gold-glow: rgba(255, 193, 7, 0.15);
  --brown: #2b2520;
  --brown-soft: #3a332d;
  --beige: #eae5dc;
  --beige-light: #f5f1eb;
  --cream: #faf8f4;
  --white: #ffffff;
  --text: #2b2520;
  --text-light: #6b5f55;
  --text-muted: #9a8e82;
  --shadow-3d: 4px 4px 0 var(--brown);
  --shadow-3d-gold: 4px 4px 0 var(--gold-dark);
  --shadow-3d-sm: 2px 2px 0 var(--brown);
  --shadow-3d-lg: 6px 6px 0 var(--brown);
  --shadow-card: 0 8px 24px rgba(43, 37, 32, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(43, 37, 32, 0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;
  --font-heading: 'Bree Serif', serif;
  --font-body: 'Work Sans', sans-serif;
}

/* ── Reset & Base ── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  scroll-snap-type: y proximity;
}

/* Default 125% zoom on desktop — mobile stays at native size */
@media (min-width: 901px) {
  html { zoom: 1.25; }
  /* Compensate section heights: 80vh * 1.25 zoom = 100vh visually */
  section,
  .hero,
  .contact { min-height: 80vh; max-height: 80vh; }
  .gallery { max-height: 80vh; }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: var(--lh-relaxed);
  /* Noise texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

/* ── Focus Accessibility ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: var(--brown);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-3d);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-3d-lg);
  color: var(--brown);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--brown);
}

.btn-ghost {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown);
  box-shadow: var(--shadow-3d);
}
.btn-ghost:hover {
  background: var(--brown);
  color: var(--gold);
  box-shadow: 6px 6px 0 var(--gold-dark);
  transform: translate(-2px, -2px);
}

/* ── NAV ── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav {
  background: var(--brown);
  border-bottom: 2px solid var(--gold);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 20px;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}
.nav-links li {
  white-space: nowrap;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-links .nav-cta {
  color: var(--brown);
  font-weight: 700;
  padding: 6px 18px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-links .nav-cta:hover {
  color: var(--brown);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  width: 44px;
  height: 44px;
  position: relative;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.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);
}

.mobile-menu {
  display: flex;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--brown-soft);
  padding: 16px 24px;
  border-bottom: 2px solid var(--gold);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.2s ease;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a.active {
  color: var(--gold);
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── Animations ── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  background: var(--beige-light);
  padding-top: 68px;
  scroll-snap-align: start;
}
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 2vh, 32px) 24px clamp(16px, 2vh, 32px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vh, 40px);
  align-items: center;
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.15);
  border: 2px solid var(--gold);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 2px 2px 0 var(--gold-dark);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5.5vh, 48px);
  line-height: var(--lh-tight);
  color: var(--brown);
  margin-bottom: clamp(8px, 1.5vh, 16px);
}
.hero h1 .accent {
  color: var(--gold-dark);
  position: relative;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(255, 193, 7, 0.25);
  border-radius: 2px;
  z-index: -1;
}

.hero-text {
  font-size: clamp(14px, 2vh, 17px);
  line-height: var(--lh-relaxed);
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: clamp(10px, 2vh, 20px);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 2px solid var(--beige);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 2px 2px 0 var(--beige);
}
.hero-point svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--beige), var(--beige-light));
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.brick-wall {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  opacity: 0.3;
}
.brick-row {
  display: flex;
  gap: 3px;
  height: 16px;
}
.brick-row:nth-child(even) { padding-left: 20px; }
.brick {
  flex: 1;
  background: var(--gold-dark);
  border-radius: 2px;
  opacity: 0.6;
}
.brick:nth-child(2) { opacity: 0.4; background: var(--brown-soft); }
.brick:nth-child(3) { opacity: 0.5; }

.hero-image-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
}
.hero-image-label svg {
  display: block;
  margin: 0 auto 8px;
  opacity: 0.4;
}

.stat-card {
  position: absolute;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-card-hover);
  z-index: 3;
}
.stat-card-1 { bottom: clamp(-10px, -1vw, -20px); left: clamp(-8px, -1vw, -20px); }
.stat-card-2 { top: clamp(-6px, -0.8vw, -10px); right: clamp(-4px, -0.6vw, -10px); }
.stat-number {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--gold-dark);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Section Shared ── */

section {
  padding: clamp(24px, 5vh, 64px) 24px;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  font-family: var(--font-body);
  font-size: clamp(10px, 1.3vh, 12px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: clamp(4px, 1vh, 10px);
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vh, 38px);
  color: var(--brown);
  margin-bottom: clamp(6px, 1vh, 12px);
  line-height: var(--lh-tight);
}

.section-subtitle {
  font-size: clamp(13px, 1.8vh, 16px);
  color: var(--text-light);
  line-height: var(--lh-relaxed);
  max-width: 560px;
}

/* ── SERVICES ── */

.services {
  background: var(--beige-light);
  box-shadow: inset 0 8px 16px -8px rgba(43, 37, 32, 0.04);
  position: relative;
  overflow: hidden;
}
.services::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vh, 22px);
  margin-top: clamp(16px, 2.5vh, 32px);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(18px, 3vh, 32px) clamp(16px, 2vh, 26px);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--beige);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: var(--shadow-card);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3d-lg);
  border-color: var(--gold);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: clamp(36px, 5.5vh, 52px);
  height: clamp(36px, 5.5vh, 52px);
  background: rgba(255, 193, 7, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(10px, 1.5vh, 18px);
  border: 2px solid var(--gold);
}
.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(15px, 2vh, 19px);
  color: var(--brown);
  margin-bottom: clamp(4px, 0.8vh, 8px);
}
.service-card p {
  font-size: clamp(12px, 1.6vh, 14px);
  color: var(--text-light);
  line-height: var(--lh-relaxed);
}

/* ── PROCESS ── */

.process {
  background: var(--cream);
  position: relative;
  padding-top: clamp(24px, 4vh, 40px);
  padding-bottom: clamp(24px, 4vh, 40px);
}

.process-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 3vh, 40px);
  align-items: center;
}

.process-portrait {
  background: linear-gradient(160deg, var(--beige), var(--beige-light));
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(300px, 70vh, 600px);
}
.process-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: inherit;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beige), transparent);
}

.process-timeline {
  display: flex;
  flex-direction: column;
  margin-top: clamp(8px, 1.5vh, 16px);
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: repeating-linear-gradient(
    180deg,
    var(--gold) 0px,
    var(--gold) 8px,
    var(--beige) 8px,
    var(--beige) 14px
  );
  border-radius: 2px;
  height: 0;
  transition: height 1s ease;
}
.process-timeline.animate-line::before {
  height: calc(100% - 8px);
}
.process-step { transition: opacity 0.6s ease, transform 0.6s ease; }
.process-timeline:not(.animate-line) .process-step { opacity: 0; transform: translateX(-10px); }
.process-timeline.animate-line .process-step:nth-child(1) { transition-delay: 0.1s; }
.process-timeline.animate-line .process-step:nth-child(2) { transition-delay: 0.25s; }
.process-timeline.animate-line .process-step:nth-child(3) { transition-delay: 0.4s; }
.process-timeline.animate-line .process-step:nth-child(4) { transition-delay: 0.55s; }
.process-timeline.animate-line .process-step:nth-child(5) { transition-delay: 0.7s; }

.process-step {
  display: flex;
  gap: clamp(12px, 2vh, 18px);
  align-items: flex-start;
  padding: clamp(4px, 1vh, 10px) 0;
  position: relative;
}

.process-brick {
  width: clamp(40px, 6vh, 52px);
  min-width: clamp(40px, 6vh, 52px);
  height: clamp(30px, 4.5vh, 38px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: clamp(14px, 2.2vh, 20px);
  color: var(--brown);
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  box-shadow: var(--shadow-3d);
  transition: transform 0.3s, box-shadow 0.3s;
}
.process-step:hover .process-brick {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 5px 5px 0 var(--brown);
}

.process-step:nth-child(1) .process-brick { transform: rotate(-1.5deg); }
.process-step:nth-child(2) .process-brick { transform: rotate(1deg); }
.process-step:nth-child(3) .process-brick { transform: rotate(-0.5deg); }
.process-step:nth-child(4) .process-brick { transform: rotate(1.5deg); }
.process-step:nth-child(5) .process-brick { transform: rotate(-1deg); }

.process-content { flex: 1; padding-top: 4px; }
.process-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.9vh, 16px);
  color: var(--brown);
  margin-bottom: clamp(1px, 0.4vh, 3px);
}
.process-content p {
  font-size: clamp(11px, 1.6vh, 13px);
  color: var(--text-light);
  line-height: var(--lh-snug);
  max-width: 480px;
}

.process-tag {
  display: inline-block;
  margin-top: clamp(2px, 0.5vh, 4px);
  font-size: clamp(8px, 1.1vh, 10px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brown);
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid var(--gold);
  padding: clamp(2px, 0.4vh, 4px) clamp(8px, 1vh, 12px);
  border-radius: var(--radius-pill);
}

/* ── ABOUT IMAGE LABEL (used in process-portrait) ── */

.about-image-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.about-image-label svg {
  display: block;
  margin: 0 auto 6px;
  opacity: 0.3;
}

/* ── MEISTERBRIEF ── */

.meisterbrief {
  background: var(--cream);
  position: relative;
}
.meisterbrief::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beige), transparent);
}

.meisterbrief-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 2.5vh, 36px);
  align-items: center;
  margin-top: clamp(12px, 2vh, 28px);
}

.meisterbrief-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(10px, 1.5vh, 18px);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-card-hover);
  display: inline-flex;
  flex-direction: column;
  align-self: center;
  justify-self: center;
  max-width: 100%;
}
.meisterbrief-card img {
  display: block;
  max-width: 100%;
  max-height: clamp(260px, 58vh, 480px);
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
}
.meisterbrief-note {
  margin-top: clamp(6px, 1vh, 12px);
  font-size: clamp(11px, 1.4vh, 13px);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

.meisterbrief-copy h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 3vh, 26px);
  line-height: var(--lh-snug);
  color: var(--brown);
  margin-bottom: clamp(8px, 1.2vh, 14px);
}
.meisterbrief-copy p {
  font-size: clamp(13px, 1.8vh, 15px);
  line-height: var(--lh-relaxed);
  color: var(--text-light);
  margin-bottom: clamp(8px, 1vh, 14px);
}

.meisterbrief-points {
  display: grid;
  gap: clamp(8px, 1.2vh, 14px);
  margin-top: clamp(10px, 1.5vh, 20px);
}
.meisterbrief-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: clamp(10px, 1.5vh, 16px);
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--beige);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.meisterbrief-point:hover {
  border-color: var(--gold);
  box-shadow: 4px 4px 0 var(--gold-dark);
}
.meisterbrief-point svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.meisterbrief-point strong {
  display: block;
  font-size: clamp(12px, 1.6vh, 14px);
  color: var(--text);
  margin-bottom: clamp(2px, 0.3vh, 4px);
}
.meisterbrief-point span {
  font-size: clamp(11px, 1.5vh, 14px);
  line-height: var(--lh-relaxed);
  color: var(--text-light);
}


/* ── GALLERY ── */

.gallery {
  background: var(--cream);
  position: relative;
  max-height: 100vh;
  overflow: hidden;
}

.gallery-filters {
  display: flex;
  gap: 12px;
  margin-top: clamp(12px, 2vh, 20px);
  margin-bottom: clamp(12px, 2vh, 20px);
  flex-wrap: wrap;
}
.gallery-search,
.gallery-select {
  padding: clamp(8px, 1.2vh, 12px) 14px;
  border: 2px solid var(--beige);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}
.gallery-search { flex: 1; min-width: 200px; }
.gallery-select { min-width: 200px; cursor: pointer; }
.gallery-search:focus,
.gallery-select:focus { border-color: var(--gold); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(12px, 2vh, 20px);
  overflow-y: auto;
  max-height: 60vh;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--beige);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 4px 4px 0 var(--gold-dark);
}
.gallery-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--beige-light);
  display: block;
}
.gallery-card-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--beige), var(--beige-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}
.gallery-card-body {
  padding: clamp(10px, 1.5vh, 14px);
}
.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--brown);
  margin-bottom: 4px;
}
.gallery-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-card-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brown);
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.gallery-card-count {
  font-size: 11px;
  color: var(--text-muted);
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 14px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ── CONTACT ── */

.contact {
  background: var(--cream);
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-info .section-title {
  font-size: 30px;
  margin-bottom: 8px;
}
.contact-info .section-subtitle {
  margin-bottom: 16px;
}
.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--brown);
  margin-bottom: 8px;
  line-height: var(--lh-snug);
}
.contact-info > p {
  font-size: 14px;
  color: var(--text-light);
  line-height: var(--lh-normal);
  margin-bottom: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(255, 193, 7, 0.15);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail-text {
  font-size: 15px;
  color: var(--text);
}
.contact-detail-text a {
  color: var(--text);
  text-decoration: none;
}
.contact-detail-text a:hover { color: var(--gold-dark); }
.contact-detail-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 2px solid var(--beige);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 2px 2px 0 var(--beige);
}
.contact-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(16px, 2.5vh, 24px);
  border: 2px solid var(--beige);
  box-shadow: var(--shadow-card-hover);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vh, 12px);
  margin-bottom: clamp(8px, 1.2vh, 12px);
}
.form-group { margin-bottom: clamp(8px, 1.2vh, 12px); }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.form-required { color: var(--gold-dark); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: clamp(7px, 1.1vh, 10px) 14px;
  border: 2px solid var(--beige);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--beige-light);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a8e82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: clamp(50px, 8vh, 80px);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
  padding: 16px;
}
.form-file {
  padding: clamp(7px, 1.1vh, 10px) 14px;
  cursor: pointer;
  font-size: 13px;
}
.form-file::file-selector-button {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: var(--brown);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  margin-right: 10px;
}
.form-file::file-selector-button:hover {
  opacity: 0.9;
}

.form-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}
.form-submit.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--brown);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--gold-dark);
}
.checkbox-row label {
  font-size: 13px;
  color: var(--text-light);
  line-height: var(--lh-normal);
}
.checkbox-row a { color: var(--gold-dark); }
.checkbox-row a:hover { text-decoration: underline; }

.form-status {
  min-height: 22px;
  margin-top: 14px;
  font-size: 14px;
  line-height: var(--lh-normal);
  text-align: center;
}
.form-status.success { color: #2f6f46; }
.form-status.error { color: #9e3f22; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 193, 7, 0.2);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.form-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--brown);
  margin-bottom: 8px;
}
.form-success p {
  font-size: 15px;
  color: var(--text-light);
}

/* ── FOOTER ── */

footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.5);
  padding: 0 0 env(safe-area-inset-bottom, 0);
  border-top: 2px solid var(--gold);
  scroll-snap-align: end;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 1.5px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}
.footer-nav a:hover { color: var(--gold); }
.footer-contact {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-copy {
  font-size: 11px;
  text-align: center;
}

/* ── SCROLL TOP ── */

.scroll-top {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  right: max(24px, env(safe-area-inset-right, 24px));
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: var(--brown);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 900;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-3d-lg);
}
.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ── MOBILE STICKY CTA ── */

.mobile-sticky-cta {
  display: none;
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { top: 62px; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px 32px;
    gap: 28px;
  }
  .hero-text { max-width: 100%; margin: 0 auto 18px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .hero-points { justify-content: center; }

  .stat-card-1 { bottom: -8px; left: 12px; }
  .stat-card-2 { top: -8px; right: 12px; }

  .process-grid { grid-template-columns: 1fr; }
  .process-portrait { max-width: 300px; margin: 0 auto; aspect-ratio: 1/1; }
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin: 32px auto 0; }
  .meisterbrief-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  html { scroll-snap-type: none; }
  section { max-height: none; overflow: visible; scroll-snap-align: none; }
  .contact { max-height: none; overflow: visible; }
  .gallery { max-height: none; overflow: visible; }

  .hero h1 { font-size: 38px; }
  .section-title { font-size: 30px; }

  .footer-inner { flex-wrap: wrap; height: auto; padding: 14px 24px; justify-content: center; gap: 12px; }
  .footer-nav { display: none; }
  .footer-contact { display: none; }
}

@media (max-width: 600px) {
  body { padding-bottom: 90px; }
  section { padding: 48px 20px; min-height: 100svh; }

  .hero { padding-top: 66px; }
  .hero-inner { padding: 28px 20px 20px; gap: 20px; }
  .hero h1 { font-size: 28px; line-height: var(--lh-tight); }
  .hero-badge { padding: 7px 12px; font-size: 11px; }
  .hero-text { font-size: 15px; line-height: var(--lh-normal); }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-points { display: grid; gap: 8px; }
  .hero-point { justify-content: center; }
  .hero-visual { max-width: 340px; }

  .stat-card { padding: 12px 14px; }
  .stat-number { font-size: 22px; }
  .stat-label { font-size: 11px; }

  .section-title { font-size: 27px; }
  .section-subtitle { font-size: 15px; }

  .meisterbrief-copy h3 { font-size: 24px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
  .form-input,
  .form-select,
  .form-textarea,
  .form-file { font-size: 16px; min-height: 44px; }
  .form-textarea { min-height: 100px; }
  .gallery-search,
  .gallery-select { font-size: 16px; min-height: 44px; }

  .process-timeline::before { left: 29px; }
  .process-step { gap: 16px; padding: 16px 0; }
  .process-brick { width: 60px; min-width: 60px; height: 44px; font-size: 18px; }

  .service-card,
  .meisterbrief-card { padding: 22px; }

  .scroll-top { bottom: 100px; right: 16px; }

  .mobile-sticky-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    z-index: 1001;
    padding: 10px;
    border-radius: 14px;
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(43, 37, 32, 0.15);
    border: 2px solid var(--gold);
  }
  .mobile-cta-primary,
  .mobile-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    min-height: 50px;
    padding: 12px;
    border-radius: 8px;
  }
  .mobile-cta-primary {
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    color: var(--brown);
    box-shadow: 2px 2px 0 var(--brown);
  }
  .mobile-cta-secondary {
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--beige);
  }
}

@media (max-width: 480px) {
  body { padding-bottom: 96px; }
  .nav-inner { height: 44px; padding: 0 14px; }
  .mobile-menu { top: 46px; padding: 12px 16px; }
  section { padding: 40px 16px; }
  .hero-inner { padding: 20px 16px 16px; }
  .hero h1 { font-size: 25px; }
  .hero-text { font-size: 14px; }
  .hero-point { font-size: 12px; padding: 8px 10px; }
  .btn { font-size: 14px; padding: 12px 20px; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; }
  .process-brick { width: 56px; min-width: 56px; height: 42px; font-size: 17px; }
  .service-card,
  .meisterbrief-card,
  .contact-form { padding: 18px 16px; }
  .mobile-sticky-cta { left: 8px; right: 8px; padding: 8px; gap: 8px; }
  .mobile-cta-primary,
  .mobile-cta-secondary { font-size: 13px; min-height: 48px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-snap-type: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .process-timeline.animate-line::before { height: calc(100% - 8px); transition: none; }
  .process-timeline:not(.animate-line) .process-step { opacity: 1; transform: none; }
}
