/* Stilvolle Gestaltung für die Hofanlage Popkenhöger Straße 18 */

@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&display=swap');

body {
  margin: 0;
  font-family: 'Georgia', serif;
  color: #333;
  background: #fdfdfd;
  line-height: 1.7;
}

header {
  position: relative;
  height: 100vh;
  will-change: transform;
}

header h1 {
  font-size: 3.8em;
  font-weight: bold;
  display: block;
  margin: 0 auto 0.3em;
  text-align: center;
  color: white;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.8),
    2px 2px 14px rgba(0, 0, 0, 0.75);
  animation: fadeInUp 1.2s ease-out both;
}

header p {
  font-size: 1.6em;
  text-align: center;
  color: white;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.8),
    2px 2px 14px rgba(0, 0, 0, 0.75);
  animation: fadeInUp 1.6s ease-out both;
}

main {
  max-width: 960px;
  margin: auto;
  padding: 2em;
  position: relative;
  z-index: 2;
}

h2 {
  color: #002b45;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2em;
}

blockquote {
  font-style: italic;
  color: #555;
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 4px solid #ccc;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  margin: 2em 0;
}

figure {
  width: 300px;
  text-align: center;
}

figure img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

figcaption {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.5em;
}

footer {
  position: relative;
  background: #eee;
  padding: 2em 1em;
  text-align: center;
  font-size: 0.9em;
  color: #777;
  margin-top: 3em;
  z-index: 4;
}

a {
  color: #002b45;
}
.cloud-link {
  position: fixed;
  bottom: 15px;
  right: 20px;
  font-family: 'Cedarville Cursive', cursive;
  font-size: 1.2em;
  color: #004a77;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
  z-index: 3;
}

.cloud-link:hover {
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  header {
    padding: 3em 1em;
    background-position: center top;
  }

  header h1 {
    font-size: 2.2em;
  }

  header p {
    font-size: 1.2em;
  }

  main {
    padding: 1em;
  }

  .image-gallery {
    flex-direction: column;
    gap: 1em;
  }

  figure {
    width: 90%;
    margin: auto;
  }

  .cloud-link {
    font-size: 1em;
    right: 10px;
    bottom: 10px;
  }
}


/* Bild fixieren – immer sichtbar */
.background-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-image: url('/pictures/ansicht_von_links_ecke_beschnitten.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sketch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('/pictures/skizze_ueberblende_2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

 /* Stärkerer Blur + zusätzliche Aufhellung über halbtransparentes Weiß */
  background-color: rgba(255, 255, 255, 0.6);  /* <<< NEU: Heller */
  background-blend-mode: lighten;              /* <<< NEU: Mischmodus */

  opacity: 0;
  filter: blur(var(--sketch-blur, 0px)) brightness(1.6);
  transition: opacity 0.6s ease-out, filter 0.8s ease-out;
  z-index: 1;
  pointer-events: none;
}

/* Text über dem fixierten Bild */
.header-content {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2em;
  color: white;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.8),
    2px 2px 14px rgba(0, 0, 0, 0.75);
}
#responseMessage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e6ffe6;
  border: 1px solid #4caf50;
  border-radius: 6px;
  padding: 1.5em 2em;
  font-size: 1.1em;
  color: #2e7d32;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 10;
}

#responseMessage.visible {
  opacity: 1;
  pointer-events: auto;
}

.hidden {
  display: none;
}
