
/* Typography */


h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
}

h2 {
    color: var(--accent-color);
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Layout */

.contact-section {
    width: 100%;
    max-width: 1200px;
    margin: 0rem auto;
    padding: 0 2rem;
}

/* section {
    padding: 6rem 0;
} */


.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Components */
.formcard {
    background-color: var(--black-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-text);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 6px;
    color: var(--secondary-color);
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--gray);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0 6rem 2rem 6rem;
}

.contact-info {
    margin-bottom: 2rem;
    padding: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;

}

.contact-info-icon {
    margin-right: 1rem;
    color: var(--accent-color);
    font-size: 1.25rem;
    align-self: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray);
    color: var(--text);
    transition: all 0.2s;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* =========================================
   CONTACT PAGE – Mobile Styles (≤768px)
   Scope: #contact
   ========================================= */
@media (max-width: 768px) {

  /* --- Hero nur für Kontaktseite --- */
  #contact .contact-page-hero,
  #contact .page-hero.contact-page-hero {
    height: auto !important;
    padding-top: 88px;           /* Platz für fixe Navbar */
    padding-bottom: 24px;
    display: flex;
    align-items: flex-start;
  }

  #contact .contact-page-hero .hero-content {
    max-width: none;
    text-align: left;
  }

  #contact .contact-page-hero .section-heading {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  #contact .contact-page-hero p {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  #contact .contact-page-hero .btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  /* --- Grid unter dem Hero: 1-spaltig --- */
  #contact .contact-section .grid.grid-cols-2 {
    grid-template-columns: 1fr; /* statt 2 Spalten */
    gap: 16px;
  }

  /* --- Formularkarte & Typo --- */
  #contact .formcard {
    padding: 16px;
    border-radius: 10px;
  }

  #contact .form-group { margin-bottom: 14px; }

  #contact label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  #contact input,
  #contact textarea,
  #contact select {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;             /* verhindert iOS Zoom */
    line-height: 1.4;
  }

  #contact textarea { min-height: 140px; }

  #contact .formcard .btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
  }

  /* --- Kontaktinfos rechts (mobil darunter) --- */
  #contact .contact-info {
    padding: 16px;
    margin-bottom: 0;
  }

  #contact .contact-info-item {
    margin-bottom: 12px;
  }

  #contact .contact-info-icon {
    font-size: 18px;
    margin-right: 10px;
  }

  #contact .social-links {
    gap: 10px;
    margin-top: 14px;
  }

  #contact .social-link {
    width: 40px; height: 40px;
  }

  /* --- Karte / Google Maps --- */
  #contact .map-container {
    height: 320px;               /* kompakter auf Mobile */
    border-radius: 10px;
    margin-top: 16px;
  }

  #contact .map-container iframe {
    width: 100%;
    height: 100%;
    padding: 0;                  /* verhindert seitliches Überlaufen */
  }

  /* --- Abstände insgesamt --- */
  #contact .contact-section {
    padding: 0 16px;
    margin: 0 auto;
  }

  /* Fade-ins mobil neutralisieren (optional) */
  #contact .fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Extra-small Tweaks (≤480px) – weiterhin nur Kontaktseite */
@media (max-width: 480px) {
  #contact .contact-page-hero { padding-top: 80px; }
  #contact .contact-page-hero .section-heading { font-size: 26px; }

  #contact .formcard,
  #contact .contact-info { padding: 14px; }

  #contact .map-container { height: 280px; }
}
