/* ------------------------------------------------------------------
   raumquadrat.ch
   Alle Werte sind aus dem freigegebenen Claude-Design-Export
   übernommen (Raumquadrat Desktop.dc.html / Raumquadrat Mobile.dc.html).
   Keine gestalterischen Änderungen.
------------------------------------------------------------------ */

/* --- Basis ------------------------------------------------------- */

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fff;
  /* Verhindert, dass eine horizontale Wischgeste die Zurück-/Vorwärts-
     Navigation des Browsers auslöst. */
  overscroll-behavior: none;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #111;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a {
  color: #111;
  text-decoration: none;
}

a:hover { color: #111; opacity: .6; }

address { font-style: normal; }

button {
  font-family: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Nur für Screenreader */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Gemeinsame Kleinschrift-Bezeichner (KONTAKT, E-MAIL, ...) */
.label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, .55);
  transition: color 300ms;
}

.label:hover { color: #111; opacity: 1; }

:focus { outline: none; }

:focus-visible {
  outline: 1px solid rgba(17, 17, 17, .55);
  outline-offset: 4px;
}

/* --- Grundgerüst ------------------------------------------------- */

.site {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
}

.joint { background: #fff; }

.panel {
  position: relative;
  overflow: hidden;
  background: #f4f4f2;
  min-width: 0;
}

/* --- Bilder ------------------------------------------------------ */

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms cubic-bezier(.4, 0, .2, 1);
}

.slide.is-active { opacity: 1; }

/* Fotografien sind vollständig inaktiv: kein Klick, kein Zoom,
   kein Cursorwechsel, keine Auswahl, kein Ziehen. */
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: default;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* --- Bildangaben ------------------------------------------------- */

.caption {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.caption-title {
  font-size: 15px;
  letter-spacing: .01em;
  line-height: 1.5;
}

.caption-meta {
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(17, 17, 17, .55);
  line-height: 1.6;
  white-space: nowrap;
}

.caption-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-bottom: 2px;
}

.caption-nav[hidden] { display: none; }

.counter {
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(17, 17, 17, .5);
  font-variant-numeric: tabular-nums;
}

.arrows {
  display: flex;
  gap: 18px;
}

.arrow {
  font-size: 15px;
  line-height: 1;
  color: rgba(17, 17, 17, .45);
  transition: color 300ms;
}

.arrow:hover { color: #111; }

/* --- Kontaktpanel (Desktop) -------------------------------------- */

.contact {
  position: absolute;
  top: 40px;
  left: 44px;
  max-width: 320px;
  background: rgba(255, 255, 255, .50);
  padding: 22px 26px 20px;
  transition: background 400ms;
}

.contact:hover { background: rgba(255, 255, 255, 1); }

/* Nur bei Tastaturfokus, damit ein Mausklick das Panel nicht dauerhaft
   deckend stehen lässt. Ältere Browser ignorieren diese Regel. */
.contact:has(:focus-visible) { background: rgba(255, 255, 255, 1); }

.contact-brand {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.3;
}

.contact-sub {
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(17, 17, 17, .6);
  margin-top: 6px;
}

.rule {
  height: 1px;
  background: rgba(17, 17, 17, .14);
  margin: 20px 0 0;
}

.contact-toggle {
  display: block;
  padding-top: 16px;
}

.contact-details {
  padding-top: 18px;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: .03em;
  color: rgba(17, 17, 17, .8);
}

.contact-details[hidden] { display: none; }

.contact-actions {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.legal {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal a { color: rgba(17, 17, 17, .4); transition: color 300ms; }
.legal a:hover { color: #111; opacity: 1; }

/* --- Nur mobil sichtbare Bereiche -------------------------------- */

.m-header,
.m-caption,
.contact-overlay { display: none; }

/* ==================================================================
   MOBIL / TABLET
   Referenz: Raumquadrat Mobile.dc.html (390 × 844)
================================================================== */

@media (max-width: 899px) {

  .m-header { display: block; }

  .m-caption {
    display: flex;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .contact { display: none; }

  .joint { display: none; }

  .stage {
    display: flex;
    margin-top: 22px;
  }

  .panel { display: none; flex: 1; }
  .panel.is-current { display: block; }

  /* Auf Mobil übernimmt die Fussleiste die Bildangaben */
  .panel .caption { display: none; }

  .slide { transition-duration: 900ms; }

  /* Kopfbereich */
  .m-header {
    padding: calc(52px + env(safe-area-inset-top)) 24px 0;
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
  }

  .m-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .m-brand {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .m-sub {
    font-size: 9.5px;
    letter-spacing: .05em;
    color: rgba(17, 17, 17, .55);
    margin-top: 5px;
  }

  .m-contact { font-size: 9.5px; }

  .m-switch {
    display: flex;
    gap: 28px;
    margin-top: 34px;
  }

  .m-tab {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding-bottom: 9px;
    border-bottom: 1px solid transparent;
    color: rgba(17, 17, 17, .4);
    transition: color 300ms;
  }

  .m-tab[aria-pressed="true"] {
    color: #111;
    border-bottom-color: rgba(17, 17, 17, .5);
  }

  /* Fussleiste */
  .m-caption {
    padding: 22px 24px calc(46px + env(safe-area-inset-bottom));
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .m-caption .caption-title { font-size: 14px; line-height: 1.4; }

  .m-caption .caption-meta {
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.4;
  }

  .m-caption .caption-nav { gap: 22px; padding-bottom: 0; }
  .m-caption .counter { font-size: 9.5px; }
  .m-caption .arrows { gap: 20px; }
  .m-caption .arrow { font-size: 16px; }

  /* Kontakt-Overlay */
  .contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .94);
    padding: calc(52px + env(safe-area-inset-top)) 24px
             calc(52px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
  }

  .contact-overlay[hidden] { display: none; }

  .overlay-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .overlay-top .label { font-size: 9.5px; }

  .overlay-body {
    margin-top: auto;
    margin-bottom: 46px;
    font-size: 13px;
    line-height: 2;
    letter-spacing: .03em;
  }

  .overlay-rule { margin: 26px 0 22px; }

  .overlay-actions {
    display: flex;
    align-items: baseline;
    gap: 18px;
  }

  .overlay-actions .label { color: rgba(17, 17, 17, .6); }
}

/* Sehr niedrige Ansichtsfenster (z. B. Landscape auf dem Telefon) */
@media (max-width: 899px) and (max-height: 640px) {
  .m-header { padding-top: calc(24px + env(safe-area-inset-top)); }
  .m-switch { margin-top: 20px; }
  .m-caption { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .stage { margin-top: 14px; }
}

/* ==================================================================
   RECHTLICHE SEITEN
   Gleiche Formensprache, normales Scrollverhalten.
================================================================== */

body.page {
  overflow: auto;
  height: auto;
}

.doc {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

@media (min-width: 900px) {
  .doc { padding: 80px 44px 120px; }
}

.doc-brand {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.3;
}

.doc-sub {
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(17, 17, 17, .6);
  margin-top: 6px;
}

.doc .rule { margin: 20px 0 44px; }

.doc h1 {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.5;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, .55);
  margin: 40px 0 12px;
}

.doc p,
.doc address,
.doc li {
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: .03em;
  color: rgba(17, 17, 17, .8);
  margin: 0 0 12px;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.doc li { margin: 0 0 4px; }

.doc a { text-decoration: none; border-bottom: 1px solid rgba(17, 17, 17, .2); }

.doc-back {
  display: inline-block;
  margin-top: 56px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, .55);
  border-bottom: 0;
}

/* ==================================================================
   Reduzierte Bewegung
================================================================== */

@media (prefers-reduced-motion: reduce) {
  .slide,
  .contact,
  .label,
  .arrow,
  .m-tab,
  .legal a { transition-duration: 1ms; }
}
