/* FSW.immo – Onepage
   Layout nach Figma „Final-Prepage“ (fsw.immo, Node 21:222) */

/* ─── Fonts (selbst gehostet, keine Verbindung zu Google) ─── */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Tokens ─── */
:root {
  --red: #bf2913;
  --red-dark: #8a1c0d;
  --red-hover: #a32210;
  --ink: #201e1d;
  --ink-80: rgba(32, 30, 29, .8);
  --ink-78: rgba(32, 30, 29, .78);
  --ink-75: rgba(32, 30, 29, .75);
  --ink-70: rgba(32, 30, 29, .7);
  --ink-60: rgba(32, 30, 29, .6);
  --ink-55: rgba(32, 30, 29, .55);
  --line: rgba(32, 30, 29, .4);
  --field: #f3f2f2;
  --placeholder: #757575;
  --surface: #f0f0f0;
  --band: #595959;
  --white: #fff;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1310px;
  --gutter: 64px;
  --header-h: 92px;
  --header-h-small: 55px; /* 60 % von 92px */
}

/* ─── Basis ─── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: rgba(191, 41, 19, .25); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.kicker {
  display: block;
  color: var(--red-dark);
  font-size: 13px;
  line-height: 20.15px;
  letter-spacing: 1.82px;
  text-transform: uppercase;
}
.h2-xl {
  font-size: 44px;
  line-height: 47.52px;
  letter-spacing: -.88px;
}
.lead {
  font-size: 17px;
  line-height: 28px;
  color: var(--ink-80);
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow .3s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  padding: 0 65px 0 54px;
  transition: height .3s ease;
}
.site-header__logo { flex: none; display: block; }
.site-header__logo img {
  width: 147px;
  height: 72px;
  object-fit: contain;
  transition: width .3s ease, height .3s ease;
}
.site-header__claim {
  flex: 1;
  margin: 0;
  color: #1a1a1a;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 15.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: font-size .3s ease, line-height .3s ease;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}
.site-nav a:hover { color: var(--red); }
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 32px;
  padding: 0 14px;
  background: var(--red);
  color: #f0eee6;
  font-size: 15px;
  line-height: 15.6px;
  text-transform: uppercase;
  transition: background-color .2s ease;
}
.site-nav .nav-cta:hover { background: var(--red-hover); color: #f0eee6; }

/* Beim Scrollen: Schatten auf allen Geräten, Verkleinerung nur mobil */
.site-header.is-scrolled { box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

main { padding-top: var(--header-h); }

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 75%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 16.5%, rgba(0, 0, 0, .4) 76%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  inset: auto 0 52px 0;
  z-index: 1;
}
.hero__badge {
  display: inline-block;
  margin: 0 0 30px 6px;
  padding: 8px 14px 9px;
  background: var(--white);
  color: #1a1a1a;
  font-size: 12.5px;
  line-height: 17px;
  letter-spacing: 1.75px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 82px;
  line-height: 1;
  letter-spacing: -.82px;
  text-transform: uppercase;
}

/* ─── Über uns ─── */
.about { padding: 36px 0 0; }
.about h2 {
  margin-top: 25px;
  font-size: 30px;
  line-height: 34.5px;
  letter-spacing: -.6px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.principle {
  padding: 28px 28px 24px;
  border-left: 1px solid var(--line);
}
.principle:first-child { padding-left: 0; border-left: 0; }
.principle::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 19px;
  background: var(--red);
}
.principle h3 {
  margin-bottom: 11px;
  color: #000;
  font-size: 19px;
  line-height: 22.8px;
  letter-spacing: -.285px;
  text-transform: uppercase;
}
.principle p {
  max-width: 330px;
  color: var(--ink-78);
  font-size: 14.5px;
  line-height: 23.93px;
}

/* ─── Leistungen ─── */
.services {
  margin-top: 83px;
  padding: 72px 0 80px;
  background: var(--surface);
}
.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 72px;
  margin-top: 25px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 36px;
  margin: 0;
  padding: 56px 0 0;
  list-style: none;
}
.service__img {
  margin: 0;
  aspect-ratio: 412.66 / 220;
  overflow: hidden;
  background: #e2e2e2;
}
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service__no {
  display: block;
  margin-top: 24px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 20.15px;
  letter-spacing: 1.3px;
}
.service h3 {
  margin-top: 9px;
  font-size: 26px;
  line-height: 29.9px;
  letter-spacing: -.39px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.service p {
  margin-top: 13px;
  color: var(--ink-78);
  font-size: 15px;
  line-height: 24.75px;
}

/* ─── Steuer-Band ─── */
.tax {
  padding: 100px 0;
  background: var(--band);
  color: var(--white);
}
.tax__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tax h2 {
  font-size: 30px;
  line-height: 33px;
  letter-spacing: -.6px;
}
.tax p { font-size: 19px; line-height: 28.5px; }
.tax a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.tax a:hover { text-decoration-thickness: 2px; }

/* ─── Kontakt ─── */
.contact { padding: 72px 0 80px; }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: start;
}
.contact h2 { margin-top: 23px; }
.contact .lead { max-width: 390px; margin-top: 24px; }
.contact .lead + .lead { margin-top: 28px; }
.contact__meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
  color: var(--ink-70);
}
.contact__meta p:first-child { font-size: 14px; line-height: 25px; }
.contact__meta p + p { margin-top: 2px; font-size: 16px; font-weight: 800; line-height: 23.25px; }
.contact__meta a { text-decoration: none; }
.contact__meta a:hover { text-decoration: underline; }
.contact__meta .mail { color: var(--red); }

/* Formular */
.form {
  padding: 32px;
  border: 1px solid #dcdcdc;
  background: var(--white);
}
.field + .field { margin-top: 7px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 21.7px;
}
.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  appearance: none;
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover { border-color: rgba(32, 30, 29, .6); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
textarea.input { min-height: 132px; padding-top: 8px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--red); }
.field__error {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 12.5px;
  line-height: 18px;
}
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 11px;
  padding: 16px 20px;
  border: 0;
  border-radius: 0;
  background: var(--red);
  color: #f3f2f2;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--red-hover); }
.btn[disabled] { opacity: .6; cursor: progress; }
.form__note {
  margin-top: 8px;
  color: var(--ink-60);
  font-size: 12.5px;
  line-height: 19.38px;
}
.form__note a { color: inherit; }
.form__status {
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.form__status:empty { display: none; }
.form__status.is-ok { background: #edf5ee; border-left: 4px solid #2e7d32; }
.form__status.is-error { background: #fbecea; border-left: 4px solid var(--red); }

/* ─── Footer ─── */
.site-footer {
  padding: 56px 0;
  border-top: 2px solid var(--line);
  background: var(--white);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
}
.site-footer__logo img { width: 98px; height: 48px; object-fit: contain; }
.site-footer h2 {
  margin-bottom: 12px;
  color: var(--ink-55);
  font-size: 11px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 1.32px;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer li { font-size: 14px; line-height: 25px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--ink-75); }
.site-footer__note {
  grid-column: 1 / -1;
  color: var(--ink-55);
  font-size: 12px;
  line-height: 18px;
}

/* ─── Unterseiten (Impressum, Datenschutz) ─── */
.legal { padding: 64px 0 96px; }
.legal__inner { max-width: 820px; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 40px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.btn-back:hover { border-color: var(--red); color: var(--red); }
.btn-back svg { flex: none; }
.legal h1 {
  margin: 23px 0 40px;
  font-size: 44px;
  line-height: 47.52px;
  letter-spacing: -.88px;
}
.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.3px;
}
.legal h3 { margin: 24px 0 8px; font-size: 17px; line-height: 1.3; }
.legal p, .legal li { color: var(--ink-80); font-size: 15.5px; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--red); }
.legal address { font-style: normal; }
.legal .todo { background: #fff3b0; color: var(--ink); padding: 0 3px; }
.legal .back-bottom { margin: 56px 0 0; }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .site-header__inner { padding: 0 40px; }
  .hero h1 { font-size: 68px; }
}

@media (max-width: 1024px) {
  .hero { height: 600px; }
  .hero h1 { font-size: 58px; }
  .h2-xl, .legal h1 { font-size: 36px; line-height: 1.1; }
  .services__head,
  .tax__inner,
  .contact__inner { grid-template-columns: 1fr; }
  .contact__inner { gap: 48px; }
  .tax { padding: 72px 0; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* Navigationspunkte unter 768px ausblenden */
@media (max-width: 767.98px) {
  :root { --gutter: 20px; --header-h: 76px; --header-h-small: 46px; }
  html { scroll-padding-top: calc(var(--header-h-small) + 16px); }
  .site-nav { display: none; }
  .site-header__inner { padding: 0 20px; gap: 16px; }
  .site-header__logo img { width: 121px; height: 59px; }
  .site-header__claim { font-size: 11px; line-height: 13.5px; }

  /* Verkleinerung beim Scrollen nur auf mobilen Geräten */
  .site-header.is-scrolled .site-header__inner { height: var(--header-h-small); }
  .site-header.is-scrolled .site-header__logo img { width: 73px; height: 36px; }
  .site-header.is-scrolled .site-header__claim { font-size: 8px; line-height: 10px; }

  .hero { height: 520px; }
  .hero__content { bottom: 36px; }
  .hero__badge { margin: 0 0 20px; font-size: 11px; letter-spacing: 1.4px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 48px); }

  .about h2 { font-size: 25px; line-height: 1.2; }
  .about h2 br { display: none; }
  .principles { grid-template-columns: 1fr; margin-top: 36px; }
  .principle,
  .principle:first-child { padding: 24px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .principle p { max-width: none; }

  .services { margin-top: 56px; padding: 56px 0; }
  .services__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .h2-xl, .legal h1 { font-size: 32px; }
  .service h3 { font-size: 23px; }

  .tax { padding: 56px 0; }
  .tax h2 { font-size: 26px; }
  .tax p { font-size: 17px; line-height: 26px; }

  .contact { padding: 56px 0; }
  .form { padding: 20px; }

  .site-footer { padding: 40px 0; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .legal { padding: 40px 0 64px; }
  .legal h1 { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
