/* =========================================
   1. GRUNDLAYOUT & RESET
   ========================================= */
* {
  box-sizing: border-box;
}

html {
  background-color: #fdfbf7; 
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;

  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  background: #fdfbf7;
  
  /* === STICKY FOOTER FIX === */
  min-height: 100vh;       /* Mindestens so hoch wie der Bildschirm */
  display: flex;           /* Flexbox aktivieren */
  flex-direction: column;  /* Untereinander anordnen */
}

/* Das sorgt dafür, dass der Inhalt den Footer nach unten drückt */
main {
  flex: 1; 
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6em 2.0em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: #333; 
}
.logo img { height: 60px; width: auto; display: block; }
.logo p {
  margin: 0;
  font-size: 2.0rem;
  font-family: 'Uncial Antiqua', serif;
  line-height: 1;
  color: #333;
}

nav { display: flex; align-items: center; }

nav a {
  font-family: 'Merriweather Sans', sans-serif;
  margin-left: 2em;
  text-decoration: none; color: #555;
  text-transform: uppercase; font-size: 1rem;
  font-weight: 400; letter-spacing: 2px;
  position: relative; transition: color 0.3s;
}

nav a.active, nav a:hover { color: #b86b4b; }

nav a::after {
  content: ""; position: absolute; width: 0%; height: 2px;
  bottom: -4px; left: 0; background-color: #b86b4b; transition: width 0.3s;
}
nav a:hover::after { width: 100%; }


/* =========================================
   3. HERO BEREICH (Startseite)
   ========================================= */
.hero-boutique {
  min-height: 70vh; 
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 2em 1em;
}

.hero-content {
  max-width: 800px; width: 100%;
  animation: fadeIn 1.2s ease;
}

.center-img {
  width: 1200px; display: block; margin: 0 auto 1.5em auto;
}

.hero-boutique h1 {
  font-family: 'Uncial Antiqua', serif; font-size: 3.5rem; 
  color: #333; margin-bottom: 0.2em; line-height: 1.1;
}

.hero-boutique .subtitle {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem;
  color: #666; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 2.5em; display: block;
}

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(20px); } 
  to { opacity: 1; transform: translateY(0); } 
}


/* =========================================
   4. ALLGEMEINE SEKTIONEN
   ========================================= */
.container {
  max-width: 1200px; margin: 0 auto; padding: 0 1em;
}

section { padding: 4em 0; }

h1 {
  font-family: 'Uncial Antiqua', serif; font-size: 3.0rem;
  font-weight: 400; letter-spacing: 3px; margin: 0 0 0.5em;
}

h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 2.8rem;
  font-weight: 700; letter-spacing: 1px; margin: 0 0 0.6em; text-align: center;
}

h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem;
  font-weight: 600; margin: 0 0 0.5em;
}

p {
  font-family: 'Lora', serif; font-size: 1.15rem;
  line-height: 1.8; color: #444; margin-bottom: 1.5em;
}

.btn-outline {
  display: inline-block; text-decoration: none;
  border: 2px solid #333; color: #333;
  padding: 0.8em 2.5em; border-radius: 2px;
  font-family: 'Merriweather Sans', sans-serif;
  text-transform: uppercase; font-size: 0.9rem;
  letter-spacing: 2px; transition: all 0.3s ease;
}
.btn-outline:hover { 
  background-color: #333; color: #fff; transform: translateY(-3px); 
}


/* =========================================
   5. ANGEBOT BOXEN (Startseite)
   ========================================= */
.services-text {
  max-width: 700px; margin: 0 auto 3em auto; text-align: center;
}

.services-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2em; text-align: center;
}

.service-item {
  background-color: #fff; padding: 2em;
  border-radius: 4px; border: 1px solid #eee;
  transition: all 0.3s ease;
  display: block; text-decoration: none; color: inherit; cursor: pointer; 
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: #b86b4b; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-item h3 {
  font-family: 'Merriweather Sans', sans-serif; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: #333; margin-top: 0; margin-bottom: 1em;
}

.service-item p {
  font-size: 1rem; margin-bottom: 0; color: #444; 
}


/* =========================================
   6. ÜBER MICH (Layout & Rose)
   ========================================= */
.about-grid {
  display: grid; grid-template-columns: 0.5fr 1fr; gap: 4em; align-items: center;
}

.subtitle {
  color: #b86b4b; font-family: 'Merriweather Sans', sans-serif;
  font-weight: 300; text-transform: uppercase; letter-spacing: 2px;
  font-size: 1.1rem; margin-bottom: 1.5em; display: block;
}

/* Die Rose */
.about-image img {
  width: 100%; height: auto;
  max-width: 400px; display: block; margin: 0 auto;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
  border-radius: 0;
}

/* Lebenslauf */
.career-list {
  list-style: none; padding: 0; margin-top: 2em;
}
.career-list li {
  display: flex; gap: 1.5em; margin-bottom: 1em; padding-bottom: 1em;
  border-bottom: 1px solid #eee; 
}
.career-list li:last-child { border-bottom: none; }
.career-list .year {
  font-family: 'Merriweather Sans', sans-serif; font-weight: 700;
  color: #b86b4b; min-width: 110px; flex-shrink: 0; 
}


/* =========================================
   7. GALERIE & LIGHTBOX (Final Polish)
   ========================================= */

/* --- GRID (RASTER) --- */
.grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 1.5em; 
}

.tile {
  display: block; cursor: pointer; transition: transform 0.3s ease; 
  position: relative; 
}
.tile:hover { transform: translateY(-5px); }

.tile img {
  width: 100%; height: 450px; object-fit: cover;
  border-radius: 2px; display: block;      
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
  margin-bottom: 0;
}

/* Badge im Raster */
.stack-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.7); color: #fff;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.8rem; display: flex; align-items: center; gap: 5px;
  pointer-events: none;
}

/* Filter Buttons */
.filter-buttons {
  display: flex; justify-content: center; gap: 0.8em; margin-bottom: 2.5em; flex-wrap: wrap;
}
.filter-btn {
  background: transparent; border: 1px solid #ccc; padding: 0.6em 1.5em; 
  border-radius: 50px; cursor: pointer; font-size: 0.85rem; text-transform: uppercase; color: #666; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  background-color: #333; color: #fff; border-color: #333; transform: translateY(-2px);
}


/* --- LIGHTBOX CONTAINER --- */
.lightbox {
  position: fixed; top: 0; left: 0; 
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95); 
  display: flex; flex-direction: column; /* Wichtig für Mobile Layout */
  align-items: center; justify-content: center; 
  z-index: 2000;
}

/* Der weiße Rahmen (Enthält NUR das Bild) */
.lb-inner {
  position: relative;
  background: #fff; 
  padding: 10px;     
  border-radius: 2px;
  /* PC: Box darf breit sein */
  max-width: 80vw; 
  max-height: 85vh; 
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  
  /* Damit die Satelliten am PC sichtbar sind (da sie außerhalb liegen) */
  overflow: visible; 
}

.lb-inner img#lb-img { 
  /* Bild passt sich perfekt ein */
  max-width: 100%; max-height: 80vh; 
  object-fit: contain; display: block; margin: 0; 
  transition: opacity 0.2s ease; opacity: 1;
}

/* Schließen Button */
.close { 
  position: absolute; top: -50px; right: 0; 
  background: none; border: none; 
  font-size: 3rem; color: #fff; 
  cursor: pointer; opacity: 0.8; transition: opacity 0.3s; z-index: 2020;
}
.close:hover { opacity: 1; transform: scale(1.1); }


/* --- PROJEKT-NAVIGATION (Große Pfeile ganz am Rand) --- */
.lb-nav {
  position: absolute; top: 0; bottom: 0; width: 10%;
  border: none; color: rgba(255, 255, 255, 0.3); text-shadow: 0 0 5px rgba(0,0,0,0.5);
  font-size: 4rem; cursor: pointer; display: flex; align-items: center; z-index: 2010; outline: none;
  background: transparent; transition: all 0.3s ease;
}
.lb-nav:hover { color: #fff; }
.lb-prev { left: 0; justify-content: flex-start; padding-left: 20px; }
.lb-prev:hover { background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%); }
.lb-next { right: 0; justify-content: flex-end; padding-right: 20px; }
.lb-next:hover { background: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%); }


/* === SATELLITEN-VORSCHAU (PC) === */
.v-floating-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  gap: 10px;
  
  /* HIER NEU: Eine feste Breite für den Container verhindert, dass der Pfeil das Bild staucht */
  width: 120px; 
  
  opacity: 0.8; transition: all 0.3s; z-index: 2015;
}

.v-floating-btn:hover { opacity: 1; transform: translateY(-50%) scale(1.05); }

/* Abstände zur weißen Box */
.v-float-left { right: 100%; margin-right: 30px; }
.v-float-right { left: 100%; margin-left: 30px; }

.v-thumb {
  /* HIER WICHTIG: min-width zwingt das Bild, breit zu bleiben */
  width: 100px; 
  min-width: 100px; 
  height: 140px; 
  
  object-fit: cover; /* Bild füllt die Box satt aus */
  border: 3px solid #fff; 
  box-shadow: 0 5px 20px rgba(0,0,0,0.7);
  border-radius: 4px;
}

.v-arrow { 
  color: #fff; 
  font-size: 2rem; 
  text-shadow: 0 2px 4px rgba(0,0,0,1); 
  /* Damit der Pfeil das Layout nicht verzieht: */
  width: 100%;
  text-align: center;
}


/* === ZÄHLER (PC: Overlay) === */
.v-overlay-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6); color: #fff;
  font-family: 'Merriweather Sans', sans-serif; font-size: 0.9rem;
  padding: 6px 15px; border-radius: 20px; pointer-events: none;
  backdrop-filter: blur(2px); z-index: 10;
}


/* ============================================================
   1. TABLET & HANDY LAYOUT (bis 1200px)
   ============================================================ */
@media (max-width: 1200px) {
  
  /* Layout Umbau */
  .lb-inner {
    max-width: 90%; overflow: hidden; margin-bottom: 20px;
  }
  
  .lb-inner img#lb-img { max-height: 60vh; }

  .v-overlay-counter { display: none !important; }

  .mobile-variant-nav {
    display: flex; justify-content: space-between; 
    width: 90%; max-width: 600px; 
    align-items: center; margin-top: 10px; 
  }

  /* Reset der Satelliten */
  .v-floating-btn {
    position: static; transform: none; margin: 0; opacity: 1;
    width: auto; flex-direction: row; gap: 20px; 
  }
  .v-floating-btn:hover { transform: none; }
  .v-float-left { flex-direction: row; } 
  .v-float-right { flex-direction: row-reverse; }

  /* --- TABLET GRÖSSEN (JETZT RICHTIG GROSS) --- */
  
  .v-thumb { 
    width: 90px; min-width: 90px; height: 90px; 
    border: 2px solid #fff; box-shadow: none;
  }
  
  /* Die kleinen Pfeile bei den Thumbnails */
  .v-arrow { 
    font-size: 2.5rem; /* Auch größer */
    text-shadow: none; color: #333; width: auto; 
  }

  /* HIER GEÄNDERT: Die Haupt-Pfeile (Projektwechsel) */
  .lb-nav { 
    width: 80px;   /* Viel breiter */
    height: 120px; /* Viel höher */
    font-size: 4rem; /* Riesiger Pfeil */
    
    background: rgba(0,0,0,0.3); /* Halbtransparent schwarz */
    top: 50%; transform: translateY(-50%); 
    border-radius: 8px; /* Etwas runder */
    padding: 0; justify-content: center; 
  }
  .lb-prev { left: 0; } .lb-next { right: 0; }

  .mobile-counter-text {
    display: none; color: #888;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.1rem; font-weight: bold;
  }
}


/* ============================================================
   2. NUR HANDY ANPASSUNGEN (bis 600px)
   Hier bremsen wir die Größe wieder etwas, sonst verdecken
   die riesigen Buttons auf dem Handy das ganze Bild.
   ============================================================ */
@media (max-width: 600px) {

  /* Thumbnails kleiner */
  .v-thumb { width: 55px; min-width: 55px; height: 55px; }
  
  /* Thumbnail-Pfeile kleiner */
  .v-arrow { font-size: 1.4rem; }
  
  .v-floating-btn { gap: 10px; }

  /* Haupt-Pfeile wieder handlich machen (aber gut treffbar) */
  .lb-nav {
    width: 50px; height: 70px; /* Groß genug für Daumen */
    font-size: 2rem;
  }
  
  .mobile-counter-text { font-size: 0.9rem; }
}


/* =========================================
   8. KONTAKT & IMPRESSUM (Symmetrisches Design)
   ========================================= */

.contact-grid {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 4em;
  
  /* WICHTIG: Zwingt beide Boxen auf die gleiche Höhe */
  align-items: stretch; 
}

/* Der Look für BEIDE Karten (Links & Rechts) */
.contact-card {
  background-color: #fff; 
  padding: 3em;           
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
  border: 1px solid #eee;
  
  /* Wichtig für die Höhe */
  height: 100%; 
  box-sizing: border-box;
}

/* === LINKS: Der Text-Bereich === */
.contact-info {
  /* Flexbox zentriert den Text vertikal in der Box */
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.4rem;
  color: #b86b4b; 
}

.contact-info p {
  margin-bottom: 2.5em; 
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}
.contact-info p:last-child { margin-bottom: 0; }

.contact-info a {
  color: #333; text-decoration: none; font-weight: 600; transition: color 0.3s;
}
.contact-info a:hover { color: #b86b4b; }


/* === RECHTS: Das Formular === */
.form-group { margin-bottom: 1.5em; }
.form-group label { 
  display: block; margin-bottom: 0.5em; 
  font-family: 'Merriweather Sans', sans-serif; 
  font-size: 0.9rem; font-weight: 600; color: #444; 
}

.form-group input, .form-group textarea {
  width: 100%; padding: 0.8em; border: 1px solid #ccc; border-radius: 4px;
  font-family: 'Lora', serif; font-size: 1rem; background: #fdfbf7; transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #b86b4b; background: #fff; 
  box-shadow: 0 0 0 3px rgba(184, 107, 75, 0.1);
}

.submit-btn {
  background-color: #333; color: #fff; border: none; padding: 1em 2em;
  font-family: 'Merriweather Sans', sans-serif; text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: background 0.3s, transform 0.3s; 
  width: 100%; border-radius: 2px; margin-top: 1em;
}
.submit-btn:hover { background-color: #b86b4b; transform: translateY(-2px); }

/* Kleiner Zusatz für Impressum-Seite */
.legal-text { max-width: 800px; margin: 0 auto; }


/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
  background-color: #222; color: #ccc; padding: 2em 0; 
  margin-top: 4em; border-top: 1px solid #eee;
  position: relative; z-index: 1;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2em; 
  display: flex; justify-content: space-between; align-items: center; 
  flex-wrap: wrap; gap: 1.5em;
}
.footer-info p { margin: 0.2em 0; font-size: 0.95rem; color: #ccc; }
.footer-nav a { color: #ccc; text-decoration: none; margin-left: 1.5em; font-size: 0.95rem; }


/* =========================================
   10. RESPONSIVE (HANDY & TABLET)
   ========================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2em; }
  .contact-grid { grid-template-columns: 1fr; gap: 2em; }
  .services-list { grid-template-columns: 1fr; gap: 1.5em; }
  .center-img { width: 500px; }
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; padding: 0.5em 1em; }
  .logo { margin-bottom: 0.5em; }
  .logo img { height: 45px; }
  nav { flex-wrap: wrap; justify-content: center; gap: 0.8em; }
  nav a { margin: 0 0.5em; font-size: 0.9rem; }

  .hero-boutique { padding: 2em 1em; min-height: auto; }
  .center-img { width: 220px; margin-bottom: 1em; }
  .hero-boutique h1 { font-size: 2.2rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav a { margin: 0 0.5em; }
  
  .about-image img { max-width: 250px; margin-top: 2em; margin-bottom: 2em; }
  .career-list li { flex-direction: column; gap: 0.2em; }
}