/* Fahner Bauunternehmung – Entwurf Upwell GmbH
   Farben aus dem Logo: #1D1D1B (Kontur/Schriftzug), #FFFFFF, Graustufen #F1F1F1 / #C6C6C6 / #4A4A48 (Kantenglättung im Logo).
   Schrift: Mona Sans (Fontsource, variabel: Gewicht + Breite). */

@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  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: "Mona Sans";
  src: url("/assets/fonts/mona-sans-latin-ext-wdth-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --ink: #1D1D1B;
  --ink-soft: #4A4A48;
  --line: #C6C6C6;
  --stone: #F1F1F1;
  --paper: #FFFFFF;
  --hint: #FFF4B8;
  --hint-line: #E2C94A;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --cond: 78%;
  --font: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 420;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; min-width: 0; overflow: hidden; }
a { color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-stretch: var(--cond);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.005em;
  hyphens: manual;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

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

/* Entwurfsleiste */
.draftbar {
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  padding: 7px var(--gut);
  letter-spacing: 0.01em;
}

/* Kopf */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 12px 32px;
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.brand { flex: none; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 4px 26px; flex-wrap: wrap; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-stretch: 88%;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.top__tel {
  margin: 0;
  font-weight: 750;
  font-size: 17px;
  font-stretch: 88%;
  white-space: nowrap;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.top__tel span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}

/* Maßlinie (Bemaßung) als wiederkehrendes Element */
.ruler {
  height: 12px;
  border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 16px) bottom left / 100% 7px no-repeat;
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label b { color: var(--ink); font-weight: 800; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 84px) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero__kicker {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero h1 {
  font-size: clamp(46px, 7.4vw, 104px);
  font-weight: 860;
  font-stretch: 75%;
  text-transform: uppercase;
  line-height: 0.92;
}
.hero h1 .yr { display: block; font-weight: 280; color: var(--ink); }
.hero__claim {
  margin: 26px 0 32px;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  font-stretch: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}
.hero__claim span + span::before { content: "–"; margin-right: 14px; color: var(--ink-soft); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-stretch: 88%;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* Foto mit „Extrusion“ wie im Logo (schwarzer Versatz) */
.frame { position: relative; }
.frame img { position: relative; z-index: 1; background: var(--stone); width: 100%; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(12px, 12px);
  background: var(--ink);
}
.hero__photo { margin-right: 12px; margin-bottom: 12px; }
.hero__photo img { aspect-ratio: 3 / 2; object-fit: cover; }

.servicebar {
  margin-top: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.servicebar li { border-right: 1px solid var(--line); }
.servicebar li:last-child { border-right: 0; }
.servicebar a {
  display: block;
  height: 100%;
  padding: 16px 16px 18px;
  text-decoration: none;
  font-weight: 650;
  font-stretch: 88%;
  font-size: 16px;
  line-height: 1.25;
}
.servicebar a:hover { background: var(--stone); }
.servicebar i {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* Abschnitte */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec--stone { background: var(--stone); }
.sec__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head h2 { font-size: clamp(38px, 5.4vw, 72px); text-transform: uppercase; }
.sec__head p.lead { margin-top: 20px; font-size: 19px; color: var(--ink-soft); max-width: 640px; }
.sec__head .ruler { margin-top: 26px; max-width: 320px; }

/* Leistungen */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.svc:first-of-type { border-top: 2px solid var(--ink); }
.svc--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.svc--flip .svc__text { order: 2; }
.svc__no {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.svc h3 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 22px; }
.svc__text p { max-width: 520px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li {
  font-size: 14px;
  font-weight: 600;
  font-stretch: 90%;
  padding: 5px 12px;
  border: 1px solid var(--ink);
  line-height: 1.3;
}
.svc__sub { margin-top: 26px; }
.svc__sub h4 {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-stretch: 90%;
  margin-bottom: 10px;
}
.reflist-mini li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
}
.reflist-mini li:last-child { border-bottom: 1px solid var(--line); }

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}
.mosaic figure:first-child { grid-column: 1 / -1; }
.mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); }
.mosaic figure:first-child img { aspect-ratio: 16 / 10; }
figcaption {
  font-size: 13px;
  font-weight: 600;
  font-stretch: 90%;
  color: var(--ink-soft);
  padding-top: 8px;
  line-height: 1.35;
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pair + .pair { margin-top: 14px; }
.pair.pair--tall img { aspect-ratio: 3 / 4; }
.single { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); }
.media-group + .media-group { margin-top: 22px; }
.media-group h4 {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Projekt Poollandschaft */
.project {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.project__lead { margin-right: 12px; margin-bottom: 12px; }
.project__lead img { aspect-ratio: 4 / 3; object-fit: cover; background: #e4e4e3; }
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e4e4e3; }
.steps figcaption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  border-top: 2px solid var(--ink);
  margin-top: 10px;
}
.steps figcaption::before {
  content: counter(step, decimal-leading-zero);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* Referenzen */
.refs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.refs__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--stone); }
.reflist {
  columns: 2 260px;
  column-gap: 40px;
  border-top: 2px solid var(--ink);
  padding-top: 6px;
}
.reflist li {
  break-inside: avoid;
  padding: 11px 0 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
}
.more { margin-top: 0; }
.more summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 20px; line-height: 1; }
.more[open] summary { display: none; }
.more[open] .reflist { border-top: 0; padding-top: 0; }

/* Historie */
.history {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.timeline { border-left: 2px solid var(--ink); }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 36px 28px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 10px;
  width: 14px;
  height: 14px;
  background: var(--ink);
}
.timeline .yr {
  margin: 0;
  font-size: 34px;
  font-weight: 860;
  font-stretch: 75%;
  line-height: 1.05;
}
.timeline .yr small {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.timeline .yr--word { font-size: 24px; padding-top: 4px; }
.timeline h3 { font-size: 23px; margin: 4px 0 10px; font-stretch: 85%; }
.timeline p:last-child { margin-bottom: 0; }
.timeline li.end { padding-bottom: 0; }
.timeline li.end::before { background: #fff; border: 3px solid var(--ink); }
.history__photo { background: #fff; padding: 12px; max-width: 524px; }
.history__photo img { width: 100%; }
.history__strips { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.history__strips figure { background: #fff; padding: 10px; width: 100%; }
.history__strips .strip--a { max-width: 966px; }
.history__strips .strip--b { max-width: 1158px; }
.history__strips img { width: 100%; height: auto; }

/* Kontakt */
.contact { background: var(--ink); color: #fff; }
.contact .label { color: #bdbdbb; }
.contact .label b { color: #fff; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact h2 { font-size: clamp(38px, 5.4vw, 72px); text-transform: uppercase; margin-bottom: 30px; }
.contact .ruler { border-bottom-color: #fff; background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 16px); max-width: 320px; margin-bottom: 34px; }
.addr { font-style: normal; font-size: 21px; line-height: 1.45; margin-bottom: 30px; }
.addr strong { font-stretch: 88%; font-weight: 750; }
.cdata { border-top: 1px solid #4a4a48; }
.cdata div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #4a4a48;
  align-items: baseline;
}
.cdata dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bdbdbb;
}
.cdata dd { margin: 0; font-size: 22px; font-weight: 700; font-stretch: 88%; }
.contact__claim { margin-top: 30px; font-size: 18px; color: #d9d9d7; }
.contact__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #2e2e2c; }
.contact__photo { border: 1px solid #4a4a48; padding: 12px; }

/* Fuß */
.foot { padding: 34px 0 40px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.foot__in img { width: 120px; height: auto; }
.foot__addr { margin: 0; font-size: 14px; color: var(--ink-soft); }
.foot__nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; font-weight: 650; }

/* Unterseiten (Impressum/Datenschutz) */
.pagehead { padding: clamp(40px, 6vw, 72px) 0 24px; }
.pagehead h1 { font-size: clamp(40px, 6vw, 76px); text-transform: uppercase; }
.pagehead .ruler { margin-top: 22px; max-width: 320px; }
.backlink { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--ink); }
.legal { padding: 12px 0 clamp(56px, 8vw, 96px); }
.legal .wrap > * { max-width: 760px; }
.legal h2 { font-size: 22px; font-stretch: 85%; margin: 34px 0 10px; }
.hinweis {
  margin-top: 40px;
  background: var(--hint);
  border-left: 5px solid var(--hint-line);
  padding: 16px 20px;
  font-size: 16px;
}

/* Tablet */
@media (max-width: 1080px) {
  .servicebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .servicebar li:nth-child(3) { border-right: 0; }
  .servicebar li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .top__tel { display: none; }
}
@media (max-width: 900px) {
  .hero__grid, .svc, .project, .history, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .svc--flip .svc__text { order: 0; }
  .refs { grid-template-columns: minmax(0, 1fr); }
  .refs__photo { order: -1; max-width: 420px; }
  .hero__photo, .project__lead, .contact__photo, .svc__media { max-width: 720px; }
}

/* Handy */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .top__in { min-height: 0; gap: 6px 18px; padding-top: 10px; padding-bottom: 8px; }
  .brand img { width: 118px; }
  .nav { margin-left: 0; width: 100%; gap: 0 13px; }
  .nav a { font-size: 13.5px; padding: 4px 0; font-stretch: 75%; letter-spacing: 0.03em; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 60px); }
  .hero__claim { font-size: 18px; gap: 0 10px; }
  .hero__claim span + span::before { margin-right: 10px; }
  .frame::after { transform: translate(8px, 8px); }
  .hero__photo, .project__lead { margin-right: 8px; margin-bottom: 8px; }
  .servicebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .servicebar li { border-bottom: 1px solid var(--line); }
  .servicebar li:nth-child(3) { border-right: 1px solid var(--line); }
  .servicebar li:nth-child(2n) { border-right: 0; }
  .servicebar li:nth-last-child(-n+2) { border-bottom: 0; }
  .servicebar a { padding: 14px 12px 15px; font-size: 15px; }
  .mosaic, .pair { gap: 10px; }
  .steps { gap: 18px 10px; }
  .steps figcaption { font-size: 14px; }
  .refs__photo { max-width: none; }
  .refs__photo img { aspect-ratio: 4 / 3; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-left: 22px; padding-bottom: 30px; }
  .timeline .yr { font-size: 30px; }
  .history__photo, .history__strips figure { padding: 6px; }
  .history__strips { gap: 10px; }
  .addr { font-size: 19px; }
  .cdata div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cdata dd { font-size: 20px; }
  .foot__nav { margin-left: 0; }
}
