/* kontakt.css — Kontaktseite + Termin-Modal (seiten­spezifisch)
   Gemeinsame Bausteine (bg-marquee, footer-links, Basis-Reset,
   isometric-grid-Basis) in shared.css. */

html, body { overscroll-behavior: none; }
body {
  width: 100vw; height: 100vh;
  background-color: #000000;
  overflow: hidden;
  perspective: 1200px;
  display: flex; justify-content: center; align-items: center;
}

#scene-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  display: block; z-index: 1;
}

/* ---------- Hero ---------- */
.hero-text {
  position: fixed; top: 10%; left: 6%;
  z-index: 10; max-width: 44vw; pointer-events: none;
}
.hero-text h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5.6vw, 5.2rem);
  line-height: .98; letter-spacing: -.025em; font-weight: 900;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  margin: 0;
  font-size: clamp(.75rem, 1.05vw, 1rem);
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(190, 230, 255, .58); font-weight: 600;
}

/* ---------- Kontakt-Liste ---------- */
.contact-list {
  position: fixed; left: 6%; bottom: 7%;
  z-index: 10;
  display: flex; flex-direction: column; gap: 10px;
}
.contact-item {
  --c: #00ffff;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 14px;
  border-radius: 15px;
  background: linear-gradient(150deg,
    rgba(255,255,255,.09) 0%, rgba(0,170,255,.04) 100%);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(160, 225, 255, .18);
  box-shadow: 0 14px 40px rgba(0,0,0,.5),
              inset 0 1px 0 rgba(255,255,255,.16);
  color: #dff2ff; cursor: pointer; text-decoration: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              border-color .35s ease, box-shadow .35s ease,
              background .35s ease;
}
.contact-item:hover,
.contact-item.active {
  transform: translateX(8px);
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 14px 40px rgba(0,0,0,.5),
              0 0 26px color-mix(in srgb, var(--c) 30%, transparent),
              inset 0 1px 0 rgba(255,255,255,.22);
}
.contact-item .ci-icon {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  font-size: 1rem; font-weight: 800;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 22%, transparent);
}
.contact-item b {
  display: block;
  font-size: .55rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(200, 225, 255, .55);
  margin-bottom: 3px;
}
.contact-item i {
  display: block;
  font-style: normal;
  font-size: .84rem; font-weight: 700;
  letter-spacing: -.01em;
  color: #eaf7ff;
}

/* ============================================================
   TERMIN-MODAL
   ============================================================ */
.termin-modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 6, 16, .72);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  opacity: 0;
  transition: opacity .28s ease;
  padding: 20px;
}
.termin-modal.show { display: flex; opacity: 1; }
.termin-modal__card {
  width: 100%; max-width: 440px;
  background: linear-gradient(160deg,
    rgba(12, 22, 42, .96) 0%, rgba(6, 12, 26, .96) 100%);
  border: 1px solid rgba(160, 225, 255, .22);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6),
              0 0 48px rgba(0, 200, 255, .18),
              inset 0 1px 0 rgba(255,255,255,.18);
  padding: 28px 26px 24px;
  transform: translateY(18px) scale(.97);
  transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.termin-modal.show .termin-modal__card { transform: translateY(0) scale(1); }
.termin-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.termin-modal__head h2 {
  margin: 0;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.termin-modal__head p {
  margin: 4px 0 0;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(190, 230, 255, .55); font-weight: 600;
}
.termin-modal__close {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(160, 225, 255, .22);
  background: rgba(255,255,255,.05);
  color: #dff2ff; cursor: pointer; font-size: 1.1rem;
  transition: background .2s ease, border-color .2s ease;
}
.termin-modal__close:hover {
  background: rgba(255,0,128,.16);
  border-color: rgba(255,0,128,.5);
}
.termin-field { margin-bottom: 16px; }
.termin-field label {
  display: block;
  font-size: .6rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(190, 230, 255, .6);
  margin-bottom: 7px;
}
.termin-field input,
.termin-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 10, 24, .6);
  border: 1px solid rgba(160, 225, 255, .2);
  color: #eaf7ff;
  font-family: inherit; font-size: .9rem;
  outline: none;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.termin-field input::placeholder,
.termin-field textarea::placeholder { color: rgba(180, 210, 240, .32); }
.termin-field input:focus,
.termin-field textarea:focus {
  border-color: rgba(0, 220, 255, .7);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, .16);
}
.termin-field textarea { resize: vertical; min-height: 60px; }
.termin-field input[type="datetime-local"] { color-scheme: dark; }
.termin-modal__error {
  display: none;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 60, 90, .12);
  border: 1px solid rgba(255, 60, 90, .4);
  color: #ffd5dc; font-size: .8rem;
}
.termin-modal__error.show { display: block; }
.termin-modal__btn {
  width: 100%; padding: 13px;
  border: none; border-radius: 12px;
  background: linear-gradient(90deg, #00ffff, #0088ff);
  color: #021018; font-weight: 800; font-size: .92rem;
  letter-spacing: .02em; cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, opacity .2s ease;
}
.termin-modal__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 180, 255, .4);
}
.termin-modal__btn:disabled { opacity: .6; cursor: progress; }
.termin-modal__success {
  display: none; text-align: center; padding: 14px 0 4px;
}
.termin-modal__success.show { display: block; }
.termin-modal__success .check {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
  color: #001018;
  background: linear-gradient(90deg, #00ffff, #00ff88);
  box-shadow: 0 0 30px rgba(0, 255, 180, .5);
}
.termin-modal__success h3 { margin: 0 0 6px; color: #eaf7ff; font-size: 1.05rem; }
.termin-modal__success p { margin: 0; color: rgba(190,230,255,.6); font-size: .82rem; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero-text { top: 4%; left: 6%; max-width: 88vw; }
  .hero-text h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .contact-list { left: 6%; bottom: 5%; width: max-content; }
  .contact-item i { font-size: .78rem; }
  .termin-modal__card { padding: 22px 18px 20px; }
  .termin-modal__head h2 { font-size: 1.15rem; }
}