/* ======== Grundlayout ======== */

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #0077aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.button {
  background-color: #ff6f61; /* Koralle */
  color: white;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #e05b50;
}

/* ======== Style ======== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');

/* Körper – sehr heller, dezenter Verlauf für luftige Eleganz */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #2a4661; /* wärmeres, seriöses Dunkelblau */
  line-height: 1.6;
  background: linear-gradient(135deg, #fbfcfd, #ffffff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
  background: linear-gradient(90deg, #3b5a7a, #5588b2);
  color: #f0f5fb;
  padding: 2rem 1rem;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  position: relative;
  user-select: none;
  border-radius: 0; /* keine Rundungen */
}

.site-header h1 {
  width: 100%;
  margin: 0;
  font-size: 2.8rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  text-align: center;
}

.site-header nav {
  margin-top: 0.8rem;
}

.site-header nav a {
  font-size: 1.3rem;
  color: rgba(240, 245, 251, 0.75);
  margin: 0 1.2rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
  letter-spacing: 0.7px;
}

.site-header nav a:hover,
.site-header nav a:focus {
  color: #f6bd60; /* warmes, sonniges Gelb */
  letter-spacing: 1.1px;
  outline: none;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 0; /* keine Rundung */
}

/* Content */
.content {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.05);
  border-radius: 0;
  color: #2a4661;
  font-size: 1.125rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}


/* Überschrift im Content */
#main-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 1.1px;
  background: linear-gradient(90deg, #3b5a7a, #5588b2);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none;
  user-select: none;
}

/* Footer */
.site-footer {
  background: linear-gradient(90deg, #3b5a7a, #5588b2);
  color: #f0f5fb;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  user-select: none;
  border-radius: 0; /* keine Rundungen */
}

.site-footer a {
  color: #f6bd60;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #f4a261;
}

/* Optional: Fokus-Stile für bessere Zugänglichkeit */
.site-header nav a:focus-visible {
  outline: 2px solid #f6bd60;
  outline-offset: 3px;
}


/* ======== Navigation ======== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-weight: 400;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.site-header .logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-header .logo {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.site-header .logo h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.2;
  color: #d1e7ff;
  width: 100%;
  text-align: center;

  /* Mehrzeilig erlauben */
  white-space: normal;

  /* Nichts abschneiden */
  overflow: visible;
  text-overflow: clip;

  /* Optional: Schriftgröße für kleinere Screens anpassen */
  font-size: clamp(1rem, 5vw, 2.8rem);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center; /* zentriert die Navigation horizontal */
  gap: 2rem; /* Abstand zwischen den Navigationsblöcken, falls mehrere */
  flex-wrap: nowrap; /* keine Umbrüche */
  flex-grow: 1;
  min-width: 0; /* verhindert Überlauf bei Flex-Kindern */
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem; /* Abstand zwischen den einzelnen Links */
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: space-evenly; /* gleichmäßige Verteilung */
  min-width: 0;
}

.main-nav ul li {
  flex: 1 1 auto; /* flexible Breite */
  text-align: center; /* Link-Text zentriert */
  min-width: fit-content;
}

.main-nav ul li a {
  display: inline-block;
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.4rem); /* responsive Schriftgröße */
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #f6bd60; /* warmer Hover-Farbton */
  outline: none;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.social-links a {
  display: inline-block;
}

.social-links img {
  width: 28px;
  height: 28px;
  margin-left: 1rem;
  transition: transform 0.3s;
  cursor: pointer;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));
}

.social-links img:hover {
  transform: scale(1.2);
}

.main-nav ul li a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #f6bd60; /* warmer Hover-Farbton */
  outline: none;
}


/* Versteckte Checkbox */
#nav-toggle {
  display: none;
}

/* Label als Toggle Button */
.nav-toggle-label {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
  color: white;
  margin-bottom: 1rem;
}

/* ======== Responsive Design ======== */

@media (max-width: 1240px) {
  .site-header {
    flex-direction: column;
    align-items: stretch; /* volle Breite der Kinder */
    padding: 0.6rem 1rem;
    box-sizing: border-box;
    width: 100%;
  }

  /* Hamburger-Button mittig */
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    margin: 0 auto;
  }

  /* Navigation standardmäßig verstecken */
  .main-nav {
    display: none;
    width: 100%;
    padding: 0;        /* kein Padding, damit nicht breiter als Header */
    margin: 0;         /* kein margin */
    box-sizing: border-box;
  }

  /* Navigation anzeigen */
  #nav-toggle:checked + .nav-toggle-label + .main-nav {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

.main-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
    width: 100%;
  }

  .main-nav ul li a {
    display: block;
    margin: 0;
    padding: 0.6rem;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;       /* kein Umbruch */
    overflow: hidden;          /* Text abschneiden, wenn zu lang */
    text-overflow: ellipsis;   /* "..." anzeigen */
  }

  @media (max-width: 600px) {
    .main-nav ul {
      grid-template-columns: 1fr; /* eine Spalte */
    }
  }

  /* Social Links unten */
  .social-links {
    margin: 0;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .social-links img {
    width: 28px;
    height: 28px;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}


/* ======== Inhalt ======== */
.content {
  flex: 1;
 }


.intro {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  max-width: 900px; /* begrenzt die Größe auf großen Bildschirmen */
  border-radius: 12px; /* etwas weicher und moderner */
  display: block;
  margin: 0 auto 1.5rem; /* mittig platzieren, etwas mehr Luft unten */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); /* dezent schwebender Effekt */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-img:hover {
  transform: scale(1.03); /* leichter Zoom beim Hover */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

section {
  margin-bottom: 2rem;
}

h1, h2, h3 {
  color: #004466;
}

/* ======== Galerie ======== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
  overflow: visible;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 10;
  position: relative;
}

#visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

#visual div {
  overflow: hidden; /* verhindert, dass Bilder über die Container hinausgehen */
  border-radius: 8px; /* abgerundete Ecken für den Container */
}

#visual img {
  width: 100%;
  height: 200px; /* feste Höhe für alle Bilder */
  object-fit: cover; /* Bild wird zugeschnitten, bleibt aber proportioniert */
  border-radius: 8px; /* abgerundete Ecken für das Bild */
  display: block; /* entfernt unteren Abstand bei inline-Images */
}

/* ======== Footer ======== */

.site-footer .footer-divider {
  width: 60%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 1rem auto;
}


.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li {
  display: inline;
  margin: 0 0.5rem;
}

/* ======== Info-Link Button in Apartments ======== */
.apartment h2 a {
  display: inline-block;
  background-color: #ff6f61; /* Koralle */
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  margin-right: 0.5rem;
  text-decoration: none;
  transition: 
    background-color 0.25s ease, 
    box-shadow 0.25s ease, 
    transform 0.15s ease;
  vertical-align: middle;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

/* Hover-Effekt: Button hebt sich an */
.apartment h2 a:hover {
  background-color: #e05b50;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

/* Pfeil leicht bewegen beim Hover */
.apartment h2 a:hover::after {
  transform: translateX(4px);
}

/* Klick-Effekt */
.apartment h2 a:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}




/* ======== Kontaktformular ======== */

.contact-info {
  text-align: center; /* Text-Inhalt zentrieren */
  margin: 0 auto;     /* Container horizontal zentrieren */
  max-width: 400px;   /* optional: max. Breite, damit es nicht zu breit wird */
}

.contact-form {
  max-width: 100%;
  padding: 20px;    /* Innenabstand, damit Inhalt nicht direkt am Rand klebt */
  box-sizing: border-box; /* Padding wird zur Gesamtbreite gerechnet */
  position: relative;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
  font-size: 0.9rem;
  max-width: 100%; /* Labels maximal so breit wie der Container */
  white-space: normal; /* statt nowrap */
  overflow: visible;   /* wenn gewünscht */
  overflow: hidden;    /* falls zu lang */
  text-overflow: ellipsis; /* zeigt "..." bei Überlauf */
}


.contact-form h2 {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.8rem;
  color: #0077cc;
  text-align: center;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="date"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1.8px solid #ccc;
  box-sizing: border-box; 
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
  resize: vertical;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="date"]:focus,
.contact-form textarea:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 119, 204, 0.5);
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form small {
  display: block;
  margin-top: -12px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

.contact-form button {
  width: 100%;
  padding: 14px 0;
  background-color: #e6f0fa; /* sehr helles Blau (fast weiß) */
  border: none;
  border-radius: 0;
  color: #2a4661; /* dunkles Blau für Text */
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 10px rgba(42, 70, 97, 0.15);
}

.contact-form button:hover,
.contact-form button:focus {
  background-color: #f6bd60; /* warmer Gelbton als Hover */
  color: #2a4661;             /* dunkles Blau als Text */
  box-shadow: 0 6px 14px rgba(246, 189, 96, 0.6);
  outline: none;
}

/* ======== Pop Up ======== */

#popup-alert {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(42, 70, 97, 0.35); /* leichteres, transparentes Blau */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#popup-content {
  background: #f9fbff; /* sehr helles, fast weißes Blau */
  padding: 24px 40px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(42, 70, 97, 0.15); /* feiner Schatten */
  text-align: center;
  animation: popupFadeIn 0.4s ease forwards;
  color: #2a4661; /* dezentes Dunkelblau */
  border: 1.5px solid transparent; /* dünner Rahmen */
}

/* Erfolgs-Popup mit sanftem Gelb-Grün Akzent */
#popup-content.success {
  color: #547a33;
  border-color: #d9e6c9; /* sehr zarter hellgrüner Rahmen */
  background-color: #f3f7e8; /* dezentes helles Grün */
}

/* Fehler-Popup mit zartem Rosa-Rot Akzent */
#popup-content.error {
  color: #8a2a2f;
  border-color: #f7d7d9; /* sehr feiner rosa Rahmen */
  background-color: #fff0f1; /* zartes rosa Hintergrund */
}


@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}


/* ======== Anreise Map ======== */

.map-container {
  position: relative;
  width: 100%;
  height: 350px; /* feste Höhe */
}

.map-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
