/* ============================================================
   KOLI Malergeschäft GmbH – Stylesheet
   ============================================================ */

:root {
  --blue: #1532d8;
  --blue-dark: #0f24a8;
  --ink: #15171a;
  --ink-soft: #3d4148;
  --gray: #5b6068;
  --cream: #faf8f4;
  --cream-soft: #f2f0ea;
  --white: #ffffff;
  --line: #e3e0d8;
  --footer-bg: #161616;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --header-h: 76px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); font-weight: 700; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.section-lead {
  max-width: 560px;
  font-size: 18px;
  color: var(--gray);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

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

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--cream-soft); }

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo img { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); }

/* Header-Button: weisse Schrift darf nicht von der Nav-Regel überschrieben werden */
.main-nav a.header-cta { color: var(--white); }
.main-nav a.header-cta:hover { color: var(--white); background: var(--blue-dark); }

.header-cta { margin-left: 12px; padding: 12px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 140;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s 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 (Home) ---------- */

.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--ink);
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/wohnzimmer-sessel.jpg") center / cover no-repeat;
  opacity: 0.85;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 13, 16, 0.62) 0%, rgba(12, 13, 16, 0.28) 55%, rgba(12, 13, 16, 0.1) 100%);
}

.hero-home .container { position: relative; z-index: 2; }

.hero-home .eyebrow { color: #9db1ff; }

.hero-title {
  font-size: clamp(52px, 8.5vw, 104px);
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 700px;
}

.hero-title .accent { color: var(--blue); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }

.hero-text {
  max-width: 460px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Page hero (subpages) ---------- */

.hero-page {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  background: var(--ink);
}

.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.32;
}

.hero-page.hero-leistungen::before { background-image: url("../img/werkzeuge.jpg"); }
.hero-page.hero-ueber::before { background-image: url("../img/pinsel-wand.jpg"); }
.hero-page.hero-kontakt::before { background-image: url("../img/spachtelarbeit.jpg"); }

.hero-page .container { position: relative; z-index: 2; }
.hero-page .eyebrow { color: #9db1ff; }

.hero-page h1 {
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.05;
  color: var(--white);
  max-width: 720px;
}

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section-soft { background: var(--cream-soft); }
.section-head { margin-bottom: 64px; }

/* ---------- Service cards (Home) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #c3cdf5;
  box-shadow: 0 18px 40px rgba(21, 50, 216, 0.08);
}

.service-card .icon {
  width: 44px; height: 44px;
  color: var(--blue);
  margin-bottom: 24px;
}

.service-card .icon svg { width: 100%; height: 100%; }

.service-card h3 { font-size: 23px; margin-bottom: 12px; }

.service-card p { font-size: 15.5px; color: var(--gray); flex-grow: 1; margin-bottom: 24px; }

.card-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-link .arrow { transition: transform 0.2s ease; }
.service-card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Home about preview ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-img img { width: 100%; height: 520px; object-fit: cover; }

.split-content .section-title { font-size: clamp(32px, 4vw, 46px); }
.split-content p { margin-bottom: 18px; color: var(--gray); }
.split-content .btn { margin-top: 14px; }

/* ---------- Values (Home) ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.value-item .value-icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #e4e8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.value-item .value-icon svg { width: 28px; height: 28px; }

.value-item h3 { font-size: 21px; margin-bottom: 10px; }
.value-item p { font-size: 15.5px; color: var(--gray); }

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

.cta-band {
  position: relative;
  padding: 130px 0;
  background: var(--blue);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/fassade-arbeiten.jpg") center / cover no-repeat;
  opacity: 0.38;
  mix-blend-mode: luminosity;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 28, 140, 0.25);
}

.cta-band .container { position: relative; z-index: 2; }

.cta-band h2 {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-band p {
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Leistungen rows ---------- */

.service-rows { display: flex; flex-direction: column; gap: 110px; }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service-row .row-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.service-row.reverse .row-img { order: 2; }
.service-row.reverse .row-text { order: 1; }

.row-text h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.row-text p { color: var(--gray); }

/* ---------- Über uns ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 90px;
  align-items: start;
}

.about-aside { position: sticky; top: calc(var(--header-h) + 40px); }

.about-aside h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.2;
  margin-bottom: 26px;
}

.about-aside::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--blue);
}

.about-body p { margin-bottom: 22px; }

.about-body .about-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  margin: 38px 0;
}

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 70px;
  margin-top: 80px;
}

.stat {
  border-top: 1px solid #aab4e8;
  padding: 26px 0 34px;
}

.stat .stat-number {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
}

.stat .stat-label { font-size: 15.5px; color: var(--gray); }

/* ---------- Kontakt ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 90px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.25; margin-bottom: 40px; }

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-item .ci-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #e4e8fb;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item .ci-icon svg { width: 19px; height: 19px; }

.contact-item .ci-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}

.contact-item .ci-value { font-size: 16.5px; color: var(--ink); font-weight: 500; }
.contact-item .ci-value a:hover { color: var(--blue); }

/* Form */

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 40px;
  margin-bottom: 34px;
}

.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid #c9c5ba;
  padding: 10px 2px;
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--blue); }

.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 14px; color: var(--gray); margin-top: 18px; }

.form-status { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--blue); display: none; }

/* Map */

.map-wrap { line-height: 0; }
.map-wrap iframe { width: 100%; height: 460px; border: 0; filter: saturate(0.9); }

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

.site-footer {
  background: var(--footer-bg);
  color: #b9b9b9;
  padding: 90px 0 0;
  font-size: 15.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 70px;
}

.footer-brand .footer-logo { height: 44px; width: auto; margin-bottom: 24px; }
.footer-brand p { max-width: 320px; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7d7d7d;
  margin-bottom: 24px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 4px; color: #8b8b8b; }

.footer-bottom {
  border-top: 1px solid #2c2c2c;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #8b8b8b;
}

.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Subtle image & hero animations ---------- */

/* Sanfter Zoom auf Bildern beim Hover */
.split-img,
.service-row .row-img,
.about-body .about-img-wrap {
  overflow: hidden;
}

.split-img img,
.service-row .row-img img {
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.split-img:hover img,
.service-row .row-img:hover img {
  transform: scale(1.035);
}

/* Bilder blenden beim Reveal minimal weicher ein */
.reveal img { transition: inherit; }

/* Hero: weiches Einblenden beim Laden der Seite */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-home .eyebrow,
.hero-home .hero-title,
.hero-home .hero-text,
.hero-home .hero-actions,
.hero-page .eyebrow,
.hero-page h1 {
  animation: heroFade 0.9s ease both;
}

.hero-home .hero-title, .hero-page h1 { animation-delay: 0.12s; }
.hero-home .hero-text { animation-delay: 0.24s; }
.hero-home .hero-actions { animation-delay: 0.36s; }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal-page { max-width: 820px; }

.legal-page h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 48px 0 18px;
}

.legal-page h2:first-of-type { margin-top: 0; }

.legal-page h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 8px;
}

.legal-page p { margin-bottom: 16px; color: var(--ink-soft); }

.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-page ul li { margin-bottom: 8px; }

.legal-page a { color: var(--blue); }
.legal-page a:hover { text-decoration: underline; }

.legal-page .legal-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--gray);
}

.legal-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.legal-card p { margin-bottom: 6px; }
.legal-card p:last-child { margin-bottom: 0; }

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .card-link .arrow { transition: none; }
  .split-img img, .service-row .row-img img { transition: none; }
  .split-img:hover img, .service-row .row-img:hover img { transform: none; }
  .hero-home .eyebrow, .hero-home .hero-title, .hero-home .hero-text,
  .hero-home .hero-actions, .hero-page .eyebrow, .hero-page h1 { animation: none; }
}

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

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .split, .service-row { gap: 48px; }
  .about-layout { grid-template-columns: 1fr; gap: 50px; }
  .about-aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 70px; }
}

@media (max-width: 820px) {
  .section { padding: 80px 0; }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 130;
    padding-top: var(--header-h);
  }

  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 18px; padding: 14px 20px; }
  .header-cta { margin: 16px 0 0; }
  .nav-toggle { display: block; }

  .split, .service-row { grid-template-columns: 1fr; }
  .service-row.reverse .row-img { order: 0; }
  .service-row.reverse .row-text { order: 1; }
  .service-rows { gap: 70px; }
  .split-img img, .service-row .row-img img { height: 320px; }
  .about-body .about-img { height: 300px; }

  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .card-grid, .values-grid, .stats-grid { grid-template-columns: 1fr; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
