/* ─── PAGE HEADER ─── */
.kontakt-page {
  padding: 8rem 3rem 5rem;
  max-width: 640px;
}

.kontakt-page .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.kontakt-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text);
  margin: 0.3rem 0 1rem;
}

.kontakt-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ─── FORM ─── */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent2);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.kontakt-submit {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border: none;
  cursor: none;
  transition: background 0.2s;
}

.kontakt-submit:hover {
  background: var(--text);
}

/* ─── FLASH MESSAGES ─── */
.error-msg,
.success-msg {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  padding: 0.6rem 0.8rem;
}

.error-msg {
  color: var(--accent2);
  border: 1px solid rgba(var(--accent2-rgb), 0.3);
  background: rgba(var(--accent2-rgb), 0.05);
}

.success-msg {
  color: var(--positive);
  border: 1px solid rgba(var(--positive-rgb), 0.25);
  background: rgba(var(--positive-rgb), 0.05);
}

/* ─── HONEYPOT ───
   Hidden from sighted visitors without being hidden from the bots that this
   is meant to catch: `display:none`/`visibility:hidden` are the two things a
   well-written spam bot checks for before filling a field, so this moves the
   field out of view instead. aria-hidden + tabindex="-1" in the markup keep
   it out of the accessibility tree and the tab order, so nobody using a
   keyboard or a screen reader can land in it by accident. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── FORM DETAIL ─── */
.form-required {
  color: var(--accent2);
}

.form-hint {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.form-legend {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: -0.4rem;
}

/* 16px is the threshold below which iOS Safari zooms the viewport on focus -
   the page then stays zoomed, and the visitor is left scrolling sideways
   through a form they were in the middle of filling in. */
@media (max-width: 700px) {
  .form-input,
  .form-textarea {
    font-size: 16px;
  }

  .kontakt-page {
    padding: 7rem 1.25rem 4rem;
  }

  .kontakt-submit {
    align-self: stretch;
    text-align: center;
    min-height: 48px;
  }
}

/* ─── FEEDBACK MESSAGES ───
   Both carry an icon now, so they need to lay out as a row - and both were
   set at 0.62rem, small enough that the one piece of text confirming whether
   a message actually sent was the smallest thing on the page. */
.error-msg,
.success-msg {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding: 0.85rem 1rem;
}

.error-msg .icon,
.success-msg .icon {
  font-size: 1.1rem;
}

/* ─── DIRECT CONTACT ─── */
.kontakt-direct {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.kontakt-direct-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.kontakt-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin-right: 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  word-break: break-all;
  transition: color 0.2s;
}

.kontakt-direct-link .icon {
  color: var(--accent);
  font-size: 1.1rem;
}

.kontakt-direct-link:hover {
  color: var(--accent);
}

/* ─── PHONES: 12PX TEXT FLOOR ───
   This page's text under 0.75rem, lifted to it on phones - see the block of
   the same name at the end of base/shared.css. */
@media (max-width: 600px) {
  .kontakt-page .label,
  .form-label,
  .kontakt-submit,
  .form-hint,
  .form-legend,
  .kontakt-direct-label {
    font-size: 0.75rem;
  }
}
