/* =========================================
   ÜBER UNS / KONTAKT (ueber-uns.html)
   ========================================= */
:root {
  --con-primary: #1e293b;
  --con-accent: #00b0ff;
  --con-bg: #f8fafc;
  --con-text: #475569;
  --con-border: #e2e8f0;
}

main {
  display: block;
  padding-top: var(--header-height-desktop);
}

.contact-wrapper-outer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-header-external {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.contact-header-external h1 {
  font-size: 1rem;
  color: var(--con-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--con-primary);
  line-height: 1.1;
  margin: 0 0 20px 0;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--con-text);
  line-height: 1.6;
}

.contact-widget-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--con-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.emergency-bar {
  background: #fee2e2;
  color: #991b1b;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #fecaca;
  font-size: 1rem;
  text-align: center;
}

.emergency-text {
  width: 100%;
}

.emergency-link {
  color: #b91c1c;
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
  border-bottom: 1px dotted #b91c1c;
}

.contact-split-layout {
  display: flex;
  flex-wrap: wrap;
}

.contact-info-col {
  flex: 1 1 400px;
  background: var(--con-bg);
  padding: 40px;
  border-right: 1px solid var(--con-border);
  display: flex;
  flex-direction: column;
}

.info-headline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--con-primary);
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--con-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.info-icon {
  color: var(--con-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item a {
  color: var(--con-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.info-item a:hover {
  color: var(--con-accent);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 2px 4px;
  vertical-align: top;
  font-size: 0.95rem;
  color: var(--con-text);
}

.hours-table td:first-child {
  font-weight: 700;
  width: 100px;
  color: var(--con-primary);
}

/* Festes Kartenbild (selbst gehostet, keine externen Kartendienste) */
.map-static {
  margin: auto 0 0 0;
}

.map-static-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--con-border);
  text-decoration: none;
}

.map-static-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 320;
  object-fit: cover;
}

.map-static-cta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.map-static-link:hover .map-static-cta,
.map-static-link:focus-visible .map-static-cta {
  background: #003b5e;
  text-decoration: underline;
}

.map-attribution {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #475569;
}

.map-attribution a {
  color: #475569;
}

.contact-form-col {
  flex: 1.5 1 500px;
  padding: 40px;
}

.form-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--con-primary);
  margin: 0 0 25px 0;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.half {
  width: 50%;
}

.label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--con-primary);
  margin-bottom: 8px;
}

.field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--con-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--con-primary);
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.field:focus {
  outline: none;
  border-color: var(--con-accent);
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(0, 176, 255, 0.3); /* gut sichtbarer Fokus */
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.topic-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--con-text);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.topic-check:hover {
  background: var(--con-bg);
}

.topic-check input {
  accent-color: var(--blue-dark);
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
}

.privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--con-text);
}

.privacy-check input {
  margin-top: 1px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--blue-dark);
}

.btn-submit {
  background-color: var(--blue-dark);
  color: white;
  border: none;
  padding: 16px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: none;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background-color: #0284c7;
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 900px) {
  .contact-split-layout {
    flex-direction: column;
  }

  .contact-info-col {
    border-right: none;
    border-bottom: 1px solid var(--con-border);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .half {
    width: 100%;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .emergency-bar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .contact-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-wrapper-outer {
    padding-top: 30px;
    padding-bottom: 40px;
  }
}
