/* ==========================================================
   SCHRIFTEN
   ========================================================== */
@font-face {
  font-family: 'SpaceMono';
  src: url('fonts/SpaceMono.woff2') format('woff2'),
       url('fonts/SpaceMono.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'RedHat';
  src: url('fonts/RedHat.woff2') format('woff2'),
       url('fonts/RedHat.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Garage';
  src: url('fonts/Garage.woff2') format('woff2'),
       url('fonts/Garage.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat.woff2') format('woff2'),
       url('fonts/Montserrat.ttf') format('truetype');
  font-display: swap;
}

/* ==========================================================
   ALLGEMEIN
   ========================================================== */
html, body {
  margin: 0;
  padding: 0;  
  background-color: #fff;
  text-align: center;
  overflow: hidden;
  height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

:focus-visible { outline: 3px solid #250c5c; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ==========================================================
   HINTERGRUND
   ========================================================== */
#background {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 110vw;
  height: 110vh;
  background: url('images/hg_contact.jpg') no-repeat center center / cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
nav { position: fixed; top: 0; left: 0; width: 100%; background-color: #e2f4f6; z-index: 100; }
nav ul {
  display: flex; justify-content: space-between; list-style: none;
  padding: 0; margin: 0; border-bottom: 2px solid #250c5c; height: 8vh; align-items: center;
}

nav ul li {
  flex: 1; text-align: center; border-right: 2px solid #250c5c; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

nav ul li:last-child { border-right: none; }
nav ul li a {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #250c5c; font-family: 'RedHat', serif; font-weight: bold;
  text-transform: uppercase; font-size: 1.2vw;
}

nav ul li a:hover { font-style: italic; }

/* ==========================================================
   HEADER
   ========================================================== */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0; z-index: 500; height: 8vh;
}

@media screen and (min-width: 1025px) {
  html, body { overflow: auto; height: auto; }
  .menu-close { display: none; }
}

@media screen and (max-width: 768px) {
  body { padding-top: 0; margin: 0; }

  header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
    padding: 0;
    height: 8vh;
  }

  nav {
    display: none;
    position: fixed;
    right: 0;
    width: auto;
    height: 100%;
    background-color: #f9ecda;
    text-align: center;
    z-index: 100;
  }

  nav.show { display: block; }
  nav ul { flex-direction: column; width: 100%; border-bottom: 0; }
  nav ul li { text-align: center; padding: 2vh; border-right: 0; }
  nav ul li a { font-size: 9vw; }
}

/* ==========================================================
   CONTAINER LAYOUT
   ========================================================== */
.container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  height: calc(100vh - 8vh);
  width: 100vw;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  z-index: 10;
  position: fixed;
  top: 8vh;
  left: 0;
}

/* ==========================================================
   MAP SECTION
   ========================================================== */
.map-section {
  flex: 0 0 48%;
  width: 48%;
  height: 90%;
  padding: 1.5vh 1vw;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  border: 2px solid #250c5c;
  box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   RIGHT COLUMN (Contact Form + FAQ)
   ========================================================== */
.right-column {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 0;
}

/* ==========================================================
   FAQ SECTION
   ========================================================== */
.faq {
  flex: 0 0 60%;
  min-height: 60%;
  max-height: 60%;
  padding: 1.5vh 1vw;
  overflow-y: auto;
  z-index: 10;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.faq h2 {
  font-family: 'Garage', serif;
  text-transform: uppercase;
  color: #250c5c;
  text-shadow: 0.1vw 0.1vw 0.2vw rgba(0, 0, 0, 0.4);
  font-size: 2em;
  margin: 0 0 0.8vh 0;
  text-align: left;
  flex-shrink: 0;
}

.faq-item {
  margin-bottom: 0.5vh;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #250c5c;
  color: #e2f4f6;
  border: none;
  padding: 0.5em;
  cursor: pointer;
  font-family: 'SpaceMono', sans-serif;
  font-size: 1em;
}

.faq-answer {
  display: none;
  text-align: left;
  background: #e2f4f6CC;
  color: #250c5c;
  padding: 0.5em;
  margin-top: 0.3em;
  font-family: 'SpaceMono', serif;
  font-size: 1em;
  line-height: 1.2;
}

.faq-answer p {
  margin: 0.3em 0;
}

.faq-answer ul {
  margin: 0.3em 0;
  padding-left: 2em;
}

/* ==========================================================
   CONTACT FORM SECTION
   ========================================================== */
.contact-form {
  flex: 0 0 40%;
  min-height: 40%;
  max-height: 40%;
  padding: 1.5vh 1vw;
  overflow-y: auto;
  z-index: 10;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.contact-form h2 {
  font-family: 'Garage', serif;
  text-transform: uppercase;
  color: #250c5c;
  text-shadow: 0.2vw 0.2vw 0.3vw rgba(0, 0, 0, 0.4);
  font-size: 2em;
  margin: 0 0 0.8vh 0;
  text-align: left;
  flex-shrink: 0;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  margin-bottom: 0.5vh;
  padding: 0.5em;
  border: 0.1em solid #250c5c;
  background-color: #e2f4f6CC;
  color: #250c5c;
  font-family: 'SpaceMono', sans-serif;
  font-size: 1em;
}

.contact-form textarea {
  resize: none;
  height: 10em;
}

.contact-form button {
  background: #250c5c;
  color: #e2f4f6;
  padding: 0.5em;
  cursor: pointer;
  font-family: 'SpaceMono', sans-serif;
  font-weight: bold;
  font-size: 1em;
  transition: 0.3s;
  border: none;
}

.contact-form button:hover {
  background: #e2f4f6;
  color: #250c5c;
}

.contact-form label {
  font-family: 'SpaceMono', sans-serif;
  border: 0.1em solid #250c5c;
  background-color: #e2f4f6CC;
  padding: 0.3em;
  color: #250c5c;
  font-size: 1em;
  margin-bottom: 0.3vh;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* ==========================================================
   FORM STEPS STYLING
   ========================================================== */
.form-step {
  display: none;
  flex-direction: column;
  font-family: 'SpaceMono', sans-serif;
  text-align: left;
  gap: 0.1vh;
  flex: 1;
}

.form-step.active {
  display: flex;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.button-container {
  display: flex;
  justify-content: space-between;
  gap: 0.5vw;
  margin-top:auto;
}

.next-btn, .prev-btn, .contact-form button[type="submit"] {
  background: #250c5c;
  color: #e2f4f6;
  border: none;
  padding: 0.7em;
  cursor: pointer;
  font-family: 'SpaceMono', sans-serif;
  font-weight: bold;
  font-size: 0.85em;
  transition: 0.3s;
  flex: 1;
  text-align: center;
}

.next-btn:hover, .prev-btn:hover, .contact-form button[type="submit"]:hover {
  background: #e2f4f6;
  color: #250c5c;
}

/* ==========================================================
   FORM MESSAGE
   ========================================================== */
.form-message {
  margin-top: 1vh;
  font-family: 'SpaceMono', sans-serif;
  font-size: 0.85em;
  color: red;
  text-align: center;
}

/* ==========================================================
   FOOTER LINKS
   ========================================================== */
.footer-links {
  position: fixed;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-family: 'SpaceMono', sans-serif;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #000;
  box-shadow: 0.3vw 0.3vw 0 rgba(0, 0, 0, 1);
  padding: 0.4rem 1rem;
  border-radius: 0;
}

.footer-links a {
  color: #250c5c;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.footer-links a:hover {
  font-style: italic;
}

.footer-links .divider {
  color: #000;
  font-weight: 700;
}

.footer-links .insta-link img {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
  position: relative;
  top: 0.3vh;
}

.footer-links .insta-link img:hover {
  transform: scale(1.1);
}

/* ==========================================================
   DESKTOP MENÜ
   ========================================================== */
@media screen and (min-width: 1025px) {
  nav ul { overflow: visible; }

  nav ul li {
    position: relative;
    transform: none !important;
    box-shadow: none;
    transition: box-shadow 200ms ease;
  }

  nav ul li:hover {
    box-shadow: 0.25vw 0.25vw 0 black;
  }

  nav ul li > a {
    position: relative;
    display: flex;                 
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: transform 200ms ease;
    will-change: transform;
  }
  nav ul li:hover > a,
  nav ul li > a:focus-visible {
    transform: translateY(4px);    
  }

  nav ul li:active > a { transform: translateY(2px); }
}

@media (prefers-reduced-motion: reduce) {
  nav ul li, nav ul li > a { transition: none !important; }
}

/* ==========================================================
   RESPONSIVE - MOBILE
   ========================================================== */
.mobile-nav-btn { display: none; }

@media screen and (max-width: 768px) {
  body {
    padding-top: 5vh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
    padding: 0;
    height: 5vh;
  }

  .mobile-nav-btn {
    position: fixed;
    right: 6vw;
    top: 3vh;
    width: 11vw;
    height: 11vw;
    padding: 0;
    background: #e2f4f6;
    border: 2px solid #250c5c;
    border-radius: 0;             
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;               
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
    box-shadow: 0.5vw 0.5vw 0 #250c5c;
  }

  .mobile-nav-btn:focus-visible { outline: 3px solid #250c5c; outline-offset: 3px; }

  .mobile-nav-btn .plus {
    position: relative;
    width: 20px;
    height: 20px;
    transition: transform 250ms ease;
    transform-origin: center;
    z-index: 1002;               
  }

  .mobile-nav-btn .line {
    position: absolute;
    background: #250c5c;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0.3vw 0.3vw 0.4vw rgba(0,0,0,0.4);
  }

  .mobile-nav-btn .horizontal { width: 26px; height: 4px; }
  .mobile-nav-btn .vertical   { width: 4px; height: 26px; }

  .mobile-nav-btn[aria-expanded="true"] .plus { transform: rotate(45deg); }

  .mobile-menu-close {
    position: absolute;
    top: 3vh;
    right: 6vw;
    width: 11vw;
    height: 11vw;
    padding: 0;
    background: #e2f4f6;
    border: 2px solid #250c5c;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1020;
    box-shadow: 0.5vw 0.5vw 0 #250c5c;
    transition: transform 200ms ease, box-shadow 200ms ease;
  }

  .mobile-menu-close:active {
    box-shadow: 0.3vw 0.3vw 0 #250c5c;
  }

  .mobile-menu-close .close-icon {
    font-size: 3rem;
    line-height: 1;
    color: #250c5c;
    font-weight: 400;
    text-shadow: 0.2vw 0.2vw 0.3vw rgba(0,0,0,0.4);
  }

  #mobileMenu {
    position: fixed;
    inset: 0; 
    background: #e2f4f6;
    border: none;
    box-shadow: none;
    z-index: 1010;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    overflow: hidden;
    display: block;
  }

  body.menu-open #mobileMenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #mobileMenu .inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
  }

  #mobileMenu nav {
    display: block !important; 
    position: relative;
    background: transparent;
    border: none;
  }

  #mobileMenu nav ul {
    display: flex !important; 
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    border: none;
    height: auto;
    align-items: center;
  }

  #mobileMenu nav li {
    top: 5rem;
    margin: 0;
    border: none;
    height: auto;
    display: block;
    padding: 0.5rem 1em;
    position: relative;
  }

  #mobileMenu nav li:last-child a {
    font-size: 1em;
    padding: 1rem 0rem;
  }

  #mobileMenu nav a {
    text-decoration: none;
    color: #250c5c;
    font-family: 'SpaceMono', serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1rem, 6vw, 6rem);
    display: block;
    padding: 0.5rem 0rem;
  }

  #mobileMenu nav a:hover {
    font-style: italic;
  }

  #mobileMenu nav li::after {
    content: "*";
    position: absolute;
    font-family: 'SpaceMono', serif;
    left: 50%;
    transform: translateX(-50%);
    color: #250c5c;
    opacity: 1;
    font-size: 1rem;
  }

  #mobileMenu nav li:last-child::after {
    display: none;
  }

  #nav-placeholder nav { 
    display: none !important; 
  }

  .container {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 8vh);
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    overflow: visible;
  }

  .map-section {
    flex: none;
    width: 90%;
    height: 40vh;
    order: 3;
    margin: 2em auto;
    padding: 0 0 4vh 0;
  }

  #map {
    width: 100%;
    height: 100%;
    border: 2px solid #250c5c;
  }

  .right-column {
    flex: none;
    width: 90%;
    height: auto;
    order: 1;
    margin: 0 auto;
    padding: 0;
  }
  
  .contact-form {
    width: 100%;
    max-height: none;
    padding: 0 0 1vh 0;
    order: 1;
    margin-top: 0vh;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .faq {
    width: 100%;
    max-height: none;
    padding: 0 0 1vh 0;
    order: 2;
  }

  .contact-form h2 {
    text-align: center;
    position: relative;
    background: transparent;
    padding: 0;
    margin: 0 0 1vh 0;
    flex-shrink: 0;
  }

  .contact-form form {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
  }

  .faq h2 {
    text-align: center;
  }

  .footer-links {
    display: none;
  }
}

@media (max-width: 768px) {
  body.menu-open { 
    overflow: hidden; 
  }
}