/* =========================================================
   rebture — Stylesheet
   Minimalistisch, modern, schwarz/weiß.
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-fg: #111111;
  --color-fg-soft: #4a4a4a;
  --color-border: #e2e2e2;
  --color-accent: #111111;
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --container-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: var(--space-5); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-2); color: var(--color-fg-soft); max-width: 62ch; }

a { color: var(--color-fg); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Skip link (Barrierefreiheit) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-fg);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-fg);
}

.nav__logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle::before,
.nav__toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-fg);
  margin: 4px auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] {
  border-bottom-color: var(--color-fg);
}

.nav__lang {
  display: flex;
  gap: var(--space-1);
  font-size: 0.85rem;
}
.nav__lang a {
  text-decoration: none;
  padding: 2px 6px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.nav__lang a[aria-current="true"] {
  background: var(--color-fg);
  color: #fff;
  border-color: var(--color-fg);
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3);
    display: none;
  }
  .nav__list.is-open { display: flex; }
}

/* ---------- Hero / Scroll Reveal ---------- */
.hero {
  position: relative;
  height: 220vh;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #0c0c0c;
}

.hero__ropes {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.42)), url('../images/ropes-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  will-change: opacity, transform;
}

.hero__ropes--fallback {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.42)), repeating-linear-gradient(115deg, #1a1a1a 0px, #1a1a1a 18px, #262626 18px, #262626 36px);
}

/* Rope texture masked into the logo silhouette — same image/position as
   .hero__ropes behind it, so the crossfade from white logo to this layer,
   and later the reveal of the full background, looks seamless. */
.hero__ropes-in-logo {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.42)), url('../images/ropes-bg.jpg');
  background-size: cover;
  background-position: center;
  -webkit-mask-image: url('../images/logo-mark.svg');
  mask-image: url('../images/logo-mark.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: min(60vw, 420px);
  mask-size: min(60vw, 420px);
  opacity: 0;
  will-change: opacity;
}

.hero__logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
}

.hero__logo-img {
  width: min(60vw, 420px);
  filter: drop-shadow(0 0 40px rgba(0,0,0,0.4));
}

.hero__logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 7rem);
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: lowercase;
  text-align: center;
}

.hero__hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.hero__hint-arrow {
  width: 1px;
  height: 28px;
  background: #fff;
  animation: hero-hint-bounce 1.8s ease-in-out infinite;
}

@keyframes hero-hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--muted { background: #fafafa; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-fg-soft);
  margin-bottom: var(--space-2);
}

.lede {
  font-size: 1.15rem;
  max-width: 60ch;
}

.cta-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--color-fg);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-fg); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--color-fg); }
.btn--ghost:hover { background: var(--color-fg); color: #fff; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }

.feature {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.gallery-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f2f2f2;
  aspect-ratio: 4 / 5;
}
.gallery-figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery-figure.is-broken { display: none; }

/* ---------- Team photos (Über uns) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
  max-width: 560px;
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; max-width: 300px; }
}
.team-figure { margin: 0; }
.team-figure__img-wrap {
  overflow: hidden;
  border-radius: 10px;
  background: #f2f2f2;
  aspect-ratio: 4 / 5;
}
.team-figure__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-figure.is-broken .team-figure__img-wrap { display: none; }
.team-figure figcaption {
  margin-top: var(--space-1);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Reveal-on-scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Contact form ---------- */
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-4);
  max-width: 640px;
}

.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); margin: 0; }
.contact-card dt { font-weight: 600; }
.contact-card dd { margin: 0; color: var(--color-fg-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  font-size: 0.85rem;
  color: var(--color-fg-soft);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.site-footer a { color: var(--color-fg-soft); text-decoration: none; }
.site-footer a:hover { color: var(--color-fg); }
.footer__social { display: flex; gap: var(--space-2); }
