/* ==========================================================================
   RIMCI - layout.css
   Kopfzeile, Menü, Handy-Leiste, Footer mit Anfrageformular.
   ========================================================================== */

.head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--head);
  background: var(--black);
}

.head.is-clear { background: transparent; }

.head__in {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding-inline: var(--gutter);
}

.head__brand {
  order: -1;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.head__icons { display: flex; gap: 8px; }

.ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: color 0.2s;
}
.ico:hover { color: var(--orange); }
.ico svg { width: 22px; height: 22px; }

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.burger svg { width: 20px; height: 20px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

.head__nav { display: none; }

@media (min-width: 1024px) {
  .head__in {
    grid-template-columns: 1fr auto 1fr;
    max-width: 1000px;
    margin-inline: auto;
  }
  .head__brand { order: 0; }
  .burger { display: none; }
  .head__nav { display: flex; justify-content: flex-end; gap: 6px; }
  .head__nav .pill { min-height: 34px; padding: 0.4em 1.05em; font-size: 0.75rem; }
  .head__nav .pill[aria-current="page"] { background: var(--orange); }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: var(--head) var(--gutter) 32px;
  background: var(--black);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.menu.is-open { opacity: 1; visibility: visible; }

.menu nav { display: grid; gap: 1.1rem; text-align: center; }
.menu nav a {
  font: 600 1.75rem/1.1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: uppercase;
}
.menu nav a[aria-current="page"] { color: var(--orange); }
.menu > .pill { min-width: min(100%, 320px); }
.menu > .pill + .pill { margin-top: -1.2rem; }

@media (min-width: 1024px) {
  .menu { display: none; }
}

/* Auf dem Handy bleibt die Anfrage immer einen Tipp entfernt. */
.dock {
  position: fixed;
  inset: auto var(--gutter) max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  gap: 8px;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.dock .pill { flex: 1; min-height: 48px; }
.dock__call {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
}
.dock__call svg { width: 22px; height: 22px; }
.dock__call:focus-visible { outline: 2px solid var(--black); outline-offset: 0; box-shadow: 0 0 0 2px var(--black), 0 0 0 5px var(--white); }
.dock.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }

@media (min-width: 1024px) {
  .dock { display: none; }
}

/* ---- Footer ---- */

.foot {
  position: relative;
  z-index: 8;
  padding: clamp(28px, 4vw, 44px) var(--gutter) 88px;
  background: var(--black);
}

.foot__word {
  margin-bottom: clamp(28px, 4vw, 40px);
  font: 700 var(--word)/0.78 var(--display);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.foot__grid { display: grid; gap: 48px; }

.foot__info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  order: 2;
}

.foot__contact a,
.foot__nav a {
  display: block;
  font: 700 0.875rem/1.6 var(--display);
  letter-spacing: 0;
  text-decoration: none;
}
.foot__contact a:hover,
.foot__nav a:hover { color: var(--orange); }

.foot__nav { display: grid; gap: 6px; align-content: start; text-transform: uppercase; }
.foot__nav a[aria-current="page"] { color: var(--orange); }

.foot__legal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 48px;
  font-size: 0.8125rem;
}
.foot__legal nav { display: grid; gap: 8px; }
.foot__legal a { text-underline-offset: 3px; }
.foot__legal a:hover { color: var(--orange); }

@media (min-width: 1024px) {
  .foot { padding-bottom: 44px; }
  .foot__grid { grid-template-columns: 1fr minmax(0, 654px); gap: 40px; align-items: start; }
  .foot__info { order: 0; grid-template-columns: minmax(0, 300px) auto; justify-content: start; gap: 40px; padding-top: 4px; }
  .foot__legal { flex-direction: row; justify-content: space-between; margin-top: clamp(60px, 7vw, 90px); }
  .foot__legal nav { display: flex; gap: 22px; }
}

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

.form-card {
  padding: 28px 24px 32px;
  border-radius: 20px;
  background: var(--orange);
  color: var(--black);
}

.form-card__title { font: 700 0.9375rem/1.3 var(--mono); letter-spacing: 0; text-transform: uppercase; }
.form-card__sub { margin: 1rem 0 1.6rem; }

.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }

.field { display: grid; gap: 6px; }
.field label { font: 600 0.875rem/1.3 var(--display); letter-spacing: 0; text-transform: uppercase; }
.field__opt { font: 400 0.75rem/1 var(--mono); text-transform: none; }

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1.5px solid var(--black);
  border-radius: 0;
  outline-offset: 2px;
  background: transparent;
  color: var(--black);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(0, 0, 0, 0.72); opacity: 1; }

.field__error { min-height: 0; font-size: 0.8125rem; font-weight: 700; }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-width: 3px; }

.form__foot { display: grid; justify-items: center; gap: 14px; }
.form__foot .pill { min-width: 200px; }
.form-card .pill { background: var(--white); color: var(--black); }
.form-card .pill:hover { background: var(--black); color: var(--white); }
.form__note { font-size: 0.75rem; line-height: 1.5; text-align: center; }
.form__note a { text-underline-offset: 2px; }

.form-status { display: none; font-weight: 700; }
.form-status.is-visible { display: block; }
.form-status a { display: inline-block; margin-top: 4px; }

.form-done:focus { outline: none; }
.form-done[hidden] { display: none; }
.form-done p + p { margin-top: 0.6rem; }
.form-done__title { font: 600 1.5rem/1.1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (min-width: 1024px) {
  .form-card { padding: 34px 36px 36px; background: var(--white); }
  .form-card--gray { background: var(--gray); }
  .form-card .pill { background: var(--black); color: var(--white); }
  .form-card .pill:hover { background: var(--orange); color: var(--black); }
  .field input::placeholder,
  .field textarea::placeholder { color: rgba(0, 0, 0, 0.62); }
}
