/* bartax — Reset, Fonts, Grundtypografie */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--green);
  color: var(--paper);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.on-dark h1 em,
.on-dark h2 em,
.on-dark h3 em {
  color: var(--sage-bright);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--bare::before {
  display: none;
}

.on-dark .eyebrow {
  color: var(--sage-bright);
}

.lede {
  max-width: var(--measure);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.on-dark .lede {
  color: var(--paper-on-dark-soft);
}

/* Layout-Container */
.shell {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

/* Buttons — eckig-editorial, bewusst keine Pills */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease,
    border-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.btn .arr {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .arr,
.btn:focus-visible .arr {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--solid {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--paper-on-dark);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--green);
  border-color: var(--green);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.on-dark .btn--ghost {
  border-color: var(--line-dark);
  color: var(--paper-on-dark);
}

.on-dark .btn--ghost:hover,
.on-dark .btn--ghost:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.on-dark .btn--solid {
  background: var(--sage-bright);
  border-color: var(--sage-bright);
  color: var(--green-deep);
}

.on-dark .btn--solid:hover,
.on-dark .btn--solid:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
}

/* Text-Link mit Unterstreichungsanimation */
.tlink {
  position: relative;
  font-weight: 500;
  color: var(--green);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--duration-normal) var(--ease-out);
}

.tlink:hover,
.tlink:focus-visible {
  background-size: 0% 1px;
  background-position: 100% 100%;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--sage-bright);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--green-deep);
  color: var(--paper-on-dark);
  border-radius: var(--radius);
}

.skip-link:focus-visible {
  top: 1rem;
}

/* Dunkle Flächen */
.on-dark {
  background: var(--green-deep);
  color: var(--paper-on-dark);
}

/* Reveal-Grundzustand (JS setzt Animation; ohne JS sichtbar) */
[data-reveal] {
  opacity: 1;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

html.js.reduced-motion [data-reveal] {
  opacity: 1;
  transform: none;
}
