/* ==========================================================
   Malermeister Peter Zinecker – Stylesheet
   ========================================================== */

:root {
  --cream: #fbf6ea;
  --cream-dark: #f3ead4;
  --paper: #fffdf8;
  --brown: #4a3426;
  --brown-soft: #7a5a44;
  --line: #e4d6b8;
  --accent: #c0562f;
  --accent-dark: #9e4322;
  --ochre: #e0a63a;
  --green: #8a9a3c;
  --blue: #6f93a8;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(74, 52, 38, 0.10);
  --max: 1120px;

  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--cream); }

.btn svg { width: 1.1em; height: 1.1em; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brown);
}
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.brand-sub { font-size: 0.8rem; color: var(--brown-soft); letter-spacing: 0.04em; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--brown);
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent); }
.main-nav .btn { color: #fff; padding: 0.55em 1.1em; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--brown);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .main-nav li a { display: block; padding: 12px 0; }
  .main-nav li .btn { justify-content: center; margin-top: 8px; padding: 0.8em 1.2em; }
}

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

.hero {
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--brown-soft);
  max-width: 34em;
  margin-bottom: 1.8em;
}

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

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(74, 52, 38, 0.18)); }

@media (max-width: 820px) {
  .hero { padding: 40px 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 380px; margin: 0 auto; order: -1; }
}

/* ---------- Trust bar ---------- */

.trust {
  background: var(--brown);
  color: var(--cream);
  padding: 22px 0;
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 12px 32px;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.trust svg { width: 22px; height: 22px; color: var(--ochre); flex-shrink: 0; }

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

.section { padding: 88px 0; }
.section-alt { background: var(--cream-dark); }

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head p { color: var(--brown-soft); font-size: 1.1rem; }

@media (max-width: 820px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
}
.service-icon svg { width: 26px; height: 26px; }
.service p { margin: 0; color: var(--brown-soft); font-size: 0.98rem; }

.c1 { background: var(--accent); }
.c2 { background: var(--ochre); }
.c3 { background: var(--green); }
.c4 { background: var(--blue); }
.c5 { background: var(--brown-soft); }

.service-highlight {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--brown);
  color: var(--cream);
  border-color: var(--brown);
}
.service-highlight .service-icon { margin: 0; flex-shrink: 0; width: 64px; height: 64px; }
.service-highlight .service-icon svg { width: 32px; height: 32px; }
.service-highlight h3 { color: #fff; }
.service-highlight p { color: #e9dcc4; }

@media (max-width: 600px) {
  .service-highlight { flex-direction: column; align-items: flex-start; }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--ochre), var(--green), var(--blue));
}
.about-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 8px auto 20px;
  object-fit: cover;
  background: var(--cream-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--brown-soft);
}
.about-card h3 { margin-bottom: 4px; }
.about-card .role { color: var(--brown-soft); margin-bottom: 20px; }
.about-card .btn { width: 100%; justify-content: center; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checklist svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-card { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.steps p { margin: 0; color: var(--brown-soft); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

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

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 20px;
}
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-info .ci-icon svg { width: 20px; height: 20px; }
.contact-info strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brown-soft); }
.contact-info a { color: var(--brown); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact-info a:hover { color: var(--accent); }

.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.field .optional { font-weight: 400; color: var(--brown-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--brown);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 86, 47, 0.15);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--brown-soft);
  margin-bottom: 22px;
}
.checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }

.form-note { font-size: 0.85rem; color: var(--brown-soft); margin: 14px 0 0; }

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef3df;
  color: #4a5a1c;
  display: none;
}
.form-status.show { display: block; }

@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 24px 20px; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

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

.site-footer {
  background: var(--brown);
  color: #e9dcc4;
  padding: 40px 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a { color: #e9dcc4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

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

.legal { padding: 56px 0 80px; }
.legal .container { max-width: 800px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }

.todo {
  background: #ffe8a3;
  padding: 0 4px;
  border-radius: 4px;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
