/* Sofiwone – Layout: ruhiges, linksbündiges Raster mit viel Weissraum.
   Warmes Weiss und Sand als Grund, Moosgrün als Akzent, ein dunkler Abschnitt für Regeln. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  /* Farbe */
  --paper: #F8F5EF;      /* warmes Weiss */
  --sand-1: #EFE8DB;     /* heller Sand */
  --sand-2: #E4D9C4;     /* Sand */
  --sand-3: #BFA77D;     /* dunkler Sand, nur für Linien und Details */
  --ink: #232923;        /* Text */
  --muted: #555D54;      /* Sekundärtext */
  --moss: #43543D;       /* Moosgrün, Akzent */
  --moss-2: #53664C;
  --moss-deep: #2F3B2C;  /* dunkler Abschnitt, Footer */
  --sage: #61705C;       /* Labels */
  --line: #DCD2BF;
  --on-dark: #F8F5EF;
  --on-dark-muted: #CFC8B8;
  --on-dark-line: rgba(248, 245, 239, 0.2);
  /* Schrift */
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* Raster */
  --wrap: 72rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--sand-2); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; line-height: 1.25; }
p { margin: 0; }

.wrap { max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin: 0; }
.dark .eyebrow { color: var(--sand-2); }
.lead { font-size: 1.17rem; line-height: 1.6; max-width: 38em; color: var(--muted); }
.muted { color: var(--muted); }
.prose { max-width: 38em; display: grid; gap: 1rem; }
.prose p { color: var(--muted); }
.section-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); align-content: start; }
.section-head.mb-2 { margin-bottom: 1.75rem; }
.fig { margin: 0; min-width: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--moss-deep); color: var(--on-dark); padding: 0.6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.35rem; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  border: 1px solid var(--moss); transition: background-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--moss); color: var(--on-dark); }
.btn-primary:hover { background: var(--moss-2); }
.btn-ghost { background: transparent; color: var(--moss); }
.btn-ghost:hover { background: var(--sand-1); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.wordmark { font-family: var(--display); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; color: var(--moss-deep); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { list-style: none; display: flex; gap: 1.3rem; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-size: 0.94rem; color: var(--ink); padding: 0.4rem 0; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--moss); text-decoration: underline; }
.nav .btn { min-height: 2.6rem; padding: 0.5rem 1.05rem; font-size: 0.94rem; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
    font: 600 0.95rem var(--sans); color: var(--ink); cursor: pointer;
  }
  .nav-toggle .bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter-r) 1.5rem var(--gutter);
    max-height: calc(100vh - 4.5rem); overflow-y: auto;
  }
  .js .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { min-height: 3rem; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .nav { position: static; padding: 0 0 1rem; border: 0; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 1.2rem; }
  .no-js .nav ul a { border: 0; }
  .no-js .nav-toggle { display: none; }
}

/* Einstieg */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/contours.svg") left -35% top -30% / 1100px auto no-repeat;
  opacity: 0.45;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-text { display: grid; gap: 1.4rem; min-width: 0; }
.hero-text h1 em { font-style: italic; color: var(--moss); }
.hero-sub { font-family: var(--display); font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.35; color: var(--ink); max-width: 26em; }
.hero-body { color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.hero-points { list-style: none; margin: 0.5rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-size: 0.95rem; font-weight: 600; color: var(--moss); }
.hero-points li { display: flex; align-items: center; gap: 0.55rem; }
.hero-points li::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--sand-3); }
.hero-figure { margin: 0; min-width: 0; }
.hero-figure .photo { aspect-ratio: 4 / 5; max-height: 38rem; }
.photo { position: relative; background: var(--sand-1); border-radius: var(--radius); overflow: hidden; }
.photo picture { display: contents; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.45; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure .photo { aspect-ratio: 3 / 2; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Sektionen */
.section { padding-block: var(--section); }
.section.alt { background: var(--sand-1); }
.section.dark { background: var(--moss-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.section.dark .lead { color: var(--on-dark-muted); }

/* Konzept */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, 1.15fr) 7.5rem minmax(0, 1fr); align-items: stretch; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.party { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.6rem; display: grid; gap: 0.8rem; align-content: start; min-width: 0; }
.party .role { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }
.party h3 { font-size: 1.45rem; }
.party ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; font-size: 0.97rem; color: var(--muted); }
.party li { padding-left: 1rem; position: relative; }
.party li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.4rem; height: 1px; background: currentColor; }
.party.operator { background: var(--moss); border-color: var(--moss); color: var(--on-dark); }
.party.operator .role { color: var(--sand-2); }
.party.operator ul { color: var(--on-dark-muted); }
.link-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 0 0.5rem; text-align: center; font-size: 0.78rem; line-height: 1.35; color: var(--sage); }
.link-arrow svg { width: 100%; height: 14px; overflow: visible; }
.link-arrow .v { display: none; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .link-arrow { flex-direction: row; justify-content: flex-start; padding: 0.75rem 0 0.75rem 1.5rem; gap: 0.9rem; text-align: left; }
  .link-arrow .h { display: none; }
  .link-arrow .v { display: block; width: 14px; height: 2.75rem; flex: none; }
}

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 3vw, 2.5rem); counter-reset: pillar; }
.pillars li { counter-increment: pillar; display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--ink); min-width: 0; }
.pillars li::before { content: "0" counter(pillar); font: 500 0.85rem var(--sans); letter-spacing: 0.1em; color: var(--sage); }
.pillars h3 { font-size: 1.35rem; }
.pillars p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Vorteile */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; }
.benefits li { padding: 1.5rem 0 1.9rem; border-top: 1px solid var(--line); display: grid; gap: 0.55rem; align-content: start; min-width: 0; }
.benefits h3 { font-size: 1.35rem; }
.benefits p { color: var(--muted); }
@media (max-width: 960px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr; } }

/* Gesuchte Immobilien */
.search-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.search-grid .section-head { margin-bottom: 0; }
@media (max-width: 960px) { .search-grid { grid-template-columns: 1fr; } }
.kinds { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.kinds li { border: 1px solid var(--line); background: var(--sand-1); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.94rem; }
.search-side { display: grid; gap: 1rem; min-width: 0; padding-top: 0.25rem; }
.search-side h3 { font-size: 1.3rem; }
.criteria { margin: 0; padding: 0; list-style: none; display: grid; }
.criteria li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.criteria li:last-child { border-bottom: 1px solid var(--line); }
.criteria strong { font-weight: 600; }
.criteria span { color: var(--muted); }
@media (max-width: 560px) { .criteria li { grid-template-columns: 1fr; gap: 0.15rem; } }
.honest { margin-top: 0.75rem; padding: 1.1rem 1.3rem; border-left: 2px solid var(--moss); background: var(--sand-1); }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about .portrait .photo { aspect-ratio: 461 / 576; max-width: 25rem; }
.about-text { min-width: 0; }
.about-facts { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 34rem; }
.about-facts div { border-top: 1px solid var(--ink); padding-top: 0.9rem; display: grid; gap: 0.2rem; }
.about-facts dt { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--moss); }
.about-facts dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
.values { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.values li { font-size: 0.9rem; font-weight: 600; color: var(--moss); border: 1px solid var(--sand-3); border-radius: 999px; padding: 0.3rem 0.85rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about .portrait .photo { max-width: 20rem; }
}

/* Referenzen */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
.gallery .photo { aspect-ratio: 3 / 2; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

/* Regeln (dunkel) */
.section.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12;
  background: url("../img/contours.svg") right -25% bottom -40% / 1300px auto no-repeat;
  filter: invert(1);
}
.section.dark > .wrap { position: relative; }
.ops-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ops-layout .section-head { margin-bottom: 0; }
@media (max-width: 960px) { .ops-layout { grid-template-columns: 1fr; } }
.ops { margin: 0; display: grid; }
.ops > div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1.25rem; padding: 1.2rem 0; border-top: 1px solid var(--on-dark-line); }
.ops > div:last-child { border-bottom: 1px solid var(--on-dark-line); }
.ops dt { font-family: var(--display); font-size: 1.25rem; line-height: 1.3; }
.ops dd { margin: 0; color: var(--on-dark-muted); }
@media (max-width: 600px) { .ops > div { grid-template-columns: 1fr; gap: 0.35rem; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact-intro { display: grid; gap: 1.2rem; align-content: start; min-width: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
@media (max-width: 480px) { .contact-actions .btn { flex: 1 1 100%; } }
.contact-panel { background: var(--sand-1); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.25rem); display: grid; gap: 1.75rem; min-width: 0; }
.contact-card { font-style: normal; display: grid; gap: 0.3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-card strong { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.contact-card span { color: var(--muted); }
.contact-card a { color: var(--ink); }
.contact-help { display: grid; gap: 0.9rem; }
.contact-help h3 { font-size: 1.15rem; }
.contact-help h3 + ul, .contact-help h3 + ol { margin-bottom: 0.6rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1.25rem; font-size: 0.95rem; color: var(--muted); }
.checklist li { padding-left: 1.2rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.55rem; height: 0.3rem; border-left: 1.5px solid var(--moss); border-bottom: 1.5px solid var(--moss); transform: rotate(-45deg); }
@media (max-width: 520px) { .checklist { grid-template-columns: 1fr; } }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; counter-reset: ms; font-size: 0.95rem; }
.mini-steps li { counter-increment: ms; display: flex; gap: 0.75rem; align-items: baseline; }
.mini-steps li::before { content: counter(ms); flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--moss); color: var(--moss); font: 500 0.85rem var(--sans); transform: translateY(0.1rem); }

/* Footer */
.site-footer { background: var(--moss-deep); color: var(--on-dark-muted); padding-block: 3.5rem 2.5rem; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .wordmark { color: var(--on-dark); }
.site-footer a { color: var(--on-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer h2 { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand-2); margin-bottom: 0.75rem; }
.footer-about { margin-top: 0.75rem; max-width: 26em; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--on-dark-line); font-size: 0.85rem; display: grid; gap: 0.4rem; }
.footer-plain { margin-top: 0; border-top: 0; padding-top: 0; }
.site-footer:has(.footer-plain) { padding-block: 2rem; }

/* Rechtsseiten */
.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal .wrap { max-width: calc(46rem + 32px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.8rem; }
.legal p, .legal ul { margin: 0 0 1rem; color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.legal .stand { font-size: 0.9rem; color: var(--sage); margin-bottom: 2rem; }

.simple-page { min-height: 60vh; display: grid; align-content: center; padding-block: clamp(4rem, 10vw, 7rem); }
.simple-page .wrap { display: grid; gap: 1.25rem; max-width: calc(40rem + 32px); }
