/* ----------------------------------------------------------------------------
   0. Prevent unwanted pseudo-elements
   ---------------------------------------------------------------------------- */
.kontakt-contact-section::before,
.kontakt-contact-section::after {
  content: none !important;
  display: none !important;
}

/* ----------------------------------------------------------------------------
   1. Global settings
   ---------------------------------------------------------------------------- */
html,
body {
  background-color: #000;
  color: #fff;
  font-family: 'Roboto Slab', serif !important;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ----------------------------------------------------------------------------
   2. Contact section wrapper
   ---------------------------------------------------------------------------- */
.kontakt-contact-section {
  background-color: #000;
  color: #fff;
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  max-width: 100%;
  margin: 0 auto 3rem;
  box-sizing: border-box;
}

.kontakt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ----------------------------------------------------------------------------
   3. Hero banner
   ---------------------------------------------------------------------------- */

/* Hero banner wrapper: always pushed down by header height */
.kontakt-hero-banner {
  margin-top: 80px; /* height of your header */
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Hero banner image styling: full visible, no cropping */
.kontakt-hero-banner img {
  width: 100%;
  height: auto;               /* maintain aspect ratio */
  display: block;
  object-fit: contain;        /* ensures full image is visible, no cropping */
  object-position: top center; /* aligns image top with container top */
  max-height: none;           /* no max height restriction */
}

/* Optional: on smaller screens adjust margin if header height changes */
@media (max-width: 768px) {
  .kontakt-hero-banner {
    margin-top: 80px; /* example smaller header height on mobile */
  }
}


/* ----------------------------------------------------------------------------
   4. Notifications
   ---------------------------------------------------------------------------- */
.kontakt-notification {
  background-color: #111;
  color: #fff;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 600px;
  border-radius: 4px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.kontakt-success {
  border: 1px solid #3aad3a;
}

.kontakt-error {
  border: 1px solid #ad3a3a;
}

/* ----------------------------------------------------------------------------
   5. Headings & paragraphs
   ---------------------------------------------------------------------------- */
.kontakt-contact-section h2,
.kontakt-contact-section h3,
.kontakt-contact-section h4 {
  font-family: 'Roboto Slab', serif;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.kontakt-contact-section h2 {
  margin-top: 1rem;
}

.kontakt-contact-section p {
  font-family: 'Roboto Slab', serif;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 400;
}

/* ----------------------------------------------------------------------------
   6. Flex wrapper for form and details
   ---------------------------------------------------------------------------- */
.kontakt-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------------------
   7. Contact form panel
   ---------------------------------------------------------------------------- */
.kontakt-contact-form {
  background-color: #000;
  color: #fff;
  flex: 1 1 320px;
  max-width: 480px;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.kontakt-contact-form:hover {
  box-shadow: 0 0 15px 3px rgba(255, 255, 255, 1);
  background-color: #111;
}

.kontakt-contact-form label {
  color: #fff;
  font-weight: 600;
}

.kontakt-contact-form input,
.kontakt-contact-form textarea {
  background-color: #222;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.5rem;
  color: #fff;
  font-size: 1rem;
}

.kontakt-contact-form ::placeholder {
  color: #666;
}

.kontakt-contact-form input:focus,
.kontakt-contact-form textarea:focus {
  outline: none;
  border-color: #888;
  background-color: #333;
}

.kontakt-contact-form button {
  background-color: #e63946;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.kontakt-contact-form button:hover {
  background-color: #d62828;
}

.kontakt-hp-field {
  display: none !important;
}

/* ----------------------------------------------------------------------------
   8. Contact details panel
   ---------------------------------------------------------------------------- */
.kontakt-contact-details {
  background-color: #000;
  color: #fff;
  flex: 1 1 280px;
  max-width: 400px;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.kontakt-contact-details:hover {
  box-shadow: 0 0 15px 3px rgba(255, 255, 255, 1);
  background-color: #111;
}

.kontakt-contact-details strong {
  color: #fff;
}

.kontakt-contact-details a {
  color: #f4a261;
  text-decoration: none;
  word-break: break-word;
}

.kontakt-contact-details a:hover {
  color: #e76f51;
}

/* ----------------------------------------------------------------------------
   9. Map
   ---------------------------------------------------------------------------- */
.kontakt-map-container {
  max-width: 960px;
  margin: 2rem auto 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
  background-color: #000;
}

.kontakt-map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ----------------------------------------------------------------------------
   10. Responsive
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .kontakt-flex {
    flex-direction: column;
    gap: 2rem;
  }

  .kontakt-contact-form,
  .kontakt-contact-details {
    max-width: 100%;
  }
}

/* ----------------------------------------------------------------------------
   11. body  & footer gap space 
   ---------------------------------------------------------------------------- */

.kontakt-contact-section {
  margin-bottom: 0; /* Fix the unwanted gap */
  padding-bottom: 2rem; /* Controlled inner spacing */
}

footer,
#colophon, /* Typical WordPress footer ID */
.site-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
