/* arbeitsraum.berlin – Andreas Mehlhorn */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --text: #1F2426;
  --text-soft: #45494A;
  --text-muted: #555E60;
  --on-dark: #FFFFFF;
  --on-dark-soft: #D3D8D9;

  --white: #FFFFFF;
  --light: #F2F4F4;
  --line: #E3E6E6;
  --line-strong: #D3D8D9;
  --placeholder: #D9DEDF;

  --dark: #4A5154;      /* Hero, Unabhängig, Kontakt */
  --darker: #2B3133;    /* Footer */

  --highlight: #F2B33D; /* Orange: nur Hervorhebung */
  --link: #2F6CA8;      /* Blau: alles Klickbare */
  --link-hover: #24598C;

  --radius: 3px;
  --max: 1240px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
iframe { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 14px; padding-bottom: 14px;
}
.logo img { height: 38px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--link); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 16px 26px; border-radius: 2px; line-height: 1.2;
  background: var(--link); color: var(--white); border: 1.5px solid var(--link);
}
.btn:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--white); }
.btn--small { padding: 12px 20px; font-size: 14px; }
.btn--outline-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn--outline-light:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.nav .btn { color: var(--white); padding: 12px 20px; }

/* ---------- Bausteine ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--highlight); flex: none; }
.on-dark .eyebrow { color: var(--on-dark-soft); }

.marker { background-image: linear-gradient(transparent 58%, var(--highlight) 58%); }
.on-dark .marker-text { color: var(--highlight); }

.ph {
  background: var(--placeholder); border-radius: var(--radius);
  display: flex; align-items: flex-end; padding: 16px;
  font-size: 13px; color: var(--text-muted);
}
.on-dark .ph { background: rgba(255,255,255,0.10); color: var(--on-dark-soft); }

.todo { color: var(--text-muted); }

.section { padding: 110px 0; }
.section--light { background: var(--light); }
.on-dark { background: var(--dark); color: var(--on-dark); }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > .media { flex: 1 1 420px; min-width: 0; }
.split > .copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.split--reverse { flex-wrap: wrap-reverse; }

.h-section { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
.lead { font-size: 18px; color: var(--text-soft); }
.note { font-size: 16px; color: var(--text-muted); }

.rule-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.rule-list li { padding: 15px 0; border-bottom: 1px solid var(--line-strong); font-size: 17px; }

.grid-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong);
}
.grid-list li { background: var(--white); padding: 16px 18px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero .container {
  padding-top: 96px; padding-bottom: 190px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.hero h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; max-width: 13ch; }
.hero__sub { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--on-dark-soft); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.hero__media { flex: 1 1 420px; min-width: 0; min-height: 480px; }

/* ---------- Kennzahlen ---------- */
.facts { position: relative; margin-top: -110px; }
.facts__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line); box-shadow: 0 18px 40px rgba(20,24,25,0.14);
  list-style: none; margin: 0; padding: 0;
}
.facts__grid li { background: var(--white); padding: 32px 30px; display: flex; flex-direction: column; gap: 8px; }
.facts__big { font-size: 26px; font-weight: 500; line-height: 1.1; }
.facts__small { font-size: 15px; line-height: 1.5; color: var(--text-muted); }

/* ---------- Leistungsübersicht ---------- */
.overview { padding: 110px 0 40px; }
.overview__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.overview__head > div { display: flex; flex-direction: column; gap: 14px; }
.overview__head h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; max-width: 22ch; }
.overview__head h2 .line { display: block; }
.overview__head p { color: var(--text-muted); max-width: 40ch; }
.overview__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.overview__card {
  background: var(--white); color: var(--text); text-decoration: none;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.overview__card:hover { color: var(--text); background: #FAFBFB; }
.num { align-self: flex-start; background: var(--highlight); color: #1C1F20; font-size: 14px; font-weight: 500; padding: 3px 8px; }
.overview__title { font-size: 22px; font-weight: 500; }
.overview__teaser { color: var(--text-muted); font-size: 16px; }
.overview__more { color: var(--link); font-weight: 600; font-size: 14px; }

/* ---------- Leistungsabschnitte ---------- */
.service .media .ph { aspect-ratio: 4 / 3; }
.service--tall .media .ph { aspect-ratio: 4 / 5; }
.service .btn { align-self: flex-start; }
.media__caption { font-size: 22px; font-weight: 500; margin-top: 18px; }
.subhead { font-size: 17px; font-weight: 600; }
.claim { font-size: 20px; font-weight: 500; }

/* ---------- Unabhängig ---------- */
.band .container { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; justify-content: space-between; }
.band__head { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.band h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; max-width: 18ch; }
.band .container > p { flex: 1 1 380px; font-size: 19px; color: var(--on-dark-soft); max-width: 44ch; }

/* ---------- Wohnungsunternehmen ---------- */
.overlay { padding-bottom: 120px; display: flex; flex-direction: column; }
.overlay .ph { width: 100%; min-height: 420px; align-items: flex-start; }
.overlay__card {
  align-self: flex-end; width: min(620px, 100%); margin-top: -170px; position: relative;
  background: var(--white); box-shadow: 0 18px 40px rgba(20,24,25,0.12);
  padding: 46px 44px; display: flex; flex-direction: column; gap: 18px;
}
.overlay__card h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; }
.overlay__card p:not(.eyebrow) { color: var(--text-muted); }

/* ---------- Über mich ---------- */
.about .media { flex: 0 1 340px; }
.about .media .ph { aspect-ratio: 4 / 5; }
.about .grid-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.about .grid-list li { font-weight: 500; }

/* ---------- Kontakt ---------- */
.contact .container { padding-top: 110px; padding-bottom: 110px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.contact__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.06; letter-spacing: -0.025em; }
.contact h2 .line { display: block; }
.contact__copy > p:not(.eyebrow) { font-size: 18px; color: var(--on-dark-soft); max-width: 50ch; }
.contact__actions { flex: 0 1 380px; display: flex; flex-direction: column; gap: 12px; }
.contact__actions .btn { font-size: 17px; padding: 18px 24px; }
.contact__address { font-size: 14px; color: var(--on-dark-soft); font-style: normal; padding-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: #AEB6B7; font-size: 14px; }
.site-footer .container { padding-top: 30px; padding-bottom: 30px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: #E3E6E6; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: 80px 0 110px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-soft); }
.legal .todo-box { background: var(--light); padding: 20px 22px; border-radius: var(--radius); margin: 20px 0; font-size: 16px; color: var(--text-muted); }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .site-header .container { padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 30px; }
  .nav { gap: 4px 18px; font-size: 14px; width: 100%; }
  .nav .btn { margin-left: auto; }
  html { scroll-padding-top: 120px; }
  .hero .container { padding-top: 56px; padding-bottom: 150px; gap: 36px; }
  .hero__media { min-height: 300px; }
  .facts__grid li { padding: 22px 22px; }
  .overview { padding-top: 72px; }
  .band .container, .contact .container { padding-top: 72px; padding-bottom: 72px; }
  .contact h2 { font-size: 27px; }
  .overlay { padding-bottom: 72px; }
  .overlay .ph { min-height: 260px; }
  .overlay__card { margin-top: -80px; padding: 30px 24px; }
  .split { gap: 32px; }
  .split > .media, .split > .copy, .about .media { flex-basis: 100%; }
}
