/* Malerfachbetrieb Hintze – landing page
   Order: font → tokens → base → shared components → sections → responsive */

/* ---------- Font (self-hosted: no request to Google, GDPR-safe) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors, measured from the logo */
  --green: #21a73f;        /* logo green: accents, icons, circles, check marks */
  --green-text: #1e9939;   /* logo green, one notch darker: large text on light grey (≥ 3:1) */
  --green-strong: #157a2e; /* buttons + links on white and light grey (≥ 4.5:1) */
  --green-deep: #0f5f23;   /* hover */
  --anthracite: #4f4f4e;   /* logo grey */

  /* Neutrals */
  --ink: #262626;
  --text: #5f5f5f;
  --muted: #646464;
  --grey-100: #f3f3f2;
  --grey-200: #e6e6e5;
  --white: #ffffff;

  /* Shapes */
  --radius-xl: clamp(32px, 4vw, 56px);
  --radius-lg: clamp(28px, 3vw, 40px);
  --radius-md: clamp(22px, 2.4vw, 30px);
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(38, 38, 38, 0.08);
  --shadow-icon: 0 8px 22px rgba(38, 38, 38, 0.1);

  /* Typography */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.2rem, 4.2vw, 3.5rem);
  --fs-h2: clamp(1.85rem, 3.2vw, 2.6rem);
  --fs-eyebrow: 0.95rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-button: 0.8125rem;

  /* Layout */
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-space: clamp(48px, 5vw, 64px);
  --header-height: 92px;
}

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

html {
  color-scheme: light;
  overflow-x: hidden; /* keeps body overflow on the body (see below) */
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  overflow: clip; /* cuts off the large background shapes, sticky header still works */
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Large grey circle behind contact, banner and footer */
body::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 69%;
  bottom: 0;
  width: max(1100px, 132vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grey-100);
  transform: translate(-50%, 42%);
  pointer-events: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

/* :where() keeps this reset at zero specificity, so component margins win */
:where(ul[role="list"]) {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

/* ---------- Shared components ---------- */

/* Eyebrow + heading: the two-step headline used in every section */
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eyebrow--line::after {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--green);
}

.section-title {
  font-size: var(--fs-h2);
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  text-align: center;
}

.text-green {
  color: var(--green-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 46px;
  padding: 0.9em 2.1em;
  border: 0;
  border-radius: var(--radius-pill);
  font: 700 var(--fs-button) / 1.2 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green-strong);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(21, 122, 46, 0.22);
}

.btn--primary:hover {
  background: var(--green-deep);
}

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

.btn--dark:hover {
  background: #3c3c3b;
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--phone {
  padding-inline: 1.4em;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Fade-in on scroll (only active when JS adds .has-reveal) */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0ms);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 4px solid var(--green);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 8px 30px rgba(38, 38, 38, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: calc(var(--header-height) - 4px);
}

.brand {
  flex: none;
}

.brand img {
  width: clamp(150px, 13vw, 180px);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
}

.site-nav ul a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav ul a:hover::after,
.site-nav ul a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-icon);
  cursor: pointer;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- Hero ---------- */
/* Full-bleed background image, text sits on top of a dark gradient */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 78vh, 780px);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.78) 0%, rgba(20, 20, 20, 0.55) 50%, rgba(20, 20, 20, 0.2) 100%);
}

.hero-content {
  padding-block: clamp(56px, 8vw, 104px);
}

.hero-content > * {
  max-width: 640px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.hero-content h1 {
  margin-bottom: 0.45em;
  font-size: var(--fs-h1);
  color: #fff;
}

.hero .text-green {
  color: var(--green);
}

.hero-lead {
  max-width: 44ch;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  max-width: 1040px;
  margin-inline: auto;
}

.service-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  background: var(--ink);
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center);
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

/* Dark gradient so the white title stays readable on every photo */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.6) 50%, rgba(18, 18, 18, 0) 80%);
}

.service-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: clamp(20px, 3vw, 32px) clamp(22px, 3.4vw, 40px);
  color: var(--white);
}

.service-card h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--white);
}

/* Two-column grid: reserve two title lines so all descriptions start at the same height */
@media (min-width: 640px) {
  .service-card h3 {
    display: flex;
    align-items: flex-end;
    min-height: 2.5em;
  }
}

.service-card p {
  max-width: 40ch;
  margin: 0.35em 0 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.about-media {
  position: relative;
}

.about-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.08;
  padding: 5%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, var(--grey-100) 55%, #e9e9e8 100%);
}

/* Ground shadow under the van */
.about-frame::after {
  content: "";
  position: absolute;
  right: 16%;
  bottom: 24%;
  left: 16%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(38, 38, 38, 0.24), rgba(38, 38, 38, 0));
}

.about-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
}

.about-dot {
  position: absolute;
  top: 9%;
  right: -22px;
  width: clamp(56px, 7vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 16px 32px rgba(33, 167, 63, 0.3);
}

.about-content .section-title {
  margin-bottom: 1.2rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 1.6rem 0 1.8rem;
}

.check-list li {
  position: relative;
  padding-left: 38px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.signature {
  margin-bottom: 1.8rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.signature strong {
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.contact-info .section-title {
  margin-bottom: 1.2rem;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 1.8rem 0;
}

.contact-list dt {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink);
}

.contact-list dd {
  margin: 0;
}

.contact-list a {
  font-weight: 600;
  color: var(--green-strong);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

address {
  font-style: normal;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-strong);
  text-decoration: none;
}

.text-link:hover {
  color: var(--green-deep);
}

.contact-card {
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.contact-card .section-title {
  margin-bottom: 1.6rem;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--grey-100);
  font: 500 0.9375rem / 1.4 var(--font);
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  min-height: 140px;
  padding: 16px 24px;
  border-radius: 26px;
  resize: vertical;
}

.contact-form ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(33, 167, 63, 0.15);
}

.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: #c62828;
}

.form-note {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-note a {
  color: var(--green-strong);
}

.form-status {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--green-strong);
}

.form-status:empty {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* ---------- Call-to-action banner ---------- */
.cta {
  padding-block: 0 clamp(64px, 8vw, 96px);
}

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: clamp(32px, 4vw, 44px) clamp(28px, 5vw, 64px);
  border-radius: var(--radius-md);
  /* Logo-green glow sits bottom right (behind the call button), small text stays on the darker green */
  background: radial-gradient(120% 160% at 100% 100%, var(--green) 0%, rgba(33, 167, 63, 0) 60%), var(--green-strong);
  color: var(--white);
  box-shadow: 0 30px 60px -24px rgba(21, 122, 46, 0.5);
}

.cta-banner .eyebrow {
  font-weight: 600;
  color: var(--white);
}

.cta-banner .section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  color: var(--white);
}

.cta-pill {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 6px 6px 28px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease;
}

.cta-pill:hover {
  transform: translateY(-1px);
}

.cta-pill__number {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-block: 8px 32px;
  text-align: center;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.footer-icons a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-icon);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-icons a:hover {
  color: var(--green-strong);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  margin-bottom: 28px;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green-strong);
}

.copyright {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--grey-200);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--white);
    box-shadow: 0 24px 40px rgba(38, 38, 38, 0.08);
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 14px 0;
    font-size: var(--fs-body);
    border-bottom: 1px solid var(--grey-200);
  }

  .site-nav ul a::after {
    display: none;
  }

  .nav-cta {
    display: flex;
    width: 100%;
    margin-top: 20px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn--primary {
    display: none;
  }

  .btn--phone {
    width: 46px;
    padding: 0;
  }

  .btn--phone span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 899px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-media {
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .about-dot {
    right: 4%;
    top: -18px;
  }

  body::after {
    left: 75%;
    width: max(900px, 240vw);
    transform: translate(-50%, 46%);
  }
}

@media (max-width: 639px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    aspect-ratio: 4 / 3;
  }

  .cta-pill {
    width: 100%;
    justify-content: space-between;
    padding-left: 22px;
  }

  .cta-pill .btn {
    padding-inline: 1.4em;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 899px) {
  /* Text spans the full width on small screens, so darken the whole video evenly */
  .hero::before {
    background: rgba(20, 20, 20, 0.62);
  }
}

@media (max-width: 479px) {
  .eyebrow--line::after {
    display: none;
  }

  .hero .eyebrow {
    font-size: 0.8125rem;
  }

  /* Number above a full-width button, so nothing overflows on small phones */
  .cta-pill {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    text-align: center;
  }
}

@media print {
  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Legal pages (Impressum, Datenschutz) ---------- */
.site-header--solid {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(38, 38, 38, 0.07);
}

.legal {
  min-height: 60vh;
}

.legal-inner {
  max-width: 760px;
}

.legal-inner h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-inner p {
  margin: 0 0 1rem;
}

.legal-inner a {
  color: var(--green-strong);
  text-decoration: underline;
}

.legal-inner ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-inner li {
  margin-bottom: 0.4rem;
}

/* Narrow desktop: the header is too tight for both buttons, keep the phone number */
@media (min-width: 960px) and (max-width: 1099px) {
  .header-actions > .btn--primary {
    display: none;
  }
}
