/* =========================================================
   Design-System "Himmel über Berlin"
   Struktur nach Referenz (juliatrost.de), Farben & Schriften neu:
   abgeleitet aus den Wohnungsfotos – Himmelblau, Wolkenweiß,
   Petrol/Türkis (zwischen Himmel und Baumgrün), warmes Eichenholz.
   ========================================================= */

:root {
  /* ---------- Farben ---------- */
  --c-bg:           #f5faf9;  /* Nebelweiß – Seitenhintergrund */
  --c-bg-alt:       #e9f3f2;  /* zarter Türkis-Hauch – alternierende Sektionen */
  --c-surface:      #ffffff;
  --c-ink:          #16323a;  /* tiefes Petrol – Text & dunkle Blöcke (wie der Stahl der Treppe) */
  --c-muted:        #52666b;  /* Sekundärtext, 5.7:1 auf --c-bg */
  --c-line:         #d6e7e5;

  --c-primary:       #1f7a78; /* Petrol-Türkis – Buttons, Akzente, 5.1:1 mit Weiß */
  --c-primary-hover: #17605f;
  --c-primary-soft:  #d9efec; /* Chips, Hover-Flächen */
  --c-sky:           #3f7fb8; /* Himmelblau – zweite Verlaufsfarbe */
  --c-sky-soft:      #dcebf7;
  --c-oak:           #b7844f; /* Eichenholz – nur dekorativ (Linien, Icons), nicht für Text */

  --grad-hero: linear-gradient(100deg, rgba(245,250,249,.97) 0%, rgba(245,250,249,.88) 38%, rgba(245,250,249,.35) 70%, rgba(245,250,249,.1) 100%);
  --grad-brand: linear-gradient(120deg, var(--c-primary), var(--c-sky));

  /* ---------- Typografie ---------- */
  --font-display: 'Fraunces', Georgia, serif;     /* H1 + Logo, leicht & kursiv */
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --fs-hero:  clamp(2.6rem, 6.4vw, 4.6rem);
  --fs-h2:    clamp(1.8rem, 3.8vw, 2.6rem);
  --fs-h3:    1.15rem;
  --fs-lead:  1.14rem;
  --fs-body:  1rem;
  --fs-small: .93rem;
  --fs-label: .76rem;

  --lh-body: 1.7;
  --lh-heading: 1.18;
  --ls-heading: -.015em;
  --ls-label: .16em;

  /* ---------- Abstände ---------- */
  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 40px; --space-8: 56px;
  --section-y: 96px;
  --container: 1140px;
  --gutter: 24px;
  --grid-gap: 24px;
  --split-gap: 64px;

  /* ---------- Radien ---------- */
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 100px;
  --r-arch: 999px 999px 24px 24px;  /* Bogenfenster – Porträt & Fotos */

  /* ---------- Schatten (petrol-getönt) ---------- */
  --shadow-card:  0 22px 50px -32px rgba(22,50,58,.28);
  --shadow-btn:   0 14px 30px -14px rgba(31,122,120,.55);
  --shadow-photo: 0 40px 80px -40px rgba(22,50,58,.45);

  --ease: .25s;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
       color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: var(--lh-heading);
                 letter-spacing: var(--ls-heading); color: var(--c-ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: var(--c-bg-alt); }
.hl { color: var(--c-primary); font-family: var(--font-display); font-style: italic; font-weight: 500; }
.muted { color: var(--c-muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--c-primary); color: #fff; font-weight: 600; font-size: .98rem;
       padding: 15px 30px; border-radius: var(--r-pill); border: 0; cursor: pointer;
       box-shadow: var(--shadow-btn); transition: transform var(--ease), background var(--ease), box-shadow var(--ease); }
.btn:hover { transform: translateY(-2px); background: var(--c-primary-hover); }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--c-primary); border: 1.5px solid var(--c-line); box-shadow: none; }
.btn--ghost:hover { background: #fff; border-color: var(--c-primary); }
.btn--light { background: #fff; color: var(--c-ink); box-shadow: none; }
.btn--light:hover { background: var(--c-primary-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--c-ink); color: #fff;
             padding: 10px 18px; border-radius: var(--r-sm); transition: top var(--ease); }
.skip-link:focus { top: 12px; }
.section--flush { padding-bottom: 0; }
.btn--sm { padding: 10px 20px; font-size: .88rem; box-shadow: none; }
.crisis a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot-bottom small { font-size: inherit; }
address { font-style: normal; }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--c-primary); font-weight: 700;
           font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--c-oak); }
.center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: var(--c-oak); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(245,250,249,.82);
       backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--c-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.3rem;
        font-weight: 500; letter-spacing: .01em; line-height: 1.2; }
.logo-mark { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
             box-shadow: 0 6px 16px -8px rgba(22,50,58,.5); }
.logo small { display: block; font-family: var(--font-body); font-size: .66rem; letter-spacing: .2em;
              text-transform: uppercase; color: var(--c-muted); margin-top: -2px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn) { font-size: .9rem; color: var(--c-muted); transition: color var(--ease); }
.nav-links a:not(.btn):hover { color: var(--c-primary); }
.nav-links .btn { padding: 10px 20px; font-size: .88rem; box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--c-ink); cursor: pointer; }
.mobile-menu { display: none; padding: 6px var(--gutter) 18px; border-top: 1px solid var(--c-line); }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink); }
.mobile-menu.open { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(90vh, 760px); display: flex; align-items: center;
        padding: 72px 0 0; background: var(--c-sky-soft) url("bilder/wohnung-0032.jpg") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }
.hero .container { position: relative; z-index: 2; width: 100%; align-self: stretch; display: grid;
                   grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero-text { align-self: center; padding-bottom: 72px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-hero); line-height: 1.05;
           letter-spacing: -.01em; margin-top: 20px; }
.hero h1 em { color: var(--c-primary); font-weight: 400; white-space: nowrap; }
.hero .subline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem);
                 color: var(--c-ink); opacity: .85; margin-top: 10px; }
.hero .lead { color: var(--c-muted); font-size: var(--fs-lead); max-width: 480px; margin: 24px 0 34px; }
.hero .lead strong { color: var(--c-ink); font-weight: 600; }

/* Porträt im Bogenfenster – rechts unten, wie auf der Referenz */
.portrait { position: relative; justify-self: end; width: min(100%, 400px); aspect-ratio: 4 / 5.2;
            border-radius: 999px 999px 0 0; overflow: hidden; border: 8px solid rgba(255,255,255,.85);
            border-bottom: 0; box-shadow: var(--shadow-photo);
            background: linear-gradient(180deg, var(--c-sky-soft), var(--c-primary-soft)); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait .ph { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px;
                color: var(--c-primary); font-size: .9rem; padding: 24px; }
.portrait .ph svg { width: 56px; height: 56px; margin: 0 auto; opacity: .55; }

/* ---------- Sektionskopf ---------- */
.sec-head { max-width: 720px; margin: 0 0 52px; }
.sec-head.center { text-align: center; margin: 0 auto 52px; }
.sec-head h2 { font-size: var(--fs-h2); margin-top: 16px; }
.sec-head p:not(.eyebrow) { color: var(--c-muted); margin-top: 16px; font-size: 1.06rem; }

/* ---------- Karten ---------- */
.grid-3 { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
        padding: 32px 28px; box-shadow: var(--shadow-card); transition: transform var(--ease); }
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.card p { color: var(--c-muted); font-size: .97rem; }
[id] { scroll-margin-top: 90px; }
.icon { width: 50px; height: 50px; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary);
        display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; }

/* ---------- Split (Text + Foto) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--split-gap); align-items: center; }
.split h2 { font-size: var(--fs-h2); margin: 16px 0 18px; }
.split p:not(.eyebrow) { color: var(--c-muted); margin-bottom: 16px; font-size: 1.04rem; }
.photo-arch { border-radius: var(--r-arch); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-photo);
              aspect-ratio: 3 / 4; max-width: 460px; }
.photo-arch img { width: 100%; height: 100%; object-fit: cover; }
.split .media { display: flex; justify-content: center; }

/* ---------- Schritte ---------- */
.steps { list-style: none; margin-top: 26px; counter-reset: s; }
.steps li { position: relative; padding: 0 0 26px 62px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px;
                    border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center;
                    font-family: var(--font-heading); font-weight: 700; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 6px;
                                    width: 1.5px; background: var(--c-oak); opacity: .5; }
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; padding-top: 8px; }
.steps p { margin: 0; font-size: .98rem; }

/* ---------- Checkliste ---------- */
.checklist { list-style: none; margin-top: 10px; }
.checklist li { position: relative; padding-left: 36px; margin-bottom: 14px; font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
                        background: var(--c-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }

/* ---------- Fotoband "Über den Dächern" ---------- */
.skyline { position: relative; min-height: 460px; display: flex; align-items: flex-end; margin: 0 var(--gutter);
           border-radius: var(--r-xl); overflow: hidden; color: #fff;
           background: var(--c-ink) url("bilder/wohnung-0033.jpg") center 40%/cover no-repeat; }
.skyline::before { content: ""; position: absolute; inset: 0;
                   background: linear-gradient(0deg, rgba(22,50,58,.85) 0%, rgba(22,50,58,.35) 45%, rgba(22,50,58,0) 75%); }
.skyline .inner { position: relative; padding: 48px clamp(28px, 6vw, 72px); max-width: 720px; }
.skyline-title { font-weight: 400; font-family: var(--font-display); font-style: italic; font-size: clamp(1.7rem, 3.6vw, 2.6rem);
                      line-height: 1.2; }
.skyline p { margin-top: 14px; opacity: .88; }

/* ---------- Themen-Chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin: 0 auto; }
.chip { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 11px 20px;
        font-weight: 500; font-size: .96rem; transition: border-color var(--ease), background var(--ease); }
.chip:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }

/* ---------- CTA-Block ---------- */
.cta { position: relative; overflow: hidden; margin: 0 var(--gutter); border-radius: var(--r-xl);
       background: var(--c-ink); color: #fff; text-align: center; padding: 72px 32px; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .22;
               background: url("bilder/wohnung-0032.jpg") center/cover; }
.cta > * { position: relative; }
.cta .eyebrow { color: #a8dcd6; }
.cta h2 { color: #fff; font-size: var(--fs-h2); max-width: 640px; margin: 16px auto 14px; }
.cta h2 .hl { color: #a8dcd6; }
.cta p:not(.eyebrow):not(.cta-mail) { color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 30px; }
.cta-mark { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
            box-shadow: 0 0 0 1.5px rgba(233,197,90,.55), 0 18px 36px -14px rgba(0,0,0,.6); }
.cta .cta-mail { margin: 18px auto 0; font-size: .92rem; }
.cta .cta-mail a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
footer { background: #fff; border-top: 1px solid var(--c-line); padding: 60px 0 32px; margin-top: 72px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-mark { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; }
.foot-brand p { color: var(--c-muted); max-width: 320px; font-size: .95rem; margin-top: 8px; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal-page { max-width: 760px; padding: 72px var(--gutter) 24px; }
.legal-page h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); margin: 16px 0 36px; }
.legal-page h2 { font-size: 1.15rem; margin: 36px 0 10px; }
.legal-page p, .legal-page li { color: var(--c-muted); margin-bottom: 10px; }
.legal-page address { font-style: normal; color: var(--c-ink); line-height: 1.8; }
.legal-page a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-page ul { padding-left: 20px; }
.draft { background: #fff8e1; border: 1.5px dashed #d9a93a; border-radius: var(--r-md); padding: 18px 20px; margin: 18px 0; }
.draft > strong { display: block; color: #7a5200; margin-bottom: 8px; font-size: .9rem; }
.draft h3 { font-size: 1rem; margin: 14px 0 6px; }
.draft-inline { background: #fff1c2; color: #7a5200; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.foot-col h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 14px; }
.foot-col a, .foot-col span { display: block; color: var(--c-muted); font-size: .95rem; margin-bottom: 10px; }
.foot-col a:hover { color: var(--c-primary); }
.crisis { background: var(--c-bg-alt); border-radius: var(--r-md); padding: 16px 20px; font-size: .9rem; color: var(--c-muted); margin-bottom: 28px; }
.crisis strong { color: var(--c-ink); }
.foot-bottom { border-top: 1px solid var(--c-line); padding-top: 22px; display: flex; justify-content: space-between;
               flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--c-muted); }
.foot-bottom .legal { display: flex; gap: 20px; }

/* ---------- Einblenden beim Scrollen (nur mit JS aktiv) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --section-y: 64px; --split-gap: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .split { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .photo-arch { max-width: 360px; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; padding: 48px 0 0; text-align: center; }
  .hero::before { background: linear-gradient(180deg, rgba(245,250,249,.95) 0%, rgba(245,250,249,.82) 55%, rgba(245,250,249,.4) 100%); }
  .hero .container { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { padding-bottom: 0; }
  .hero .lead { margin: 20px auto 28px; }
  .hero .btn-row { justify-content: center; }
  .portrait { justify-self: center; width: min(78%, 320px); }
  .nav-inner { gap: 12px; }
  .logo { font-size: 1.12rem; gap: 10px; }
  .logo-mark { width: 38px; height: 38px; }
  .logo small { font-size: .6rem; letter-spacing: .14em; }
  .skyline { min-height: 380px; margin: 0 12px; }
  .cta { margin: 0 12px; padding: 56px 22px; }
}
