/* ============================================================
   Astoria Real Estate GmbH — astoria-real-estate.de
   Dev-Version (statisch, spätere Umsetzung: WordPress / DIVI 5)
   zweimeter.online, 2026
   ============================================================ */

:root {
  --anthrazit: #2f2f2e;
  --anthrazit-soft: #3c3c3b;
  --grau: #575756;
  --grau-mittel: #7c7b78;
  --sand-050: #f8f6f1;
  --sand-100: #f1ece2;
  --sand-200: #e6ded0;
  --sand-400: #c9bda6;
  --sand-600: #a8987b;
  --weiss: #ffffff;
  --linie: #e4dfd4;
  --serif: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --radius: 2px;
  --trans: 0.25s ease;
}

/* ---------- Reset / Basis ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--anthrazit);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-600);
  margin-bottom: 1.1rem;
}

.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--grau); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--anthrazit);
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  cursor: pointer;
}

.btn--solid { background: var(--anthrazit); color: var(--weiss); }
.btn--solid:hover { background: var(--weiss); color: var(--anthrazit); }

.btn--ghost { background: transparent; color: var(--anthrazit); }
.btn--ghost:hover { background: var(--anthrazit); color: var(--weiss); }

.btn--sand { background: var(--sand-600); border-color: var(--sand-600); color: var(--weiss); }
.btn--sand:hover { background: transparent; color: var(--sand-600); }

.btn--light { border-color: var(--weiss); color: var(--weiss); background: transparent; }
.btn--light:hover { background: var(--weiss); color: var(--anthrazit); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.site-header.is-scrolled {
  border-bottom-color: var(--linie);
  box-shadow: 0 2px 18px rgba(47, 47, 46, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 0;
}

.site-header__logo img { width: clamp(120px, 14vw, 158px); }

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.4rem); }

.site-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grau);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}

.site-nav a:hover { color: var(--anthrazit); }
.site-nav a[aria-current="page"] { color: var(--anthrazit); border-bottom-color: var(--sand-600); }

.site-nav .nav-cta {
  border: 1px solid var(--anthrazit);
  border-radius: var(--radius);
  padding: 0.55rem 1.3rem;
  color: var(--anthrazit);
}
.site-nav .nav-cta:hover { background: var(--anthrazit); color: var(--weiss); border-bottom-color: transparent; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--anthrazit);
  transition: transform var(--trans), opacity var(--trans);
}

.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--sand-050);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--trans), visibility var(--trans);
  }

  .nav-open .site-nav { opacity: 1; visibility: visible; }

  .site-nav a { font-size: 1.15rem; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--sand-050) 0%, var(--sand-100) 100%);
  border-bottom: 1px solid var(--linie);
}

.hero__inner {
  padding: clamp(4rem, 10vw, 8.5rem) 0 clamp(4rem, 9vw, 7.5rem);
  max-width: 820px;
}

.hero h1 { text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1.4rem; }

.hero .lead { margin-bottom: 1.2rem; font-family: var(--serif); font-style: italic; }

.hero p:not(.lead) { max-width: 640px; color: var(--grau); margin-bottom: 2.4rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Unterseiten-Hero */
.page-hero {
  background: linear-gradient(180deg, var(--sand-050) 0%, var(--sand-100) 100%);
  border-bottom: 1px solid var(--linie);
}

.page-hero__inner { padding: clamp(3rem, 7vw, 5.5rem) 0; max-width: 820px; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { font-family: var(--serif); font-style: italic; }

/* ---------- Sektionen ---------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--sand { background: var(--sand-050); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--grau); }

/* ---------- Karten (3 Boxen Home) ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }

@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-top: 3px solid var(--sand-400);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  transition: box-shadow var(--trans), transform var(--trans);
}

.card:hover { box-shadow: 0 14px 40px rgba(47, 47, 46, 0.08); transform: translateY(-3px); }

.card h3 { margin-bottom: 1rem; }
.card p { color: var(--grau); font-size: 0.98rem; flex: 1; margin-bottom: 1.6rem; }
.card p strong { color: var(--anthrazit); }
.card .btn { align-self: flex-start; }

/* ---------- Sprungnavigation (Für Investoren) ---------- */

.jump-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 960px) { .jump-nav { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .jump-nav { grid-template-columns: 1fr; } }

.jump-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 1.1rem 1.3rem;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-left: 3px solid var(--sand-400);
  border-radius: var(--radius);
  transition: border-color var(--trans), box-shadow var(--trans);
}

.jump-nav a::after { content: "\2193"; color: var(--sand-600); font-weight: 400; }
.jump-nav a:hover { border-left-color: var(--sand-600); box-shadow: 0 8px 24px rgba(47, 47, 46, 0.07); }

/* ---------- Prozess-Schritte (Text/Bild im Wechsel) ---------- */

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 3.5rem) 0;
}

.step + .step { border-top: 1px solid var(--linie); }

.step:nth-child(even) .step__media { order: 2; }

@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; gap: 1.6rem; }
  .step:nth-child(even) .step__media { order: 0; }
}

.step__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.step__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--sand-400);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step h3 { margin-bottom: 0.9rem; }
.step p { color: var(--grau); }

/* ---------- Textbausteine ---------- */

.prose { max-width: 780px; }
.prose h2 { margin: 2.6rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.8rem; }
.prose p { margin-bottom: 1.15rem; color: var(--grau); }
.prose p strong, .prose li strong { color: var(--anthrazit); }
.prose ul { margin: 0 0 1.4rem 1.2rem; color: var(--grau); }
.prose li { margin-bottom: 0.7rem; }
.prose > :first-child { margin-top: 0; }

/* Merkmal-Liste (Institutionelle, Ankauf) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: 2.4rem;
}

@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
}

.feature h3 { margin-bottom: 0.7rem; font-size: 1.18rem; }
.feature p, .feature ul { color: var(--grau); font-size: 0.98rem; }
.feature ul { margin: 0.4rem 0 0 1.1rem; }
.feature li { margin-bottom: 0.55rem; }
.feature li strong { color: var(--anthrazit); }

/* Nummerierte Modelle (Direktvertrieb) */
.model { display: flex; gap: 1.4rem; padding: 1.6rem 0; }
.model + .model { border-top: 1px solid var(--linie); }

.model__num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--sand-600);
  line-height: 1.25;
}

.model h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.model p { color: var(--grau); font-size: 0.99rem; }

/* ---------- CTA-Band ---------- */

.cta-band { background: var(--anthrazit); color: var(--weiss); }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-top: clamp(2.8rem, 6vw, 4.2rem);
  padding-bottom: clamp(2.8rem, 6vw, 4.2rem);
}

.cta-band h2 { color: var(--weiss); max-width: 620px; }
.cta-band p { color: var(--sand-200); margin-top: 0.6rem; max-width: 560px; }

/* ---------- Über uns: Bild ---------- */

.about-media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--grau); margin-bottom: 1.6rem; }

.contact-info address {
  font-style: normal;
  color: var(--grau);
  border-left: 3px solid var(--sand-400);
  padding-left: 1.2rem;
  line-height: 1.9;
}

.contact-info address a { text-decoration: none; }
.contact-info address a:hover { text-decoration: underline; }

.form { display: grid; gap: 1.2rem; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.form label { display: block; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.form label .req { color: var(--sand-600); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--anthrazit);
  background: var(--sand-050);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color var(--trans), background var(--trans);
}

.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--sand-600);
  background: var(--weiss);
}

.form textarea { min-height: 160px; resize: vertical; }

.form .consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--grau); }
.form .consent input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--anthrazit); }
.form .consent label { font-weight: 400; letter-spacing: 0; margin: 0; }

.form__note { font-size: 0.85rem; color: var(--grau-mittel); }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #eef3ea; border: 1px solid #c9d8bd; color: #3d5230; }
.form-status--error { background: #f7ecea; border: 1px solid #e0c5c0; color: #7a3b32; }

/* ---------- Footer ---------- */

.site-footer { background: var(--anthrazit-soft); color: var(--sand-200); }

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

.site-footer__logo img { width: 150px; }

.site-footer__address { font-style: normal; font-size: 0.95rem; line-height: 1.9; }
.site-footer__address a { text-decoration: none; }
.site-footer__address a:hover { text-decoration: underline; }

.site-footer__nav { display: flex; flex-direction: column; gap: 0.5rem; }

.site-footer__nav a {
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--trans);
}
.site-footer__nav a:hover { color: var(--weiss); }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 0;
  font-size: 0.84rem;
  color: var(--grau-mittel);
  color: rgba(241, 236, 226, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
}

/* ---------- Reveal-Animation ---------- */

/* Greift nur, wenn JS aktiv ist (html.js) – ohne JS bleibt alles sichtbar */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Rechtstexte ---------- */

.legal { max-width: 780px; }
.legal h2 { margin: 2.4rem 0 0.9rem; font-size: 1.5rem; }
.legal h3 { margin: 1.8rem 0 0.7rem; font-size: 1.15rem; }
.legal p, .legal ul { color: var(--grau); margin-bottom: 1rem; }
.legal ul { margin-left: 1.2rem; }

.placeholder-note {
  background: var(--sand-100);
  border: 1px dashed var(--sand-600);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--grau);
  margin-bottom: 2rem;
}
