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

:root {
  color-scheme: light;
  scroll-behavior: smooth;
  --page: #f6f2ea;
  --paper: #fffdf8;
  --ink: #242621;
  --muted: #62665d;
  --line: #d8d1c5;
  --clay: #934126;
  --clay-dark: #76331f;
  --sage: #e5e7df;
  --max: 73.75rem;
  --gutter: clamp(1.2rem, 4vw, 3.25rem);
}

html { background: var(--page); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

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

.skip-link {
  position: fixed;
  top: .8rem;
  left: .8rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 42;
  height: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--gutter);
  color: rgba(255, 255, 255, .78);
  background: rgba(18, 20, 17, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  font-size: .67rem;
  letter-spacing: .04em;
}

.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }

.site-header {
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  z-index: 40;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--gutter);
  color: #fff;
  background: rgba(18, 20, 17, .26);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}

.wordmark {
  width: max-content;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  border-bottom: 0;
  line-height: .88;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark .wordmark-main {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.05em;
}

.wordmark .wordmark-main i { margin-left: .06em; color: #d26b4b; font-style: normal; }

.wordmark small {
  margin-top: .4rem;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .19em;
}

.site-nav { display: flex; gap: clamp(1.25rem, 2.8vw, 2.5rem); }

.site-nav a,
.header-phone {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.header-phone:hover { color: #ef8b6b; }

.header-phone { justify-self: end; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: clamp(43rem, 82svh, 55rem);
  display: flex;
  align-items: flex-end;
  padding: 13rem var(--gutter) 4.2rem;
  color: #fff;
  background: #20231f;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 20, 17, .9) 0%, rgba(18, 20, 17, .68) 46%, rgba(18, 20, 17, .2) 78%), linear-gradient(0deg, rgba(18, 20, 17, .55), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.local-label,
.section-kicker {
  margin: 0 0 1.4rem;
  color: var(--clay);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .local-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #f0a38a;
}

.hero .local-label::before { content: ''; width: 2.4rem; height: 2px; background: #d26b4b; }

.hero h1,
.section h2 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 550;
  letter-spacing: -.035em;
}

.hero h1 {
  max-width: 54rem;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(3.1rem, 6.5vw, 6.2rem);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.055em;
}

.hero h1 em {
  display: block;
  color: #fff;
  font-style: normal;
  font-weight: 500;
}

.hero-text {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 2.2rem;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: .85rem 1.25rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--clay);
  transition: background .18s ease;
}

.button-primary:hover { background: var(--clay-dark); }

.button-secondary {
  gap: 1rem;
  color: #fff;
  background: rgba(18, 20, 17, .22);
  border: 1px solid rgba(255, 255, 255, .58);
}

.button-secondary:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.button-link {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid currentColor;
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}

.button-link span { color: var(--clay); }
.button-link:hover { color: var(--clay); }

.hero-meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 3.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.hero-meta span { display: flex; flex-direction: column; color: rgba(255, 255, 255, .58); font-size: .7rem; }
.hero-meta strong { margin-bottom: .1rem; color: #fff; font-size: .78rem; font-weight: 650; }

.hero-image { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; filter: saturate(.78) contrast(1.04); }

.trust-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem 2.2rem;
  padding: 1.1rem var(--gutter);
  color: #fff;
  background: var(--ink);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.trust-line span + span::before {
  content: '•';
  margin-right: 2.2rem;
  color: #c77655;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) var(--gutter);
}

.section-intro { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-intro h2, .about-copy h2, .contact-copy h2 { font-size: clamp(2.4rem, 4.8vw, 4.25rem); line-height: 1.04; }
.section-intro > p:last-child { max-width: 40rem; margin: 1.4rem 0 0; color: var(--muted); }
.section-intro-row { max-width: none; display: grid; grid-template-columns: 1fr 22rem; gap: 4rem; align-items: end; }

.services { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.services .section-intro { margin: 0; }

.service-list { border-top: 1px solid var(--line); }
.service-list article { display: grid; grid-template-columns: 2.7rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.service-list article > span { padding-top: .25rem; color: var(--clay); font-size: .7rem; font-weight: 700; }
.service-list h3 { margin: 0 0 .35rem; font-family: 'Newsreader', Georgia, serif; font-size: 1.65rem; font-weight: 600; line-height: 1.1; }
.service-list p { margin: 0; color: var(--muted); font-size: .92rem; }

.work {
  max-width: none;
  background: var(--paper);
}

.work > * { max-width: calc(var(--max) - (2 * var(--gutter))); margin-left: auto; margin-right: auto; }
.work-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; }
.work-grid figure { margin: 0; }
.work-main { grid-row: span 2; }
.work-grid img { width: 100%; height: 15rem; object-fit: cover; border-radius: 4px; }
.work-main img { height: 100%; min-height: 34rem; }
.work-grid figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .72rem; }
.work-grid figcaption strong { font-weight: 650; }
.work-grid figcaption span { color: var(--muted); text-align: right; }

.about { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.about-image img { width: 100%; min-height: 33rem; object-fit: cover; object-position: 58% center; border-radius: 4px; }
.about-copy .lead { margin: 1.5rem 0 1rem; font-size: 1.15rem; line-height: 1.55; }
.about-copy > p:not(.section-kicker):not(.lead) { color: var(--muted); }
.about-copy dl { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.about-copy dl div { display: flex; justify-content: space-between; gap: 2rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.about-copy dt { color: var(--muted); font-size: .78rem; }
.about-copy dd { margin: 0; font-size: .82rem; font-weight: 600; text-align: right; }

.process { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 1.6rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.steps li > span { width: 2rem; height: 2rem; display: grid; place-items: center; margin-bottom: 2rem; color: #fff; background: var(--clay); border-radius: 50%; font-size: .76rem; font-weight: 700; }
.steps h3 { margin: 0 0 .7rem; font-family: 'Newsreader', Georgia, serif; font-size: 1.65rem; font-weight: 600; line-height: 1.1; }
.steps p { margin: 0; color: var(--muted); font-size: .88rem; }

.contact {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 36rem);
  justify-content: center;
  gap: clamp(3rem, 9vw, 8rem);
  color: var(--ink);
  background: var(--sage);
}

.contact-copy > p:not(.section-kicker) { color: var(--muted); }
.contact-email { display: block; width: fit-content; max-width: 100%; margin: 2rem 0; color: var(--ink); font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; text-decoration: none; }
.contact-email:hover { color: var(--clay); }
.alternate-contact { display: flex; flex-direction: column; gap: .45rem; padding-top: 1.2rem; border-top: 1px solid #c9ccc3; }
.alternate-contact > span { margin-bottom: .35rem; color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.alternate-contact a { width: fit-content; font-size: .84rem; font-weight: 600; text-decoration: none; }
.alternate-contact a:hover { color: var(--clay); }
.alternate-contact b { margin-left: .5rem; color: var(--clay); }

.contact-form { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 5px; background: var(--paper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label:not(.consent) { display: block; margin-bottom: 1.1rem; }
.contact-form label > span { display: block; margin-bottom: .45rem; font-size: .72rem; font-weight: 650; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #bcb7ae; border-radius: 3px; padding: .72rem .8rem; color: var(--ink); background: white; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--clay); outline: 2px solid rgba(147,65,38,.17); }
.contact-form textarea { min-height: 7rem; resize: vertical; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: .3rem 0 1.2rem; color: var(--muted); font-size: .72rem; }
.consent input { width: 1rem; height: 1rem; margin-top: .15rem; accent-color: var(--clay); }
.contact-form .button { width: 100%; }
.form-note { margin: .75rem 0 0; color: var(--muted); font-size: .7rem; }
.form-status { min-height: 1.5rem; margin-top: .6rem; font-size: .78rem; }
.form-status a { color: var(--clay-dark); font-weight: 700; }

.site-footer { padding: 4rem var(--gutter) 1.5rem; color: #f5f1e9; background: var(--ink); }
.site-footer > div { max-width: var(--max); margin-left: auto; margin-right: auto; }
.site-footer > div:first-child { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.wordmark-light { color: #fff; border-color: #c77655; }
.site-footer > div:first-child p { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: 1.5rem; }
.footer-contact { display: flex; justify-content: space-between; margin-top: 3rem !important; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); font-size: .78rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: #ef8b6b; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 2rem !important; color: rgba(255,255,255,.58); font-size: .68rem; }
.footer-bottom a { text-decoration: none; }

.legal-dialog { width: min(42rem, calc(100% - 2rem)); max-height: 80vh; padding: 2.5rem; border: 0; border-radius: 5px; color: var(--ink); background: var(--paper); box-shadow: 0 1.5rem 5rem rgba(0,0,0,.3); }
.legal-dialog::backdrop { background: rgba(22,24,20,.72); }
.dialog-close { float: right; border: 0; padding: .5rem 0; color: var(--clay-dark); background: transparent; font-weight: 700; cursor: pointer; }
.legal-dialog h2 { margin: 1.5rem 0; font-family: 'Newsreader', Georgia, serif; font-size: 2.8rem; }
.legal-dialog h3 { margin-top: 1.8rem; font-size: .8rem; text-transform: uppercase; }
.legal-dialog p { color: var(--muted); }
.legal-note { padding: 1rem; border-left: 3px solid var(--clay); background: var(--page); }

.thanks-page { min-height: 100svh; display: grid; place-items: center; padding: var(--gutter); background: var(--sage); }
.thanks-card { width: min(100%, 42rem); padding: clamp(2rem, 6vw, 4.5rem); border-radius: 5px; background: var(--paper); }
.thanks-card .wordmark { margin-bottom: clamp(4rem, 10vw, 7rem); }
.thanks-card h1 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.7rem, 7vw, 5.2rem); font-weight: 550; line-height: 1; letter-spacing: -.04em; }
.thanks-card > p:not(.section-kicker) { max-width: 34rem; margin: 1.5rem 0 2rem; color: var(--muted); }

.preview-login-page {
  min-height: 100svh;
  color: #fff;
  background: #1e211d url('assets/wohnraum-arbeit.jpg') center / cover no-repeat fixed;
}

.preview-login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 20, 17, .94), rgba(18, 20, 17, .73) 58%, rgba(18, 20, 17, .42));
}

.preview-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(1.25rem, 5vw, 4rem);
}

.preview-login-card {
  width: min(100%, 43rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 5px;
  background: rgba(24, 26, 22, .88);
  backdrop-filter: blur(8px);
}

.preview-login-card .wordmark { margin-bottom: clamp(4rem, 12vh, 7rem); }
.preview-label { margin: 0 0 1rem; color: #f0a38a; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.preview-login-copy h1 { max-width: 38rem; margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 550; line-height: .96; letter-spacing: -.04em; }
.preview-login-copy > p:last-child { max-width: 34rem; margin: 1.4rem 0 0; color: rgba(255, 255, 255, .7); }
.preview-login-form { margin-top: 2.2rem; }
.preview-login-form > label { display: block; margin-bottom: .5rem; font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.preview-password-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
.preview-password-row input { min-height: 50px; width: 100%; border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px; padding: .75rem .9rem; color: var(--ink); background: rgba(255, 255, 255, .96); }
.preview-password-row input:focus { border-color: #f0a38a; outline: 3px solid rgba(240, 163, 138, .3); }
.preview-login-error { margin: .75rem 0 0; color: #ffd3c5; font-size: .82rem; font-weight: 600; }
.preview-login-note { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .52); font-size: .7rem; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-phone { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: .7rem; border: 0; padding: .6rem 0; color: #fff; background: transparent; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
  .menu-toggle i, .menu-toggle i::after { width: 1.25rem; height: 1px; display: block; background: currentColor; content: ''; transition: transform .18s ease; }
  .menu-toggle i::after { transform: translateY(6px); }
  .menu-toggle[aria-expanded="true"] i { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::after { transform: rotate(-90deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; color: #fff; background: rgba(24, 26, 22, .98); border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .hero { min-height: 46rem; }
  .hero-copy { max-width: 45rem; }
  .hero-image img { height: 100%; }
  .services { grid-template-columns: 1fr; }
  .services .section-intro { max-width: 46rem; }
  .section-intro-row { grid-template-columns: 1fr; gap: 1rem; }
  .section-intro-row > p { max-width: 38rem; }
  .about { grid-template-columns: 1fr; }
  .about-image img { min-height: auto; aspect-ratio: 16 / 9; }
  .about-copy { max-width: 42rem; }
  .contact { grid-template-columns: minmax(0, 42rem); }
}

@media (max-width: 650px) {
  .topbar { height: 32px; justify-content: flex-end; padding-inline: 1.2rem; }
  .topbar > span { display: none; }
  .site-header { top: 32px; height: 72px; padding-inline: 1.2rem; }
  .hero { min-height: 46rem; padding-top: 10.5rem; padding-bottom: 3rem; }
  .hero::after { background: linear-gradient(90deg, rgba(18, 20, 17, .88), rgba(18, 20, 17, .42)), linear-gradient(0deg, rgba(18, 20, 17, .7), transparent 70%); }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4.2rem); }
  .hero h1 em { margin-top: .15em; }
  .hero-text { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; margin-top: 2.3rem; }
  .hero-meta span:last-child { display: none; }
  .hero-image img { height: 100%; object-position: 62% center; }
  .trust-line { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .trust-line span + span::before { content: '•'; margin-right: .75rem; }
  .section { padding-top: 4.2rem; padding-bottom: 4.2rem; }
  .section-intro h2, .about-copy h2, .contact-copy h2 { font-size: 2.75rem; }
  .work-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .work-main { grid-row: auto; }
  .work-grid img, .work-main img { height: 19rem; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer > div:first-child { align-items: flex-start; flex-direction: column; }
  .footer-contact, .footer-bottom { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .legal-dialog { padding: 1.4rem; }
  .preview-login-page { background-position: 62% center; }
  .preview-login-card { padding: 1.5rem; }
  .preview-login-card .wordmark { margin-bottom: 4rem; }
  .preview-password-row { grid-template-columns: 1fr; }
  .preview-password-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
