/* Sophie Penthouse – Landingpage (Design wie The House Above the Trees)
   Farben und Typografie angelehnt an sophie.hamburg */

:root {
  --sand: #e2dfd4;
  --bone: #f4f2ec;
  --brown: #7a6751;
  --brown-dark: #4f4234;
  --ink: #333333;
  --muted: #5f5f5f;
  --line: #9a8f82;
  --error: #8a2c1a;
  --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --sans: "Jost", "Brandon Grotesque", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(24px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brown); }
a:hover { color: var(--brown-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.overline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 16px;
}
.overline--light { color: #fff; font-size: 14px; }

.h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.15;
  color: var(--brown);
}
.h2--xl { font-size: clamp(36px, 4vw, 52px); line-height: 1.1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 18px 36px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--light { background: #fff; color: #3b342c; }
.btn--light:hover { background: var(--sand); color: #3b342c; }
.btn--primary { background: var(--brown); color: #fff; }
.btn--primary:hover { background: var(--brown-dark); }
.btn--primary[disabled] { opacity: .6; cursor: wait; }
.btn--outline { background: transparent; color: var(--brown); border-color: var(--brown); font-weight: 400; min-height: 48px; padding: 14px 28px; }
.btn--outline:hover { background: var(--brown); color: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #3b342c;
  color: #fff;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Hintergrundvideo: liegt über dem Standbild und wird erst eingeblendet, wenn es läuft */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero__video.is-playing { opacity: 1; }
/* Video ist hell (Himmel, Wasser): oben für die Navigation, unten für den Titel abdunkeln */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(30, 24, 18, .34) 0%, rgba(30, 24, 18, .12) 45%, rgba(30, 24, 18, 0) 70%),
    linear-gradient(to bottom,
      rgba(30, 24, 18, .42) 0%,
      rgba(30, 24, 18, .16) 26%,
      rgba(30, 24, 18, .30) 50%,
      rgba(30, 24, 18, .72) 100%);
}
.hero__title, .hero__sub { text-shadow: 0 1px 24px rgba(20, 16, 12, .35); }
.hero__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-top: 36px; padding: 0;
  color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%;
  cursor: pointer; opacity: .8;
  transition: opacity .2s, background-color .2s, color .2s;
}
.hero__toggle:hover { opacity: 1; background: #fff; color: #3b342c; }
.hero__toggle-play { display: none; }
.hero__toggle.is-paused .hero__toggle-pause { display: none; }
.hero__toggle.is-paused .hero__toggle-play { display: block; margin-left: 2px; }
.hero__content {
  position: relative;
  padding-bottom: clamp(64px, 12vh, 120px);
  padding-top: 140px;
}
.hero__title {
  margin: 0 0 28px;
  max-width: 820px;
  font-family: "Newsreader", var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(56px, 7.5vw, 104px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero__sub {
  margin-bottom: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.7;
  letter-spacing: .32em;
}

/* Navigation */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nav a { color: #fff; text-decoration: none; }
.nav__brand { font-family: var(--sans); font-size: 15px; letter-spacing: 5px; text-transform: uppercase; }
.nav__right { display: flex; align-items: center; gap: 40px; }
.nav__lang { display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,.7); }
.nav__lang a { padding: 6px 2px; opacity: .75; }
.nav__lang a[aria-current] { opacity: 1; border-bottom: 1px solid #fff; }
.nav__lang a:hover { opacity: 1; }
.nav__phone { font-family: var(--sans); font-weight: 300; font-size: 19px; letter-spacing: 1px; }
.nav__cta {
  font-family: var(--sans); font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 24px; border: 1px solid rgba(255, 255, 255, .8);
  transition: background-color .2s, color .2s;
}
.nav__cta:hover { background: #fff; color: #3b342c !important; }

/* Intro */
.intro { padding: clamp(80px, 12vw, 160px) 0; }
.intro__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.intro__body { display: flex; flex-direction: column; gap: 20px; padding-top: 40px; font-size: 21px; }


/* Kontakt */
.contact { padding: clamp(80px, 12vw, 160px) 0; scroll-margin-top: 0; }
/* Kein Bildband mehr zwischen Intro und Kontakt: Abstand nicht doppeln */
.intro + .contact { padding-top: 0; scroll-margin-top: clamp(40px, 6vw, 80px); }
.contact .form__head { margin-bottom: clamp(32px, 4vw, 48px); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }

/* Desktop: Bild und Formular gleich breit nebeneinander.
   --card ist exakt die bisherige Breite der Formularkarte (7/12 des Inhaltsbereichs);
   das Bild bekommt dieselbe Breite. Reicht der Bildschirm nicht für beide in voller
   Breite, werden beide gleichmäßig schmaler. */
@media (min-width: 961px) {
  .contact {
    --cgap: clamp(32px, 5vw, 64px);
    --card: calc((min(var(--wrap), 100vw - 2 * var(--gutter)) - var(--cgap)) * 7 / 12);
  }
  .contact .wrap {
    max-width: calc(2 * var(--card) + var(--cgap) + 48px);
    padding: 0 24px;
  }
  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, var(--card)));
    justify-content: center;
    gap: var(--cgap);
  }
}
.contact__media { position: relative; min-height: 100%; }
.contact__media picture { display: block; position: absolute; inset: 0; }
.contact__img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }

.form__head .overline { margin-bottom: 14px; }

/* Karte wie im Exposé-Kontaktformular */
.card {
  background: #fff;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 10px 40px rgba(59, 52, 44, .10), 0 2px 8px rgba(59, 52, 44, .06);
}
.card__contact { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 36px; }
.card__copy { display: flex; flex-direction: column; gap: 14px; font-size: 19px; line-height: 1.5; color: var(--ink); }
.card__copy strong { font-weight: 500; }
.card__copy a { text-decoration: none; }
.card__copy a:hover { text-decoration: underline; }
.card__logo { width: 120px; height: 120px; min-width: 120px; border-radius: 50%; object-fit: cover; }
.form { display: flex; flex-direction: column; gap: 24px; }
.field--message { padding-top: 16px; }
.field input::placeholder, .field textarea::placeholder { color: #9b9b9b; opacity: 1; }
.form__hint { font-family: var(--sans); font-weight: 300; font-size: 12px; line-height: 1.65; letter-spacing: .02em; color: var(--muted); }
.form__hint a { color: var(--brown); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-family: var(--sans); font-weight: 300; font-size: 14px; color: var(--muted); padding: 0; }
.field input, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  resize: none;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brown); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--brown); }
.field.is-invalid input { border-bottom-color: var(--error); }


.form__error { font-family: var(--sans); font-size: 14px; color: var(--error); }
.form__actions { display: flex; justify-content: flex-end; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.thanks .overline { margin-bottom: 0; }
.thanks p { font-size: 21px; max-width: 520px; }
[hidden] { display: none !important; }

/* Schnellkontakt unten rechts */
.fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab__btn {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30, 24, 18, .25);
  transition: background-color .2s, transform .2s;
}
.fab { transition: opacity .25s, visibility .25s; }
.fab--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.fab__btn:hover { background: var(--brown-dark); color: #fff; transform: translateY(-2px); }

/* Barrierefreiheit */
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; background: #fff; color: var(--brown);
  font-family: var(--sans); font-size: 14px; text-decoration: none;
}
.skip:focus { top: 16px; }
address { font-style: normal; }
.nowrap { white-space: nowrap; }
h2.overline { margin-top: 0; }

/* Unterseiten Impressum / Datenschutz */
.page-head { position: relative; height: 96px; background: var(--brown); }
.page-head .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.legal { padding: clamp(64px, 9vw, 120px) 0; }
.legal__wrap { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.legal h1 { margin-bottom: 40px; }
.legal section { padding: 28px 0; border-top: 1px solid #d6d1c4; }
.legal h2 { margin: 0 0 14px; font-weight: 500; font-size: 26px; line-height: 1.25; color: var(--ink); }
.legal h3 { margin: 24px 0 8px; font-weight: 500; font-size: 20px; color: var(--ink); }
.legal p, .legal address { font-size: 19px; line-height: 1.65; margin: 0 0 12px; }
.legal__lead { margin-bottom: 32px !important; }
.legal__date, .legal__back { margin-top: 32px !important; font-family: var(--sans); font-weight: 300; font-size: 14px !important; color: var(--muted); }

/* Footer */
.footer { background: #fff; padding: 64px 0; font-size: 18px; line-height: 1.55; color: #4a4a4a; }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; }
.footer__brand { font-family: var(--sans); font-size: 14px; letter-spacing: 4px; text-transform: uppercase; color: var(--brown); margin-bottom: 10px; }
.footer__links { display: flex; flex-direction: column; gap: 6px; }
.footer__links a { text-decoration: none; }
.footer__legal { display: flex; gap: 28px; }
.footer__legal a { font-family: var(--sans); font-weight: 300; font-size: 14px; color: var(--muted); }

/* Tablet */
@media (max-width: 960px) {
  .intro__grid, .contact__grid { grid-template-columns: 1fr; }
  .intro__body { padding-top: 0; }
  .contact__media { min-height: 0; height: 420px; }
  .nav__phone { display: none; }
}

/* Smartphone */
@media (max-width: 600px) {
  body { font-size: 18px; }
  .nav, .page-head { height: 72px; }
  .nav__brand { font-size: 10px; letter-spacing: 1px; line-height: 1.4; flex-shrink: 0; }
  .nav__lang { gap: 4px; }
  .nav__cta { padding: 12px 12px; }
  .hero__sub { letter-spacing: .22em; }
  .nav__cta { padding: 12px 16px; font-size: 12px; }
  .nav { gap: 14px; }
  .nav__right { gap: 12px; flex-shrink: 0; }
  .nav__lang { font-size: 12px; letter-spacing: 1px; }
  .hero__content { padding-top: 110px; padding-bottom: 150px; }
  .hero__toggle { margin-top: 28px; }
  .hero .btn { width: 100%; }
  .intro__body, .thanks p { font-size: 19px; }
  .form__grid { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
  .card__contact { gap: 16px; }
  .card__logo { width: 64px; height: 64px; min-width: 64px; }
  .fab__btn { width: 52px; height: 52px; }
  .contact__media { height: 300px; }
  .footer__grid { flex-direction: column; align-items: flex-start; }
  .footer { padding-bottom: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Platz für die Schnellkontakt-Buttons */
@media (min-width: 601px) {
  .footer .wrap { padding-right: max(var(--gutter), 104px); }
}

/* Header auf Smartphones: Kontakt-Button bleibt, Sprachumschalter kompakt */
@media (max-width: 600px) {
  .nav { gap: 10px; padding: 0 16px; }
  .nav__brand { font-size: 10px; letter-spacing: 1px; line-height: 1.45; flex-shrink: 1; min-width: 0; }
  .nav__brand .nowrap { display: block; }
  .nav__right { gap: 10px; }
  .nav__lang { gap: 1px; font-size: 11px; letter-spacing: .5px; }
  .nav__lang a { padding: 6px 1px; }
  .nav__cta { padding: 10px 12px; font-size: 11px; letter-spacing: 1.5px; }
}
@media (max-width: 360px) {
  .nav { padding: 0 12px; gap: 8px; }
  .nav__brand { font-size: 9.5px; letter-spacing: .6px; }
  .nav__right { gap: 8px; }
  .nav__cta { padding: 9px 9px; letter-spacing: 1px; }
}
