/* =========================================================
   SLBahnen – Kontakt (kontakt.php)
   Datei: css/kontakt.css
   Voraussetzung: css/style.css ist geladen
   Scope: nur .page--kontakt
========================================================= */


/* =========================================================
   PAGE LAYOUT
========================================================= */

.page--kontakt .kontakt-main {
  padding-top: 26px;
  padding-bottom: 60px;
}

.page--kontakt .kontakt-section {
  margin-top: 48px;
}


/* =========================================================
   PAGE HERO (frei, keine Kachel)
========================================================= */

.page--kontakt .kontakt-hero {
  margin: 0 0 8px;
  padding-bottom: 8px;
}

.page--kontakt .kontakt-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--blue-dark);
  opacity: .9;
  margin-bottom: 8px;
}

.page--kontakt .kontakt-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  line-height: 1.1;
  color: var(--blue-dark);
}

.page--kontakt .kontakt-hero__lead {
  margin: 0;
  color: rgba(0, 0, 0, .70);
  line-height: 1.6;
}


/* =========================================================
   FORMULAR-KARTE
========================================================= */

.page--kontakt .kontakt-card {
  background: rgba(52, 152, 219, .10);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  position: relative;
}


/* =========================================================
   FORMULAR-ELEMENTE
========================================================= */

.page--kontakt .k-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.page--kontakt .k-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page--kontakt .k-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-dark);
  margin-top: 0.5rem;
}

.page--kontakt .k-required {
  color: var(--red);
  margin-left: 2px;
}

.page--kontakt .k-input,
.page--kontakt .k-select,
.page--kontakt .k-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(0, 0, 0, .15);
  background: rgba(255, 255, 255, .75);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
}

.page--kontakt .k-input:focus,
.page--kontakt .k-select:focus,
.page--kontakt .k-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, .20);
}

.page--kontakt .k-input::placeholder,
.page--kontakt .k-textarea::placeholder {
  color: rgba(0, 0, 0, .38);
}

.page--kontakt .k-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 38px;
  cursor: pointer;
}

.page--kontakt .k-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Honeypot verstecken */
.page--kontakt .k-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


.page--kontakt .k-actions {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 4px;
}

.page--kontakt .k-actions .btn {
  flex: 1 1 0;
}

.page--kontakt .btn--primary:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.k-grid--street {
  grid-template-columns: minmax(0, 1fr) 120px;
}

@media (max-width: 720px) {
  .k-grid--street {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   NOTICES (Erfolg / Fehler)
========================================================= */

.page--kontakt .k-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: .95rem;
  line-height: 1.5;
}

.k-notice[hidden] {
  display: none !important;
}

.page--kontakt .k-notice--success {
  background: rgba(39, 174, 96, .12);
  border: 1px solid rgba(39, 174, 96, .30);
  color: #1a6e3c;
}

.page--kontakt .k-notice--error {
  background: rgba(209, 10, 10, .08);
  border: 1px solid rgba(209, 10, 10, .25);
  color: #8b0000;
}

.page--kontakt .k-notice__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.page--kontakt .k-notice__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page--kontakt .k-notice__title {
  margin: 0;
  font-weight: 800;
}

.page--kontakt .k-notice__text {
  margin: 0;
  opacity: .85;
}

.k-order {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0,0,0,.08);
}

.k-order__head {
  margin-bottom: 1rem;
}

.k-order__title {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.k-order__text {
  margin: 0;
  color: var(--text-soft, #667085);
  line-height: 1.5;
}

.k-order-models {
  display: grid;
  gap: .85rem;
  margin-bottom: 1rem;
}

.k-model-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: .85rem;
  align-items: end;
  padding: .9rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: rgba(0,0,0,.025);
}

.k-input--qty {
  text-align: center;
}

.k-model-remove {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 38, 38, .1);
  color: #b91c1c;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 1.25rem;
}

.k-model-remove:hover {
  background: rgba(220, 38, 38, .16);
}

.k-add-model {
  width: fit-content;
  margin-bottom: 1.2rem;
}

.k-grid {
  display: grid;
  gap: 1rem;
}

.k-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.k-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-top: .4rem;
  padding: .95rem 1rem;
  border-radius: 16px;
  background: rgba(0,0,0,.035);
  line-height: 1.45;
  cursor: pointer;
}

.k-check input {
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  accent-color: var(--brand, #0f766e);
}

.k-check a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .k-model-row {
    grid-template-columns: 1fr;
  }

  .k-model-remove {
    width: 100%;
    border-radius: 14px;
  }

  .k-grid--2 {
    grid-template-columns: 1fr;
  }

  .k-add-model {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   FORM LOADER OVERLAY
========================================================= */

.page--kontakt .k-loader {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(240, 239, 239, .88);
  backdrop-filter: blur(3px);
  z-index: 10;
  place-items: center;
}

.page--kontakt .k-loader.is-visible {
  display: grid;
}

.page--kontakt .k-loader__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--blue-dark);
}

.page--kontakt .k-loader__text {
  font-size: .95rem;
  line-height: 1.6;
}

/* Spinner */
.page--kontakt .k-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(52, 152, 219, .25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: k-spin .8s linear infinite;
}

@keyframes k-spin {
  to { transform: rotate(360deg); }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {
  .page--kontakt .kontakt-card {
    padding: 20px 16px;
  }

  .page--kontakt .k-actions {
    flex-direction: column;
  }

  .page--kontakt .k-btn {
    width: 100%;
  }
}