@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --red: #E61130;
  --black: #000;
  --white: #fff;
  --gray-100: #f5f5f5;
  --gray-200: #e4e4e4;
  --gray-400: #aaa;
  --gray-600: #666;
  --nav-h: 68px;
  --max-w: 1440px;
  --px: clamp(20px, 5vw, 80px);
  --gap: clamp(16px, 2vw, 32px);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; color: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.7rem, 3.8vw, 3.8rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.2rem, 2.4vw, 2.4rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: clamp(0.95rem, 1.4vw, 1.2rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 0.85rem; font-weight: 500; line-height: 1.35; }
p { font-size: clamp(0.78rem, 0.9vw, 0.875rem); line-height: 1.75; color: #333; font-weight: 300; }
.label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.policy-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.78rem, 0.9vw, 0.875rem);
  line-height: 1.75;
  color: #333;
  font-weight: 300;
}
.policy-list li {
  font: inherit;
  color: inherit;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section { padding: clamp(60px, 8vw, 110px) 0; }

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  z-index: 1000;
  overflow: visible;
}

.nav-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { align-self: flex-start; margin-top: 4px; }
.nav-logo img { height: 80px; width: auto; }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--red); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  padding-top: 14px;
  left: -16px;
  background: white;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 8px 0;
  min-width: 220px;
  display: none;
  z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: #333;
  transition: color 0.2s, background 0.2s;
}
.dropdown li a:hover { color: var(--red); background: var(--gray-100); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex-shrink: 0; display: inline-block; }

/* Hamburger – hidden on desktop, shown only on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile/Universal overlay menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: white;
  z-index: 999;
  padding: 32px var(--px) 48px;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-nav-link {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--red); }

.mobile-sub {
  padding-left: 0;
  background: var(--gray-100);
  margin: 0;
}
.mobile-sub a {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 13px var(--px);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: color 0.2s;
}
.mobile-sub a:hover { color: var(--red); }
.mobile-sub-toggle { cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
.mobile-sub-toggle .arrow { transition: transform 0.25s; font-size: 0.9rem; }
.mobile-sub-toggle.open .arrow { transform: rotate(180deg); }
.mobile-sub { display: none; }
.mobile-sub.open { display: block; }

/* ===== PAGE OFFSET ===== */
.page-main { padding-top: var(--nav-h); }

/* ===== HOMEPAGE: borderless nav, larger logo, full-viewport hero ===== */
.page-home .site-header {
  border-bottom: none;
  height: 60px;
}
.page-home .page-main {
  padding-top: 60px;
}

/* Hero fills the viewport exactly — strip takes all remaining space after the caption */
.page-home .hero {
  height: calc(100vh - 60px);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
/* Caption row: container handles centering, inner padding offsets logo width */
.page-home .hero-header {
  flex-shrink: 0;
  padding: clamp(14px, 1.8vw, 22px) 0 clamp(10px, 1.4vw, 16px);
}
.page-home .hero-header .container {
  padding-left: calc(var(--px) + clamp(90px, 12vw, 140px) + 20px);
}
/* Fixed tagline — small and light, not dynamic */
.page-home .hero-caption-big {
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  cursor: default;
  opacity: 1 !important;
}
.page-home .hero-strip {
  flex: 1 1 0;
  height: auto;
  min-height: 180px;
}
/* Logo on homepage: square, top-aligned so it reaches into the slideshow area */
.page-home .site-header {
  overflow: visible;
}
.page-home .nav-inner {
  align-items: flex-start;
}
.page-home .nav-logo img {
  height: clamp(90px, 12vw, 140px);
  width: clamp(90px, 12vw, 140px);
  object-fit: contain;
}
.page-home .nav-toggle {
  align-self: center;
}
.page-home .nav-links { align-self: center; }

/* ===== HERO ===== */
.hero {
  width: 100%;
  background: var(--white);
  overflow: hidden;
}

/* Large caption text above the slideshow strip */
.hero-header {
  padding: clamp(40px, 6vw, 80px) var(--px) clamp(24px, 3.5vw, 44px);
}

.hero-caption-big {
  font-size: clamp(2.4rem, 6vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--black);
  cursor: pointer;
  transition: color 0.2s, opacity 0.25s ease;
  max-width: 1020px;
}
.hero-caption-big:hover { color: #333; }

/* Slideshow strip: left margin, right edge shows peek of next slide */
.hero-strip {
  position: relative;
  margin-left: var(--px);
  height: clamp(300px, 50vw, 660px);
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  gap: 8px;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each slide fills the full strip width – no peek of next slide */
.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Gradient overlay at bottom of each slide for UI readability */
.hero-slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* UI controls (dots + arrows) inside the strip */
.hero-ui {
  position: absolute;
  bottom: clamp(16px, 2.5vw, 28px);
  right: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.hero-dot.active {
  background: white;
  transform: scale(1.4);
}

.hero-arrows {
  display: flex;
  gap: 6px;
}
.hero-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.45);
  color: white;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.8);
}

/* Hero progress bar */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--red);
  z-index: 6;
  width: 0%;
  transition: width 0s linear;
}

/* ===== SECTION HEADERS ===== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
  gap: 16px;
}

.section-head .label { margin-bottom: 12px; color: var(--red); }

/* ===== LINK BUTTON ===== */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s, gap 0.25s;
  white-space: nowrap;
}
.link-btn:hover { color: var(--red); gap: 14px; }

/* ===== HOME: BÜRO SECTION ===== */
.home-buero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.home-buero-text .label { margin-bottom: 16px; }
.home-buero-text h2 { margin-bottom: 24px; }
.home-buero-text p { margin-bottom: 32px; max-width: 500px; }

.home-buero-img {
  overflow: hidden;
  position: relative;
}
.home-buero-img img {
  width: 100%;
  height: clamp(200px, 28vw, 360px);
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-buero-img:hover img { transform: scale(1.04); }
.home-buero-img-contain {
  display: flex;
  justify-content: center;
}
.home-buero-img-contain img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.home-buero-img-contain:hover img { transform: none; }

/* ===== HOME: QUOTE ===== */
.quote-section {
  background: var(--gray-100);
  padding: clamp(80px, 11vw, 140px) var(--px);
  text-align: center;
}
.quote-mark {
  font-size: 4.5rem;
  line-height: 0.5;
  color: var(--red);
  font-weight: 300;
  margin-bottom: 18px;
  display: block;
}
.quote-text {
  font-size: clamp(1.1rem, 2vw, 2.1rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  max-width: 860px;
  margin: 0 auto 24px;
  letter-spacing: -0.015em;
  color: var(--black);
}
.quote-author {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* ===== HOME: KONTAKT TEASER ===== */
.home-kontakt {
  background: var(--black);
  color: white;
  padding: clamp(60px, 8vw, 100px) var(--px);
}
.home-kontakt-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.home-kontakt h2 { color: white; margin-bottom: 20px; }
.home-kontakt p { color: rgba(255,255,255,0.65); margin-bottom: 36px; }
.home-kontakt .link-btn { color: white; border-color: rgba(255,255,255,0.35); }
.home-kontakt .link-btn:hover { color: var(--red); border-color: var(--red); }

.kontakt-details-home { color: rgba(255,255,255,0.8); }
.kontakt-details-home .label { color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.kontakt-block-home { margin-bottom: 18px; }
.kontakt-block-home p, .kontakt-block-home a { color: rgba(255,255,255,0.85); line-height: 1.8; display: block; }
.kontakt-block-home a:hover { color: var(--red); }

/* ===== HOME: FEATURED PROJECTS COLLAGE ===== */
.home-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: clamp(260px, 34vw, 460px) clamp(220px, 26vw, 360px);
  gap: 6px;
  margin-top: 36px;
}

.home-collage-item {
  position: relative;
  overflow: hidden;
  display: block;
}

.home-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-collage-item:hover img { transform: scale(1.04); }

/* Row 1: three equal cells */
.home-collage-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.home-collage-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.home-collage-item:nth-child(3) { grid-column: 3; grid-row: 1; }
/* Row 2: one narrow + one wide */
.home-collage-item:nth-child(4) { grid-column: 1;     grid-row: 2; }
.home-collage-item:nth-child(5) { grid-column: 2 / 4; grid-row: 2; }

.home-collage-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, transparent 100%);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.3s;
}

.home-collage-cat {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.home-collage-title {
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-weight: 600;
  line-height: 1.2;
}

/* ===== PROJECT CARD (used on projekte.html) ===== */
.project-card {
  display: block;
  overflow: hidden;
  cursor: pointer;
}
.project-card-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-card-img img { transform: scale(1.06); }
.project-card-info { padding: 14px 0; }
.project-card-cat {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 5px;
}
.project-card-title {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s;
}
.project-card:hover .project-card-title { color: var(--red); }

/* ===== PROJECTS PAGE ===== */
.page-hero { padding: clamp(52px, 7vw, 88px) 0 clamp(32px, 4vw, 52px); }
.page-hero .label { margin-bottom: 12px; color: var(--red); }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: clamp(36px, 5vw, 60px);
  flex-wrap: wrap;
}
.filter-btn {
  padding: 12px 22px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}
.filter-btn:hover { color: var(--black); }
.filter-btn.active { color: var(--black); border-color: var(--black); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px) var(--gap);
  min-height: 200px;
}

.project-card.hidden { display: none; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-600);
  display: none;
}
.empty-state.visible { display: block; }

/* ===== PROJECT DETAIL PAGE ===== */
.projekt-header {
  padding: clamp(28px, 3.5vw, 48px) 0 clamp(14px, 1.8vw, 22px);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.projekt-header .label { margin-bottom: 8px; color: var(--red); }
.projekt-header h1 { margin-bottom: 0; font-size: clamp(1rem, 1.8vw, 1.6rem); }
.projekt-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.projekt-meta-item {
  font-size: 0.875rem;
  font-weight: 400;
  color: #444;
}
.projekt-meta-item strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 3px;
}

.projekt-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.projekt-text p { margin-bottom: 20px; font-size: clamp(0.95rem, 1.25vw, 1.08rem); line-height: 1.72; }
.projekt-text p:last-child { margin-bottom: 0; }

.projekt-img-hero {
  width: 100%;
  margin-bottom: clamp(14px, 2vw, 28px);
}
.projekt-img-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.projekt-imgs-grid {
  --projekt-gallery-gap: clamp(6px, 0.8vw, 10px);
  display: block;
  margin-top: 0;
}

/* Gallery rows: equal height, natural aspect ratio */
.projekt-gallery-row {
  display: flex;
  gap: var(--projekt-gallery-gap);
  margin-bottom: var(--projekt-gallery-gap);
}
.projekt-gallery-row img {
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}

.projekt-text-all p strong {
  font-weight: 500;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: #111;
  display: block;
  margin-bottom: 16px;
}

.projekt-img-full {
  margin-bottom: clamp(8px, 1vw, 14px);
}
.projekt-img-full img {
  width: 100%;
  height: auto;
  display: block;
}

.projekt-img-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  margin-bottom: clamp(14px, 2vw, 22px);
}
.projekt-img-row.three { grid-template-columns: repeat(3, 1fr); }

.projekt-img-row img {
  width: 100%;
  height: clamp(180px, 26vw, 420px);
  object-fit: cover;
}

.projekt-text-mid {
  padding: clamp(20px, 3vw, 36px) 0;
  max-width: 680px;
}
.projekt-text-mid p {
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.72;
  color: #333;
}

.projekt-text-block {
  max-width: 680px;
  margin: clamp(20px, 3vw, 36px) 0;
}
.projekt-text-block p { font-size: clamp(0.95rem, 1.25vw, 1.08rem); line-height: 1.72; color: #444; }

.projekt-text-all {
  max-width: min(900px, 80%);
  padding: clamp(18px, 2.5vw, 34px) 0 clamp(14px, 2vw, 24px);
}
.projekt-text-all p {
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.75;
  margin-bottom: 20px;
  color: #333;
}
.projekt-text-all p:last-child { margin-bottom: 0; }
.projekt-video-cta {
  margin-top: clamp(24px, 3vw, 32px);
}
.projekt-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 32px;
  background: var(--red);
  border: 1px solid var(--red);
  color: white;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.projekt-video-btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: white;
}

.projekt-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(32px, 4vw, 52px) 0;
  border-top: 1px solid var(--gray-200);
  margin-top: clamp(40px, 5vw, 64px);
  gap: 20px;
}
.projekt-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  max-width: 240px;
}
.projekt-nav a:hover { color: var(--red); }
.projekt-nav-label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); display: block; margin-bottom: 4px; }
.projekt-nav-title { line-height: 1.3; }
.projekt-nav-right { text-align: right; flex-direction: row-reverse; }
.all-projects {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.all-projects:hover { color: var(--red); }

/* ===== BÜRO PAGE ===== */
.buero-lead {
  display: block;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.buero-lead-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 24%);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.buero-lead-copy {
  min-width: 0;
}
.buero-lead-text { max-width: min(900px, 80%); }
.buero-lead-with-image .buero-lead-text,
.buero-lead-with-image .buero-lead-aside {
  max-width: 100%;
}
.buero-lead-text p { margin-bottom: 22px; }
.buero-lead-text p:last-child { margin-bottom: 0; }

.buero-lead-aside { max-width: min(900px, 80%); margin-top: clamp(24px, 3vw, 36px); }
.buero-lead-image {
  display: flex;
  justify-content: center;
  margin: 0;
}
.buero-lead-image img {
  width: auto;
  max-width: 100%;
  height: clamp(220px, 30vw, 420px);
  object-fit: contain;
}
.buero-lead-aside blockquote {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 20px;
}
.buero-lead-aside cite {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-divider {
  height: 1px;
  background: var(--gray-200);
  margin: clamp(40px, 5vw, 60px) 0;
}

.buero-section-title {
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 300;
  margin-bottom: clamp(32px, 4vw, 48px);
  letter-spacing: -0.015em;
}

/* Büro image gallery – 5 images in a row */
.buero-img-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1vw, 14px);
  margin-bottom: clamp(40px, 5vw, 60px);
}

.buero-img-gallery > div {
  overflow: hidden;
  height: clamp(140px, 17vw, 240px);
}

.buero-img-gallery > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.buero-img-gallery > div:hover img { transform: scale(1.05); }

/* 4-column image strip */
.buero-strip-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: clamp(8px, 1vw, 14px) !important;
  height: clamp(180px, 22vw, 320px);
  margin-bottom: clamp(32px, 4vw, 52px) !important;
}

.buero-strip-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Haltung as flowing text */
.buero-haltung-text { max-width: min(900px, 80%); }
.buero-haltung-text p { margin-bottom: 22px; line-height: 1.82; }
.buero-haltung-text p:last-child { margin-bottom: 0; }
.buero-haltung-text strong { font-weight: 500; }

/* Haltung cards – 5 cards in symmetric layout */
.haltung-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 1.5vw, 20px);
  margin-bottom: clamp(40px, 5vw, 60px);
}

.haltung-card {
  grid-column: span 2;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

/* Center the last two cards in the second row */
.haltung-card:nth-child(4) { grid-column: 2 / 4; }
.haltung-card:nth-child(5) { grid-column: 4 / 6; }

.haltung-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.haltung-card:hover { border-color: #ccc; box-shadow: 0 6px 28px rgba(0,0,0,0.07); }
.haltung-card:hover::before { transform: scaleX(1); }

.haltung-num {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: block;
}
.haltung-card h4 { margin-bottom: 12px; line-height: 1.3; }
.haltung-card p { font-size: 0.875rem; line-height: 1.7; color: #444; }

/* Büro full-width text block */
.buero-text-full {
  display: block;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: min(900px, 80%);
}
.buero-text-full > div { margin-bottom: 20px; }
.buero-text-full p { margin-bottom: 20px; }
.buero-text-full p:last-child { margin-bottom: 0; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.team-card { border-top: 1px solid var(--gray-200); padding-top: 24px; }
.team-card h3 { margin-bottom: 6px; }
.team-card .team-role {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray-600);
  margin-bottom: 0;
}
.team-card p { font-size: 0.875rem; line-height: 1.7; color: #444; }

/* ===== KONTAKT PAGE ===== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.kontakt-info-col { }
.kontakt-info-col h2 { margin-bottom: 24px; }
.kontakt-info-col > p { margin-bottom: 36px; color: #444; }

.kontakt-block { margin-bottom: 32px; }
.kontakt-block .label { margin-bottom: 8px; }
.kontakt-block p, .kontakt-block a {
  font-size: 0.95rem;
  color: #333;
  display: block;
  line-height: 1.8;
}
.kontakt-block a:hover { color: var(--red); }

/* Contact form */
.contact-form { }
.form-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--gray-200);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  background: white;
  color: var(--black);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--black); }
.form-group textarea { height: 150px; resize: vertical; }
.form-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}
.form-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid var(--gray-400);
  border-radius: 0;
  background: white;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--black);
  cursor: pointer;
}
.form-consent-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
  line-height: 1.5;
  font-weight: 400;
  cursor: pointer;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: white;
  border: 1px solid var(--black);
  padding: 14px 32px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.btn-submit:hover { background: var(--red); border-color: var(--red); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img { height: 26px; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a { font-size: 0.78rem; color: var(--gray-600); transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social-link:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(230, 17, 48, 0.04);
}
.footer-social-link svg {
  width: 17px;
  height: 17px;
  display: block;
}
.footer-copy { font-size: 0.78rem; color: var(--gray-400); }

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--black);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s, color 0.2s;
  cursor: pointer;
}
.back-top.show { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--black); color: white; }

/* ===== SCROLL FADE ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .haltung-grid { grid-template-columns: repeat(6, 1fr); } /* keep 3-col layout */
  .buero-text-full { gap: 20px; }
  .home-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: clamp(200px, 32vw, 380px) clamp(180px, 28vw, 340px) clamp(160px, 24vw, 300px);
  }
  .home-collage-item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .home-collage-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .home-collage-item:nth-child(3) { grid-column: 1; grid-row: 2; }
  .home-collage-item:nth-child(4) { grid-column: 2; grid-row: 2; }
  .home-collage-item:nth-child(5) { grid-column: 1 / 3; grid-row: 3; }
  .buero-img-gallery { grid-template-columns: repeat(3, 1fr); }
  .buero-img-gallery > div:nth-child(n+4) { display: none; }
}

@media (max-width: 900px) {
  .projekt-lead { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .home-kontakt-inner { grid-template-columns: 1fr; }
  .hero-slide { flex: 0 0 100%; }
  .projekt-text-all { max-width: 90%; }
  .buero-lead-text, .buero-lead-aside, .buero-text-full, .buero-haltung-text { max-width: 90%; }
  .buero-lead-with-image { grid-template-columns: 1fr; }
  .buero-lead-with-image .buero-lead-text,
  .buero-lead-with-image .buero-lead-aside { max-width: 90%; }
  .buero-lead-image { justify-content: flex-start; }
  .buero-lead-image img { height: clamp(220px, 58vw, 360px); }
}

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

  .hero-strip { height: 68vw; min-height: 260px; max-height: 500px; }
  .hero-slide { flex: 0 0 100%; }
  .hero-ui { right: 20px; }
  .hero-arrows { display: none; }

  .home-buero { grid-template-columns: 1fr; }
  .home-buero-img { order: -1; }
  .home-buero-img img { height: 280px; }
  .home-buero-img-contain img { width: auto; }

  .home-collage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .home-collage-item {
    grid-column: 1 !important;
    grid-row: auto !important;
    height: 58vw;
  }

  .projects-grid { grid-template-columns: 1fr; }
  .haltung-grid { grid-template-columns: 1fr; }
  .haltung-card { grid-column: 1 !important; }

  .projekt-img-row { grid-template-columns: 1fr; }
  .projekt-img-row.three { grid-template-columns: 1fr; }
  .projekt-gallery-row { flex-direction: column; }
  .projekt-gallery-row img { height: auto !important; width: 100% !important; }
  .projekt-text-all { max-width: 100%; }
  .buero-lead-text, .buero-lead-aside, .buero-text-full, .buero-haltung-text { max-width: 100%; }
  .buero-lead-with-image .buero-lead-text,
  .buero-lead-with-image .buero-lead-aside { max-width: 100%; }

  .buero-img-gallery { grid-template-columns: repeat(2, 1fr); }
  .buero-img-gallery > div:nth-child(n+4) { display: block; }
  .buero-strip-4 { grid-template-columns: repeat(2, 1fr) !important; height: auto !important; }
  .buero-strip-4 img { height: clamp(140px, 35vw, 260px); }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-socials { justify-content: center; }
  .back-top { bottom: 16px; right: 16px; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-caption-big { font-size: clamp(1.8rem, 9vw, 2.8rem); }
  .filter-btn { padding: 10px 14px; font-size: 0.78rem; }
  .projekt-nav { flex-direction: column; text-align: center; }
  .projekt-nav a { max-width: 100%; }
  .buero-img-gallery { grid-template-columns: 1fr 1fr; }
}
