/* ===========================================================================
   Noack Immobilien GmbH — Wartungsseite
   Farben und Schriften stammen aus dem Corporate Identity der Gesellschaft
   (OneDrive: Grafik/Corporate Identity/Logo — Color palette.pdf, Typography).
   =========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/Figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --tinte:        #1B1C23;   /* Grundton, nahezu schwarz */
  --tinte-tief:   #14151A;
  --navy:         #1E202F;
  --tanne:        #273534;   /* dunkles Graugrün */
  --salbei:       #3E5355;   /* mittleres Graugrün */
  --nebel:        #A7B4B3;   /* helles Graugrün, Fließtext auf Dunkel */
  --sand:         #DBD1AD;   /* Akzent */
  --sand-hell:    #E8E1C8;
  --weiss:        #FFFFFF;
  --linie:        rgba(167, 180, 179, 0.20);
  --linie-stark:  rgba(167, 180, 179, 0.38);
  --warnrot:      #E8A0A0;

  --radius:       14px;
  --schrift-ueberschrift: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --schrift-text:         'Figtree', 'Segoe UI', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tinte-tief);
  /* Zwei sehr weiche Lichtquellen in den Markenfarben. */
  background-image:
    radial-gradient(70rem 44rem at 12% -8%,  rgba(62, 83, 85, 0.55), transparent 62%),
    radial-gradient(52rem 40rem at 96% 108%, rgba(39, 53, 52, 0.68), transparent 60%),
    linear-gradient(168deg, var(--navy) 0%, var(--tinte) 46%, var(--tinte-tief) 100%);
  background-attachment: fixed;
  color: var(--nebel);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.rahmen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 3.5rem);
}

/* ── Aufteilung ───────────────────────────────────────────────────────── */

.tafel {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-content: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

@media (min-width: 62rem) {
  .tafel {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ── Linke Spalte ─────────────────────────────────────────────────────── */

.marke__logo {
  display: block;
  width: clamp(190px, 26vw, 268px);
  height: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.marke__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.42rem 0.95rem 0.42rem 0.8rem;
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  background: rgba(219, 209, 173, 0.06);
  color: var(--sand);
  font-family: var(--schrift-ueberschrift);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.punkt {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 0 rgba(219, 209, 173, 0.7);
  animation: pulsieren 2.6s ease-out infinite;
}

@keyframes pulsieren {
  0%   { box-shadow: 0 0 0 0   rgba(219, 209, 173, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(219, 209, 173, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(219, 209, 173, 0);    }
}

.marke__titel {
  margin: 0 0 1.35rem;
  color: var(--weiss);
  font-family: var(--schrift-ueberschrift);
  font-size: clamp(2.05rem, 5.4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.marke__text {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
}

.marke__direkt {
  margin: 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--linie);
  font-size: 0.97rem;
  color: rgba(167, 180, 179, 0.85);
}

.marke__direkt a {
  /* inline, nicht inline-block: sonst zieht der linke Abstand den Link ein,
     sobald er auf schmalen Schirmen in die naechste Zeile rutscht. */
  display: inline;
  color: var(--sand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 209, 173, 0.42);
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.marke__direkt a:hover,
.marke__direkt a:focus-visible {
  color: var(--sand-hell);
  border-bottom-color: var(--sand-hell);
}

/* ── Rechte Spalte: Karte mit Formular ────────────────────────────────── */

.karte {
  padding: clamp(1.6rem, 3.4vw, 2.5rem);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: rgba(20, 21, 26, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.85);
}

.karte__titel {
  margin: 0 0 0.4rem;
  color: var(--weiss);
  font-family: var(--schrift-ueberschrift);
  font-size: clamp(1.32rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.karte__unter {
  margin: 0 0 1.9rem;
  font-size: 0.94rem;
  color: rgba(167, 180, 179, 0.78);
}

/* ── Formular ─────────────────────────────────────────────────────────── */

.feld { margin-bottom: 1.15rem; }

.feld label {
  display: block;
  margin-bottom: 0.42rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.pflicht { color: var(--sand); }

.wahl {
  margin-left: 0.3rem;
  color: rgba(167, 180, 179, 0.6);
  font-size: 0.8rem;
  font-weight: 400;
}

.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--linie-stark);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--weiss);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.feld textarea { resize: vertical; min-height: 7.5rem; }

.feld input::placeholder,
.feld textarea::placeholder { color: rgba(167, 180, 179, 0.45); }

.feld input:hover,
.feld textarea:hover { border-color: rgba(167, 180, 179, 0.55); }

.feld input:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--sand);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(219, 209, 173, 0.18);
}

.feld input[aria-invalid="true"],
.feld textarea[aria-invalid="true"] { border-color: var(--warnrot); }

.fehler {
  margin: 0.42rem 0 0;
  color: var(--warnrot);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Einwilligung */
.feld--haken {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 1.7rem 0 1.9rem;
}

.feld--haken input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.18rem 0 0;
  accent-color: var(--sand);
  cursor: pointer;
  flex-shrink: 0;
}

.feld--haken label {
  margin: 0;
  color: rgba(167, 180, 179, 0.9);
  font-size: 0.87rem;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}

.feld--haken .fehler { grid-column: 1 / -1; margin-top: 0.1rem; }

/* Knopf */
.knopf {
  width: 100%;
  padding: 0.88rem 1.4rem;
  border: 0;
  border-radius: 9px;
  background: var(--sand);
  color: var(--tinte);
  font-family: var(--schrift-ueberschrift);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}
.knopf:hover {
  background: var(--sand-hell);
  box-shadow: 0 10px 26px -12px rgba(219, 209, 173, 0.55);
}
.knopf:active { transform: translateY(1px); }
.knopf:focus-visible {
  outline: 3px solid rgba(219, 209, 173, 0.45);
  outline-offset: 3px;
}
.knopf[disabled] { opacity: 0.6; cursor: progress; }

.hinweis {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: rgba(167, 180, 179, 0.6);
}

/* Honeypot — für Menschen unsichtbar, aber nicht display:none
   (manche Bots ignorieren ausgeblendete Felder gezielt). */
.honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Rückmeldung nach dem Absenden ────────────────────────────────────── */

.meldung {
  margin: 0 0 1.5rem;
  padding: 0.95rem 1.1rem;
  border-radius: 9px;
  border: 1px solid var(--linie-stark);
  font-size: 0.94rem;
}
.meldung--gut  { border-color: rgba(219, 209, 173, 0.5); background: rgba(219, 209, 173, 0.08); color: var(--sand-hell); }
.meldung--fehl { border-color: rgba(232, 160, 160, 0.5); background: rgba(232, 160, 160, 0.07); color: var(--warnrot); }

/* ── Fuß ──────────────────────────────────────────────────────────────── */

.fuss {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--linie);
  color: rgba(167, 180, 179, 0.55);
  font-size: 0.84rem;
}
.fuss p { margin: 0; }

/* ── Bedienhilfen ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
