:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f7f4ee;
  --c-text: #1f1f1f;
  --c-muted: #5c5c5c;
  --c-gold: #c9a24a;
  --c-brown: #7a5c25;
  --c-line: #e4ddd0;
  --radius: 10px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --c-bg: #ffffff; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brown); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 2px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand img { width: 150px; height: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
}
.btn-primary { background: var(--c-text); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { border-color: var(--c-text); color: var(--c-text); background: transparent; }
.btn-small { padding: 8px 14px; min-height: 40px; background: var(--c-gold); color: var(--c-text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: 56px 0 64px; background: var(--c-bg-alt); border-bottom: 6px solid var(--c-gold); }
.eyebrow { color: var(--c-brown); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 12px; }
.lead { font-size: 1.15rem; max-width: 40em; margin: 0; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--c-bg-alt); }

.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
.services li {
  background: #fff; border: 1px solid var(--c-line);
  border-left: 5px solid var(--c-gold);
  border-radius: var(--radius); padding: 20px;
}
.services p { margin: 0; color: var(--c-muted); }

.two-col { display: grid; gap: 32px; grid-template-columns: 1fr; }
.contact-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.contact-card p { margin: 0 0 8px; }
.contact-card a { font-weight: 700; font-size: 1.15rem; }
.muted { color: var(--c-muted); font-size: .92rem; }

/* Form – Schriftgrösse 16px+ verhindert Zoom auf iOS */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 16px;
  padding: 12px; border: 1px solid #8a8a8a; border-radius: 8px;
  width: 100%; background: #fff; color: var(--c-text);
}
.form-note { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* Footer */
.site-footer { background: var(--c-text); color: #f2f2f2; padding: 32px 0; font-size: .95rem; }
.site-footer a { color: #f2f2f2; }
.footer-meta p { margin: 0 0 8px; }
.footer-meta nav { margin-bottom: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.creator-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .88rem; white-space: nowrap; }
.creator-credit .swiss-cross { flex: none; display: inline-block; width: 14px; height: 14px; margin-left: 4px; }

/* Legal pages */
.legal { padding: 40px 0 56px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 28px; }
.placeholder { background: #fff3c4; padding: 0 4px; }

/* Tablet and up */
@media (min-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; }
  .creator-credit { white-space: normal; }
}
@media (min-width: 900px) {
  .services { grid-template-columns: 1fr 1fr 1fr; }
  .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .brand img { width: 180px; }
}

/* ===== Stil: Grainy gradient (Hintergrund-Stil Nr. 9, Vorschlag, Umsetzung bis Bestätigung) ===== */
.grain {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 10%, #f1d98e 0%, rgba(241,217,142,0) 55%),
    radial-gradient(100% 80% at 0% 100%, #e7c46d 0%, rgba(231,196,109,0) 60%),
    linear-gradient(160deg, #fbf6ea 0%, #f4ead2 100%);
  overflow: hidden;
}
.grain::before {
  content: "";
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  animation: grain-shift 1.2s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,3%); } 80% { transform: translate(3%,1%); } 100% { transform: translate(0,0); }
}
.hero-inner { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 28px; }
.hero h1 .accent { color: var(--c-brown); }
.btn-whatsapp { background: #25d366; color: #0b1f12; }
.btn-whatsapp:hover { background: #1ebe5a; }

/* Services: Hover-Effekt */
.services li { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease; }
.services li:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(31,31,31,.12); border-left-color: var(--c-text); }
.btn { transition: transform .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

/* Instagram-Einbettung */
.embed-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; justify-items: center; }
.embed-grid iframe { width: 100%; max-width: 400px; height: 520px; border: 0; border-radius: var(--radius); background: #fff; }
@media (min-width: 760px) { .embed-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Einblend-Animation (nur mit JS und ohne reduzierte Bewegung) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.delay-1 { transition-delay: .12s; }
.js .reveal.delay-2 { transition-delay: .24s; }
.js .reveal.delay-3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .grain::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .services li, .btn { transition: none; }
}
