/* =========================
   Fonts
   ========================= */
@font-face {
  font-family: "Akkurat Pro";
  src: url("/assets/fonts/AkkRg_Pro_1.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Akkurat Pro";
  src: url("/assets/fonts/AkkBd_Pro_1.otf") format("opentype");
  font-weight: 700;
  font-style: bold;
  font-display: swap;
}
@font-face {
  font-family: "Baskerville";
  src: url("/assets/fonts/Baskerville-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Akkurat Black";
  src: url("/assets/fonts/AkkuratLLWeb-Black.woff2") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* Optional: nur in einem Bereich anwenden */
.form-skin {
  /* Bootstrap 5 Variablen neutralisieren */
  --bs-body-bg: transparent;
  --bs-form-control-bg: transparent;
  --bs-form-select-bg: transparent;
  --bs-form-control-focus-box-shadow: none;
  --bs-focus-ring-color: transparent; /* BS 5.3+ */
}

/* Basis */
.form-skin .form-control,
.form-skin .form-select {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Fokus-Zustand */
.form-skin .form-control:focus,
.form-skin .form-select:focus,
.form-skin input[type="date"]:focus,
.form-skin input[type="time"]:focus {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  border-color: var(--c-ink) !important; /* dein Unterstrich */
  border-bottom: 1px solid var(--c-ink) !important;
}

/* Browser-Default-Optik reduzieren (bes. iOS/Safari) */
.form-skin input,
.form-skin select,
.form-skin textarea {
  -webkit-appearance: none;
  appearance: none;
}

/* Root Layout */
html {
  display: flex;
  justify-content: center;
}

body {
  margin: 0;
  font-family: var(--ff-base);
  display: flex;
  justify-content: center;
  align-items: start;
  height: calc(var(--vh, 1vh) * 100);
  width: clamp(1200px, 80vw, 1300px);
  padding: var(--space-7);
  position: relative;
  z-index: 0;
  overflow: hidden;
}

/* Hintergrundschichten */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  height: calc(var(--vh, 1vh) * 100);
  background: url(/assets/image/home-bg.png) no-repeat center center / cover;
  filter: saturate(0) brightness(0.4);
  transition: filter 1.5s ease;
  z-index: -2;
}
body.bg-loaded::before {
  opacity: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  height: calc(var(--vh, 1vh) * 100);
  pointer-events: none;
  background: url(/assets/image/noise-lines.png) repeat;
  mix-blend-mode: multiply;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  z-index: -1;
}
body.gallery-active::after {
  opacity: 0;
  visibility: hidden;
}
body.gallery-active::before {
  filter: saturate(1) brightness(1);
}

/* Typografie */
h1 {
  font-family: "Akkurat Black", sans-serif;
  font-weight: 900;
  font-size: 50px;
  line-height: 1.1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  margin: 0;
}
h2 {
  font-family: "Akkurat Black", sans-serif;
  font-weight: 900;
  font-size: 22px;
  margin: 0;
}
h4 {
  font-family: "Baskerville", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
h6 {
  font-family: "Akkurat Black";
  font-weight: 900;
  font-size: 18px;
  color: var(--c-ink);
  line-height: 105%;
  letter-spacing: -0.015em;
  margin: 0;
}
p {
  font-family: "Akkurat Pro", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.98px;
}
hr {
  margin: var(--space-1) 0;
  opacity: 1;
}

.td-b {
  font-family: "Akkurat Black", sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.td-r {
  font-family: "Akkurat Pro", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Fixe Deko / Positionen */
.sidebar {
  display: flex;
  flex-direction: column;
}
#svgCorner {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: var(--z-index-overlay);
}
#svgSecondary {
  position: fixed;
  top: 30px;
  right: 40px;
  z-index: var(--z-index-overlay);
}

.z-index-overlay {
  z-index: var(--z-index-overlay);
}

/* Hero-Text */
.hero-text {
  position: fixed;
  top: 20px;
  left: calc(
    (100vw - clamp(1200px, 70vw, 1500px)) / 2 +
      (clamp(1200px, 70vw, 1500px) / 12)
  );
  color: #fff;
  text-align: left;
}
.hero-text h2 {
  font-family: "Baskerville", serif;
  font-size: 50px;
  line-height: 0.83;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 18px;
}
.hero-text p {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 10px;
}
