/* ===== Design Tokens ===== */
:root {
  --bg: #faf6f0;
  --bg-alt: #f2eadf;
  --ink: #2a221c;
  --ink-soft: #5d5349;
  --muted: #8c8275;
  --line: #ebe1d2;
  --white: #ffffff;

  --amber: #ed8a2c;
  --amber-dark: #c06f17;
  --slate: #3a2f24;
  --slate-deep: #271c13;
  --green: #4a6b46;

  --radius: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(74, 54, 32, .06), 0 6px 16px rgba(74, 54, 32, .06);
  --shadow-md: 0 14px 36px rgba(74, 54, 32, .14);
  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  line-height: 1.08;
  letter-spacing: .2px;
  font-weight: 700;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--slate);
  color: var(--amber);
}
.brand-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1;
}
.brand-text small { color: var(--muted); font-size: .78rem; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--slate);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--amber); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.05);
  filter: saturate(1.05);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1150px 620px at 80% -5%, rgba(247, 165, 70, .42), transparent 58%),
    radial-gradient(800px 500px at 8% 110%, rgba(214, 120, 40, .30), transparent 60%),
    linear-gradient(170deg, rgba(58,42,26,.50) 0%, rgba(45,32,20,.74) 55%, rgba(36,25,15,.90) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(900px 500px at 30% 30%, #000, transparent 75%);
}
.hero-inner {
  position: relative;
  padding: 96px 24px 84px;
  max-width: 920px;
  text-shadow: 0 1px 18px rgba(30, 20, 10, .35);
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, .82);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn-primary { background: var(--amber); color: #1a1205; }
.btn-primary:hover { background: #ffa53b; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-block { width: 100%; }

.hero-stats {
  display: flex;
  gap: 42px;
  list-style: none;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  color: var(--amber);
  line-height: 1;
}
.hero-stats span { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.kicker-light { color: var(--amber); }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }
.section-sub em { color: var(--muted); }

/* ===== Service Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d9d2c6;
}
.card-icon {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--bg-alt);
  border-radius: 14px;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* ===== Filters ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter {
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--amber); color: var(--ink); }
.filter.is-active {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}

/* ===== Reference Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ref {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ref:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ref-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.ref-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.ref:hover .ref-img img { transform: scale(1.06); }
.ref-body { padding: 18px 20px 22px; }
.ref-tag {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 8px;
}
.ref-body h3 { font-size: 1.18rem; margin-bottom: 6px; text-transform: none; font-family: 'Inter', sans-serif; font-weight: 700; }
.ref-place { color: var(--muted); font-size: .85rem; }

/* ===== Photo Placeholder ===== */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d9d3c8 0%, #c7bdac 100%);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 12px, transparent 12px 24px);
  transition: transform .4s var(--ease);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(40, 35, 25, .55);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ph-tall { aspect-ratio: 3 / 4; }

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 18px; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
}
.about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about-media .am-tall { grid-row: span 2; }

/* ===== Contact ===== */
.section-dark { background: var(--slate-deep); color: var(--white); }
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 14px; }
.contact-lead { color: rgba(255,255,255,.75); margin-bottom: 30px; }
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  font-size: 1.1rem;
}
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--amber); margin-bottom: 2px; }
.contact-list div { color: rgba(255,255,255,.88); }
.contact-list a:hover { color: var(--amber); }

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,130,30,.15);
  background: #fff;
}
.form-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 12px; }

/* ===== Footer ===== */
.site-footer { background: #1f160e; color: rgba(255,255,255,.72); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.footer-nav a:hover { color: var(--amber); }
.footer-copy { font-size: .85rem; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 15, .82);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox-content {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
  width: 100%;
}
.lightbox-media { aspect-ratio: 4/3; background: var(--bg-alt); }
.lightbox-media img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-caption { padding: 22px 26px 26px; }
.lightbox-caption h3 { font-family: 'Inter', sans-serif; text-transform: none; font-size: 1.35rem; margin-bottom: 6px; }
.lightbox-caption p { color: var(--ink-soft); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: background .2s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .3s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .section { padding: 64px 0; }
  .hero-inner { padding: 70px 24px 60px; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ===== Legal pages (Impressum / Datenschutz) ===== */
.legal-hero {
  background: linear-gradient(170deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: var(--white);
  padding: 64px 0 56px;
}
.legal-hero .kicker { color: var(--amber); }
.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-top: 6px;
}
.legal {
  max-width: 820px;
  padding-top: 56px;
  padding-bottom: 80px;
}
.legal h2 {
  font-size: 1.5rem;
  text-transform: none;
  font-family: 'Barlow Condensed', sans-serif;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-size: 1.1rem;
  text-transform: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin: 22px 0 8px;
}
.legal p { color: var(--ink-soft); margin-bottom: 14px; }
.legal ul { color: var(--ink-soft); margin: 0 0 16px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--amber-dark); text-decoration: underline; }
.legal a:hover { color: var(--amber); }
.legal address {
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.8;
}
.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.legal .back-link:hover { color: var(--amber-dark); }
.legal .updated { font-size: .9rem; color: var(--muted); margin-top: 32px; }
