﻿/* ==========================================================================
   Kontakt (Contact/IndexV2) + B2B (B2B/IndexV2)
   Sayfaya özel: IndexV2 @section header içinden yüklenir
   ========================================================================== */

/* Hero */
.contact-hero {
  padding: 8px 0 28px;
}

.contact-hero-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.contact-hero-head h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .contact-hero-head h1 {
    font-size: 2.25rem;
  }
}

.contact-hero-head p {
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-hero-head strong {
  color: var(--dark);
}

/* Schnellkontakt-Karten */
.contact-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .contact-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  min-width: 0;
}

.contact-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.contact-quick-card .icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-quick-card.is-whatsapp .icon {
  background: #dcfce7;
  color: #16a34a;
}

.contact-quick-card .text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-quick-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-quick-card .val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hauptbereich */
.contact-main {
  padding: 0 0 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .contact-card {
    padding: 32px;
  }
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.contact-card-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Formular */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dark);
}

.contact-field .req {
  color: var(--primary);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  transition: var(--transition);
}

.contact-field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-light);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.contact-submit {
  align-self: flex-start;
  flex: none;
  min-width: 180px;
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* Ergebnis-Meldung */
.contact-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.contact-alert.is-success {
  background: var(--success-light);
  color: #065f46;
  border-color: #a7f3d0;
}

.contact-alert.is-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Filial-Infos */
.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-list .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list .icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-list .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-info-list .val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
}

.contact-info-list .val a:hover {
  color: var(--primary);
}

/* Öffnungszeiten-Tabelle */
.contact-hours {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 20px;
  row-gap: 2px;
  justify-content: start;
}

.contact-hours span {
  font-weight: 500;
  color: var(--text-muted);
}

.contact-hours strong {
  font-weight: 700;
  color: var(--dark);
}

.contact-hours .closed {
  color: var(--text-light);
  font-weight: 600;
}

/* Karte */
.contact-map-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: var(--bg-subtle);
}

.contact-map-card #map {
  width: 100%;
  height: 340px;
}

/* ==========================================================================
   B2B (B2B/IndexV2) – Kontakt-Bausteine + Ergänzungen
   ========================================================================== */
.b2b-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 6px;
}

/* Vorteile: gleiche Karten wie Schnellkontakt, aber ohne Link-Hover */
.b2b-benefits .contact-quick-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-color);
}

.b2b-help {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  border-radius: var(--radius-xl);
  padding: 24px;
  font-size: 0.875rem;
}

.b2b-help-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.b2b-help p {
  margin-bottom: 16px;
  line-height: 1.55;
}

.b2b-help-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.b2b-help-actions a {
  justify-content: center;
}

.b2b-text-section {
  padding: 0 0 60px;
}

.b2b-text {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
}

@media (min-width: 768px) {
  .b2b-text {
    padding: 40px;
  }
}

.b2b-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}


.contact-captcha {
    margin-bottom: 4px;
}

@media (max-width: 360px) {
    .contact-captcha .g-recaptcha {
        transform: scale(.88);
        transform-origin: 0 0;
    }
}