/* ============================================================================
   VIBE-2 DESIGN SYSTEM — SSUCCESS Architektur
   ============================================================================
   Deduplicated from 5 prototype HTML files:
     - vibe-2-holzweg.html (homepage)
     - vibe-2-sursee.html (project page)
     - vibe-2-kino-eldorado.html (project page)
     - vibe-2-buero-bottmingen.html (project page)
     - vibe-2-stuttgart-kita.html (project page)

   Sections:
     1. CSS Custom Properties
     2. Reset & Base
     3. Global Border-Radius
     4. Scroll Reveal Animation
     5. Sticky Header
     6. Homepage: Hero V3 (Gallery Mount)
     7. Homepage: CTA Button
     8. Homepage: Sections Base
     9. Homepage: Philosophy
    10. Homepage: Philosophy Detail Cards
    11. Homepage: Projects Grid
    12. Homepage: How It Works
    13. Homepage: Schwerpunkte / Staerken
    14. Homepage: Services
    15. Homepage: About
    16. Homepage: Partner
    17. Homepage: Contact
    18. Homepage: Studies Section
    19. Project Pages: Hero (Cinematic Full-Bleed)
    20. Project Pages: Chapter Hero
    21. Project Pages: Facts Card
    22. Project Pages: Rolle Statement (Pull Quote)
    23. Project Pages: Chapter Divider
    24. Project Pages: Intro Statement
    25. Project Pages: Story Pair (Image + Text)
    26. Project Pages: Full-Bleed Image Break
    27. Project Pages: Mini Gallery
    28. Project Pages: Fassadenstudie Grid (Sursee)
    29. Project Pages: Diagram Section (Sursee)
    30. Project Pages: Grundrisse / Floor Plans (Bottmingen)
    31. Project Pages: Gallery Section Header (Stuttgart)
    32. Project Pages: Project Data Block
    33. Project Pages: Back Nav
    34. Footer
    35. Lightbox
    36. Responsive: 900px
    37. Responsive: 600px (homepage cards)
    38. Responsive: 480px
   ============================================================================ */


/* ============================================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================================ */
:root {
  --primary: #FFFFFF;
  --secondary: #F0F0F0;
  --accent: #37582B;
  --accent-light: #CEEDAA;
  --text: #5B3208;
  --white: #FFFFFF;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}


/* --secondary is neutral grey everywhere (homepage + project pages) */

/* Neutralize Lazy Blocks wrapper divs */
[class^="wp-block-lazyblock-ssuccess-"] {
  display: contents;
}


/* ============================================================================
   2. RESET & BASE
   ============================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Kill WordPress block gap — prevents spacing between blocks */
main { margin: 0; padding: 0; }
main > * { margin-block-start: 0 !important; }
.is-layout-flow > * + * { margin-block-start: 0 !important; }


/* ============================================================================
   3. GLOBAL BORDER-RADIUS
   ============================================================================ */
/* Homepage elements */
.philosophy-image,
.study-fullwidth,
.study-fullwidth img,
.study-images img,
.beratung-image img {
  border-radius: 8px;
}

/* Project page elements */
.mini-gallery-item,
.facts-card {
  border-radius: 8px;
}

button,
input[type="submit"] {
  border-radius: 4px;
}


/* ============================================================================
   4. SCROLL REVEAL ANIMATION
   ============================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ============================================================================
   5. STICKY HEADER
   ============================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #D0E4A3;
  padding: 0;
  overflow: visible;
  transition: height 0.3s ease, box-shadow 0.3s ease;
  height: 130px;
}

/* WordPress admin bar offset — pushes header below the 32px admin bar */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header.scrolled {
  height: 70px;
  box-shadow: 0 2px 12px rgba(55, 88, 43, 0.12);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  position: relative;
  overflow: visible;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 5rem;
  padding-bottom: 0;
  margin-right: 3rem;
  margin-bottom: -7px;
  flex-shrink: 0;
  z-index: 2;
  transition: padding-bottom 0.3s ease, margin-bottom 0.3s ease;
}

.site-header.scrolled .header-nav {
  padding-bottom: 0;
  margin-bottom: -4px;
}

/* WordPress wp_nav_menu wraps links in <li> — make them invisible to layout */
.header-nav li {
  display: contents;
}

.header-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #37582B;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-nav a:hover {
  color: #FFFFFF;
}

.header-logo {
  overflow: visible;
  flex-shrink: 0;
  padding-right: 0;
  margin: 0;
  height: auto;
  position: relative;
  z-index: 1;
}

.header-logo img {
  height: 180px;
  width: auto;
  display: block;
  transition: height 0.3s ease, margin-bottom 0.3s ease, margin-left 0.3s ease;
  margin-bottom: -44px;
  margin-left: -430px;
}

.site-header.scrolled .header-logo img {
  height: 100px;
  margin-bottom: -24px;
  margin-left: -239px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #37582B;
  margin: 5px 0;
}


/* ============================================================================
   6. HOMEPAGE: HERO V3 (Gallery Mount -- Text Left / Image Right)
   ============================================================================ */
.hero-v3 {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 20px 80px;
  background: #FFFFFF;
}

.hero-v3-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 68px;
  align-items: center;
  padding: 0;
  width: 100%;
}

.hero-v3-text {
  padding-top: 0;
}

.hero-v3-accent-line {
  width: 40px;
  height: 2px;
  background: #37582B;
  margin-bottom: 24px;
}

.hero-v3-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #37582B;
  margin-bottom: 16px;
}

.hero-v3 h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.3;
  color: #5B3208;
  margin-bottom: 28px;
}

.hero-v3-subtitle {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(91,50,8,0.65);
  max-width: 380px;
  margin-bottom: 48px;
}

.hero-v3-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #37582B;
  background: var(--accent-light);
  padding: 14px 40px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, color 0.3s;
}

.hero-v3-cta:hover {
  background: #37582B;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.hero-v3-image-wrap {
  padding-top: 0;
  height: 800px;
  overflow: hidden;
  border-radius: 8px;
}

.hero-v3-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 24px rgba(91,50,8,0.08);
}


/* ============================================================================
   7. HOMEPAGE: CTA BUTTON
   ============================================================================ */
.cta-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 14px 40px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s, color 0.3s;
  align-self: flex-start;
}

.cta-btn:hover {
  background: #FFFFFF;
  color: #2d4823;
  transform: translateY(-1px);
}


/* ============================================================================
   8. HOMEPAGE: SECTIONS BASE
   ============================================================================ */
section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

section.full-bleed {
  max-width: 100%;
}

section.bg-grey {
  background: var(--secondary);
  max-width: 100%;
  padding: 120px 48px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.3;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  max-width: 600px;
}

.rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 32px;
}


/* ============================================================================
   9. HOMEPAGE: PHILOSOPHY SECTIONS
   ============================================================================ */
.philosophy-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-section h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 20px;
}

.philosophy-section .philosophy-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(91,50,8,0.75);
  margin-bottom: 0;
  max-width: 500px;
}

.philosophy-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.philosophy-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(91,50,8,0.7);
  margin-bottom: 20px;
  max-width: 500px;
}

.philosophy-body p:last-child {
  margin-bottom: 0;
}


/* ============================================================================
   10. HOMEPAGE: PHILOSOPHY DETAIL CARDS
   ============================================================================ */
.philosophy-detail {
  padding: 64px 48px 100px;
  max-width: 100%;
  background: var(--white);
}

.philosophy-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.philosophy-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 64px;
}

.philosophy-detail-header h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.header-line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 16px;
}

.philosophy-detail-header > p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(91,50,8,0.7);
  max-width: 600px;
}

.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.philosophy-card {
  padding: 28px 20px;
  border: 1px solid rgba(55,88,43,0.08);
  border-radius: 8px;
  background: var(--secondary);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--transition), transform 0.4s var(--transition);
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition);
}

.philosophy-card:hover::before {
  transform: scaleX(1);
}

.philosophy-card:hover {
  box-shadow: 0 8px 32px rgba(55,88,43,0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.philosophy-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.philosophy-card p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(91,50,8,0.7);
  max-width: none;
}

.philosophy-closing {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.philosophy-closing p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(91,50,8,0.65);
  max-width: none;
}

.closing-accent {
  color: var(--accent);
  font-weight: 500;
}


/* ============================================================================
   11. HOMEPAGE: PROJECTS GRID
   ============================================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.projects-grid .project-card:first-child {
  grid-column: 1 / -1;
}

.project-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.project-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--transition);
}

.projects-grid .project-card:first-child img {
  height: 480px;
}

.project-card:hover img {
  transform: scale(1.03);
}

/* Card overlay */
.project-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  opacity: 0;
  transition: opacity 0.4s var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay-text h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 2px;
}

.project-card-overlay-text span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card-overlay-text .project-meta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: none;
  color: var(--text);
  opacity: 0.6;
  margin-top: 4px;
}

.project-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--transition), transform 0.3s var(--transition);
  flex-shrink: 0;
}

.project-card:hover .project-card-arrow {
  background: var(--text);
  transform: translateX(4px);
}

.project-card-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Info below card (fallback for non-hover / mobile) */
.project-card-info {
  padding: 20px 0;
  display: none;
}

.project-card-info h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 4px;
}

.project-card-info .project-type {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}


/* ============================================================================
   12. HOMEPAGE: HOW IT WORKS
   ============================================================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.how-card {
  padding-top: 24px;
  border-top: 1px solid rgba(55,88,43,0.2);
}

.how-card h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.how-card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.8;
}


/* ============================================================================
   13. HOMEPAGE: SCHWERPUNKTE / STAERKEN
   ============================================================================ */
.beratung-section {
  max-width: 600px;
}

.staerken-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.staerke-item {
  padding: 20px 16px;
  border: 1px solid rgba(55,88,43,0.08);
  border-radius: 8px;
  background: white;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--transition);
}

.staerke-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s var(--transition);
}

.staerke-item:hover::before {
  height: 100%;
}

.staerke-item:hover {
  box-shadow: 0 4px 20px rgba(55,88,43,0.06);
}

/* Combined transition: .staerke-item overrides .reveal's transition (same specificity,
   later in source). This compound selector restores opacity+transform for reveal animation
   while keeping box-shadow for hover. */
.staerke-item.reveal {
  transition: box-shadow 0.4s var(--transition), opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

/* Stagger reveal animation for schwerpunkte grid items */
.staerken-grid .staerke-item:nth-child(2) { transition-delay: 0.05s; }
.staerken-grid .staerke-item:nth-child(3) { transition-delay: 0.1s; }
.staerken-grid .staerke-item:nth-child(4) { transition-delay: 0.15s; }
.staerken-grid .staerke-item:nth-child(5) { transition-delay: 0.2s; }
.staerken-grid .staerke-item:nth-child(6) { transition-delay: 0.25s; }
.staerken-grid .staerke-item:nth-child(7) { transition-delay: 0.3s; }
.staerken-grid .staerke-item:nth-child(8) { transition-delay: 0.35s; }
.staerken-grid .staerke-item:nth-child(9) { transition-delay: 0.4s; }
.staerken-grid .staerke-item:nth-child(10) { transition-delay: 0.45s; }
.staerken-grid .staerke-item:nth-child(11) { transition-delay: 0.5s; }
.staerken-grid .staerke-item:nth-child(12) { transition-delay: 0.55s; }

.staerke-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--accent);
}

.staerke-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.staerke-item h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  margin-bottom: 6px;
}

.staerke-item p {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
}


/* ============================================================================
   14. HOMEPAGE: SERVICES
   ============================================================================ */
.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
}

.service-tag {
  font-size: 13px;
  font-weight: 300;
  padding: 10px 0;
  color: var(--text);
  opacity: 0.7;
}

.service-tag::after {
  content: " · ";
  color: var(--accent);
  opacity: 0.5;
  padding: 0 12px;
}

.service-tag:last-child::after { content: ""; }


/* ============================================================================
   15. HOMEPAGE: ABOUT
   ============================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.about-portrait {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  display: block;
}

.about-origin {
  width: 100%;
  margin-top: 20px;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.about-text p {
  margin-bottom: 20px;
}


/* ============================================================================
   16. HOMEPAGE: PARTNER
   ============================================================================ */
.partner-row {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.partner-link {
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.3s, color 0.3s;
}

.partner-link:hover {
  opacity: 1;
  color: var(--accent);
}


/* ============================================================================
   17. HOMEPAGE: CONTACT
   ============================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 24px;
  color: var(--text);
  opacity: 0.5;
}

.contact-form label:first-of-type { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid rgba(91,50,8,0.12);
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--accent);
}

.contact-form textarea {
  height: 100px;
  resize: none;
  margin-top: 8px;
}

.contact-form button {
  margin-top: 36px;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--white);
  background: var(--accent);
  border: none;
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover { background: #2d4823; }

.contact-details {
  margin-top: 48px;
  font-size: 13px;
  font-weight: 300;
  line-height: 2.2;
  opacity: 0.5;
}


/* ============================================================================
   18. HOMEPAGE: STUDIES SECTION (Dark Background)
   ============================================================================ */
.studies {
  max-width: 100%;
  padding: 120px 48px;
  background: #1A1A1A;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
}

.studies .section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.studies .section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 300;
  color: #FFFFFF;
  margin-bottom: 0;
}

.studies .section-count {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #37582B;
}

.studies-intro {
  max-width: 700px;
  margin-bottom: 64px;
}

.studies-intro h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.4;
}

.studies-intro p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
}

/* Full-width study image */
.study-fullwidth {
  margin: 0 0 64px 0;
  position: relative;
  overflow: hidden;
}

.study-fullwidth img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.study-fullwidth figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.study-fullwidth figcaption h4 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.study-fullwidth figcaption span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #37582B;
}

/* Study blocks */
.study-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.study-block:last-child {
  margin-bottom: 0;
}

.study-block:nth-child(odd) {
  direction: ltr;
}

.study-block:nth-child(even) .study-images {
  order: 2;
}

.study-block:nth-child(even) .study-text {
  order: 1;
}

/* Study images */
.study-images img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.study-images.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.study-images.duo img {
  height: 320px;
}

/* Single image in study-images (no .duo) */
.study-images:not(.duo) img {
  height: 400px;
}

/* Study text */
.study-text {
  direction: ltr;
}

.study-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.study-text .location {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #37582B;
  margin-bottom: 16px;
}

.study-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
}


/* ============================================================================
   19. PROJECT PAGES: HERO (Cinematic Full-Bleed)
   ============================================================================ */
.project-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 560px;
  overflow: hidden;
  margin-top: 130px;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.project-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  bottom: 60px;
  left: 48px;
  z-index: 10;
  max-width: 600px;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 480px;
}


/* ============================================================================
   20. PROJECT PAGES: CHAPTER HERO
   ============================================================================ */
.chapter-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 560px;
  overflow: hidden;
}

.chapter-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.chapter-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}


/* ============================================================================
   21. PROJECT PAGES: FACTS CARD
   ============================================================================ */
.facts-card {
  position: absolute;
  bottom: 60px;
  right: 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 3px solid var(--accent);
  padding: 28px 32px;
  min-width: 260px;
  max-width: 340px;
  z-index: 10;
}

.facts-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.facts-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(91,50,8,0.06);
  gap: 24px;
}

.facts-row:last-child { border-bottom: none; }

.facts-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.45;
  white-space: nowrap;
}

.facts-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-align: right;
}


/* ============================================================================
   22. PROJECT PAGES: ROLLE STATEMENT (Pull Quote)
   ============================================================================ */
.rolle-statement {
  padding: 80px 48px 60px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.rolle-statement .section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: block;
}

.rolle-statement blockquote {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  border: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.rolle-statement blockquote::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 28px;
}


/* ============================================================================
   23. PROJECT PAGES: CHAPTER DIVIDER
   ============================================================================ */
.chapter-divider {
  padding: 0 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.chapter-divider hr {
  border: none;
  border-top: 1px solid rgba(55,88,43,0.12);
}


/* ============================================================================
   24. PROJECT PAGES: INTRO STATEMENT
   ============================================================================ */
.intro-statement {
  padding: 100px 48px 80px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-statement .section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: block;
}

.intro-statement blockquote {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  border: none;
  padding: 0;
  margin: 0;
}

.intro-statement blockquote em {
  font-style: italic;
  color: var(--accent);
}


/* ============================================================================
   25. PROJECT PAGES: STORY PAIR (Image + Text)
   ============================================================================ */
.story-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.story-pair.reverse {
  direction: rtl;
}

.story-pair.reverse > * {
  direction: ltr;
}

.story-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--transition);
}

.story-image:hover img {
  transform: scale(1.02);
}

.story-image .image-caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.story-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 96px;
}

.story-text .section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.story-text h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 24px;
}

.story-text .rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}

.story-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(91,50,8,0.75);
  margin-bottom: 16px;
  max-width: 480px;
}

.story-text p:last-child {
  margin-bottom: 0;
}

/* Dark variant — warm grey background */
.story-pair.dark .story-text {
  background: var(--secondary);
}

.story-pair.dark .story-text .section-label {
  color: var(--accent);
}

.story-pair.dark .story-text h2 {
  color: var(--text);
}

.story-pair.dark .story-text .rule {
  background: var(--accent);
  opacity: 0.3;
}

.story-pair.dark .story-text p {
  color: rgba(91,50,8,0.75);
}


/* ============================================================================
   26. PROJECT PAGES: FULL-BLEED IMAGE BREAK
   ============================================================================ */
.full-bleed {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 450px;
  overflow: hidden;
  cursor: pointer;
}

.full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.full-bleed .image-overlay-text {
  position: absolute;
  bottom: 40px;
  left: 48px;
  z-index: 5;
}

.full-bleed .image-overlay-text span {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
}

.full-bleed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}


/* ============================================================================
   27. PROJECT PAGES: MINI GALLERY
   ============================================================================ */
.mini-gallery {
  background: #FFFFFF;
  padding: 64px 48px;
  max-width: 100%;
}

.mini-gallery-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--text);
  max-width: 1200px;
  margin: 0 auto 32px;
  letter-spacing: -0.3px;
}

.mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.mini-gallery-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.mini-gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.mini-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--transition);
}

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

.mini-gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mini-gallery-item:hover .gallery-caption {
  opacity: 1;
}


/* ============================================================================
   28. PROJECT PAGES: FASSADENSTUDIE GRID (Sursee-specific)
   ============================================================================ */
.fassadenstudie-section {
  padding: 80px 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.fassadenstudie-section .section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: block;
  text-align: center;
}

.fassadenstudie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.fassadenstudie-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}

.fassadenstudie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--transition);
}

.fassadenstudie-item:hover img {
  transform: scale(1.04);
}

.fassadenstudie-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.3s ease;
  line-height: 1.4;
}

.fassadenstudie-item:hover .gallery-caption {
  opacity: 1;
}

.fassadenstudie-explainer {
  text-align: center;
  margin-top: 24px;
  padding: 0 24px 0;
}

.fassadenstudie-explainer p {
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: rgba(91,50,8,0.55);
  max-width: 800px;
  margin: 0 auto;
}


/* ============================================================================
   29. PROJECT PAGES: DIAGRAM SECTION (Sursee-specific)
   ============================================================================ */
.diagram-section {
  padding: 0 48px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.diagram-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.diagram-item {
  background: #F8F8F8;
  padding: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.diagram-item:hover {
  background: #F0F0F0;
}

.diagram-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.diagram-item .diagram-caption {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  margin-top: 16px;
  letter-spacing: 0.3px;
}

.diagram-explainer {
  text-align: center;
  margin-top: 24px;
  padding: 0 24px;
}

.diagram-explainer p {
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: rgba(91,50,8,0.55);
}


/* ============================================================================
   30. PROJECT PAGES: GRUNDRISSE / FLOOR PLANS
       Two layouts:
       - Stacked (Bottmingen): items are direct children of .grundrisse-section
       - Grid (Stuttgart): items inside .grundrisse-grid wrapper
   ============================================================================ */

/* --- Shared --- */
.grundrisse-section {
  padding: 80px 48px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.grundrisse-section .section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

.grundrisse-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--text);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}

/* --- Stacked layout (Bottmingen) — items are direct children --- */
.grundrisse-section > .grundrisse-item {
  margin-bottom: 40px;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.grundrisse-section > .grundrisse-item:last-child {
  margin-bottom: 0;
}

.grundrisse-section > .grundrisse-item:hover {
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
}

.grundrisse-section > .grundrisse-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #FFFFFF;
  transition: transform 0.3s ease;
}

.grundrisse-section > .grundrisse-item:hover img {
  transform: scale(1.01);
}

.grundrisse-section > .grundrisse-item > .grundrisse-caption {
  padding: 20px 30px;
  background: #FFFFFF;
  border-top: 1px solid #eee;
}

.grundrisse-section > .grundrisse-item > .grundrisse-caption h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.grundrisse-section > .grundrisse-item > .grundrisse-caption p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.6;
}

/* --- Grid layout (Stuttgart) — items inside .grundrisse-grid --- */
.grundrisse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grundrisse-grid .grundrisse-item {
  background: #FFFFFF;
  padding: 24px 24px 16px;
  cursor: pointer;
  border: 1px solid rgba(91,50,8,0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grundrisse-grid .grundrisse-item:hover {
  background: #FAFAFA;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.grundrisse-grid .grundrisse-item img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.grundrisse-grid .grundrisse-item .grundrisse-caption {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  margin-top: 16px;
  letter-spacing: 0.3px;
  opacity: 0.55;
}


/* ============================================================================
   31. PROJECT PAGES: GALLERY SECTION HEADER (Stuttgart-specific)
   ============================================================================ */
.gallery-section-header {
  padding: 80px 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.gallery-section-header .section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}


/* ============================================================================
   32. PROJECT PAGES: PROJECT DATA BLOCK
   ============================================================================ */
.project-data {
  background: var(--secondary);
  padding: 80px 48px;
}

.project-data-inner {
  max-width: 900px;
  margin: 0 auto;
}

.project-data .section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: block;
  text-align: center;
}

.data-table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(91,50,8,0.08);
  gap: 32px;
}

.data-row:last-child {
  border-bottom: none;
}

.data-key {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.5;
  flex-shrink: 0;
}

.data-val {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-align: right;
}


/* ============================================================================
   33. PROJECT PAGES: BACK NAV
   ============================================================================ */
.back-nav-section {
  padding: 60px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.back-link:hover {
  color: var(--text);
  gap: 12px;
}

.back-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ============================================================================
   34. FOOTER
   ============================================================================ */
footer {
  border-top: 1px solid rgba(55,88,43,0.08);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .footer-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

footer .footer-contact {
  font-size: 12px;
  font-weight: 300;
  opacity: 0.5;
}

footer .footer-tagline {
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  opacity: 0.4;
}


/* ============================================================================
   35. LIGHTBOX
   ============================================================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0,0,0,0.4);
  background: #FFFFFF;
  padding: 4px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 0.7; }

.lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
  stroke-width: 2;
  fill: none;
}

.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.lightbox-controls {
  position: absolute;
  bottom: 28px;
  right: 32px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.lightbox-controls button {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #FFFFFF;
}

.lightbox-controls button:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-controls button svg {
  width: 18px;
  height: 18px;
  stroke: #FFFFFF;
  stroke-width: 2;
  fill: none;
}

.lightbox-content.zoomed {
  overflow: auto;
  cursor: grab;
  align-items: flex-start;
  justify-content: flex-start;
}

.lightbox-content.zoomed:active {
  cursor: grabbing;
}


/* ============================================================================
   35b. RESPONSIVE: 1920px+ (Large Desktop / Ultrawide)
   ============================================================================ */
@media (min-width: 1920px) {
  /* Hero — cap height so next section peeks in */
  .hero-v3 {
    min-height: auto;
    height: 1280px;
  }

  /* Hero container — align with philosophy section content grid */
  .hero-v3-container {
    max-width: 1600px;
  }

  /* Project page heroes */
  .project-hero {
    height: 1280px;
  }

  /* Headings scale up */
  .hero-v3 h1 { font-size: 52px; }
  .hero-v3-subtitle { font-size: 17px; max-width: 440px; }
  .section-title { font-size: 42px; }
  .philosophy-section h2 { font-size: 46px; }
  .studies .section-title { font-size: 42px; }
  .studies-intro h3 { font-size: 22px; }

  /* Project grid — hero first card full width, rest 3 columns */
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects-grid .project-card:first-child {
    grid-column: 1 / -1;
  }
  .projects-grid .project-card:first-child img {
    height: 360px;
  }
  .project-card img {
    height: 400px;
  }

  /* Schwerpunkte — more breathing room */
  .staerken-grid {
    gap: 24px;
  }

  /* Studien — larger images */
  .studies {
    padding: 140px 64px;
  }
  .study-fullwidth img {
    height: 620px;
  }
  .study-images img {
    height: 440px;
  }
  .study-images.duo img {
    height: 400px;
  }
  .study-images:not(.duo) img {
    height: 500px;
  }

  /* ALL sections — widen content to 1600px grid */
  .section-inner,
  .container-wide,
  .philosophy-section {
    max-width: 1600px;
  }

  #schwerpunkte,
  #ueber,
  #kontakt {
    max-width: 1696px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-grid,
  .contact-grid {
    max-width: 1600px;
  }

  .projects-grid {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Schwerpunkte — 6 cards per row at this width */
  .staerken-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Birgit section */
  .team-section .team-container {
    max-width: 1600px;
  }
}


/* ============================================================================
   35c. RESPONSIVE: 1040px (Small Laptops)
   ============================================================================ */
@media (max-width: 1040px) {
  /* Nav — tighter gaps */
  .header-nav { gap: 20px; }
  .header-nav a { font-size: 11px; }

  /* Hero — narrower container */
  .hero-v3-container { max-width: 940px; }

  /* Section padding — slightly tighter */
  section { padding: 80px 32px; }

  /* Projects grid — 2 columns, first card spans */
  .projects-grid { gap: 20px; }
  .project-card img { height: 300px; }
  .projects-grid .project-card:first-child img { height: 340px; }

  /* Schwerpunkte — 3 columns at this width */
  .staerken-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Studies — tighter padding */
  .studies { padding: 80px 32px; }
}


/* ============================================================================
   36. RESPONSIVE: 900px
   ============================================================================ */
@media (max-width: 900px) {
  /* Header — mobile menu kicks in here */
  .site-header { height: 80px; }
  .site-header.scrolled { height: 60px; }
  .header-inner { padding: 0 1rem; }
  .header-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #D0E4A3;
    padding: 24px 20px 32px;
    gap: 0;
    margin: 0;
    box-shadow: 0 4px 16px rgba(55, 88, 43, 0.15);
  }
  .site-header.scrolled .header-nav {
    top: 60px;
  }
  .header-nav.open {
    display: flex;
  }
  .header-nav li {
    display: block;
  }
  .header-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(55, 88, 43, 0.12);
  }
  .header-nav li:last-child a {
    border-bottom: none;
  }
  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 10;
  }
  .mobile-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .header-logo img { height: 100px; margin-bottom: -24px; margin-left: -239px; }
  .site-header.scrolled .header-logo img { height: 70px; margin-bottom: -17px; margin-left: -167px; }

  /* Homepage Hero V3 */
  .hero-v3 {
    padding-top: 160px;
    padding-bottom: 80px;
  }
  .hero-v3-container {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 800px;
  }
  .hero-v3-image-wrap {
    order: -1;
    padding-top: 0;
    text-align: center;
    height: 500px;
  }
  .hero-v3-image {
    max-width: 100%;
  }
  .hero-v3-text {
    text-align: left;
  }

  /* Homepage cards — 2 columns at tablet */
  .philosophy-cards { grid-template-columns: repeat(2, 1fr); }
  .philosophy-detail { padding: 48px 24px 80px; }

  /* Philosophy detail header — stack on tablet */
  .philosophy-detail-header {
    flex-direction: column;
    gap: 24px;
  }

  /* Homepage sections */
  section { padding: 80px 24px; }
  section.bg-grey { padding: 80px 24px; }
  .philosophy-section { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-image { height: 360px; }

  /* Projects grid — keep 2 columns at tablet, single col only at phone */
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .projects-grid .project-card:first-child { grid-column: 1 / -1; }
  .projects-grid .project-card:first-child img { height: 360px; }
  .project-card img { height: 280px; }

  /* How It Works — 2 columns at tablet */
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Schwerpunkte — 2 columns at tablet */
  .staerken-grid { grid-template-columns: repeat(2, 1fr); }

  /* About — single column, constrain portrait */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 280px; }

  /* Partner — reduce gap at tablet */
  .partner-row { gap: 24px 36px; }

  /* Contact — single column */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* CTA buttons — slightly smaller padding at tablet */
  .hero-v3-cta,
  .cta-btn,
  .contact-form button { padding: 12px 32px; }

  /* Footer — stack vertically */
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 32px 24px; }

  /* Homepage Studies */
  .studies { padding: 80px 24px; }
  .study-block { grid-template-columns: 1fr; gap: 32px; }
  .study-block:nth-child(even) .study-images { order: 0; }
  .study-block:nth-child(even) .study-text { order: 0; }
  .study-fullwidth img { height: 360px; }
  .study-images.duo img { height: 240px; }
  .study-images:not(.duo) img { height: 320px; }

  /* Project pages hero */
  .project-hero { margin-top: 80px; height: 60vh; }
  .chapter-hero { height: 60vh; }
  .hero-text { bottom: 40px; left: 24px; }
  .hero-title { font-size: 32px; }

  /* Project pages statements */
  .rolle-statement { padding: 60px 24px 48px; }
  .intro-statement { padding: 80px 24px 60px; }

  /* Project pages diagrams */
  .diagram-section { padding: 0 24px 60px; }
  .diagram-pair {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Project pages story pairs */
  .story-pair {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .story-pair.reverse { direction: ltr; }
  .story-image { min-height: 350px; }
  .story-text { padding: 60px 24px; }

  /* Project pages full-bleed */
  .full-bleed { height: 50vh; min-height: 300px; }

  /* Project pages mini gallery */
  .mini-gallery { padding: 48px 24px; }
  .mini-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Project pages fassadenstudie */
  .fassadenstudie-section { padding: 60px 24px 32px; }
  .fassadenstudie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .fassadenstudie-item:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 3/2;
    max-width: 50%;
    margin: 0 auto;
  }

  /* Project pages grundrisse (stacked + grid) */
  .grundrisse-section { padding: 60px 24px 48px; }
  .grundrisse-item { margin-bottom: 32px; }
  .grundrisse-grid { gap: 12px; }
  .grundrisse-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

  /* Project pages gallery header */
  .gallery-section-header { padding: 60px 24px 20px; }

  /* Project pages data & nav */
  .project-data { padding: 60px 24px; }
  .back-nav-section { padding: 48px 24px; }

  /* Project pages facts card */
  .facts-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin: -40px 24px 0;
    max-width: none;
  }
}


/* ============================================================================
   36b. RESPONSIVE: 840px (Tablets — touch device card fix)
   ============================================================================ */
@media (max-width: 840px) {
  /* Project cards — show names below image for touch devices (no hover) */
  .project-card-info { display: block; }
  .project-card-overlay { opacity: 0; pointer-events: none; }
}


/* ============================================================================
   37. RESPONSIVE: 600px (Homepage cards + projects grid)
   ============================================================================ */
@media (max-width: 600px) {
  .philosophy-cards { grid-template-columns: 1fr; }

  /* Projects grid — single column on small tablets / large phones */
  .projects-grid { grid-template-columns: 1fr; gap: 20px; }
  .projects-grid .project-card:first-child { grid-column: auto; }
  .project-card img { height: 300px; }
  .projects-grid .project-card:first-child img { height: 300px; }
}


/* ============================================================================
   38. RESPONSIVE: 480px
   ============================================================================ */
@media (max-width: 480px) {
  /* Header — smaller phone adjustments */
  .site-header { height: 60px; }
  .header-nav { top: 60px; }
  .header-logo img { height: 80px; margin-bottom: -19px; margin-left: -191px; }

  /* Homepage Hero V3 */
  .hero-v3 {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .hero-v3-container {
    padding: 0;
    gap: 32px;
  }
  .hero-v3-image-wrap {
    height: 340px;
  }
  .hero-v3 h1 {
    font-size: 26px;
  }
  .hero-v3-subtitle {
    font-size: 14px;
  }

  /* Homepage sections — tighter padding */
  section { padding: 60px 20px; }
  section.bg-grey { padding: 60px 20px; }

  /* Homepage grids */
  .how-grid { grid-template-columns: 1fr; gap: 20px; }
  .staerken-grid { grid-template-columns: 1fr; }
  /* project-card-info/overlay handled at 840px */
  .project-card img { height: 240px; }
  .projects-grid .project-card:first-child img { height: 260px; }

  /* Philosophy section — image and spacing */
  .philosophy-image { height: 280px; }
  .philosophy-section { gap: 28px; }

  /* Philosophy detail cards spacing */
  .philosophy-detail { padding: 36px 20px 60px; }
  .philosophy-detail-header { margin-bottom: 40px; }
  .philosophy-cards { gap: 16px; margin-bottom: 40px; }

  /* About — smaller portrait on phone */
  .about-portrait { max-width: 220px; }
  .about-grid { gap: 28px; }

  /* Partner — compact gap on phone */
  .partner-row { gap: 16px 24px; }

  /* Contact — ensure form fields breathe */
  .contact-grid { gap: 28px; }
  .contact-form label { font-size: 10px; letter-spacing: 1px; }

  /* CTA buttons — compact on phone */
  .hero-v3-cta,
  .cta-btn,
  .contact-form button { padding: 12px 28px; font-size: 12px; }

  /* Footer — phone padding */
  footer { padding: 28px 20px; gap: 10px; }

  /* Homepage Studies */
  .studies { padding: 60px 20px; }
  .study-fullwidth img { height: 260px; }
  .study-images.duo { grid-template-columns: 1fr; }
  .study-images.duo img { height: 280px; }
  .study-images:not(.duo) img { height: 300px; }
  .studies-intro h3 { font-size: 16px; }

  /* Studies section header — stack on phone */
  .studies .section-header {
    flex-direction: column;
    gap: 8px;
  }

  /* Project pages hero */
  .project-hero { margin-top: 60px; height: 50vh; min-height: 320px; }
  .chapter-hero { height: 50vh; min-height: 320px; }
  .hero-text { bottom: 24px; left: 20px; right: 20px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }

  /* Project pages statements */
  .rolle-statement { padding: 48px 20px 36px; }
  .rolle-statement blockquote { font-size: 17px; }
  .intro-statement { padding: 60px 20px 48px; }
  .intro-statement blockquote { font-size: 20px; }

  /* Project pages diagrams */
  .diagram-section { padding: 0 20px 48px; }
  .diagram-item { padding: 16px; }
  .diagram-item .diagram-caption { font-size: 11px; }

  /* Project pages story pairs */
  .story-image { min-height: 280px; }
  .story-text { padding: 48px 20px; }

  /* Project pages full-bleed */
  .full-bleed { height: 40vh; min-height: 240px; }

  /* Project pages mini gallery */
  .mini-gallery { padding: 32px 20px; }
  .mini-gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mini-gallery-grid.two-col {
    grid-template-columns: 1fr;
  }
  .mini-gallery-item { aspect-ratio: 16/10; }

  /* Project pages fassadenstudie */
  .fassadenstudie-section { padding: 48px 20px 24px; }
  .fassadenstudie-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .fassadenstudie-item { aspect-ratio: 3/4; }
  .fassadenstudie-item:last-child {
    max-width: 100%;
  }

  /* Project pages grundrisse (stacked + grid) */
  .grundrisse-section { padding: 48px 20px 40px; }
  .grundrisse-item { margin-bottom: 24px; padding: 16px 16px 12px; }
  .grundrisse-grid { grid-template-columns: 1fr; gap: 12px; }
  .grundrisse-grid.cols-3 { grid-template-columns: 1fr; }

  /* Project pages gallery header */
  .gallery-section-header { padding: 48px 20px 16px; }

  /* Project pages data & nav */
  .project-data { padding: 48px 20px; }
  .data-row { flex-direction: column; gap: 4px; }
  .data-val { text-align: left; }
  .back-nav-section { padding: 40px 20px; }

  /* Project pages facts card */
  .facts-card {
    margin: -24px 16px 0;
    padding: 20px 24px;
  }
}
