/* ============================================================
   DRAFT GmbH – Bauentwicklung Ottensoos
   Warm-Local Aesthetic, adaptiert: seriös, bodenständig, warm
   ============================================================ */

:root {
  --cream: #f6f1e8;
  --cream-dark: #ece4d4;
  --paper: #fbf8f2;
  --ink: #2c2620;
  --ink-soft: #5a5248;
  --terracotta: #a8502a;
  --terracotta-dark: #8a3f20;
  --olive: #5d6349;
  --line: #ddd2c0;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --radius: 4px;
  --shadow-soft: 0 18px 40px -22px rgba(44, 38, 32, 0.35);
  --header-h: 78px;
  --max-w: 1180px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

.container { width: min(100% - 2.5rem, var(--max-w)); margin-inline: auto; }

/* ---------- Eyebrow & Leads ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}

.section-lead, .hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 232, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(44, 38, 32, 0.4);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}
.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--terracotta); }

.nav-cta {
  padding: 0.55rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--ink); color: var(--cream) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-lead { margin: 1.4rem 0 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero-facts {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  margin: 0;
}
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts dt {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-facts dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 16ch;
}

.hero-media {
  position: relative;
}
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}
.hero-media figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Leistungen (Liste statt Icon-Karten) ---------- */
.service-list { border-top: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terracotta);
  font-weight: 600;
}

.service-body h3 { margin-bottom: 0.5rem; }
.service-body p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- Split (Über uns) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.split-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.split-copy h2 { margin-bottom: 1.3rem; }
.split-copy .btn { margin-top: 1.4rem; }

.check-list {
  list-style: none;
  margin-top: 1.4rem;
}
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.9rem;
  height: 0.45rem;
  border-left: 2.5px solid var(--olive);
  border-bottom: 2.5px solid var(--olive);
  transform: rotate(-45deg);
}

/* ---------- Ablauf ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.2rem);
  counter-reset: step;
}

.step {
  border-top: 3px solid var(--terracotta);
  padding-top: 1.3rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Stimmen ---------- */
.section-quote { background: var(--olive); color: var(--cream); }

.quote {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.45;
  font-weight: 400;
  font-style: italic;
}
.quote footer { margin-top: 1.8rem; }
.quote footer strong { display: block; font-size: 1.05rem; }
.quote footer span { font-size: 0.9rem; opacity: 0.85; }

.trust-row {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(246, 241, 232, 0.3);
  flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
}
.trust-item span { font-size: 0.9rem; opacity: 0.85; max-width: 22ch; display: inline-block; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.gallery-item:hover img { transform: scale(1.045); }

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(30, 26, 21, 0.82));
  color: var(--cream);
  pointer-events: none;
}
.gallery-item figcaption strong { display: block; font-family: var(--font-display); font-weight: 500; }
.gallery-item figcaption span { font-size: 0.82rem; opacity: 0.85; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info address {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.contact-info > p { margin-bottom: 1.1rem; }

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.15rem;
}
.contact-info a { font-weight: 600; font-size: 1.05rem; }

.contact-form {
  margin-top: 2.2rem;
  padding: 1.8rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-form h3 { margin-bottom: 1.2rem; }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.contact-form textarea { resize: vertical; }

.form-note {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--olive);
}

.contact-map iframe {
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  filter: sepia(0.18) saturate(0.9);
}
.map-note {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}
.footer-brand p { font-size: 0.9rem; opacity: 0.8; margin-top: 0.3rem; }

.footer-nav ul, .footer-legal ul { list-style: none; }
.footer-nav li, .footer-legal li { margin-bottom: 0.55rem; }
.footer-nav a, .footer-legal a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity .2s ease, color .2s ease;
}
.footer-nav a:hover, .footer-legal a:hover { opacity: 1; color: var(--terracotta); }

.footer-bottom {
  border-top: 1px solid rgba(246, 241, 232, 0.15);
  padding: 1.3rem 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-item img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-tall { grid-row: span 1; }
  .gallery-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .brand-text small { display: none; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.2, .6, .2, 1);
    z-index: 99;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 0.9rem 0.2rem; }
  .nav-cta { border: 0; padding: 0.9rem 0.2rem; color: var(--terracotta); }
  .nav-cta:hover { background: none; }

  .service { grid-template-columns: 1fr; gap: 0.4rem; }
  .hero-facts { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .steps { grid-template-columns: 1fr; }
}
