@font-face {
  font-family: 'Allison';
  src: url('fonts/allison.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibmplexmono-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  background: #fff;
  color: #111;
  font-family: 'IBM Plex Mono', monospace;
}

h5 {
  font-family: 'Allison', cursive;
  font-size: 2.5rem;
  font-weight: normal;
  margin: 0;
  text-align: center;
}

.logo-title {
  text-align: center;
}

.logo-title h5 {
  font-size: 4.5rem;
}

.logo-title p {
  text-align: center;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
}

.layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  width: 100%;
  margin-top: 2rem;
}

.column-left {
  justify-self: start;
  align-self: start;
}

.column-left .portrait {
  margin: 0;
  margin-top: 150px; /* Positioniert obere Kante auf Höhe "Nachname"-Feld */
  animation: slideInFromLeft 0.8s ease-out;
}

.column-left .portrait img {
  width: auto;
  max-width: 300px;
  height: auto;
  display: block;
}

.column-right {
  justify-self: end;
  align-self: start;
}

.column-right .portrait {
  margin: 0;
  margin-top: 150px; /* Positioniert obere Kante auf Höhe "Nachname"-Feld */
  animation: slideInFromRight 0.8s ease-out;
}

.column-right .portrait img {
  width: auto;
  max-width: 300px;
  height: auto;
  display: block;
}

/* Slide-In Animationen */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.column-middle {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text {
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin: 2rem auto;
}

.portrait img {
  width: 100%;
}

.contact {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
}

.contact .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.contact .field label {
  min-width: 120px;
  margin-bottom: 0.5rem;
}

.contact .field input,
.contact .field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 16px; /* Mindestens 16px verhindert Auto-Zoom auf iOS */
  box-sizing: border-box;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact .field textarea {
  resize: vertical;
}

.contact .spam-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-style: italic;
}

.contact button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
}

.contact button:hover {
  background: #333;
}

.site-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.site-footer p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.site-footer a {
  color: #111;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.impressum-content {
  max-width: 800px;
  margin: 2rem auto;
}

.impressum-content h5 {
  text-align: center;
  margin-bottom: 2rem;
}

.impressum-content h3 {
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.impressum-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.impressum-content a {
  color: #111;
  text-decoration: underline;
}

.impressum-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* Responsive Design - Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 1.5rem;
  }
  
  .logo-title h5 {
    font-size: 3.5rem;
  }
  
  .layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .column-left,
  .column-right {
    justify-self: center;
  }
  
  .column-left .portrait,
  .column-right .portrait {
    margin-top: 0; /* Auf mobilen Geräten keine Verschiebung */
  }
  
  .column-left .portrait img,
  .column-right .portrait img {
    max-width: 250px;
  }
}

/* Responsive Design - Smartphone (max 767px) */
@media (max-width: 767px) {
  .container {
    padding: 1rem;
  }
  
  .logo-title h5 {
    font-size: 2.5rem;
  }
  
  h5 {
    font-size: 2rem;
  }
  
  .layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .column-left,
  .column-right {
    justify-self: center;
  }
  
  .column-left .portrait,
  .column-right .portrait {
    margin-top: 0; /* Auf mobilen Geräten keine Verschiebung */
  }
  
  .column-left .portrait img,
  .column-right .portrait img {
    max-width: 100%;
    width: 100%;
  }
  
  .hero img {
    width: 100%;
    height: auto;
  }
}

/* Hero Slideshow Styles */
.hero {
  text-align: center;
  margin: 2rem 0;
}

.hero-slideshow {
  position: relative;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-slideshow {
  position: relative;
}

.hero-slideshow img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 1;
}

@media (max-width: 767px) {
  
  .contact form {
    max-width: 100%;
  }
  
  .contact .field input,
  .contact .field textarea {
    font-size: 16px; /* Wichtig: Verhindert Auto-Zoom auf iOS */
    padding: 1rem;
  }
  
  .contact button {
    padding: 1rem;
    font-size: 16px;
  }
  
  .site-footer p {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* Galerie-Styles */
.gallery-section {
  margin: 2rem 0;
}

.gallery-title {
  text-align: center;
  font-family: 'Allison', cursive;
  font-size: 3rem;
  margin: 2rem 0;
  font-weight: normal;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* Kein festes aspect-ratio - Bilder behalten ihr natürliches Verhältnis */
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .gallery-title {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .lightbox-close,
  .lightbox-nav {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}
