/*
Theme Name: FLUR Landingpage 08
Theme URI: https://flur.at
Author: Lukas Bayer / OpenAI
Description: Radikal reduzierte, editoriale FLUR-Landingpage für ein Architekturbüro und Ziviltechniker mit kuratierter Bildrotation, präziser Markenanimation, Kontakt, Impressum und Datenschutz.
Version: 2.8.0
Text Domain: flur-landingpage
*/

:root {
  --paper: #f1eee7;
  --ink: #20211d;
  --green: #4b4f3b;
  --green-deep: #3f4332;
  --line: rgba(32, 33, 29, 0.16);
  --white: #faf8f2;
  --page-pad: clamp(24px, 4.2vw, 76px);
  --sans: "Helvetica Neue", "Arial Nova", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--green); color: var(--white); }
.site-shell { width: 100%; margin: 0; background: var(--paper); }

/* ---------------------------------------------------------
   OPENING WORDMARK
   The same visible wordmark moves into the exact position of
   the permanent header mark. The crossfade overlaps, so there
   is never a frame in which neither mark is visible.
   --------------------------------------------------------- */
.intro-wordmark { display: none; }
.js .intro-wordmark {
  position: fixed;
  z-index: 120;
  left: 50%;
  top: 50%;
  display: block;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(140px, 24vw, 430px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.078em;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: left, top, font-size, transform, opacity;
  opacity: 1;
  visibility: visible;
}

.js body.intro-running::before {
  content: "";
  position: fixed;
  z-index: 110;
  inset: 0;
  background: var(--paper);
  pointer-events: none;
  opacity: 1;
  transition: opacity .9s cubic-bezier(.22,.61,.36,1);
}
.js body.intro-target::before { opacity: 0; }

.js body.intro-running .intro-wordmark {
  transition:
    left 1.45s cubic-bezier(.72, 0, .18, 1),
    top 1.45s cubic-bezier(.72, 0, .18, 1),
    font-size 1.45s cubic-bezier(.72, 0, .18, 1),
    transform 1.45s cubic-bezier(.72, 0, .18, 1),
    opacity .22s ease;
}
.js body.intro-target .intro-wordmark {
  left: var(--intro-target-left, var(--page-pad));
  top: var(--intro-target-top, 28px);
  font-size: var(--intro-target-size, clamp(84px, 6.9vw, 118px));
  transform: translate(0, 0);
}
.js body.intro-complete .intro-wordmark {
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  min-height: 146px;
  padding: 28px var(--page-pad) 68px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--ink);
  pointer-events: none;
}
body.admin-bar .site-header { top: 32px; }
.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -150px;
  background: linear-gradient(
    180deg,
    rgba(244, 241, 234, .50) 0%,
    rgba(244, 241, 234, .30) 28%,
    rgba(244, 241, 234, .13) 54%,
    rgba(244, 241, 234, .045) 76%,
    rgba(244, 241, 234, 0) 100%
  );
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 34px;
  text-decoration: none;
}
.brand-word {
  display: block;
  font-size: clamp(84px, 6.9vw, 118px);
  line-height: .76;
  font-weight: 400;
  letter-spacing: -.078em;
}
.brand-subline {
  display: block;
  width: 150px;
  padding-top: 2px;
  font-size: 10.5px;
  line-height: 1.34;
  letter-spacing: .12em;
  font-weight: 700;
}
.js body.intro-running:not(.intro-complete) .brand-word,
.js body.intro-running:not(.intro-complete) .brand-subline {
  opacity: 0;
}
.brand-word,
.brand-subline {
  transition: opacity .22s ease;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  height: min(84svh, 920px);
  min-height: 680px;
  overflow: hidden;
  background: #72775f;
  isolation: isolate;
}
.hero-slides,
.hero-slide,
.hero-top-fade,
.hero-shade { position: absolute; inset: 0; }
.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: none;
  transition: opacity 1.9s cubic-bezier(.37,0,.63,1);
  backface-visibility: hidden;
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide--courtyard { object-position: center 52%; }
.hero-slide--vineyard { object-position: center 53%; }
.hero-slide--lounge { object-position: center 49%; }
.hero-slide--street { object-position: center 54%; }
.hero-slide--market { object-position: center 50%; }

.hero-top-fade {
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(244, 241, 234, .10) 0%,
    rgba(244, 241, 234, .03) 23%,
    rgba(244, 241, 234, 0) 42%
  );
}
.hero-shade {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(28,30,24,.52) 0%, rgba(28,30,24,.27) 30%, rgba(28,30,24,.03) 65%),
    linear-gradient(180deg, rgba(28,30,24,0) 48%, rgba(28,30,24,.25) 100%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 5;
  left: var(--page-pad);
  bottom: clamp(68px, 9vh, 116px);
  width: min(720px, 62vw);
  color: var(--white);
  text-shadow: 0 2px 26px rgba(15,16,13,.18);
}
.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(62px, 6.6vw, 112px);
  line-height: .93;
  letter-spacing: -.06em;
  font-weight: 400;
}
.hero-copy p {
  margin: 0;
  max-width: 410px;
  font-size: clamp(16px, 1.12vw, 19px);
  line-height: 1.5;
  letter-spacing: -.014em;
}
.hero-dots {
  position: absolute;
  z-index: 7;
  right: var(--page-pad);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dot {
  appearance: none;
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.46);
  cursor: pointer;
  transition: background 220ms ease, transform 220ms ease;
}
.hero-dot.is-active {
  background: rgba(255,255,255,.96);
  transform: scale(1.45);
}

/* ---------------------------------------------------------
   MANIFESTO
   --------------------------------------------------------- */
.manifesto {
  min-height: 46svh;
  padding: clamp(82px, 9vw, 148px) var(--page-pad);
  display: flex;
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.manifesto p {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(46px, 6vw, 100px);
  line-height: .98;
  letter-spacing: -.058em;
  font-weight: 400;
}

/* ---------------------------------------------------------
   CONTACT / FOOTER — one clean business-card composition
   --------------------------------------------------------- */
.contact-section {
  min-height: 420px;
  padding: clamp(62px, 7vw, 108px) var(--page-pad) 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(70px, 10vw, 180px);
  row-gap: 68px;
  align-items: start;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--sans);
}
.contact-brand {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.contact-word {
  font-size: clamp(82px, 8.1vw, 138px);
  line-height: .76;
  letter-spacing: -.08em;
  font-weight: 400;
}
.contact-subline {
  width: 146px;
  padding-top: 3px;
  font-size: 10px;
  line-height: 1.34;
  letter-spacing: .12em;
  font-weight: 700;
  opacity: .88;
}
.contact-card {
  justify-self: stretch;
  padding-top: 2px;
  font-size: 15px;
  line-height: 1.6;
}
.contact-card h2 {
  margin: 0 0 5px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 400;
}
.contact-role {
  margin: 0 0 34px;
  opacity: .72;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.contact-links a {
  width: fit-content;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-links a:hover { border-color: currentColor; }
.contact-links address {
  margin-top: 18px;
  font: inherit;
  font-style: normal;
  opacity: .72;
}
.contact-meta {
  grid-column: 1 / -1;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid rgba(250,248,242,.18);
  font-size: 12px;
  line-height: 1.4;
  opacity: .68;
}
.contact-legal {
  display: flex;
  gap: 22px;
}
.contact-legal a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-legal a:hover { border-color: currentColor; }

/* ---------------------------------------------------------
   LEGAL OVERLAYS
   --------------------------------------------------------- */
.legal-panel {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 52px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.legal-panel:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 22, .76);
  backdrop-filter: blur(10px);
}
.legal-card {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
  max-height: min(88svh, 920px);
  overflow: auto;
  padding: clamp(30px, 5vw, 70px);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.legal-card--wide { width: min(1080px, 100%); }
.legal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 46px;
}
.legal-head h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 80px);
  line-height: .94;
  letter-spacing: -.057em;
  font-weight: 400;
}
.legal-close {
  font-size: 38px;
  line-height: 1;
  text-decoration: none;
}
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}
.legal-card p,
.privacy-copy p {
  font-size: 15px;
  line-height: 1.65;
}
.legal-card a { text-underline-offset: 3px; }
.legal-external { color: var(--green); }
.legal-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 38px 0;
}
.legal-small { opacity: .60; font-size: 12px !important; }
.privacy-copy { max-width: 820px; }
.privacy-copy h3 {
  margin: 38px 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.privacy-copy h3:first-child { margin-top: 0; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { min-height: 128px; padding-top: 24px; }
  .brand-word { font-size: 82px; }
  .hero {
    height: 82svh;
    min-height: 640px;
  }
  .hero-copy { width: min(720px, 80vw); }
  .contact-section {
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
  }
}

@media (max-width: 640px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { padding: 18px 20px 48px; }
  .brand { gap: 14px; }
  .brand-word { font-size: 64px; }
  .brand-subline { width: 100px; font-size: 7.5px; }

  .hero {
    height: 86svh;
    min-height: 610px;
  }
  .hero-slide--courtyard { object-position: 59% center; }
  .hero-slide--vineyard { object-position: 50% center; }
  .hero-slide--lounge { object-position: center 50%; }
  .hero-slide--street { object-position: 56% center; }
  .hero-slide--market { object-position: 58% center; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(28,30,24,.01) 30%, rgba(28,30,24,.70) 100%);
  }
  .hero-copy {
    left: 22px;
    bottom: 62px;
    width: calc(100% - 44px);
  }
  .hero-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(50px, 15.5vw, 74px);
  }
  .hero-copy p { font-size: 15px; }
  .hero-dots { left: 22px; right: auto; bottom: 22px; }

  .manifesto {
    min-height: 58svh;
    padding: 72px 22px 78px;
  }
  .manifesto p { font-size: clamp(40px, 12vw, 58px); }

  .contact-section {
    min-height: 620px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 50px 22px 26px;
    gap: 52px;
  }
  .contact-brand { gap: 16px; }
  .contact-word { font-size: 78px; }
  .contact-subline { width: 112px; font-size: 7.8px; }
  .contact-card { justify-self: start; }
  .contact-meta {
    grid-column: 1;
    align-items: flex-end;
  }

  .legal-grid { grid-template-columns: 1fr; gap: 12px; }
  .legal-card { padding: 28px 22px 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .intro-wordmark { display: none; }
  .js body.intro-running::before { display: none; }
  .js body.intro-running:not(.intro-complete) .brand-word,
  .js body.intro-running:not(.intro-complete) .brand-subline { opacity: 1; }
}
