/* trailpapst.ch */
:root {
  --stein: #e8e9e4;
  --basalt: #1c1a18;
  --lava: #9c3a1a;
  --lava-dunkel: #7d2d12;
  --moos: #4d6628;
  --linie: rgba(28,26,24,.22);
  --schrift: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stein);
  color: var(--basalt);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lava); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Hero mit Kopfzeile, Text über dem Bild */
.hero { position: relative; min-height: clamp(34rem, 88svh, 58rem); display: flex; flex-direction: column; color: #fff; background: #5b86b8; }
.hero > img.bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 62%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(18,16,14,.6) 0%, rgba(18,16,14,.28) 38%, rgba(18,16,14,0) 62%); }
.hero > header, .hero > .hero-text, .hero > .hero-badge { position: relative; z-index: 2; }
header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 1.25rem; }
header img { height: 2.75rem; width: auto; display: block; filter: brightness(0) invert(1); }
.nav-gruppe { display: flex; align-items: center; gap: 1.75rem; }
header a.sprache { font-weight: 700; font-size: .9rem; text-decoration: none; border: 2px solid #fff; border-radius: 4px; padding: .2rem .5rem; line-height: 1.2; }
header a.sprache:hover { background: #fff; color: var(--basalt); }
header a.nav { font-weight: 600; text-decoration: none; padding: .5rem 0; border-bottom: 2px solid #fff; }
header a.nav:hover { color: #ffd2bd; border-color: #ffd2bd; }
.hero-text { padding-block: clamp(1.5rem, 5vw, 3.5rem); text-shadow: 0 1px 18px rgba(0,0,0,.3); text-align: right; }
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.035em;
  max-width: 12ch;
  margin-left: auto;
}
.hero-text p { margin: 1.5rem 0 0 auto; max-width: 34rem; font-size: 1.2rem; }

/* Zertifizierung unten rechts im Hero */
.hero-badge { margin-top: auto; display: flex; justify-content: flex-end; padding-bottom: clamp(1rem, 3vw, 2rem); }
.badge { display: flex; align-items: center; gap: .6rem 1.1rem; background: rgba(232,233,228,.94); color: var(--basalt); padding: .8rem 1.1rem; border-radius: 6px; text-shadow: none; text-align: left; }
.badge img { height: 2.6rem; width: auto; aspect-ratio: 4275 / 1069; display: block; }
.badge p { margin: 0; font-weight: 600; line-height: 1.3; font-size: .95rem; }
@media (max-width: 560px) { .badge { flex-direction: column; align-items: flex-start; } }

/* Inhalt */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
h2 { margin: 0 0 2rem; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.angebot { border-top: 1px solid var(--linie); }
.angebot > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 3rem; padding-block: 1.6rem; border-bottom: 1px solid var(--linie); }
.angebot h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.angebot p { margin: 0; max-width: 40rem; }
.angebot .partner { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.angebot .partner img { width: 5rem; height: 5rem; object-fit: contain; border-radius: 6px; display: block; flex: none; }
.angebot .partner a { text-decoration: none; }
.angebot .partner p a { text-decoration: underline; }
.angebot p a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.angebot p a:hover { color: var(--lava); }
@media (max-width: 700px) { .angebot > div { grid-template-columns: 1fr; gap: .4rem; } }

/* Kontakt */
.kontakt { background: var(--basalt); color: var(--stein); }
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 5rem; align-items: start; }
@media (max-width: 860px) { .kontakt-grid { grid-template-columns: 1fr; } }
.kontakt h2 { margin-bottom: 1rem; }
.kontakt .intro { margin: 0 0 2rem; max-width: 26rem; }
.social { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(232,233,228,.25); }
.social li { border-bottom: 1px solid rgba(232,233,228,.25); }
.social a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; text-decoration: none; font-weight: 600; }
.social a span { font-weight: 400; opacity: .7; }
.social a:hover { color: #f0a07e; }
.social a:hover span { opacity: 1; }

form { display: grid; gap: 1.1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--basalt);
  background: var(--stein); border: 2px solid transparent; border-radius: 4px;
  padding: .7rem .8rem; width: 100%;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f0a07e; outline-offset: 2px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .zwei { grid-template-columns: 1fr; } }
.falle { position: absolute; left: -9999px; height: 0; overflow: hidden; }
button {
  font: inherit; font-weight: 700; cursor: pointer;
  background: var(--lava); color: #fff; border: 0; border-radius: 4px;
  padding: .95rem 1.6rem; justify-self: start;
  transition: background .15s;
}
button:hover { background: var(--lava-dunkel); }
button[disabled] { opacity: .6; cursor: wait; }
.hinweis { font-size: .85rem; opacity: .75; margin: 0; }
#meldung { margin: 0; padding: .9rem 1rem; border-radius: 4px; font-weight: 600; display: none; }
#meldung.ok { display: block; background: #d5e6c0; color: #1f3310; }
#meldung.fehler { display: block; background: #f6d3c7; color: #5a1d0a; }

footer { padding-block: 1.5rem; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; }
.kontakt + footer { background: var(--basalt); color: rgba(232,233,228,.7); border-top: 1px solid rgba(232,233,228,.2); }

/* Fehlerseite (404) */
.fehlerseite { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 1.2rem; padding: 2rem 1.25rem; }
.fehlerseite img { height: 3rem; width: auto; display: block; }
.fehlerseite h1 { margin: 0; max-width: none; font-size: clamp(2rem, 6vw, 3.5rem); }
.fehlerseite p { margin: 0; max-width: 30rem; }
.fehlerseite a { font-weight: 600; }
