/* ERST MAL · Coming-Soon-Seite mit Bewerbungsformular */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben (Vorgabe Michelle) */
  --blue: #ddeeff;
  --stone: #f0eee9;
  --cream: #fffcf2;
  --taupe: #9f8d81;
  --brown: #4a3023;
  /* abgeleitete Töne */
  --brown-deep: #36231a;
  --brown-soft: #776357; /* Braun 75 % auf Creme, Kontrast 5,5 : 1 */
  --field: #fffefa;
  --error: #a3341f;
  --ease: cubic-bezier(.22, .9, .24, 1);
  --radius: 10px;
  --wrap: 1180px;
  --pad: clamp(20px, 4.5vw, 48px);
  /* Kopfzeile: so groß wie möglich, aber „ERST MAL [VIELES MEHR]“ (11,7 em) passt immer in eine Zeile */
  --claim-size: min(calc((100vw - 2 * var(--pad)) / 12.4), 7rem);
}

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

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

[hidden] { display: none !important; }

/* nie kursiv, auch nicht über Browser-Standards */
address, em, i, cite, dfn, var { font-style: normal; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--brown); color: var(--cream); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--brown); color: var(--cream); font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--pad))); margin-inline: auto; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px;
  border: 0; border-radius: var(--radius);
  background: var(--brown); color: var(--cream);
  font: inherit; font-weight: 700; font-size: 1.04rem; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 10px 24px -14px rgba(74, 48, 35, .7);
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--brown-deep);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 16px 30px -16px rgba(74, 48, 35, .8);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateY(3px); }
.btn[disabled] { opacity: .72; cursor: progress; transform: none; }

/* ---------- Kopfbereich ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vh, 96px) 0;
  background: var(--stone);
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center;
  width: min(1440px, calc(100% - 2 * var(--pad)));
}

.hero-mark { margin-bottom: clamp(22px, 4vh, 40px); }
.hero-logo {
  width: clamp(190px, 19vw, 270px);
  animation: float 6.5s ease-in-out 1.2s infinite;
}
@media (max-width: 600px) {
  .hero-logo { width: min(62vw, 250px); }
}

.claim {
  margin: 0;
  font-weight: 900;
  font-size: var(--claim-size);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--taupe);
}
/* Maße aus dem Schriftzug ERST MAL [.]: Klammern 1,29 x Versalhöhe (Montserrat 0,70 em), je 0,145 darüber und darunter */
.claim-line {
  display: flex;
  justify-content: center;
  align-items: baseline;
  white-space: nowrap;
}
/* Schriftzug ERST MAL (Boldfat Mighty, als Vektor aus Buraks Bild): Versalhöhe = Montserrat-Versalhöhe 0,70 em */
.claim-wm {
  display: block;
  flex: none;
  width: 3.647em;
  height: 0.7106em;
  margin-right: .34em;
  fill: currentColor;
  overflow: visible;
}
.claim-br {
  position: relative;
  top: .1015em;
  display: block;
  flex: none;
  width: .27em;
  height: .904em;
  fill: currentColor;
}
.claim-br--r { transform: scaleX(-1); }
.claim-window {
  position: relative;
  display: block;
  padding: 0 .075em;
  line-height: 1.3;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: .04em;
  white-space: nowrap;
  transition: width .6s var(--ease);
}
.claim-strut { display: inline-block; width: 0; }
.claim-word { display: inline-block; white-space: nowrap; }
.claim-dot {
  display: inline-block;
  width: .175em;
  height: .175em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: baseline;
}
/* Wörter in den Klammern wechseln durch die Markenfarben; helle Töne bekommen eine braune Kontur, sonst wären sie auf dem hellen Grund unsichtbar */
.claim-word.c-brown { color: var(--brown); }
.claim-word.c-taupe { color: var(--taupe); }
.claim-word.c-blue { color: var(--blue); }
.claim-word.c-cream { color: var(--cream); }
.claim-word.c-stone { color: var(--stone); }
.claim-word.c-blue, .claim-word.c-cream, .claim-word.c-stone {
  -webkit-text-stroke: max(.035em, 1.5px) var(--brown);
  paint-order: stroke fill;
}
.claim-window.is-live .claim-word {
  position: absolute;
  left: .075em;
  top: 0;
  transition: transform .6s var(--ease), opacity .45s var(--ease);
}
.claim-window.is-live .claim-word.is-enter { transform: translateY(70%); opacity: 0; }
.claim-window.is-live .claim-word.is-out { transform: translateY(-70%); opacity: 0; }

.hero-lead {
  max-width: 36ch;
  margin: clamp(20px, 3.4vh, 30px) auto 0;
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  font-weight: 500;
  line-height: 1.5;
}
.hero-lead strong { display: block; margin-top: 6px; font-weight: 700; }
.hero-cta { margin-top: clamp(26px, 4.2vh, 40px); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-.6deg); }
}
.rise { animation: rise .9s var(--ease) both; }
.rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .16s; }
.rise-4 { animation-delay: .24s; }

/* ---------- Bewerbung ---------- */

.apply { padding: clamp(72px, 11vw, 144px) 0 clamp(80px, 11vw, 150px); }

.apply-grid { display: grid; gap: clamp(36px, 5vw, 56px); }

.apply-title {
  margin: 0 0 24px;
  font-weight: 800;
  font-size: clamp(2rem, 3.1vw, 2.75rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.apply-title span { display: block; }
.apply-intro p { margin: 0 0 14px; max-width: 42ch; font-size: 1.06rem; }
.apply-lists {
  display: grid;
  gap: 26px;
  margin: 30px 0 30px;
  padding: 26px 0;
  border-top: 1.5px solid rgba(74, 48, 35, .16);
  border-bottom: 1.5px solid rgba(74, 48, 35, .16);
}
.apply-list h3 {
  margin: 0 0 12px;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.005em;
}
.apply-list ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.apply-list li {
  position: relative;
  padding-left: 22px;
  font-size: .98rem;
  line-height: 1.5;
}
/* Aufzählungspunkt als kleiner Punkt wie im Logo [.] */
.apply-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--taupe);
}
.apply-list strong { font-weight: 700; }
.apply-intro .apply-note {
  margin-top: 18px;
  color: var(--brown-soft);
  font-size: .96rem;
}

@media (min-width: 980px) {
  .apply-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(64px, 7vw, 104px);
    align-items: start;
  }
}

/* ---------- Formular ---------- */

.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}

.field { min-width: 0; margin: 0; padding: 0; border: 0; }

.label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  letter-spacing: .005em;
}
legend.label { float: left; width: 100%; }
legend.label + * { clear: both; }

.req {
  position: relative;
  top: -.3em;
  margin-left: 2px;
  font-size: .78em;
  font-weight: 700;
}

.input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid var(--taupe);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--brown);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.input::placeholder { color: var(--brown-soft); opacity: .85; font-weight: 400; }
.input:hover { border-color: var(--brown-soft); }
.input:focus { outline: none; border-color: var(--brown); background: #fff; box-shadow: 0 0 0 4px var(--blue); }
textarea.input { min-height: 156px; resize: vertical; }

.field.is-invalid .input,
.field.is-invalid .choice span,
.field.is-invalid .drop,
.field.is-invalid .check-box { border-color: var(--error); }

.field-error {
  margin: 8px 0 0;
  color: var(--error);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Anstellung */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.choice span {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 12px;
  border: 1.5px solid var(--taupe);
  border-radius: var(--radius);
  background: var(--field);
  font-weight: 600;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.choice:hover span { border-color: var(--brown-soft); }
.choice input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.choice input:focus-visible + span { border-color: var(--brown); box-shadow: 0 0 0 4px var(--blue); }

/* Unterlagen */
.drop {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 16px;
  padding: 20px;
  border: 1.5px dashed var(--taupe);
  border-radius: var(--radius);
  background: var(--field);
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.drop:hover, .drop.is-over { border-color: var(--brown); background: var(--stone); }
.drop:focus-within { border-color: var(--brown); box-shadow: 0 0 0 4px var(--blue); }
.drop-input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.drop-btn {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  border-radius: 8px;
  background: var(--brown); color: var(--cream);
  font-weight: 600; font-size: .95rem;
  pointer-events: none;
}
.drop-hint { color: var(--brown-soft); font-size: .93rem; font-weight: 500; line-height: 1.4; pointer-events: none; }

.files { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.files[hidden] { display: none; }
.file {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius);
  background: var(--stone);
  font-size: .95rem;
}
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-size { color: var(--brown-soft); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.file-remove {
  flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--brown);
  cursor: pointer;
}
.file-remove:hover { background: rgba(74, 48, 35, .1); }
.file-remove:focus-visible { outline: 2px solid var(--brown); outline-offset: 1px; }
.file-remove svg { width: 16px; height: 16px; }

/* Datenschutz */
.check {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .98rem; font-weight: 500; line-height: 1.5;
  cursor: pointer;
}
.check input {
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  margin: 0; opacity: 0; cursor: pointer;
}
.check-box {
  flex: none;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border: 1.5px solid var(--taupe);
  border-radius: 7px;
  background: var(--field);
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.check-box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .22s var(--ease); }
.check input:checked + .check-box { background: var(--brown); border-color: var(--brown); }
.check input:checked + .check-box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { border-color: var(--brown); box-shadow: 0 0 0 4px var(--blue); }
.check a { font-weight: 600; text-underline-offset: 3px; }

.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px;
  margin-top: 6px;
}
.form-legend { margin: 0; color: var(--brown-soft); font-size: .9rem; font-weight: 500; }
.btn-submit { min-width: 250px; }
@media (max-width: 639px) {
  .btn-submit { width: 100%; }
}

.form-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #f8e6de;
  color: #7c2716;
  font-weight: 600;
  line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status a { font-weight: 800; }

.form-success {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--blue);
}
.form-success:focus { outline: none; }
.form-success img { width: 160px; margin-bottom: 22px; }
.form-success h3 {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.form-success p { margin: 0; max-width: 42ch; font-weight: 500; }

/* ---------- Fußbereich ---------- */

.foot { padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); background: var(--stone); font-size: .95rem; font-weight: 500; }
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
}
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot a { font-weight: 600; text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Rechtliche Seiten ---------- */

.topbar { background: var(--stone); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  padding: 12px 0;
}
.topbar-logo { display: block; border-radius: 6px; }
.topbar-logo img { width: 104px; }
.topbar-logo:focus-visible, .topbar-link:focus-visible { outline: 3px solid var(--brown); outline-offset: 4px; }
.topbar-link { font-weight: 600; text-decoration: none; border-radius: 4px; }
.topbar-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.legal { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.legal-inner { max-width: 70ch; }
.legal h1 {
  margin: 0 0 30px;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.legal h2 { margin: 42px 0 10px; font-size: 1.28rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.legal h3 { margin: 24px 0 6px; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.legal p, .legal ul, .legal address { margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-meta { margin-top: 44px; color: var(--brown-soft); font-size: .92rem; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-logo { animation: none; }
  .claim-window { transition: none; }
  .claim-window.is-live .claim-word { transition: opacity .25s linear; }
  .claim-window.is-live .claim-word.is-enter,
  .claim-window.is-live .claim-word.is-out { transform: none; }
  .btn, .btn svg { transition: none; }
  .btn:hover { transform: none; }
}
