/* KUi Bau & Ausbau – kuibau.de */
:root {
  --ink: #2b2622;
  --muted: #6f655c;
  --wood: #8a6d4b;
  --wood-dark: #6d5439;
  --bg: #faf8f5;
  --card: #ffffff;
  --line: #e8e0d6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--wood-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: bold; letter-spacing: .04em; text-decoration: none; color: var(--ink); }
.logo span { color: var(--wood); }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 15px; }
.nav-links a:hover { color: var(--wood); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Hero */
.hero { background: #2b2622; color: #f5f1ea; padding: 72px 0 64px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: 1.2; margin-bottom: 16px; }
.hero p.lead { font-size: 19px; color: #d8cfc2; max-width: 640px; margin-bottom: 28px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  background: var(--wood); color: #fff; text-decoration: none; font-weight: 600; margin-right: 12px;
}
.btn:hover { background: var(--wood-dark); }
.btn.ghost { background: transparent; border: 1px solid #b7ab9c; color: #f5f1ea; }
.btn.ghost:hover { border-color: #fff; background: transparent; }
@media (max-width: 640px) { .hero h1 { font-size: 30px; } .btn { margin-bottom: 10px; } }

/* Sections */
section { padding: 64px 0; }
section h2 { font-family: Georgia, "Times New Roman", serif; font-size: 30px; margin-bottom: 8px; }
section .sub { color: var(--muted); margin-bottom: 32px; max-width: 640px; }

/* Services */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; height: 340px; object-fit: cover; }
.gallery figcaption { padding: 14px 18px; font-size: 15px; color: var(--muted); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px 18px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: Georgia, serif; font-size: 26px; color: var(--wood); display: block; margin-bottom: 6px;
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }

/* About / contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.contact-box p { margin-bottom: 10px; }
.contact-box .zh { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-family: Georgia, serif; font-size: 32px; margin-bottom: 20px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p { margin-bottom: 12px; color: #3d3833; }

/* Footer */
footer { background: #2b2622; color: #b7ab9c; padding: 36px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: #e8dfd2; text-decoration: none; margin-left: 18px; }
footer a:hover { text-decoration: underline; }
