/* ==========================================================================
   Malermeister KLEX — Stylesheet
   ========================================================================== */

:root {
  --navy-900: #0a1a36;
  --navy-800: #0f2350;
  --navy-700: #16336e;
  --navy-600: #1e458c;
  --gold-500: #f5b301;
  --gold-600: #d99400;
  --gold-100: #fff2d6;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #16213d;
  --text-muted: #5c6478;
  --border: #e7e9f3;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;

  --shadow-sm: 0 2px 10px rgba(10, 26, 54, 0.07);
  --shadow-md: 0 14px 34px rgba(10, 26, 54, 0.14);
  --shadow-lg: 0 26px 64px rgba(10, 26, 54, 0.22);

  --container: 1340px;
  --header-h: 128px;
}

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

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

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

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); margin-top: 10px; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(245, 179, 1, 0.35);
}
.btn-gold:hover { background: var(--gold-600); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-light:hover { background: #fff; color: var(--navy-900); }

.btn-navy {
  background: var(--navy-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-navy:hover { background: var(--navy-800); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); height: 100px; }

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

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 108px; width: auto; transition: height 0.3s ease; }
.site-header.is-scrolled .brand img { height: 87px; }

.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--navy-800);
  white-space: nowrap;
}
.brand-name strong { color: var(--gold-600); font-weight: 800; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}
.main-nav a {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--navy-800);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.phone-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s ease, transform 0.25s ease;
}
.phone-btn:hover { background: var(--navy-700); transform: translateY(-2px); }
.phone-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 85% -10%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff;
  overflow: clip;
  padding-block: 76px 110px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.9; }
.hero-decor svg { position: absolute; }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }

.hero-visual { position: relative; display: flex; justify-content: center; width: 100%; }
.hero-visual .frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid rgba(245, 179, 1, 0.85);
  box-shadow: var(--shadow-lg);
}
.hero-visual .frame img { display: block; width: 100%; height: auto; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--navy-900);
  color: #fff;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-item svg { width: 30px; height: 30px; color: var(--gold-500); flex-shrink: 0; }
.trust-item strong { display: block; font-family: "Poppins", sans-serif; font-size: 0.88rem; letter-spacing: 0.02em; }
.trust-item span { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.62); margin-top: 2px; }

/* ---------- Services ---------- */
.services { padding-block: 100px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 0 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--navy-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 1;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 20px;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .service-image img { transform: scale(1.06); }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; padding-inline: 22px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); padding-inline: 22px; }

/* ---------- About ---------- */
.about { padding-block: 100px; background: var(--surface); }
.about .container {
  max-width: 780px;
}
.about-body ul { margin-top: 26px; display: grid; gap: 14px; }
.about-body li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
}
.about-body li svg {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  color: var(--gold-600);
}
.about-body p { color: var(--text-muted); }

/* ---------- Referenzen ---------- */
.projects { padding-block: 100px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
  color: #fff;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.project-card svg { width: 36px; height: 36px; color: var(--gold-500); }
.project-card strong { font-family: "Poppins", sans-serif; font-size: 1rem; }
.project-card span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 14px);
}
.projects-note {
  margin-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Kontakt ---------- */
.contact { padding-block: 100px; background: var(--surface); }
.contact .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }

.contact-info {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact-info h3 { font-size: 1.3rem; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .item svg { width: 22px; height: 22px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }
.contact-info .item strong { display: block; font-family: "Poppins", sans-serif; font-size: 0.9rem; }
.contact-info .item span, .contact-info .item a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.contact-info .map {
  margin-top: 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.contact-info .map iframe { width: 100%; height: 200px; border: 0; display: block; filter: grayscale(0.15) contrast(1.05); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.field input, .field textarea, .field select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(30, 69, 140, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; }
.consent input { margin-top: 3px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #eaf6ec;
  color: #1f6d33;
  font-size: 0.9rem;
}
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.75); padding-block: 60px 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img { height: 90px; margin-bottom: 14px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { font-size: 0.9rem; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-500); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Legal pages ---------- */
.legal-page { padding-block: 60px 100px; }
.legal-page .container { max-width: 860px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 34px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.96rem; }
.legal-page ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .trust-item:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 960px) {
  .contact .container { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 104px; }
  .brand img { height: 84px; }
  .site-header.is-scrolled .brand img { height: 72px; }
  .header-actions .phone-btn span { display: none; }
  .phone-btn { padding: 12px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-bar .container { grid-template-columns: 1fr; }
  .trust-item { border-left: none; padding-left: 0; }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 90;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--navy-800);
}
.mobile-nav a.phone-btn { margin-top: 20px; justify-content: center; color: #fff; }
