/* =========================================================
   Malerbetrieb Paschedag – Stylesheet
   Farben & Schriften zentral in :root anpassbar
   ========================================================= */

/* ---------- Schriften (lokal gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3EEE5;
  --sand: #E8E0D2;
  --line: #DCD3C4;
  --ink: #1D1A17;
  --ink-soft: #4A433C;
  --muted: #5E564D;
  --accent: #B04A2A;        /* Hauptakzent (Terrakotta) */
  --accent-light: #E89A7C;  /* Akzent auf dunklem Grund */
  --white: #FFFFFF;
  --dark-2: #24201D;
  --dark-line: #3A3430;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad: clamp(20px, 6.7vw, 96px);
  --section-y: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #9E4325; }
h1, h2, h3, p, dl, dd, figure, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #963D21; color: var(--white); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: var(--paper); }
.btn-outline { background: var(--white); border-color: var(--ink); color: var(--ink); font-weight: 500; }
.btn-outline:hover { background: var(--sand); color: var(--ink); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-row-wrap { gap: 12px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-small { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.logo-big { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 16px; font-weight: 500; }
.main-nav > a:not(.btn) { text-decoration: none; }
.main-nav > a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.brush-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px 0 7px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--accent); border-radius: 999px;
  font: 600 16px/1 var(--sans); cursor: pointer;
}
.brush-toggle[aria-pressed="true"] { background: var(--accent); color: var(--white); }
.brush-toggle-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--white);
}
.brush-toggle-icon svg { position: relative; animation: wiggle 2.4s ease-in-out infinite; }
.pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-out infinite; }
body.brush-used .pulse { display: none; }

.menu-toggle { display: none; }

@keyframes pulse { 0% { transform: scale(1); opacity: .9 } 70%, 100% { transform: scale(2.4); opacity: 0 } }
@keyframes wiggle { 0%, 100% { transform: rotate(0) } 20% { transform: rotate(-14deg) } 40% { transform: rotate(10deg) } 60% { transform: rotate(-6deg) } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px) } to { opacity: 1; transform: none } }

/* ---------- Typo-Bausteine ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.kicker-line { width: 32px; height: 2px; background: var(--accent); }
.eyebrow { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow-light { color: #B9AFA2; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -1px; }
.h2 em, .contact-title em { font-style: italic; }
.section-intro { max-width: 440px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.lead { max-width: 520px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-soft); }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; gap: 0; }
.section-sand { background: var(--sand); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: clamp(48px, 5.5vw, 80px); padding-bottom: clamp(64px, 6.5vw, 96px); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6.4vw, 92px); line-height: .98; letter-spacing: -2px; }
.stroke-word { position: relative; display: inline-block; font-style: italic; font-weight: 600; }
.stroke-word svg { position: absolute; left: -4%; bottom: 4%; width: 110%; height: 50%; z-index: 0; }
.stroke-word svg path { fill: var(--accent); opacity: .35; }
.stroke-word span { position: relative; }
.hero-brush-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font: italic 400 20px/1.2 var(--serif);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.hero-brush-link svg { color: var(--accent); flex-shrink: 0; }

.room { display: flex; flex-direction: column; gap: 20px; }
.room-card { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(29,26,23,.45); }
.room-svg { display: block; width: 100%; height: auto; }
.js-wall { transition: fill .45s ease; }
.room-badge {
  position: absolute; left: 20px; top: 20px; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(248,244,237,.94); border-radius: 999px; font-size: 14px; font-weight: 500;
}
.room-badge-dot { width: 14px; height: 14px; border-radius: 50%; background: #9DAE93; border: 1px solid rgba(29,26,23,.25); }
.room-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--ink-soft); }
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--c); border: 1px solid rgba(29,26,23,.25);
  transition: transform .15s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }

/* ---------- Gewerke-Band ---------- */
.trades { background: var(--ink); color: var(--paper); overflow: hidden; }
.trades-inner {
  max-width: 1440px; margin: 0 auto; padding: 26px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font: italic 400 clamp(18px, 1.8vw, 26px)/1.2 var(--serif); white-space: nowrap;
}
.trades i { font-style: normal; color: var(--accent-light); }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.chip { display: flex; flex-direction: column; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(29,26,23,.35); }
.chip-color { position: relative; height: 170px; background: var(--c); }
.chip-color span { position: absolute; left: 24px; top: 20px; font-size: 13px; letter-spacing: 2px; font-weight: 600; color: var(--chip-ink, #1D1A17); }
.chip-drip { position: absolute; left: 0; bottom: -1px; width: 100%; height: 34px; display: block; }
.chip-drip path { fill: var(--white); }
.chip-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 28px 32px; }
.chip-body h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; }
.chip-body p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Ablauf ---------- */
.steps { position: relative; }
.steps-stroke { position: absolute; left: 0; top: 18px; width: 100%; height: 60px; }
.steps-stroke path { fill: none; stroke: var(--accent); stroke-width: 18; stroke-linecap: round; opacity: .28; }
.steps-list { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.steps-list li { display: flex; flex-direction: column; gap: 18px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: var(--paper); font: italic 400 36px/1 var(--serif); }
.steps-list h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; }
.steps-list p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Ausmalbild ---------- */
.book { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.book-card { background: var(--white); border-radius: 28px; padding: 24px; box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(29,26,23,.4); }
.book-svg { display: block; width: 100%; height: auto; border-radius: 16px; }
.region { cursor: pointer; transition: fill .3s ease; }
.region:hover { filter: brightness(.95); }
.region:focus-visible { outline: none; stroke: var(--accent); stroke-width: 5; }
.book-panel { display: flex; flex-direction: column; gap: 28px; padding: 8px 0; }
.book-block { display: flex; flex-direction: column; gap: 14px; }
.book-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.book-palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.book-color { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer; font: 12px/1.2 var(--sans); color: var(--ink-soft); }
.book-color span:first-child { width: 56px; height: 56px; border-radius: 50%; background: var(--c); border: 1px solid rgba(29,26,23,.25); }
.book-color[aria-pressed="true"] span:first-child { border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--white); }
.progress { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.progress-track { flex-grow: 1; height: 10px; border-radius: 5px; background: var(--sand); overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: var(--accent); border-radius: 5px; transition: width .4s ease; }
.book-done { font: italic 400 20px/1.3 var(--serif); }
.book-msg { min-height: 21px; font-size: 14px; color: var(--ink-soft); }
.book-cta { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; border-radius: 20px; background: var(--sand); }
.book-cta p { font: 400 24px/1.25 var(--serif); }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.about-visual { position: relative; min-height: 560px; }
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 24px;
  color: var(--muted); font-size: 15px;
  background: repeating-linear-gradient(135deg, var(--p1, #DCD3C4) 0 14px, var(--p2, #E8E0D2) 14px 28px);
}
.about-photo { position: absolute; left: 0; top: 0; width: 80%; height: 500px; border-radius: 24px; }
.about-badge { position: absolute; right: 20px; bottom: 0; width: 230px; padding: 28px; border-radius: 20px; background: var(--accent); color: var(--white); display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }
.about-year { font: 400 48px/1 var(--serif); }
.about-text { display: flex; flex-direction: column; gap: 28px; }
.about-text .eyebrow { margin-bottom: 0; }
.about-text .section-intro { max-width: none; line-height: 1.7; }
.values { border-top: 1px solid var(--line); }
.values > div { display: flex; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.values dt { width: 150px; flex-shrink: 0; font: italic 400 28px/1.2 var(--serif); }
.values dd { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Referenzen ---------- */
.refs-section { padding-top: 20px; padding-bottom: 140px; }
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ref { display: flex; flex-direction: column; gap: 14px; }
.ref-wide { grid-column: span 2; }
.ref-img { height: 440px; border-radius: 22px; overflow: hidden; }
.ref-img-short { height: 320px; }
.ref-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.ref figcaption span { color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { position: relative; background: var(--ink); color: var(--paper); }
.contact-drips { position: absolute; left: 0; top: -1px; width: 100%; height: 90px; display: block; }
.contact-drips path { fill: var(--paper); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; padding-top: 170px; padding-bottom: 100px; }
.contact-text { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.contact-text .eyebrow { margin-bottom: 0; }
.contact-title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.3vw, 76px); line-height: 1; letter-spacing: -1.5px; }
.contact-title em { color: var(--accent-light); }
.contact-lead { max-width: 480px; font-size: 18px; line-height: 1.7; color: #CFC6B8; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--dark-line); border-radius: 24px; overflow: hidden; align-self: center; }
.contact-grid > div { display: flex; flex-direction: column; gap: 10px; padding: 36px; background: var(--dark-2); font-size: 18px; line-height: 1.5; }
.contact-grid address { font-style: normal; }
.c-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #B9AFA2; }
.c-big { font: 400 26px/1.2 var(--serif); color: var(--paper); text-decoration: none; overflow-wrap: anywhere; }
.c-big:hover { color: var(--accent-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9AFA2; border-top: 1px solid var(--dark-line); font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.footer-claim { font: italic 400 20px/1.2 var(--serif); color: var(--paper); }
.site-footer nav { display: flex; gap: 28px; }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--accent-light); }

/* ---------- Malfläche ---------- */
.paint-layer { position: absolute; left: 0; top: 0; width: 100%; z-index: 40; pointer-events: none; }
body.painting .paint-layer { pointer-events: auto; cursor: crosshair; touch-action: none; }

.dock { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 60; }
.dock[hidden] { display: none; }
.dock-panel {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 64px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: none;
  padding: 12px 0; background: var(--white); border-radius: 32px;
  box-shadow: 0 20px 44px -18px rgba(29,26,23,.55), 0 0 0 1px var(--line);
  animation: slideIn .35s ease-out;
}
.dock-panel::-webkit-scrollbar { display: none; }
.dock-group { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dock-group + .dock-group { padding-top: 10px; border-top: 1px solid var(--line); width: 40px; }
.dock-group + .dock-group > * { flex-shrink: 0; }
.dock-label { font-size: 9px; letter-spacing: .6px; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.dock-colors { display: flex; flex-direction: column; gap: 8px; }
.tool {
  width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
}
.tool:hover { background: var(--sand); }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tool-line { border: 1.5px solid var(--line); background: var(--white); }
.tool-done { background: var(--accent); color: var(--white); }
.tool-done:hover { background: #963D21; }
.dock-color { width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer; background: var(--c); border: 1px solid rgba(29,26,23,.25); }
.dock-color[aria-pressed="true"] { border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--white); }
.size { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.size[aria-pressed="true"] { border: 2px solid var(--ink); }
.size span { width: var(--d); height: var(--d); border-radius: 50%; background: var(--brush, #C0603E); box-shadow: 0 0 0 1px rgba(29,26,23,.2); }
.dock-area { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; }
.dock-area strong { font: 600 18px/1.1 var(--serif); white-space: nowrap; }
.dock-area small { font-size: 10px; color: var(--muted); }
.dock-hint, .dock-msg {
  position: absolute; left: 82px; width: 260px; padding: 18px 20px;
  background: var(--ink); color: var(--paper); border-radius: 18px; font-size: 15px; line-height: 1.5;
  box-shadow: 0 18px 40px -16px rgba(29,26,23,.6); animation: slideIn .5s ease-out;
}
.dock-hint { top: 8px; }
.dock-hint strong { display: block; margin-bottom: 6px; font: italic 400 22px/1.2 var(--serif); color: var(--accent-light); }
.dock-hint[hidden], .dock-msg[hidden] { display: none; }
.dock-msg { bottom: 60px; width: 230px; padding: 12px 16px; font-size: 14px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav { gap: 18px; font-size: 15px; }
  .hero { gap: 40px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps-stroke { display: none; }
  .book { grid-template-columns: minmax(0, 1fr); }
  .book-palette { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .about, .contact-inner { gap: 48px; }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 50%;
    background: var(--white); cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px;
    padding-top: 12px; font-size: 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .brush-toggle, .main-nav .btn { margin-top: 12px; justify-content: center; }

  .hero, .about, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .trades-inner { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head-center { align-items: center; }
  .about-visual { min-height: 480px; }
  .about-photo { height: 420px; width: 88%; }
  .contact-inner { padding-top: 140px; }
}

@media (max-width: 640px) {
  .hero-title { letter-spacing: -1px; }
  .swatch-row { gap: 8px; }
  .swatch { width: 44px; height: 44px; }
  .btn-row .btn { flex: 1 1 auto; }
  .services, .steps-list, .refs { grid-template-columns: minmax(0, 1fr); }
  .ref-wide { grid-column: auto; }
  .ref-img, .ref-img-short { height: 260px; }
  .book-card { padding: 12px; border-radius: 20px; }
  .book-palette { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .values > div { flex-direction: column; gap: 6px; }
  .values dt { width: auto; }
  .about-visual { min-height: 400px; }
  .about-photo { height: 340px; width: 100%; }
  .about-badge { right: 12px; width: 200px; padding: 20px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid > div { padding: 26px; }
  .contact-drips { height: 50px; }
  .contact-inner { padding-top: 100px; padding-bottom: 72px; }

  /* Werkzeugleiste unten als horizontale Leiste */
  .dock { left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .dock-panel { flex-direction: row; width: auto; max-height: none; overflow-x: auto; padding: 8px 12px; border-radius: 24px; }
  .dock-group { flex-direction: row; }
  .dock-group + .dock-group { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 10px; width: auto; }
  .dock-colors { flex-direction: row; }
  .dock-label { display: none; }
  .dock-hint, .dock-msg { left: 0; right: 0; width: auto; top: auto; bottom: calc(100% + 10px); }
}

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