/* ==========================================================
   CASARIVO
   Globale Styles
   ========================================================== */


/* ==========================================================
   1. GRUNDEINSTELLUNGEN / FARBEN
   ========================================================== */

:root {

  /* Markenfarben */
  --color-anthracite: #292b2a;
  --color-anthracite-soft: #3a3a37;

  --color-gold: #bca17c;
  --color-gold-dark: #a58a65;
  --color-gold-light: #d2c0a5;

  --color-ivory: #f3efe7;
  --color-cream: #faf8f4;
  --color-white: #ffffff;

  /* Texte */
  --color-text: #292b2a;
  --color-text-soft: #696762;

  /* Linien */
  --color-border: rgba(41, 43, 42, 0.12);

  /* Schatten */
  --shadow-soft:
    0 12px 35px rgba(30, 30, 28, 0.07);

  --shadow-card:
    0 8px 28px rgba(30, 30, 28, 0.08);

  /* Größen */
  --header-height: 88px;
  --content-width: 1280px;

  /* Abstände */
  --section-space: 110px;

  /* Übergänge */
  --transition:
    0.28s ease;
}


/* ==========================================================
   2. RESET
   ========================================================== */

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


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  background:
    var(--color-cream);

  color:
    var(--color-text);

  font-family:
    "Montserrat",
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
}


img {
  display: block;

  width: 100%;
  max-width: 100%;
}


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


button,
input,
textarea,
select {
  font: inherit;
}


ul {
  margin: 0;
  padding: 0;

  list-style: none;
}


/* ==========================================================
   3. TYPOGRAFIE
   ========================================================== */

h1,
h2,
h3,
p {
  margin-top: 0;
}


h1,
h2,
h3 {
  font-weight: 400;
}


h2 {
  margin-bottom: 18px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(2rem, 3.5vw, 3rem);

  line-height: 1.15;

  letter-spacing: -0.02em;
}


h3 {
  margin-bottom: 10px;

  font-size: 1.15rem;

  line-height: 1.35;
}


p {
  color:
    var(--color-text-soft);
}


/* ==========================================================
   4. FIXIERTER HEADER
   ========================================================== */

.site-header {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 1000;

  width: 100%;

  background:
    rgba(250, 248, 244, 0.94);

  border-bottom:
    1px solid rgba(41, 43, 42, 0.07);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);
}


.site-header__inner {
  display: flex;

  align-items: center;
  justify-content: space-between;

  width:
    min(calc(100% - 60px), var(--content-width));

  height:
    var(--header-height);

  margin:
    0 auto;
}


/* Kleines Logo im Header */

.site-header__brand {
  display: flex;

  align-items: center;
}


.site-header__logo {
  width: auto;
  height: 54px;

  object-fit: contain;
}


/* ==========================================================
   5. DESKTOP NAVIGATION
   ========================================================== */

.main-nav__list {
  display: flex;

  align-items: center;

  gap: 38px;
}


.main-nav__list a {
  position: relative;

  display: block;

  padding:
    12px 0;

  color:
    var(--color-anthracite);

  font-size: 0.78rem;

  font-weight: 500;

  letter-spacing: 0.04em;

  transition:
    color var(--transition);
}


.main-nav__list a::after {
  position: absolute;

  right: 0;
  bottom: 5px;
  left: 0;

  width: 0;
  height: 1px;

  margin: auto;

  background:
    var(--color-gold);

  content: "";

  transition:
    width var(--transition);
}


.main-nav__list a:hover {
  color:
    var(--color-gold-dark);
}


.main-nav__list a:hover::after {
  width: 100%;
}


/* ==========================================================
   6. MOBILER MENÜBUTTON
   ========================================================== */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 8px;

  background: transparent;

  border: 0;

  cursor: pointer;
}


.menu-toggle span {
  display: block;

  width: 24px;
  height: 1px;

  margin: 6px auto;

  background:
    var(--color-anthracite);

  transition:
    var(--transition);
}


.mobile-nav {
  display: none;
}


/* ==========================================================
   7. HERO
   ========================================================== */

.hero {
  display: grid;

  grid-template-columns:
    minmax(420px, 0.9fr)
    minmax(500px, 1.1fr);

  min-height:
    760px;

  padding-top:
    var(--header-height);

  background:
    var(--color-cream);
}


/* Linker Hero-Bereich */

.hero__content {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding:
    80px 70px;

  text-align: center;
}


/* Großes Logo */

.hero__logo {
  width:
    min(390px, 80%);

  height: auto;

  margin-bottom:
    34px;
}


/* Claim */

.hero__claim {
  margin-bottom:
    22px;

  color:
    var(--color-gold-dark);

  font-family:
    "Montserrat",
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size:
    clamp(1rem, 1.5vw, 1.3rem);

  font-weight: 300;

  line-height: 1.4;

  letter-spacing:
    0.25em;

  text-transform:
    uppercase;
}


/* Intro */

.hero__intro {
  max-width:
    470px;

  margin-bottom:
    34px;

  color:
    var(--color-text);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(1.2rem, 2vw, 1.6rem);

  line-height:
    1.5;
}


/* Hero Buttons */

.hero__actions {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 14px;
}


/* Hero Bild */

.hero__image {
  position: relative;

  min-height:
    670px;

  overflow: hidden;
}


.hero__image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;
}


/* leichte warme Überlagerung */

.hero__image::after {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(250, 248, 244, 0.10),
      rgba(188, 161, 124, 0.04)
    );

  content: "";

  pointer-events: none;
}


/* ==========================================================
   8. BUTTONS
   ========================================================== */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding:
    13px 25px;

  border:
    1px solid transparent;

  font-size:
    0.72rem;

  font-weight:
    600;

  letter-spacing:
    0.09em;

  text-align:
    center;

  text-transform:
    uppercase;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}


.button:hover {
  transform:
    translateY(-2px);
}


/* Goldener Hauptbutton */

.button--primary {
  background:
    var(--color-gold);

  color:
    var(--color-white);

  border-color:
    var(--color-gold);
}


.button--primary:hover {
  background:
    var(--color-gold-dark);

  border-color:
    var(--color-gold-dark);
}


/* Heller Sekundärbutton */

.button--secondary {
  background:
    transparent;

  color:
    var(--color-anthracite);

  border-color:
    var(--color-gold);
}


.button--secondary:hover {
  background:
    var(--color-gold);

  color:
    var(--color-white);
}


/* ==========================================================
   9. ALLGEMEINE SEKTIONEN
   ========================================================== */

.section {
  padding:
    var(--section-space) 30px;
}


.section__inner {
  width:
    min(100%, var(--content-width));

  margin:
    0 auto;
}


.section-heading {
  max-width:
    660px;

  margin-bottom:
    52px;
}


.section-heading p {
  margin-bottom: 0;

  font-size:
    1rem;
}


.section-heading--center {
  margin-right:
    auto;

  margin-left:
    auto;

  text-align:
    center;
}


.section-actions {
  margin-top:
    52px;

  text-align:
    center;
}


/* ==========================================================
   10. UNSERE WOHNUNGEN
   ========================================================== */

.section--apartments {
  background:
    var(--color-ivory);
}


.property-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap:
    28px;
}


/* Einzelne Wohnungskarte */

.property-card {
  overflow: hidden;

  background:
    rgba(255, 255, 255, 0.48);

  border:
    1px solid var(--color-border);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}


.property-card:hover {
  transform:
    translateY(-5px);

  box-shadow:
    var(--shadow-card);
}


.property-card__link {
  display: block;
}


.property-card__image {
  aspect-ratio:
    4 / 3;

  overflow: hidden;
}


.property-card__image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.5s ease;
}


.property-card:hover
.property-card__image img {
  transform:
    scale(1.025);
}


.property-card__content {
  padding:
    24px 24px 26px;
}


.property-card__content h3 {
  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    1.3rem;
}


.property-card__content p {
  min-height:
    26px;

  margin-bottom:
    22px;

  font-size:
    0.88rem;
}


/* Textlink */

.text-link {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    8px;

  color:
    var(--color-anthracite);

  font-size:
    0.68rem;

  font-weight:
    600;

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;
}


.text-link::after {
  content:
    "→";

  color:
    var(--color-gold);

  font-size:
    1rem;

  transition:
    transform var(--transition);
}


.property-card:hover
.text-link::after {
  transform:
    translateX(4px);
}


/* ==========================================================
   11. CASARIVO VORTEILE
   ========================================================== */

.section--benefits {
  background:
    var(--color-cream);
}


.benefit-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  border-top:
    1px solid var(--color-border);

  border-bottom:
    1px solid var(--color-border);
}


.benefit-card {
  position:
    relative;

  padding:
    46px 32px;

  text-align:
    center;
}


.benefit-card:not(:last-child) {
  border-right:
    1px solid var(--color-border);
}


/* Icon-Platzhalter */

.benefit-card__icon {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  width:
    48px;

  height:
    48px;

  margin:
    0 auto 24px;

  color:
    var(--color-gold);

  border:
    1px solid var(--color-gold);

  border-radius:
    50%;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    1.5rem;

  font-weight:
    300;
}


.benefit-card h3 {
  font-size:
    0.98rem;

  font-weight:
    600;
}


.benefit-card p {
  margin-bottom:
    0;

  font-size:
    0.83rem;

  line-height:
    1.7;
}


/* ==========================================================
   12. ABSCHLUSS / CTA
   ========================================================== */

.home-cta {
  padding:
    115px 30px;

  background:
    var(--color-anthracite);

  color:
    var(--color-ivory);

  text-align:
    center;
}


.home-cta__inner {
  width:
    min(100%, 760px);

  margin:
    0 auto;
}


.home-cta h2 {
  color:
    var(--color-ivory);
}


.home-cta p {
  margin-bottom:
    34px;

  color:
    rgba(243, 239, 231, 0.72);
}


/* Doppel-A-artiges Gestaltungselement */

.home-cta__mark {
  position:
    relative;

  width:
    42px;

  height:
    38px;

  margin:
    0 auto 32px;
}


.home-cta__mark span {
  position:
    absolute;

  top:
    0;

  width:
    1px;

  height:
    42px;

  background:
    var(--color-gold);

  transform-origin:
    bottom;
}


.home-cta__mark span:first-child {
  left:
    13px;

  transform:
    rotate(24deg);
}


.home-cta__mark span:last-child {
  right:
    13px;

  transform:
    rotate(-24deg);
}


/* ==========================================================
   13. FOOTER
   ========================================================== */

.site-footer {
  padding:
    54px 30px;

  background:
    #232524;

  color:
    var(--color-ivory);
}


.site-footer__inner {
  display:
    grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items:
    center;

  width:
    min(100%, var(--content-width));

  margin:
    0 auto;
}


.site-footer__logo {
  width:
    150px;

  /* Falls die SVG die helle Logo-Variante enthält,
     diese Filter-Zeile später entfernen. */
}


.footer-nav {
  display:
    flex;

  gap:
    28px;
}


.footer-nav a {
  color:
    rgba(243, 239, 231, 0.72);

  font-size:
    0.72rem;

  letter-spacing:
    0.05em;

  transition:
    color var(--transition);
}


.footer-nav a:hover {
  color:
    var(--color-gold);
}


.site-footer__copyright {
  margin:
    0;

  color:
    rgba(243, 239, 231, 0.45);

  font-size:
    0.7rem;

  text-align:
    right;
}


/* ==========================================================
   14. TABLET
   ========================================================== */

@media (max-width: 1050px) {

  :root {
    --section-space:
      90px;
  }


  .main-nav__list {
    gap:
      24px;
  }


  .hero {
    grid-template-columns:
      1fr 1fr;
  }


  .hero__content {
    padding:
      70px 40px;
  }


  .property-grid {
    gap:
      20px;
  }


  .benefit-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }


  .benefit-card:nth-child(2) {
    border-right:
      0;
  }


  .benefit-card:nth-child(-n+2) {
    border-bottom:
      1px solid var(--color-border);
  }

}


/* ==========================================================
   15. MOBILE NAVIGATION / SMARTPHONE
   ========================================================== */

@media (max-width: 800px) {

  :root {
    --header-height:
      72px;

    --section-space:
      72px;
  }


  /* Header */

  .site-header__inner {
    width:
      calc(100% - 36px);
  }


  .site-header__logo {
    height:
      44px;
  }


  .main-nav {
    display:
      none;
  }


  .menu-toggle {
    display:
      block;
  }


  /* Wird später über script.js ein-/ausgeschaltet */

  .mobile-nav {
    position:
      absolute;

    top:
      var(--header-height);

    left:
      0;

    width:
      100%;

    padding:
      20px 30px 28px;

    background:
      var(--color-cream);

    border-top:
      1px solid var(--color-border);

    border-bottom:
      1px solid var(--color-border);
  }


  .mobile-nav.is-open {
    display:
      block;
  }


  .mobile-nav__list {
    display:
      flex;

    flex-direction:
      column;

    align-items:
      center;
  }


  .mobile-nav__list a {
    display:
      block;

    padding:
      13px 20px;

    color:
      var(--color-anthracite);

    font-size:
      0.82rem;

    letter-spacing:
      0.06em;
  }


  /* Hero
     Nur für Smartphones:
     Das Bild bleibt vollflächig im Hero und wird bewusst beschnitten,
     damit Logo, Überschrift und Buttons vollständig im Bild sitzen. */

  body .hero {
    position:
      relative;

    display:
      block;

    height:
      560px;

    min-height:
      560px;

    padding-top:
      var(--header-height);

    overflow:
      hidden;
  }


  body .hero .hero__image {
    position:
      absolute;

    top:
      var(--header-height);

    right:
      0;

    bottom:
      0;

    left:
      0;

    min-height:
      0;

    overflow:
      hidden;
  }


  body .hero .hero__image img {
    width:
      100%;

    height:
      100%;

    object-fit:
      cover;

    object-position:
      center 50%;
  }


  body .hero .hero__content {
    position:
      absolute;

    top:
      56%;

    left:
      50%;

    z-index:
      2;

    width:
      88%;

    min-height:
      0;

    padding:
      0 18px;

    transform:
      translate(-50%, -50%);

    text-align:
      center;
  }


  body .hero .hero__logo {
    width:
      min(250px, 68%);

    margin:
      0 auto 14px;
  }


  body .hero .hero__claim {
    max-width:
      330px;

    margin:
      0 auto 16px;

    font-size:
      0.86rem;

    line-height:
      1.42;

    letter-spacing:
      0.14em;
  }


  body .hero .hero__intro {
    max-width:
      320px;

    margin:
      0 auto 16px;

    font-size:
      1.05rem;

    line-height:
      1.4;
  }


  body .hero .hero__actions {
    display:
      flex;

    flex-direction:
      column;

    align-items:
      center;

    width:
      100%;

    gap:
      8px;
  }


  body .hero .hero__actions .button {
    width:
      min(100%, 300px);

    min-height:
      44px;

    padding:
      11px 16px;

    font-size:
      0.68rem;
  }


  /* Wohnungen */

  .property-grid {
    grid-template-columns:
      1fr;
  }


  .property-card__content p {
    min-height:
      0;
  }


  /* Vorteile */

  .benefit-grid {
    grid-template-columns:
      1fr;
  }


  .benefit-card {
    padding:
      38px 24px;
  }


  .benefit-card:not(:last-child) {
    border-right:
      0;

    border-bottom:
      1px solid var(--color-border);
  }


  /* Footer */

  .site-footer__inner {
    display:
      flex;

    flex-direction:
      column;

    gap:
      28px;

    text-align:
      center;
  }


  .footer-nav {
    flex-wrap:
      wrap;

    justify-content:
      center;
  }


  .site-footer__copyright {
    text-align:
      center;
  }

}


/* ==========================================================
   16. KLEINE SMARTPHONES
   ========================================================== */

@media (max-width: 480px) {

  body .hero {
    height:
      520px;

    min-height:
      520px;
  }


  body .hero .hero__content {
    top:
      57%;

    width:
      90%;

    padding:
      0 14px;
  }


  body .hero .hero__logo {
    width:
      min(220px, 66%);

    margin-bottom:
      12px;
  }


  body .hero .hero__claim {
    max-width:
      300px;

    margin-bottom:
      14px;

    font-size:
      0.8rem;

    letter-spacing:
      0.12em;
  }


  body .hero .hero__intro {
    max-width:
      290px;

    margin-bottom:
      14px;

    font-size:
      1rem;
  }


  body .hero .hero__actions {
    width:
      100%;
  }


  body .hero .hero__actions .button {
    width:
      min(100%, 285px);
  }


  .section {
    padding-right:
      20px;

    padding-left:
      20px;
  }


  .section-heading {
    margin-bottom:
      38px;
  }


  .home-cta {
    padding:
      85px 20px;
  }


  .footer-nav {
    gap:
      18px;
  }

}


/* ==========================================================
   17. REDUZIERTE BEWEGUNGEN
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior:
      auto;
  }


  *,
  *::before,
  *::after {
    transition-duration:
      0.01ms !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;
  }

}