/* oerli.ai Website (Startseite, Steckbriefe, Leistungen, Über uns, Kontakt, Anfrage, Rechtliches).
   Die Seiteninhalte tragen ihre Gestaltung inline (aus dem Design-Canvas übernommen,
   design/zu-app.mjs). Hier: Grundlagen, Kopf- und Fusszeile, Formular, Telefon-Anpassungen. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #f5ead8; color: #201e1d; font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; }
img { display: inline-block; } /* kein max-width: die Till-Figur auf /ueber-uns hat feste Höhe und freie Breite, sonst wird sie gestaucht */

/* Illustrationen «Tusche und Fläche» (src/site/illu.js): stehen auf dem Seitenpapier #f5ead8, Ränder gehen nahtlos über */
/* Die Maske lässt die äussersten 3 % auslaufen, falls die WebP-Kompression den Papierton um 1–2 Stufen verschiebt. */
.illu { max-width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
a { color: #56633f; }
a:hover { color: #3d472b; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #56633f; outline-offset: 2px; border-radius: 4px; }
::selection { background: #e1eecc; }

/* Kopf- und Fusszeile */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 20px 32px; border-bottom: 1px solid rgba(32,30,29,.14); }
.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #201e1d; font-family: 'Hanken Grotesk', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.site-logo:hover { color: #201e1d; }
.site-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #728157; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 600; }
.site-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a.is-active { color: #201e1d; box-shadow: inset 0 -2px 0 #56633f; }
.site-cta, .btn-primary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 0; background: #56633f; color: #f5ead8; text-decoration: none; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.site-cta:hover, .btn-primary:hover { background: #3d472b; color: #f5ead8; }
.btn-primary { min-height: 48px; padding: 12px 24px; font-size: 16px; }
.btn-secondary { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px; border-radius: 10px; border: 1.5px solid #201e1d; background: transparent; color: #201e1d; font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn-secondary:hover { background: rgba(32,30,29,.06); color: #201e1d; }
.site-footer { margin-top: auto; padding: 20px 32px; border-top: 1px solid rgba(32,30,29,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: 13.5px; color: #5c5853; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }

/* Anfrage-Formular */
.anfrage .step { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.anfrage legend { padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 6px; }
.anfrage .step-title { font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.1; }
.anfrage .step-intro { font-size: 15.5px; line-height: 1.5; color: #3d3a37; max-width: 56ch; }
.anfrage .sub-label { font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 18px; margin-top: 6px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip .box { display: flex; flex-direction: column; gap: 6px; min-height: 88px; padding: 14px 16px; border-radius: 14px; background: #ebddc5; border: 2px solid transparent; color: #201e1d; transition: background .12s, border-color .12s; }
.chip:hover .box { border-color: rgba(86,99,63,.4); }
.chip input:checked + .box { background: #e1eecc; border-color: #56633f; }
.chip input:focus-visible + .box { outline: 2px solid #56633f; outline-offset: 2px; }
.chip .t { font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 17px; }
.chip .h { font-size: 13.5px; line-height: 1.4; color: #3d3a37; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill .box { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field .muted { font-weight: 500; color: #5c5853; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid rgba(32,30,29,.3); background: #fff; font-family: inherit; font-size: 15.5px; color: #201e1d; }
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid #56633f; outline-offset: 0; border-color: #56633f; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: #3d3a37; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #56633f; flex-shrink: 0; }
.form-error { background: #f3d98a; border-radius: 10px; padding: 12px 16px; font-size: 15px; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fester Balken auf dem Telefon */
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px 20px; background: linear-gradient(to top, #f5ead8 70%, rgba(245,234,216,0)); z-index: 5; }
.sticky-cta a { flex-grow: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px; background: #56633f; color: #f5ead8; text-decoration: none; font-weight: 700; font-size: 16px; box-shadow: 0 8px 20px rgba(46,43,37,.25); }

/* Telefon: Abstände, Schriftgrössen, Illustrationen */
@media (max-width: 720px) {
  .site-header { padding: 14px 16px; gap: 8px 12px; }
  .site-nav { order: 3; width: 100%; gap: 4px 16px; font-size: 14.5px; }
  .site-nav a { min-height: 40px; }
  .site-cta { padding: 8px 14px; font-size: 14px; }
  .site-footer { padding: 20px 16px; }
  .site-root h1[style*="font-size: 60px"] { font-size: 36px !important; }
  .site-root h1[style*="font-size: 54px"], .site-root h1[style*="font-size: 52px"], .site-root h1[style*="font-size: 50px"],
  .site-root h1[style*="font-size: 44px"], .site-root h1[style*="font-size: 42px"] { font-size: 34px !important; }
  .site-root h2[style*="font-size: 40px"], .site-root h2[style*="font-size: 34px"] { font-size: 27px !important; }
  .site-root h2[style*="font-size: 32px"], .site-root h2[style*="font-size: 30px"] { font-size: 25px !important; }
  .site-root p[style*="font-size: 26px"] { font-size: 19px !important; }
  .site-root section[style*="padding: 56px 32px"], .site-root section[style*="padding: 48px 32px"], .site-root section[style*="padding: 64px 32px"],
  .site-root section[style*="padding: 0 32px"], .site-root section[style*="padding: 24px 32px"], .site-root main[style*="32px"], .site-root div[style*="padding: 64px 32px"] { padding-left: 16px !important; padding-right: 16px !important; }
  .site-root section[style*="padding: 56px 32px"] { padding-top: 32px !important; }
  .site-root section[style*="padding: 36px 40px"], .site-root div[style*="padding: 40px"][style*="border-radius: 20px"], .site-root section[style*="padding: 44px 40px"] { padding: 26px 20px !important; }
  .site-root .hero-bild { order: -1; }
  .site-root .projekte-bild, .site-root .kontakt-bild { max-width: 360px; }
  .site-root .spot { width: 140px !important; }
  .sticky-cta { display: flex; }
  body.has-sticky .site-footer { padding-bottom: 104px; }
}
