@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;300;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans:wght@400;600&family=Lato:wght@400;700&display=swap');

/* ALLGEMEIN */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
}

body {
  background: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  background-image: url("xaver-4.jpg");
  background-size: cover;        /* Bild immer den gesamten Body abdecken */
  background-position: center;   /* Bild zentrieren */
  background-repeat: no-repeat;  /* nicht wiederholen */
  background-attachment: fixed;  /* Bild bleibt beim Scrollen fixiert */
  width: 100%;
  max-width: 1800px;
  height: auto;
}

h2 {
  color: #8C744E;
  font-family: 'Playfair Display', serif;
  font-weight: 100;    /* super dünn für große Headlines */
  font-size: 72px;
  letter-spacing: 3px; /* macht es eleganter */
  padding: 0rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h3 {
  color: #8C744E;
  font-family: 'Lato', serif;
  font-weight: 100;    /* super dünn für große Headlines */
  font-size: 48px;
  letter-spacing: 3px; /* macht es eleganter */
  padding: 0rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

p {
  color: #000;
  padding: 0rem;
  font-family: 'Open Sans', serif;
}

/* TEMPLATE */

.maincontainer {
  background: rgba(255, 255, 255, 0.80);
  width: 70%;
  height: 90vh;
  padding: 0.75rem 0rem 2rem 0rem;
  box-shadow: 0 0 45px rgba(1, 1, 0, 0.5);
  margin: 5vh auto;
  display: flex;
  flex-direction: column;
}

.header {
  margin: 0;
  padding: 0rem 0rem 0rem 2rem;
}

.inhalt {
  width: 100%;
  height: 100%;      /* füllt jetzt die Höhe des äußeren Containers */
  overflow-y: auto;   /* Scrollbar innerhalb des Containers */
  padding: 1.5rem 2rem 2rem 2rem;
}

.menu {
  display: flex;          /* horizontal anordnen */
  justify-content: left;
  gap: 0rem;
  margin: 0;
  background: #8C744E;
}

.menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
  font-family: 'Open Sans', serif;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.30);
}

/* GALERIE */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* flexible Spalten */
  gap: 15px;           /* Abstand zwischen Bildern */
  margin: 2rem 0;
  padding: 0rem;
  max-width: 1200px;    /* Breite begrenzen */
}

.gallery img {
  width: 100%;
  height: 200px;        /* einheitliche Höhe */
  object-fit: cover;    /* Bild wird zugeschnitten, nicht verzerrt */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.05); /* Zoom-Effekt beim Hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.galerie-album {
  position: relative;
  display: block;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  background: #8C744E;
}

.galerie-album:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.galerie-album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galerie-album span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: 'Open Sans', serif;
  font-weight: 600;
}

/* KURSE */

.kurse {
  max-width: 1000px;
  margin: 2rem 0;
  padding: 0rem;
}

.kurs {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Open Sans', serif;
}

.kurs:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.kurs h4 {
  margin-top: 0;
  color: #333;
}

.kurs p {
  margin: 0.5rem 0;
  color: #555;
}

.kurs button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #8C744E;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.kurs button:hover {
  background: #756141;
}

.kurs summary {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #8C744E;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  list-style: none;    /* Standard-Dreieck entfernen (Firefox) */
}

.kurs summary::-webkit-details-marker {
  display: none;       /* Standard-Dreieck entfernen (Chrome/Safari) */
}

.kurs summary:hover {
  background: #756141;
}

.kurs details[open] summary {
  margin-bottom: 1rem;
}

.kurs summary .weniger-text {
  display: none;
}

.kurs details[open] summary .mehr-text {
  display: none;
}

.kurs details[open] summary .weniger-text {
  display: inline;
}

.kurs details p {
  margin: 0.5rem 0;
}

.anmeldung-formular {
  text-align: left;
  margin-top: 0.5rem;
}

.anmeldung-formular label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #555;
}

.anmeldung-formular input,
.anmeldung-formular textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}

.anmeldung-formular button {
  margin-top: 0.5rem;
}

.anmeldung-formular .hp-feld {
  display: none;
}

.hinweis-erfolg,
.hinweis-fehler {
  max-width: 1000px;
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-family: 'Open Sans', serif;
}

.hinweis-erfolg {
  background: #e3f3e1;
  color: #2e7d32;
}

.hinweis-fehler {
  background: #fbe4e2;
  color: #b3261e;
}

/* UEBER MICH */

.ueber-mich {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profil {
  text-align: center;
  padding: 2rem 0rem 0rem 0rem;
}

.profil img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}

.profil h2 {
  margin: 0.5rem 0 0;
  font-size: 2rem;
  color: #333;
}

.profil p {
  color: #8C744E;
  font-size: 1.2rem;
}

.beschreibung {
  margin-top: 2rem;
  line-height: 1.6;
  color: #333;
}

.beschreibung p {
  color: #333;
}

.skills {
  margin-top: 2rem;
}

.skills h3 {
  color: #8C744E;
  font-family: 'Open Sans', serif;
  font-weight: 100;    /* super dünn für große Headlines */
  font-size: 48px;
  letter-spacing: 3px; /* macht es eleganter */
  padding: 0rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.skills ul {
  list-style: none;
  padding: 0;
}

.skills li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

/* IMPRESSUM */

.impressum h4 {
  color: #8C744E;
  font-family: 'Open Sans', serif;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.impressum p {
  color: #333;
  line-height: 1.6;
}

.impressum a {
  color: #8C744E;
}

.impressum-hinweis {
  font-size: 0.85rem;
  font-style: italic;
  color: #999 !important;
  margin-bottom: 1rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  body {
    background-attachment: scroll; /* "fixed" ruckelt/spinnt auf iOS Safari */
  }

  .maincontainer {
    width: 94%;
    height: auto;
    min-height: 90vh;
    margin: 3vh auto;
  }

  .header {
    padding: 1.5rem 1rem 0 1rem;
  }

  .header h2 {
    font-size: 40px;
  }

  .menu {
    flex-wrap: wrap;
  }

  .menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .inhalt {
    height: auto;
    padding: 1.25rem 1rem 1.5rem 1rem;
  }

  h2 {
    font-size: 42px;
  }

  h3 {
    font-size: 30px;
  }

  .skills h3 {
    font-size: 30px;
  }

  .ueber-mich {
    padding: 1.25rem;
  }

  .profil img {
    width: 130px;
    height: 130px;
  }

  .kurs {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .header h2 {
    font-size: 30px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 26px;
  }

  .skills h3 {
    font-size: 26px;
  }

  .gallery,
  .kurse {
    gap: 10px;
  }
}
