/* =========================================================
   Klein Immobilien — Stylesheet
   Schriften werden lokal geladen (keine Verbindung zu Google).
   ========================================================= */

/* ---------- Schriften ---------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/karla-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/karla-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/karla-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/karla-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/karla-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/karla-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farben und Maße ---------- */
:root {
  /* Flächen — bewusst weit gespreizt, damit die Abschnitte sich absetzen */
  --paper: #FAF6EE;
  --sand: #EFE6D3;
  --oat: #DFD4BA;
  --forest: #2C3520;

  /* Schrift */
  --ink: #231C14;
  --body: #423929;
  --muted: #5E5340;
  --on-forest: #E4DAC4;

  /* Linien: --line trennt Inhalte, --line-strong umrandet Bedienelemente */
  --line: #BFAC80;
  --line-strong: #82704F;

  /* Akzente */
  --olive: #47522D;
  --olive-dark: #36401F;
  --walnut: #6B4E33;

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --gutter: clamp(24px, 5vw, 80px);
  --wrap: 1280px;
  --section-y: clamp(56px, 7vw, 96px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--ink); }
a:hover { color: var(--olive); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--walnut);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--olive);
  color: var(--paper);
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--olive-dark); color: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 6px;
  min-height: 44px;
}
.arrowlink:hover { color: var(--olive-dark); border-color: var(--olive-dark); }

/* ---------- Kopfzeile ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 27px);
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 15px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(48px, 8vw, 96px);
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 78px);
  line-height: 1.05;
  margin-block: 28px;
  max-width: 1140px;
}
.hero__cta { display: none; margin-top: 8px; }
.hero h1 em {
  font-style: italic;
  color: var(--olive);
}
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.hero__foot p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--body);
  max-width: 58ch;
}

/* ---------- Tätigkeitsfelder ---------- */
.doing {
  background: var(--sand);
  padding-block: var(--section-y);
}
.doing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.doing__item {
  border-top: 2px solid var(--walnut);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doing__item h2 { font-size: clamp(26px, 2.6vw, 34px); }
.doing__item p { color: var(--body); }

/* ---------- Ankaufsprofil ---------- */
.profile { padding-block: var(--section-y); }
.profile h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  margin-top: 18px;
  max-width: 20ch;
}
.profile__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 44px;
}
.speclist { display: flex; flex-direction: column; }
.speclist__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.speclist__row:last-child { border-bottom: none; }
.speclist__row dt { color: var(--muted); margin: 0; flex-shrink: 0; }
.speclist__row dd { margin: 0; text-align: right; }

.wanted {
  background: var(--sand);
  border-left: 3px solid var(--olive);
  padding: clamp(24px, 3vw, 40px);
}
.wanted h3 { font-size: clamp(22px, 2.2vw, 28px); }
.wanted ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wanted li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--body);
  line-height: 1.55;
}
.wanted li svg { flex-shrink: 0; margin-top: 4px; }
.wanted__note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Standorte ---------- */
.where {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.where h3 { font-size: clamp(26px, 2.8vw, 32px); }
.where__grid {
  display: grid;
  grid-template-columns: 280px 280px minmax(0, 1fr);
  grid-template-areas:
    "by   bw map"
    "more bw map";
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 32px;
  align-items: start;
  margin-top: 28px;
}
.where__block { display: flex; flex-direction: column; gap: 14px; }
.where__block--by { grid-area: by; }
.where__block--bw { grid-area: bw; }
.where__block--more {
  grid-area: more;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.map-cell { grid-area: map; }
.citylist { display: flex; flex-direction: column; }
.citylist__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 11px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: color .15s;
}
.citylist__item:last-child { border-bottom: none; }
.citylist__item span:last-child { color: var(--muted); transition: color .15s; }
.citylist__item:hover,
.citylist__item.is-active { color: var(--olive); }
.citylist__item.is-active span:first-child { font-weight: 500; }
.citylist__item:hover span:last-child,
.citylist__item.is-active span:last-child { color: var(--olive); }
.where__more-lead { line-height: 1.5; }
.where__more-note { font-size: 15px; color: var(--muted); }

/* Karte */
.map-cell { scroll-margin-top: 96px; }
.map { width: 100%; height: auto; display: block; }
.map .state {
  fill: #EFE6D3;
  stroke: var(--walnut);
  stroke-width: 3;
  stroke-linejoin: round;
  transition: fill .2s;
}
.map .state[data-state="bw"] { fill: #DFD4BA; }
.map .state.is-hover { fill: #CDBE9C; }
.map .city { cursor: pointer; }
.map .city__radius {
  fill: var(--olive);
  fill-opacity: 0;
  stroke: var(--olive);
  stroke-opacity: 0;
  stroke-width: 1.5;
  transition: fill-opacity .2s, stroke-opacity .2s;
}
.map .city__hit { fill: transparent; }
.map .city__dot {
  fill: var(--olive);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .15s, fill .15s, fill-opacity .15s;
}
.map .city__label {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 500;
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 6;
  paint-order: stroke;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.map.has-active .city__dot { fill-opacity: .45; }
.map .city.is-active .city__radius { fill-opacity: .14; stroke-opacity: .9; }
.map .city.is-active .city__dot { fill: var(--olive-dark); fill-opacity: 1; transform: scale(1.35); }
.map .city.is-active .city__label { opacity: 1; }
.map .city:hover .city__dot { fill: var(--olive-dark); fill-opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .map *, .citylist__item, .citylist__item span { transition: none; }
}

/* ---------- Kontakt und Formular ---------- */
.contact {
  background: var(--oat);
  border-top: 1px solid var(--line-strong);
  padding-block: var(--section-y);
}
.contact__lead {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  max-width: 22ch;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 40px;
}

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--body); }
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--olive);
  outline: 2px solid var(--olive);
  outline-offset: 1px;
}
/* Adressvorschläge */
.field--vorschlag { position: relative; }
.vorschlaege {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 15;
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  max-height: 264px;
  overflow-y: auto;
}
.vorschlaege[hidden] { display: none; }
.vorschlaege li {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  color: var(--body);
  cursor: pointer;
}
.vorschlaege li:last-child { border-bottom: none; }
.vorschlaege li[aria-selected="true"] {
  background: var(--sand);
  color: var(--olive-dark);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--olive);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__hint { font-size: 14px; color: var(--muted); }

.person {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.person__photo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--sand);
  margin-bottom: 8px;
}
.person__name { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); }
.person__role { color: var(--muted); font-size: 16px; }
.person__lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  font-size: 17px;
}
.person__lines a { text-decoration: none; word-break: break-word; min-height: 44px; display: flex; align-items: center; }

.notice {
  padding: 16px 20px;
  border-left: 3px solid var(--olive);
  background: var(--paper);
  margin-bottom: 28px;
}
.notice--error { border-left-color: #8F3A26; }

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--forest);
  padding-block: 48px;
  font-size: 15px;
  color: var(--on-forest);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--paper);
  display: block;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.site-footer a { color: var(--on-forest); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--on-forest); }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.legal { padding-block: var(--section-y); }
.legal h1 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 12px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 40px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--body); max-width: 72ch; }
.legal p + p { margin-top: 14px; }
.legal ul { max-width: 72ch; padding-left: 20px; }
.legal__todo {
  background: var(--sand);
  border-left: 3px solid var(--walnut);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--body);
  max-width: 72ch;
}

/* ---------- Umbrüche ---------- */
@media (max-width: 1100px) {
  .where__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "map  map"
      "by   bw"
      "more bw";
  }
  .map { max-width: 620px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .site-header__inner { position: relative; min-height: 72px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
  }
  .header-actions .btn { display: none; }
  .hero__cta { display: inline-flex; align-self: flex-start; }
  .doing__grid { grid-template-columns: 1fr; }
  .profile__cols { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .where__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "map" "by" "bw" "more";
  }
  .map .city__dot { transform: scale(1.6); }
  .map .city.is-active .city__dot { transform: scale(2.1); }
  .map .city__hit { r: 44px; }
  .map .city__label { font-size: 40px; stroke-width: 9; }
}

@media (max-width: 620px) {
  .speclist__row { flex-direction: column; gap: 4px; }
  .speclist__row dd { text-align: left; }
  .form__row { grid-template-columns: 1fr; }
  .hero__foot { align-items: flex-start; }
}
