/* ==========================================================================
   TSZ Innenausbau – tsz-innenausbau.de
   ========================================================================== */

:root {
  --ink: #1e2126;
  --ink-soft: #2a2e34;
  --text: #3d434b;
  --text-soft: #6b727c;
  --gold: #b8862d;
  --gold-bright: #d4a444;
  --gold-pale: #f6eeda;
  --paper: #ffffff;
  --paper-warm: #faf8f4;
  --line: #e8e4dc;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(30, 33, 38, .08);
  --shadow-md: 0 10px 30px rgba(30, 33, 38, .10);
  --shadow-lg: 0 24px 60px rgba(30, 33, 38, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

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

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section { padding: 88px 0; }
.section.tint { background: var(--paper-warm); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.06rem; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { color: #fff; background: var(--gold-bright); }

.btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { color: #fff; background: var(--ink-soft); }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand img { height: 58px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav > a, .nav-item > a {
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  padding: 6px 0;
}
.main-nav > a:hover, .nav-item > a:hover { color: var(--gold); }
.main-nav > a.active, .nav-item > a.active { color: var(--gold); }

.main-nav > a.nav-cta {
  margin-left: 6px;
  padding: 11px 26px;
  color: #fff;
}
.main-nav > a.nav-cta:hover { color: #fff; }

.nav-item { position: relative; }
.nav-item > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
.sub-menu {
  position: absolute;
  top: 100%;
  margin-top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
}
.sub-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item:hover .sub-menu,
.nav-item:focus-within .sub-menu,
.nav-item.open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
}
.sub-menu a:hover { background: var(--gold-pale); color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -8px; }
.nav-toggle span::after { left: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero.small { min-height: 420px; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 22, 26, .82) 0%, rgba(20, 22, 26, .55) 55%, rgba(20, 22, 26, .25) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 15em; }
.hero .lead {
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  color: rgba(255, 255, 255, .88);
  max-width: 34em;
  margin-bottom: 2em;
}
.hero .eyebrow { color: var(--gold-bright); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Cards ------------------------------------------------------------------ */

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--text-soft); font-size: .97rem; flex: 1; }
.card-link { font-weight: 700; font-size: .95rem; }
.card-link::after { content: " →"; }

/* Split section ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split .eyebrow { margin-bottom: 10px; }
.split h2 { margin-bottom: .6em; }
.split p { color: var(--text-soft); }

/* Feature rows ----------------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.feature .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gold-pale);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* Service detail blocks -------------------------------------------------- */

.service-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 1px solid var(--line); }
.service-block h3 { font-size: 1.35rem; position: sticky; top: 100px; }
.service-block p { color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.chip {
  background: var(--gold-pale);
  color: #8a6420;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .9rem;
  font-weight: 600;
}
.service-block .btn { margin-top: 8px; }

/* Gallery ---------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: .93rem;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  box-shadow: var(--shadow-sm);
}
.gallery a.hidden { display: none; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery a:hover img { transform: scale(1.05); }

/* Lightbox --------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 16, 19, .94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 0;
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* CTA band --------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(120deg, #17191d, #24262c 60%, #2c2417);
  color: #fff;
  padding: 80px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 40em; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.cta-contact a { color: var(--gold-bright); font-weight: 700; font-size: 1.15rem; }

/* Contact page ----------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { margin: 0; font-size: 1rem; }
.contact-card .muted { color: var(--text-soft); font-size: .9rem; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 134, 45, .12);
}
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note {
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: none;
}
.form-note.ok { display: block; background: #e8f5e4; color: #2c6e26; }
.form-note.err { display: block; background: #fdeaea; color: #a33030; }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: #17191d;
  color: #9aa0a8;
  padding: 70px 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: #c6cbd2; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--gold-bright); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
}

/* Reveal ----------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

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

/* Legal pages ------------------------------------------------------------ */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1000px) {
  .grid-3, .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 10px; }
  .service-block h3 { position: static; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .hero { min-height: 540px; }
  .grid-3, .grid-2, .features { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-item > a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--paper-warm);
    font-size: 1.05rem;
  }
  .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: hidden;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 14px;
    min-width: 0;
  }
  .nav-item.open .sub-menu { display: block; visibility: visible; }
  .main-nav > a.nav-cta { margin: 16px 4px 0; text-align: center; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-band { padding: 60px 0; }
}
