/* =====================================================================
   Remote Republic — remoterepublic.com
   Sauberer 1:1-Nachbau der Webflow-Seite (handgeschrieben)
   ===================================================================== */

/* -------------------- Fonts -------------------- */
@font-face {
  font-family: "Altform";
  src: url("/assets/fonts/Altform-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Altform";
  src: url("/assets/fonts/Altform-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Altform";
  src: url("/assets/fonts/Altform-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------- Tokens -------------------- */
:root {
  --rr-white: #f6f6f6;
  --black: #000;
  --black-80: rgba(0, 0, 0, 0.8);
  --footer: #021411;
  --skyblue: #4896d2;
  --container: 1200px;
  --pad-x: 40px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--black);
  color: var(--rr-white);
  font-family: "Altform", Verdana, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* =====================================================================
   Navbar
   ===================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--black-80);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.navbar .container {
  display: flex;
  align-items: center;
  min-height: 50px;
  position: relative;
}
.brand { display: inline-flex; align-items: center; }
.logo { width: 120px; height: auto; margin-top: 4px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 70px;
}
.nav-link {
  display: inline-block;
  padding: 15px 12px;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, color 0.2s;
}
.nav-link:hover { opacity: 0.6; }
/* Aktiver Menüpunkt (per Scroll erkannt) blau markiert */
.nav-link.is-active { color: var(--skyblue); }

.languagenav {
  position: absolute;
  right: var(--pad-x);
  display: flex;
  align-items: center;
}
.nav-link.language { padding: 12px 6px; font-size: 12px; }
.nav-link.language.divider { opacity: 0.4; padding: 12px 2px; }
.nav-link.language.w--current { font-weight: 700; color: var(--skyblue); }

/* Mobile menu toggle */
.menu-button {
  display: none;
  margin-left: auto;
  margin-right: 40px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.menu-button span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--rr-white);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-button.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button.is-open span:nth-child(2) { opacity: 0; }
.menu-button.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   Generic full-viewport section
   ===================================================================== */
.section {
  position: relative;
  min-height: 100vh;
  scroll-margin-top: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 0 60px;
  background-color: var(--black);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}
.section .wrapper {
  max-width: 750px;
}
.section.is-right { align-items: flex-end; }
.section.is-right .container { display: flex; justify-content: flex-end; }
.section.is-center { text-align: center; }
.section.is-center .wrapper { max-width: 750px; margin: 0 auto; }

.heading2 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.heading3.section__sub {
  font-size: 32px;
  margin: 48px 0 16px;
}
.paragraph { font-weight: 300; }
/* Jede Aussage ist ein eigener Block mit kleinem Abstand (mobil wieder inline, s. u.) */
.feature { display: block; padding-bottom: 8px; }
.paragraph + .paragraph { margin-top: 1em; }

/* Einblenden beim Scrollen (entspricht den Webflow-Interaktionen) */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }
.has-reveal .reveal-delay { transition-delay: 0.12s; }

/* -------------------- Hero -------------------- */
.hero {
  justify-content: flex-end;
  background-image:
    linear-gradient(2deg, rgba(0, 0, 0, 0.8) 5%, rgba(26, 26, 26, 0) 57%),
    url("/assets/img/hero.jpg");
  background-position: 0 0, 50% 50%;
  background-size: auto, cover;
  margin-top: -50px;
  padding-top: 70px;
}
/* Logo oben (direkt unter der Navi), Slot + Headline unten */
.hero .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__logo {
  width: 250px;
  height: auto;
  margin: 0 auto 40px;
}
.hero__inner { width: 100%; }
.hero__claim {
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 1.5px;
  line-height: 1;
}
.bigheroheading {
  font-size: 68px;
  line-height: 1.4;
  margin-top: -10px;
}

/* Diese Sektionen: Text oben statt unten */
.sec-wirglauben,
.sec-blickwinkel,
.sec-grundsaetze {
  justify-content: flex-start;
}

/* -------------------- Section backgrounds -------------------- */
.sec-wirglauben {
  background-image:
    linear-gradient(353deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 90%),
    url("/assets/img/sec-wirglauben.webp");
}
.sec-blickwinkel {
  background-image:
    linear-gradient(353deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 90%),
    url("/assets/img/sec-blickwinkel.webp");
}
.sec-gebrauchsanweisung {
  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.8) 24%, rgba(0,0,0,0) 76%),
    url("/assets/img/sec-gebrauchsanweisung.webp");
}
.sec-grundsaetze {
  background-image:
    linear-gradient(353deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.82) 90%),
    url("/assets/img/sec-grundsaetze.jpg");
}
.sec-community {
  background-image:
    linear-gradient(173deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.82) 90%),
    url("/assets/img/sec-community.jpg");
}
.sec-impact {
  background-image:
    linear-gradient(353deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.88) 90%),
    url("/assets/img/sec-impact.jpg");
}

/* =====================================================================
   Button
   ===================================================================== */
.rrbutton {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border: 1px solid var(--rr-white);
  color: var(--rr-white);
  background: rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s;
}
.rrbutton:hover { background: var(--rr-white); color: var(--black); }

/* =====================================================================
   Projekte / Slider
   ===================================================================== */
.projekte {
  min-height: auto;
  scroll-margin-top: 56px;
  padding: 100px 0;
  background: var(--black);
}
.projekte .heading2 { margin-bottom: 8px; }
.projects__heading {
  font-size: 32px;
  margin: 56px 0 20px;
}
.projects__heading:first-of-type { margin-top: 24px; }

.slider {
  position: relative;
  height: 700px;
  margin-top: 30px;
  overflow: hidden;
  background: #000;
}
.slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background-color: #000;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%);
}
.slide__inner { max-width: 750px; }
.heading4slide { font-size: 32px; margin-bottom: 16px; }
.slide .paragraph { max-width: 750px; }

/* slide images */
.slide-schiff-0 { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 76%), url("/assets/img/slide-schiff-0.webp"); }
.slide-schiff-2 { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/slide-schiff-2.webp"); }
.slide-schiff-3 { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/slide-schiff-3.webp"); }
.slide-schiff-4 { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/slide-schiff-4.webp"); }
.slide-schiff-5 { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/slide-schiff-5.webp"); }
.slide-studio-0 { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/slide-studio-0.jpg"); }
.slide-studio-1 { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/slide-studio-1.jpg"); }
.slide-bootshaus { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/unit-bootshaus.jpeg"); }
.slide-schilderwerkstatt { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/unit-schilderwerkstatt.jpeg"); }
.slide-u19 { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/unit-u19.jpeg"); }
.slide-farmhouse { background-image: linear-gradient(6deg, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%), url("/assets/img/unit-farmhouse.jpg"); }

/* slider controls */
.slider__arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}
.slider__arrow:hover { opacity: 1; }
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}
.slider__dot.is-active { background: #fff; }

/* =====================================================================
   Kontakt
   ===================================================================== */
.contact { min-height: 60vh; scroll-margin-top: 56px; text-align: center; background: var(--black); padding: 120px 0; }
.contact .wrapper { max-width: 750px; margin: 0 auto; }
.contact a { color: var(--skyblue); }
.contact a:hover { text-decoration: underline; }

/* =====================================================================
   Legal / text pages (Impressum, Datenschutz)
   ===================================================================== */
.legal {
  background: var(--black);
  padding: 140px 0 100px;
}
.legal .container { max-width: 820px; }
.legal h1 {
  font-size: 42px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  margin: 40px 0 10px;
}
.legal p { font-weight: 300; margin: 0 0 14px; }
.legal a { color: var(--skyblue); }
.legal a:hover { text-decoration: underline; }
.legal .legal__meta { font-size: 14px; opacity: 0.55; margin-top: 48px; }

@media screen and (max-width: 767px) {
  .legal { padding: 110px 0 70px; }
  .legal h1 { font-size: 32px; }
}

/* =====================================================================
   404
   ===================================================================== */
.notfound {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 140px 0 100px;
  background: var(--black);
}
.notfound h1 { font-size: 56px; line-height: 1.1; margin-bottom: 18px; }
.notfound p { font-weight: 300; max-width: 520px; margin: 0 auto 28px; }
.notfound .rrbutton { margin-top: 0; }

@media screen and (max-width: 767px) {
  .notfound h1 { font-size: 38px; }
}

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  background-color: var(--footer);
  padding: 100px 0;
}
.footergrid {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr 0.75fr 0.75fr;
  gap: 25px;
  align-items: start;
}
.logofooter { width: 200px; height: auto; }
.footerlabel { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.footertextblock { font-size: 14px; line-height: 1.6; }
.footerlink { display: block; font-size: 14px; padding: 5px 0; }
.footerlink:hover { color: var(--skyblue); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media screen and (max-width: 991px) {
  .footergrid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .bigheroheading { font-size: 57px; }
  .nav-menu { margin-right: 50px; }
}

@media screen and (max-width: 767px) {
  :root { --pad-x: 20px; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 0 16px;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { padding: 14px 20px; font-size: 15px; }
  /* Hamburger links neben dem Sprachschalter, DE|EN ganz rechts */
  .menu-button { display: flex; margin-right: 0; }
  .languagenav { position: static; right: auto; margin-left: 14px; }
  .heading2 { font-size: 40px; line-height: 1.15; }

  /* Content-Sektionen mobil: Foto als Banner oben, Text darunter auf Schwarz */
  .section:not(.hero) {
    min-height: auto;
    justify-content: flex-start;
    align-items: stretch;
    background-size: 100% auto;        /* Bild über die volle Breite */
    background-position: top center;
    padding-top: calc(66.6% + 40px);   /* Bildhöhe (3:2) + Abstand zum Text */
    padding-bottom: 40px;
  }
  /* .section.sec-impact: gleiche Spezifität wie .section:not(.hero), steht danach → greift */
  .section.sec-impact { padding-top: calc(56.2% + 40px); }  /* impact-Bild ist 2400x1350 */
  .section.is-right .container { justify-content: flex-start; }
  .sec-wirglauben { background-image: url("/assets/img/sec-wirglauben.webp"); }
  .sec-blickwinkel { background-image: url("/assets/img/sec-blickwinkel.webp"); }
  .sec-gebrauchsanweisung { background-image: url("/assets/img/sec-gebrauchsanweisung.webp"); }
  .sec-grundsaetze { background-image: url("/assets/img/sec-grundsaetze.jpg"); }
  .sec-community { background-image: url("/assets/img/sec-community.jpg"); }
  .sec-impact { background-image: url("/assets/img/sec-impact.jpg"); }
  .section:not(.hero) .paragraph { font-size: 32px; line-height: 1.3; }
  /* Scroll-Fokus: der Satz in der Bildschirmmitte ist weiß, die übrigen gedimmt */
  .has-focusfx .section .feature {
    display: block;
    padding-bottom: 14px;
    color: rgba(246, 246, 246, 0.28);
    transition: color 0.45s ease;
  }
  .has-focusfx .section .feature.in-focus { color: var(--rr-white); }
  /* Fallback ohne JS: normale Fließdarstellung */
  .feature { display: inline; padding-bottom: 0; }

  .bigheroheading { font-size: 36px; text-align: center; }
  .hero { min-height: 560px; }
  .hero__logo { width: 200px; }
  .hero__claim { text-align: center; font-size: 22px; }
  .footergrid { grid-template-columns: 1fr; text-align: center; }
  .logofooter { display: block; margin: 0 auto; }
  .slider { height: 600px; }
  .heading4slide { font-size: 24px; }
}

@media screen and (max-width: 479px) {
  .bigheroheading { font-size: 30px; }
  .heading2 { font-size: 36px; letter-spacing: -0.01em; }
  .section:not(.hero) .paragraph { font-size: 28px; font-weight: 400; }
  .heading4slide { font-size: 22px; }
  .hero__claim { font-size: 20px; letter-spacing: 2px; }
}
