/* ========================================================== */
/* GRUNDEINSTELLUNGEN & DESIGN-SYSTEM                         */
/* ========================================================== */
:root {
  --color-light: #f8f5ef;
  --color-soft: #e5dcd3;
  --color-accent: #c47d5c;
  --color-dark: #444444;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  padding-top: 4.5rem; /* Abstand für die fixierte Navigationsleiste */
  font-weight: normal;
}
img { max-width: 100%; height: auto; display: block; }

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem;
  background-color: white;
  border-bottom: 1px solid var(--color-accent);
  
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav a { text-decoration: none; color: var(--color-dark); font-weight: 500; }
nav a:hover, nav a.active-nav { color: var(--color-accent); }
footer { text-align: center; padding: 2rem 1rem; font-size: 0.9rem; color: var(--color-dark); font-weight: normal; }


/* ========================================================== */
/* ALLGEMEINE EINSTELLUNGEN FÜR TELEFONE (DEFAULT)       */
/* ========================================================== */
.hero {
  position: relative;
  padding-bottom: 4rem;
}
.hero .left {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-soft);
  z-index: 1;
  width: 35%;
}
.hero .left img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  top: 3rem;
  width: 70vw;
  max-width: 280px;
}
.hero .right {
  position: relative;
  z-index: 5;
  padding: 0 1.5rem;
}
.hero-header, .hero-body {
  text-align: center;
}
.hero-header {
  padding-top: calc(280px + 4rem);
}
.hero-header h1 { font-size: 2.2rem; color: var(--color-accent); font-weight: 300; margin-bottom: 0.5rem; }
.hero-header .tagline { font-size: 1rem; color: var(--color-dark); margin-bottom: 1.5rem; }
.hero-body p {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  text-align: justify;
  font-weight: normal;
}
.hero-header .pronouns {
  font-size: 1.2rem;
  font-weight: 400;
}


/* ================================================================================= */
/* ALLGEMEINE EINSTELLUNGEN FÜR TABLET & LAPTOP (ab 768px)                       */
/* ================================================================================= */
@media (min-width: 768px) {

  .hero {
    display: flex;
    align-items: flex-start;
    padding: 0;
    position: static;
  }
  .hero .left {
    flex-basis: 30%;
    padding: 1.5rem 0 6rem 4rem;
    position: static;
    height: auto;
  }
  .hero .left img {
    display: block;
    margin-left: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-width: 290px;
    transform: translateX(40px);
    left: auto;
    width: 70%;
    z-index: 10;
    position: relative;
    top: 4rem;
  }
  .hero .right {
    flex-basis: 75%;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .hero-header, .hero-body {
    text-align: left;
    max-width: 680px;
    padding: 0;
    margin-left: 110px;
  }
  .hero-header {
      margin-bottom: 1.5rem;
  }
  .hero-header h1 {
    font-size: 2.5rem;
  }

  /* ANGEPASST: Schriftgröße und Abstand für Navigation auf Tablets & Laptops */
  nav {
    gap: 2.5rem;
  }
  nav a {
    font-size: 1.2rem;
  }

  /* KORRIGIERT: Galerie-Bilder 3 nebeneinander auf Laptops */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten auf Laptops */
  }

  /* WICHTIG: Überschreibt die Standardbreite für Inhalte auf Laptops */
  .content-page {
    max-width: 90vw;
    padding: 0 3rem;
  }
}

/* ================================================================================= */
/* EINSTELLUNGEN NUR FÜR IPAD IM PORTRAIT-MODUS (768px - 1023px)                 */
/* ================================================================================= */
@media (min-width: 768px) and (max-width: 1023px) {

  .hero .left img {
    width: 250px;
    transform: translateX(10px);
  }
}


/* ================================================================================= */
/* EINSTELLUNGEN NUR FÜR GROSSE DESKTOPS (ab 1024px)                             */
/* ================================================================================= */
@media (min-width: 1024px) {

  .hero-header, .hero-body {
    max-width: 800px;
    margin-left: 120px;
  }
  .hero .left img {
    width: 290px;
    transform: translateX(40px);
  }

  /* WEITER ANGEPASST: Noch breitere Inhaltsseiten auf großen Desktops */
  .content-page {
    max-width: 1400px;
  }
}

/* ================================================================================= */
/* NEU: Schriftart-Ausrichtung für Telefone (bis 767px)                       */
/* ================================================================================= */
@media (max-width: 767px) {
  /* Setzt die Ausrichtung für alle Fließtext-Elemente auf linksbündig ein */
  body .hero-body p,
  body .content-page p,
  body .project-details,
  body .description-text,
  body .hero-header,
  body .hero-body {
    text-align: left !important;
  }
}


/* ================================================================================= */
/* EINSTELLUNGEN NUR FÜR TELEFON IM PORTRAIT-MODUS (bis 767px)                   */
/* ================================================================================= */
/* Zusätzliche Anpassungen für sehr kleine Bildschirme (z.B. iPhones) */
@media (max-width: 480px) {
  nav {
    gap: 0.75rem;
    padding: 0.8rem 0.5rem;
  }
  nav a {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }
}

@media (max-width: 767px) and (orientation: portrait) {

  .hero .left {
    height: 260px;
  }

  .hero .left img {
    max-width: 150px;
    transform: translateX(calc(-50% + 15px));
  }

  .hero .right {
    padding: 0 1.5rem 0 0;
  }

  .hero-header {
    padding-top: 3rem;
    padding-left: 175px;
  }

  .hero-body {
    padding-top: 40px;
    padding-left: 1.5rem;
  }

  .hero-header h1 {
    font-size: 1.5rem;
  }

  .hero-header .pronouns {
    font-size: 0.8rem;
  }
}

/* ================================================================================= */
/* EINSTELLUNGEN NUR FÜR TELEFON IM LANDSCAPE-MODUS                                */
/* ================================================================================= */
@media (max-width: 767px) and (orientation: landscape) {

  .hero {
    display: flex;
    align-items: flex-start;
  }
  .hero .left {
    position: static;
    height: auto;
    flex-basis: 30%;
    padding: 2rem 0 2rem 1.5rem;
  }
  .hero .left img {
    position: relative;
    left: auto;
    display: block;
    margin-left: auto;
    max-width: 160px;
    top: 0;
    transform: translateX(20px);
  }
  .hero .right {
    flex-basis: 70%;
    padding: 0;
  }
  .hero-header, .hero-body {
    padding: 0;
    padding-right: 1.5rem;
  }
  .hero-header {
      padding-top: 2.5rem;
      padding-left: 30px;
      margin-bottom: 1.5rem;
  }
  .hero-body {
      padding-left: 30px;
  }
  .hero-header h1 { font-size: 1.5rem; }
  .hero-header .pronouns { font-size: 0.8rem; }
  .hero-header .tagline { font-size: 0.8rem; }
  .hero-body p { font-size: 0.8rem; }
  footer { font-size: 0.7rem; }
}

/* ================================================================================= */
/* STILE FÜR INHALTSSEITEN (IMPRESSUM, KONTAKT, PROJEKTE, LEISTUNGEN)             */
/* ================================================================================= */
.content-page {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
  font-weight: normal;
}

.content-page .page-intro {
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 4rem;
  text-align: justify;
  font-weight: normal;
}

.content-page h2 {
  color: var(--color-accent);
  font-weight: 300;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-soft);
}

.content-page h3 {
  font-weight: 500;
  font-size: 1.2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.content-page h4 {
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.2rem;
}

.content-page p {
  margin-bottom: 1rem;
  text-align: justify;
  font-size: 1rem; /* Spezifische Schriftgröße für den allgemeinen Fließtext */
  font-weight: normal;
}

.content-page a {
  color: var(--color-accent);
  text-decoration: none;
}

.content-page a:hover {
  text-decoration: underline;
}

.content-page ul {
  list-style-position: outside;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
}

.content-page li {
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.content-page ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ================================================================================= */
/* STILE FÜR DIE PROJEKTE- & LEISTUNGEN-SEITE                                     */
/* ================================================================================= */
.project-section, .service-grid {
  margin-bottom: 3rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  border-top: 4px solid var(--color-soft);
  transition: transform 0.2s, box-shadow 0.2s;
  font-weight: normal;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: normal;
}
.cta-button {
  display: block;
  width: fit-content;
  margin: 4rem auto 0;
  padding: 0.8rem 2.5rem;
  background-color: var(--color-accent);
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s;
}
.cta-button:hover {
  background-color: #a96849;
}
/* Diese Regel war ursprünglich für eine Galerie-Ansicht im Projektbereich gedacht,
   wird aber durch .gallery-grid auf der Galerie-Seite abgelöst. */
.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
}
.gallery-item {
  flex: 1 1 250px;
}
/* Wird auf der Galerie-Seite von .gallery-item img überschrieben */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ================================================================================= */
/* STILE FÜR DAS KONTAKTFORMULAR                                                 */
/* ================================================================================= */
.contact-form {
  margin-top: 3rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-soft);
  border-radius: 4px;
  background-color: white;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: normal;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(196, 125, 92, 0.2);
}
.submit-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--color-accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.submit-btn:hover {
  background-color: #a96849;
}

/* ================================================================================= */
/* STILE FÜR DIE GALERIE-SEITE                                                     */
/* ================================================================================= */
.project-gallery-section {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
}

.project-gallery-section h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  text-align: left;
}

.project-gallery-section h3 a {
  color: var(--color-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.project-gallery-section h3 a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.project-gallery-section h3 .fa-external-link-alt {
  font-size: 0.8em;
  margin-left: 0.5rem;
  color: var(--color-accent);
}

.project-details {
  color: var(--color-dark);
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: justify;
  font-size: 1.1rem; /* KORRIGIERT: Spezifische Größe für die Projektbeschreibung */
  font-weight: normal;
}

.project-details strong {
  font-size: 1em;
  color: inherit;
  font-weight: 600;
}

.description-text {
  font-size: 1rem; /* KORRIGIERT: Spezifische Größe für die Rollenbeschreibung */
  display: block;
  margin-top: 0.5rem;
  color: var(--color-dark);
  font-weight: normal;
  text-align: justify;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* KORRIGIERT: Feste Höhe entfernt, da die Kinder jetzt feste Höhen haben */
}

.gallery-item img {
  width: 100%;
  height: 180px; /* KORRIGIERT: Feste Höhe für die Bilder */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--color-soft);
}

.gallery-item .image-caption {
  padding: 0.8rem;
  font-size: 0.8rem; 
  color: var(--color-dark);
  text-align: center;
  background-color: var(--color-light);
  height: 70px; /* KORRIGIERT: Feste Höhe, um einheitliche Blöcke zu schaffen */
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-separator {
  border: 0;
  height: 1px;
  background-color: var(--color-soft);
  margin: 4rem 0;
}

/* Anpassungen der Galerie für kleinere Bildschirme */
@media (max-width: 767px) {
  .project-gallery-section h3 {
    font-size: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  .gallery-item {
    /* KORRIGIERT: Feste Höhe entfernt */
  }
  .gallery-item img {
    height: 140px; /* KORRIGIERT: Angepasste Bildhöhe für kleinere Bildschirme */
    object-fit: cover;
  }
  .gallery-item .image-caption {
    font-size: 0.7rem; 
    padding: 0.6rem;
    height: 60px; /* KORRIGIERT: Angepasste feste Höhe für Mobilgeräte */
  }
  .project-separator {
    margin: 3rem 0;
  }
}

/* ========================================================== */
/* STILE FÜR LIGHTBOX / BILDVERGRÖSSERUNG                   */
/* ========================================================== */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    z-index: 2001;
    transition: color 0.2s ease;
}

#lightbox-close:hover {
    color: var(--color-accent);
}

/* Optional: Verhindert Scrollen des Hintergrunds, wenn Lightbox aktiv */
body.no-scroll {
    overflow: hidden;
}