/* Inter Tight (SIL Open Font License), lokal gehostet, keine Daten an Dritte. */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-tight-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-tight-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Farben aus der Alpenwelt:
   Tannengrün = Marke (Vertrauen, Natur), Bernstein «Alpenglühen» = Handlungsaufforderung,
   Steinweiss = ruhige Flächen, Nachtgrün = Text und dunkle Bereiche. */
:root {
  --forest: #1f4a3a;
  --forest-2: #2b5e4b;
  --ink: #13211b;
  --ink-2: #1c2d26;
  --amber: #e9a23b;
  --amber-2: #f0b45a;
  --stone: #f3efe6;
  --stone-2: #e8e1d3;
  --white: #ffffff;
  --muted: #56645d;
  --line: #ddd6c8;
  --on-dark: #e6ece8;
  --on-dark-muted: #a3b3aa;
  --max: 1160px;
  --gutter: 32px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.55; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
/* Fusszeile sitzt auf jeder Seite ganz unten, auch wenn der Inhalt kurz ist */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main { flex: 1 0 auto; }
main:focus { outline: none; }
.foot { flex-shrink: 0; }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--ink); }

/* Kleines Label über Überschriften: Grossbuchstaben mit Quadrat in Bernstein */
.label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  color: var(--forest); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.label::before { content: ''; width: 8px; height: 8px; background: var(--amber); }
.label-light { color: var(--on-dark); }
.label-small { margin-bottom: 10px; font-size: 12px; }
.label-small::before { width: 6px; height: 6px; }

/* ---------- Knöpfe & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px;
  background: var(--amber); color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.btn::after { content: '→'; font-size: 18px; letter-spacing: 0; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-large { min-height: 62px; padding: 0 34px; font-size: 16px; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--forest); text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.arrow-link::after { content: '→'; font-size: 17px; letter-spacing: 0; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--amber-2); }
  .btn:hover::after, .arrow-link:hover::after { transform: translateX(4px); }
  .arrow-link:hover { text-decoration: underline; text-underline-offset: 5px; }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--stone);
  box-shadow: 0 1px 0 transparent; transition: box-shadow 200ms ease, background-color 200ms ease;
}
.nav.scrolled { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo span { font-size: 23px; font-weight: 800; letter-spacing: -0.045em; text-transform: lowercase; line-height: 1; }
.logo-mark { width: 40px; height: 32px; }
.logo-mark .lm-front { fill: var(--forest); }
.logo-mark .lm-back { fill: var(--amber); }
.logo-mark .lm-snow { fill: #fff; }
.logo-light { color: #fff; }
.logo-light .lm-front { fill: #7fae97; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links a:not(.nav-cta) { padding: 6px 0; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat; transition: background-size 250ms var(--ease-out); }
.nav-links a.is-active:not(.nav-cta) { background-size: 100% 2px; }
.nav-links .nav-cta { padding: 12px 18px; background: var(--forest); color: #fff; transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.nav-cta):hover { background-size: 100% 2px; }
  .nav-links .nav-cta:hover { background: var(--forest-2); }
}
.nav-toggle { display: none; }

/* ---------- Intro ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px); background: var(--stone); overflow: hidden; isolation: isolate; }
.hero-topo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-topo path { fill: none; stroke: var(--forest); stroke-width: 1.1; vector-effect: non-scaling-stroke; opacity: 0.14; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-title { font-size: clamp(48px, 7.2vw, 94px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750; color: var(--ink); }
.hero-sub { max-width: 32ch; margin-top: 28px; color: var(--muted); font-size: clamp(20px, 2vw, 24px); line-height: 1.4; letter-spacing: -0.012em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 40px; }

/* Echtes Foto (im Admin hochgeladen) */
.hero-photo { position: relative; margin: 0; }
.hero-photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; background: var(--forest); }
.hero-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* Ohne Foto: Karte mit den echten Leistungen */
.hero-card { padding: 34px 34px 32px; background: var(--forest); color: #fff; box-shadow: 16px 16px 0 var(--amber); }
.hero-card-label { margin-bottom: 14px; color: var(--on-dark-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-card ul { margin: 0 0 26px; padding: 0; list-style: none; }
.hero-card li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: clamp(21px, 2.1vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.hero-card li span { color: var(--amber); font-size: 14px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.hero-card .arrow-link { color: #fff; }

/* ---------- Bereiche ---------- */
.block { padding: clamp(88px, 11vw, 144px) 0; }
.block-stone { background: var(--stone); }
.block-dark { background: var(--ink); color: var(--on-dark); }
.block-dark .section-title { color: #fff; }
.block-dark .section-sub { color: var(--on-dark-muted); }
.block-dark .label { color: var(--on-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-title { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.038em; }
.section-sub { max-width: 44ch; margin-top: 20px; color: var(--muted); font-size: clamp(19px, 1.9vw, 22px); line-height: 1.45; }
h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; }

/* Leistungen: Liste zum Aufklappen */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service summary {
  display: grid; grid-template-columns: 64px 1fr 28px; align-items: center; gap: 16px; padding: 28px 0;
  cursor: pointer; list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service-num { color: var(--forest); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.service-title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; transition: color 200ms ease; }
.service-plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.service-plus::before, .service-plus::after { content: ''; position: absolute; left: 0; top: 10px; width: 22px; height: 2px; background: var(--ink); transition: transform 300ms var(--ease-out); }
.service-plus::after { transform: rotate(90deg); }
.service[open] .service-plus::after { transform: rotate(0deg); }
.service p { max-width: 58ch; margin: -8px 0 0 80px; padding-bottom: 30px; color: var(--muted); font-size: 19px; }
@media (hover: hover) and (pointer: fine) {
  .service summary:hover .service-title { color: var(--forest-2); }
}
.services-cta { margin-top: 48px; }

/* Ablauf: Schritte auf einer Linie */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding-top: 30px; border-top: 2px solid var(--ink); }
.step-num {
  position: absolute; top: -17px; left: 0; display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 10px; font-size: 23px; }
.step p { color: var(--muted); font-size: 17px; }

/* Referenzen: eckige Karten auf Nachtgrün */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-odd .work-card:first-child { grid-column: 1 / -1; }
.work-odd .work-card:first-child .work-media { aspect-ratio: 16 / 7; }
.work-card { display: flex; flex-direction: column; background: var(--white); color: var(--ink); }
.work-card .label { color: var(--forest); }
.work-media { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--stone); }
.work-media img, .work-media video, .work-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.work-media .wm-1 { fill: var(--stone-2); }
.work-media .wm-2 { fill: #fff; }
.work-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 30px 32px; }
.work-body h3 { margin-bottom: 8px; }
.work-body p:not(.label) { color: var(--muted); max-width: 52ch; }
.work-body .arrow-link { margin-top: auto; padding-top: 20px; }
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .work-media img, .work-card:hover .work-media video, .work-card:hover .work-media svg { transform: scale(1.04); }
}

/* Über uns */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
.about-with-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.8fr); }
.about-head .section-title { font-size: clamp(36px, 4.6vw, 56px); }
.about-text { padding-top: 44px; }
.about-text p { color: var(--muted); font-size: 19px; line-height: 1.6; }
.about-text p + p { margin-top: 18px; }
.about-text .statement { color: var(--ink); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.28; letter-spacing: -0.025em; font-weight: 500; text-wrap: pretty; }
.about-text .statement + p { margin-top: 26px; }
.about-media { padding-top: 44px; }
.about-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 12px 12px 0 var(--amber); }

/* Kontakt: Tannengrün mit Knopf in Bernstein */
.contact { padding: clamp(96px, 12vw, 152px) 0; background: var(--forest); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: end; }
.contact .section-title { max-width: 14ch; }
.contact .section-sub { color: var(--on-dark); }
.contact-side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact-mail { color: #fff; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; word-break: break-word; }
.contact-row { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--on-dark); font-size: 16px; }
.contact-row a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .contact-mail:hover, .contact-row a:hover { text-decoration: underline; text-underline-offset: 5px; }
}
.contact :focus-visible, .block-dark :focus-visible, .hero-card :focus-visible, .foot :focus-visible { outline-color: #fff; }

/* Impressum, Datenschutz */
.page { padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 10vw, 136px); }
.page .wrap { max-width: 800px; }
.page h1 { margin-bottom: 40px; font-size: clamp(42px, 6vw, 64px); letter-spacing: -0.04em; line-height: 1.04; }
.page h2 { margin: 44px 0 10px; font-size: 24px; letter-spacing: -0.022em; }
.page p { color: #33413a; }
.page p + p { margin-top: 12px; }
.page a { color: var(--forest); }
.small { color: var(--muted); font-size: 15px; }

/* Fusszeile (Nachtgrün) */
.foot { padding: 64px 0 36px; background: var(--ink); color: var(--on-dark-muted); font-size: 14px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 36px; }
.foot-mail { color: #fff; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.foot-nav a { color: var(--on-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
}

/* Hinweis in der Admin-Vorschau */
.preview-badge {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--amber);
}
.preview-badge::before { content: ''; width: 8px; height: 8px; background: var(--amber); }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
  animation: reveal-fallback 0s 2.5s forwards; /* falls das Script nicht lädt, trotzdem anzeigen */
}
.js .reveal.in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .about-with-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .about-with-img .about-media { grid-column: 1; grid-row: 2; padding-top: 0; max-width: 360px; }
}

/* ---------- Handy ---------- */
@media (max-width: 800px) {
  :root { --gutter: 20px; --nav-h: 62px; }
  .logo span { font-size: 21px; }
  .logo-mark { width: 36px; height: 29px; }
  .js .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; transition: transform 300ms var(--ease-out); }
  .bars { position: relative; background: transparent; }
  .bars::before, .bars::after { content: ''; position: absolute; left: 0; }
  .bars::before { transform: translateY(-4px); }
  .bars::after { transform: translateY(4px); }
  .nav.open .bars::before { transform: rotate(45deg); }
  .nav.open .bars::after { transform: rotate(-45deg); }
  .nav.open { background: var(--white); }

  .js .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px;
    background: var(--white); overflow-y: auto; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s 240ms;
  }
  .js .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .nav-links a:not(.nav-cta) { padding: 18px 0; border-bottom: 1px solid var(--line); background: none; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; text-transform: none; }
  .js .nav-links .nav-cta { margin-top: 28px; padding: 18px 22px; text-align: center; font-size: 15px; }
  html:not(.js) .nav { height: auto; }
  html:not(.js) .nav-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  html:not(.js) .nav-links { width: 100%; gap: 20px; overflow-x: auto; }

  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-actions { gap: 20px; }
  .hero-actions .btn { width: 100%; }
  .hero-card { margin-right: 12px; padding: 26px 24px; box-shadow: 12px 12px 0 var(--amber); }
  .hero-photo { margin-right: 14px; }
  .hero-photo::before { inset: 12px -12px -12px 12px; }

  .service summary { grid-template-columns: 44px 1fr 22px; gap: 12px; padding: 22px 0; }
  .service p { margin-left: 56px; font-size: 17px; }
  .services-cta .btn { width: 100%; }

  .steps { grid-template-columns: 1fr; row-gap: 48px; }

  .work { grid-template-columns: 1fr; gap: 20px; }
  .work-odd .work-card:first-child .work-media { aspect-ratio: 5 / 3; }
  .work-body { padding: 24px 22px 26px; }

  .about, .about-with-img { grid-template-columns: 1fr; }
  .about-text, .about-media, .about-with-img .about-media { grid-column: auto; grid-row: auto; padding-top: 0; }
  .about-media { max-width: 340px; margin-right: 12px; }

  .contact .wrap { grid-template-columns: 1fr; }
  .contact .btn { width: 100%; }
  .foot-legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 400ms ease; transition-delay: 0s; }
  .work-media img, .work-media video, .work-media svg, .btn, .btn::after, .arrow-link::after, .service-plus::before, .service-plus::after { transition: none; }
}
