/* C77 Immobilien – Stylesheet */

@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c232e;
  --ink-soft: #3a4250;
  --muted: #5f6673;
  --paper: #faf8f4;
  --sand: #f0ebe2;
  --line: #ddd5c7;
  --brass: #8a6a3e;
  --brass-dark: #6f5430;
  --white: #fff;

  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--ink-soft); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 24px;
}
.logo {
  display: flex; align-items: baseline; gap: .5rem;
  text-decoration: none; color: var(--ink);
}
.logo-mark { font-family: var(--serif); font-size: 1.9rem; letter-spacing: .04em; line-height: 1; }
.logo-text { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600;
  padding: .4rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--ink); }
.nav .btn { padding: .6rem 1.2rem; border-bottom: 0; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border: 0; padding-top: 20px; }
  .nav a { display: block; padding: 16px 0; font-size: 1.15rem; border: 0; }
  .nav .btn { text-align: center; padding: 14px; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink); color: var(--white) !important;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; border: 1px solid var(--ink); border-radius: var(--radius);
  padding: .9rem 1.6rem; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn-ghost { background: transparent; color: var(--ink) !important; }
.btn-ghost:hover { background: var(--ink); color: var(--white) !important; border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink) !important; border-color: var(--white); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: var(--white); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,24,32,.72) 0%, rgba(20,24,32,.35) 45%, rgba(20,24,32,0) 75%),
    linear-gradient(180deg, rgba(20,24,32,0) 40%, rgba(20,24,32,.6) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(48px, 9vh, 96px); }
.hero h1 { color: var(--white); max-width: 16ch; margin-bottom: .3em; }
.hero .eyebrow { color: #e8d6b8; }
.hero .lead { color: rgba(255,255,255,.92); max-width: 44ch; }

.page-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 50ch; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: rgba(255,255,255,.86); }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-media.landscape img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse-mobile .split-media { order: -1; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(28,35,46,.1); color: inherit; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { margin-bottom: 1.2em; }
.card-link { margin-top: auto; font-weight: 600; color: var(--brass-dark); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 14px; height: 8px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}
.section-ink .checklist li { border-color: rgba(255,255,255,.16); }
.section-ink .checklist li::before { border-color: #d3b98e; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid rgba(255,255,255,.25); padding-top: 22px; }
.steps li::before {
  content: "0" counter(step); display: block;
  font-family: var(--sans); font-weight: 300; font-size: 2rem; color: #d3b98e; margin-bottom: .4rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: .4em; }
.steps p { font-size: 1rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { border-top: 2px solid var(--brass); padding-top: 20px; }
.value p { margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* Quote */
.quote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; color: var(--ink);
  margin: 0; max-width: 28ch;
}
.quote-author { margin-top: 1.4rem; font-size: 1rem; color: var(--muted); }

.badge { display: flex; align-items: center; gap: 20px; margin-top: 2rem; }
.badge img { width: 96px; height: 96px; flex: none; }
.badge p { margin: 0; font-size: 1rem; color: var(--muted); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-family: var(--sans); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--brass-dark); }

/* CTA band */
.cta { text-align: center; }
.cta h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }

/* Legal text */
.legal h2 { font-size: 1.6rem; margin-top: 2.4em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.8em; }
.legal address { font-style: normal; margin-bottom: 1.1em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 1rem; margin-bottom: 1.2em; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.todo { background: #fff3cd; padding: 0 .3em; border-radius: 2px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 32px; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid address { font-style: normal; }
.site-footer .logo { color: var(--white); margin-bottom: 1rem; }
.site-footer .logo-text { color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

@media print {
  .site-header, .site-footer, .btn-row { display: none; }
  body { background: #fff; padding: 0; }
}

/* Blog */
.nav a[aria-current="true"] { border-bottom-color: var(--brass); }
.section-line { border-top: 1px solid var(--line); }
.jump-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 1.6rem; }
.jump-links a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.card-meta { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: .7rem; }
.post-card h3 { margin-bottom: .5em; }
.post-card picture { display: block; }
.more-link { margin: 2rem 0 0; font-weight: 600; }
.empty { max-width: 60ch; }

.post-hero { padding-bottom: clamp(32px, 5vw, 48px); }
.post-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: none; }
.back-link { display: inline-block; font-size: 1rem; font-weight: 600; text-decoration: none; margin-bottom: 2rem; }
.post-meta { font-size: 1rem; color: var(--muted); margin: 0; }
.post-cover { margin-bottom: clamp(40px, 6vw, 72px); }
.post-cover img { width: 100%; max-height: 720px; object-fit: cover; border-radius: var(--radius); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; margin: 0 0 clamp(32px, 5vw, 48px); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }

.prose { padding-bottom: clamp(40px, 6vw, 64px); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass); }
.prose blockquote { margin: 1.8em 0; padding: 20px 24px; background: var(--sand); border-left: 3px solid var(--brass); border-radius: var(--radius); }
.prose blockquote p:last-child { margin: 0; }
.prose strong { color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: clamp(48px, 7vw, 88px); }
.gallery-item { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(20, 24, 32, .9); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox button { position: fixed; top: 12px; right: 12px; background: var(--white); color: var(--ink); border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; }

.note { font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
.more-posts { border-top: 1px solid var(--line); }
