/*
  Tischlerei Severin Rubatscher — Component Styles
  Extends brand-tokens.css. Never override tokens, only extend.
*/

/* ── FONTS ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

address {
  font-style: normal;
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--color-warm-white);
}
::-webkit-scrollbar-thumb {
  background: var(--color-stein);
}

/* ── LAYOUT UTILS ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.section-rule {
  border: none;
  border-top: var(--border-rule);
  margin: 0;
}

/* ── BUTTON ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btn-text);
  background: var(--btn-bg);
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.82;
}

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 0.5px solid var(--color-text-primary);
}

.btn--light {
  background: var(--color-warm-white);
  color: var(--color-schwarz);
}

/* ── NAVIGATION ──────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  border-bottom: var(--border-subtle);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-padding-x);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--color-border);
}

.site-nav__wordmark {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: opacity 0.2s;
  white-space: nowrap;
}

.site-nav__wordmark:hover {
  opacity: 0.7;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__link {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--nav-font-size);
  letter-spacing: var(--nav-tracking);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-text-primary);
}

.site-nav__cta {
  margin-left: var(--space-md);
}

/* Hamburger */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}

.site-nav__hamburger span {
  display: block;
  height: 0.5px;
  width: 100%;
  background: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.site-nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.site-nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-warm-white);
  border-bottom: var(--border-rule);
  padding: var(--space-xl) var(--section-padding-x);
  flex-direction: column;
  gap: var(--space-lg);
  z-index: 800;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__link {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  border-bottom: var(--border-subtle);
  transition: color 0.2s;
}

.mobile-menu__link:hover {
  color: var(--color-text-primary);
}

.mobile-menu__cta {
  margin-top: var(--space-sm);
  align-self: flex-start;
}

/* ── HOMEPAGE HERO ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 42% 58%;
  height: 100svh;
  min-height: 580px;
  padding-top: var(--nav-height);
  background: var(--color-schwarz);
}

.hero__text-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl) var(--section-padding-x);
  border-right: 1px solid rgba(247, 245, 242, 0.08);
  overflow: hidden;
}

.hero__label {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.8);
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: var(--text-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--color-warm-white);
  margin-bottom: var(--space-xl);
}

.hero__headline em {
  font-style: italic;
}

.hero__subline {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: rgba(247, 245, 242, 0.65);
  max-width: 400px;
  margin-bottom: var(--space-2xl);
}

.hero__cta {
  align-self: flex-start;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  margin-top: var(--space-md);
}

.hero__whatsapp-link {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-small);
  color: rgba(247, 245, 242, 0.8);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.hero__whatsapp-link:hover {
  color: var(--color-warm-white);
}

.hero__image-panel {
  position: relative;
  overflow: hidden;
  background: var(--color-schwarz);
}

.hero__image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-bottom: var(--border-rule);
  background: var(--color-warm-white);
  height: 40px;
  display: flex;
  align-items: center;
}

.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}

.ticker__item {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0 var(--space-xl);
}

.ticker__item::after {
  content: '·';
  margin-left: var(--space-xl);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── REVIEWS STRIP ───────────────────────────────────────────── */
.reviews-strip {
  border-bottom: var(--border-rule);
  padding: var(--space-2xl) var(--section-padding-x);
}

.reviews-strip__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.reviews-strip__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  letter-spacing: var(--ls-subheading);
  margin-bottom: var(--space-md);
}

/* ── SERVICES ────────────────────────────────────────────────── */
.services {
  padding: var(--section-padding-y) var(--section-padding-x);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-xl);
  display: block; /* Force natural left alignment */
}

.reviews-strip__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  letter-spacing: var(--ls-subheading);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  letter-spacing: var(--ls-subheading);
}

.section-title em {
  font-style: italic;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  color: var(--color-border-subtle);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.service-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: var(--space-md);
  background: var(--color-warm-white);
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card__image img {
  transform: scale(1.04);
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h3);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.service-card__text {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  max-width: none;
}

.service-card__link {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: color 0.2s, gap 0.2s;
}

.service-card__link::after {
  content: '→';
  font-style: normal;
  transition: transform 0.2s;
}

.service-card__link:hover {
  color: var(--color-text-primary);
}

.service-card__link:hover::after {
  transform: translateX(3px);
}

/* ── GALLERY ─────────────────────────────────────────────────── */
.gallery-section {
  border-bottom: var(--border-rule);
}

.gallery-section__header {
  padding: var(--section-padding-y) var(--section-padding-x) var(--space-xl);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  padding: 0 var(--section-padding-x) var(--section-padding-y);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-warm-white);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-warm-white);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(28,27,25,0.6) 0%, transparent 100%);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.85);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ── QUOTE STRIP ─────────────────────────────────────────────── */
.quote-strip {
  background: var(--dark-bg);
  padding: clamp(64px, 10vw, 128px) var(--section-padding-x);
}

.quote-strip__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.quote-strip__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.8);
  margin-bottom: var(--space-md);
}

.quote-strip__text {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-style: italic;
  font-size: clamp(26px, 4.5vw, 52px);
  line-height: 1.25;
  color: var(--dark-accent);
  max-width: 840px;
  quotes: none;
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about {
  padding: var(--section-padding-y) var(--section-padding-x);
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about__label {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-text-primary);
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.about__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h2);
  line-height: var(--lh-heading);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
}

.about__title em {
  font-style: italic;
  font-weight: var(--fw-light);
}

.about__paragraphs {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about__paragraphs p {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  max-width: var(--max-width-text);
}

.about__image-side {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
}

.about__portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--color-bg-accent);
  display: block;
}

.about__image-caption {
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── PROCESS ─────────────────────────────────────────────────── */
.process {
  padding: var(--section-padding-y) var(--section-padding-x);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.process__header {
  margin-bottom: var(--space-2xl);
}

.process__subtitle {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  margin-top: var(--space-sm);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--grid-gap);
}

.process__step {
  display: flex;
  flex-direction: column;
}

.process__step-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: clamp(48px, 6vw, 84px);
  color: var(--color-border-subtle);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.process__step-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h3);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.process__step-text {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  max-width: none;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq {
  padding: var(--section-padding-y) var(--section-padding-x);
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.faq__header {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
}

.faq__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  line-height: var(--lh-heading);
}

.faq__items {
  /* right column */
}

.faq__item {
  border-top: var(--border-rule);
}

.faq__item:last-child {
  border-bottom: var(--border-rule);
}

.faq__question {
  width: 100%;
  text-align: left;
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: clamp(16px, 2vw, 20px);
  line-height: var(--lh-tight);
  color: var(--color-text-primary);
}

.faq__question:hover {
  color: var(--color-text-secondary);
}

.faq__icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 18px;
  color: var(--color-text-muted);
  transition: transform 0.35s ease;
  width: 18px;
  line-height: 1;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__answer-inner {
  padding-bottom: var(--space-xl);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  max-width: 600px;
}

.faq__item.is-open .faq__answer {
  max-height: 800px;
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact {
  background: var(--dark-bg);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.contact__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 128px);
  align-items: start;
}

.contact__label {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: rgba(247,245,242,0.8);
  margin-bottom: var(--space-md);
}

.contact__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: var(--text-h2);
  color: var(--dark-text);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-lg);
}

.contact__text {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: rgba(247,245,242,0.88);
  margin-bottom: var(--space-2xl);
  max-width: var(--max-width-text);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact__detail {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-small);
  color: rgba(247,245,242,0.85);
  line-height: 1.6;
  max-width: none;
}

.contact__detail a {
  color: var(--dark-accent);
  transition: opacity 0.2s;
}

.contact__detail a:hover {
  opacity: 0.75;
}

.contact__cta-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  color: var(--dark-text);
  border-bottom: 1px solid rgba(247,245,242,0.2);
  padding: var(--space-sm) 0;
  transition: color 0.2s, border-color 0.2s;
  min-height: 48px;
}

.contact__cta-link:hover {
  color: var(--dark-accent);
  border-color: var(--dark-accent);
}

.contact__cta-icon {
  font-size: 12px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-field label {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: rgba(247,245,242,0.8);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247,245,242,0.35);
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-body);
  color: var(--dark-text);
  outline: none;
  transition: border-color 0.25s ease;
  width: 100%;
  -webkit-appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(247,245,242,0.45);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--color-stein);
}

.form-field textarea {
  resize: none;
  min-height: 100px;
}

.form-submit {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.form-submit button[type="submit"] {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-bg);
  background: var(--color-warm-white);
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.form-submit button[type="submit"]:hover {
  opacity: 0.85;
}

.form-footnote {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  color: rgba(247, 245, 242, 0.85);
  margin-top: var(--space-md);
  line-height: var(--lh-body);
  opacity: 1;
}

.form-success {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: var(--text-h3);
  color: var(--dark-text);
  line-height: 1.5;
  padding: var(--space-xl) 0;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  padding: var(--space-2xl) var(--section-padding-x);
  border-top: var(--border-rule);
  background: var(--color-bg-primary);
}

.site-footer__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-2xl);
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__wordmark {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 13px;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.site-footer__address {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-small);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.site-footer__address a {
  transition: color 0.2s;
}

.site-footer__address a:hover {
  color: var(--color-text-primary);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__nav-label {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-text-primary);
  opacity: 0.8;
  margin-bottom: var(--space-xs);
}

.site-footer__link {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.site-footer__link:hover {
  color: var(--color-text-primary);
}

.site-footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: var(--border-subtle);
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.site-footer__copy {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  max-width: none;
}

.site-footer__legal {
  display: flex;
  gap: var(--space-lg);
}

/* ── SUBPAGE HERO ────────────────────────────────────────────── */
.subhero {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 90vh;
  padding-top: var(--nav-height);
  background: var(--color-schwarz);
}

.subhero__text-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-2xl) var(--section-padding-x) var(--space-xl);
  border-right: 1px solid rgba(247, 245, 242, 0.08);
}

.subhero__image-panel {
  overflow: hidden;
  background: var(--color-schwarz);
}

.subhero__image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.subhero__label {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.8);
  margin-bottom: var(--space-md);
}

.subhero__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: var(--text-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--color-warm-white);
  margin-bottom: var(--space-lg);
}

.subhero__title em {
  font-style: italic;
}

.subhero__subline {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: rgba(247, 245, 242, 0.65);
  margin-bottom: var(--space-xl);
}

/* ── SUBPAGE CONTENT ─────────────────────────────────────────── */
.content-section {
  padding: var(--section-padding-y) var(--section-padding-x);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* Prevent grid children from overflowing their track (classic min-width: 0 fix) */
.content-split > * {
  min-width: 0;
  overflow: hidden;
}

.content-split--reversed .content-split__image {
  order: -1;
}

.content-split__text h2 {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xl);
  line-height: var(--lh-heading);
}

.content-split__text h2 em {
  font-style: italic;
  font-weight: var(--fw-light);
}

.content-split__text p {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  max-width: var(--max-width-text);
  margin-bottom: var(--space-md);
}

.content-split__image {
  overflow: hidden;
}

.content-split__image {
  background: var(--color-warm-white);
}

.content-split__image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--color-warm-white);
}

.content-split__image img.landscape {
  aspect-ratio: 4/3;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: var(--space-md);
  background: var(--color-warm-white);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card__image img {
  transform: scale(1.04);
}

.project-card__location {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.project-card__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h3);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.project-card__text {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  max-width: none;
}

/* Material List */
.material-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-2xl);
  border-top: var(--border-rule);
  border-bottom: var(--border-rule);
  padding: var(--space-xl) 0;
}

.material-item__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h3);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.material-item__desc {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  max-width: none;
}

/* Services list (moebel) */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl) var(--space-3xl);
  border-top: var(--border-rule);
  padding-top: var(--space-xl);
}

.services-list__item-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h3);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.services-list__item-text {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  max-width: none;
}

/* CTA section (on subpages) */
.cta-section {
  background: var(--color-bg-accent);
  padding: var(--section-padding-y) var(--section-padding-x);
  border-bottom: var(--border-rule);
}

.cta-section__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.cta-section__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  line-height: var(--lh-heading);
  max-width: 520px;
}

.cta-section__title em {
  font-style: italic;
  font-weight: var(--fw-light);
}

.cta-section__action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.cta-section__text {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  max-width: 300px;
}

/* Impressum */
.legal-page {
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--section-padding-x) var(--section-padding-y);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.legal-page h1 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-2xl);
}

.legal-page h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-weight: var(--fw-regular);
}

.legal-page p,
.legal-page address {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  max-width: var(--max-width-text);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .faq {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .faq__header {
    position: static;
  }
}

@media (max-width: 900px) {
  /* Nav */
  .site-nav__links {
    display: none;
  }

  .site-nav__hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 45svh auto;
    height: auto;
  }

  .hero__image-panel {
    grid-row: 1;
  }

  .hero__text-panel {
    grid-row: 2;
    border-right: none;
    border-top: var(--border-rule);
    padding: var(--space-2xl) var(--section-padding-x);
    justify-content: flex-start;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service-card__image {
    aspect-ratio: 16/9;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(160px, 36vw, 300px);
  }

  /* About */
  .about {
    grid-template-columns: 1fr;
  }

  .about__image-side {
    order: -1;
    position: static;
  }

  /* Process */
  .process__steps {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .process__step {
    border-right: none;
    border-top: var(--border-rule);
    padding: var(--space-lg) 0;
  }

  .process__step:not(:first-child) {
    padding-left: 0;
  }

  /* Contact */
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  /* Subpage */
  .content-split {
    grid-template-columns: 1fr;
  }

  .content-split--reversed .content-split__image {
    order: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .material-list {
    grid-template-columns: 1fr 1fr;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .cta-section__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .material-list {
    grid-template-columns: 1fr;
  }

  .subhero__title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .subhero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .subhero__image-panel {
    height: 55vw;
    min-height: 280px;
    order: -1;
  }

  .subhero__text-panel {
    border-right: none;
    border-top: 1px solid rgba(247, 245, 242, 0.08);
    padding: var(--space-2xl) var(--section-padding-x);
  }

  /* Gallery: single column on phones */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 60vw;
  }
}

/* ── MOBILE: iOS & TOUCH FIXES ───────────────────────────────── */

/* Prevents iOS Safari from auto-zooming on input focus */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font-size: 16px;
}

@media (max-width: 900px) {
  /* Minimum 44px touch targets on mobile */
  .mobile-menu__link {
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  .contact__cta-link {
    min-height: 52px;
  }

  .btn {
    min-height: 48px;
  }
}


.damo-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.8);
  margin-bottom: var(--space-md);
}

.damo-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--space-xl);
}

.damo-detail-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--color-warm-white);
}

.damo-perspective-image {
  object-fit: cover;
}
