/* =========================================
   Scrollbar unsichtbar (weiterhin scrollbar)
========================================= */
body::-webkit-scrollbar { display: none; }
body {
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge Legacy */
}


/* =========================================
   Google Fonts
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Kaisei+Decol&family=Kalnia:wght@100..700&display=swap');


/* =========================================
   GLOBAL
========================================= */
html, body {
  margin: 0;
  height: 100%;
  background: #23380B;
  font-family: "Kaisei Decol", serif;
  overflow-x: hidden;              /* keine horizontale Scrollbar */
}


/* =========================================
   NAVBAR
   (Optik wie gehabt, feste Höhe für 100vh-Logik)
========================================= */
.navbar {
  background: #FDF6E7;
  margin: 20px 40px;               /* Abstand oben/unten + Seiten */
  padding: 15px 30px;
  border-radius: 25px;
  font-family: "Kalnia", serif;
  position: relative;
  z-index: 5;
  height: 60px;                    /* feste Höhe für exakte Header-Berechnung */
  display: grid;
  align-items: center;             /* Inhalte vertikal mittig in der Navbar */
}

.navbar nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* links – logo – rechts */
  align-items: center;
}

.navbar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}

.navbar nav ul li a {
  display: block;
  padding: 8px 18px;
  background: #23380B;
  color: #FDF6E7;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 23px;
  transition: .3s;
}
.navbar nav ul li a:hover { background: #4c662d; }

.nav-left  { display: flex; gap: 40px; justify-content: flex-start; }
.nav-right { display: flex; gap: 40px; justify-content: flex-end; }

.logo { text-align: center; }
.logo img {
  height: 60px;
  display: block;
  margin: 0 auto;
}

/* ===========================
   MOBILE MENU – EDEL / SMOOTH
=========================== */

/* Dropdown-Card */
.mobile-menu{
  display: grid;
  gap: 12px;
  position: absolute;
  left: 12px; 
  right: 12px;
  top: calc(100% + 10px);
  padding: 16px;
  background: rgba(253,246,231,0.92);            /* Creme mit Transparenz */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(35,56,11,.12);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
  z-index: 100;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

/* Einzelne Links als „Row Cards“ */
.mobile-menu a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(35,56,11,.10);
  color: #23380B;
  text-decoration: none;
  font-weight: 700;
  font-family: "Kalnia", serif;
  font-size: 18px;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.mobile-menu a::after{
  content: "›";                                     /* kleiner Pfeil nach rechts */
  font-size: 22px;
  line-height: 1;
  opacity: .75;
}
.mobile-menu a:hover{
  transform: translateX(4px);
  background: #23380B;
  color: #FDF6E7;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

/* Sichtbar-Status */
.mobile-menu.open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dunkles Overlay hinter dem Dropdown */
.mobile-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 90;                                      /* unter dem Menü, über Seite */
}
.mobile-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger-Button etwas edler */
.hamburger{
  display: none;                                     /* wird im Breakpoint sichtbar */
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(35,56,11,.08);
  cursor: pointer;
}
.hamburger span{
  display: block;
  height: 2px; width: 22px;
  background: #23380B;
  margin: 6px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Breakpoint: Desktop-Listen weg, Burger/Dropdown aktiv */
@media (max-width: 820px){
  .hamburger{ display: block !important; }

  .navbar{
    height: auto;
    margin: 12px 16px;
    padding: 10px 14px 14px;
    position: relative;
  }
  .navbar nav{
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  /* Desktop-Links ausblenden (hart) */
  .navbar nav ul, .nav-left, .nav-right{ display: none !important; }

  /* Logo mittig */
  .logo{ order: -1; text-align: center; }
  .logo img{ height: 44px; }
}






/* =========================================
   PROJEKTE SECTION
========================================= */

/* Überschrift */
.projekte-header {
  text-align: center;
  color: #FDF6E7;
  margin-top: 60px;
  margin-bottom: 80px;
  padding: 0 20px;
}


.projekte-header h1 {
  font-family: "Kalnia", serif;
  font-size: 86px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
}

/* Projektübersicht */
.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0 60px 100px;
}

/* Einzelne Projektkarte */
.projekt-card {
  background: #FDF6E7;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projekt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* Bild */
.projekt-img {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-bottom: 2px solid rgba(35, 56, 11, 0.1);
}

.projekt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info-Text */
.projekt-info {
  padding: 24px 28px 36px;
  color: #23380B;
}

.projekt-info h2 {
  margin: 0 0 12px;
  font-family: "Kalnia", serif;
  font-size: 28px;
  font-weight: 700;
}

.projekt-info p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(35, 56, 11, 0.85);
}

/* =========================================
   MODAL (Projekt-Details)
========================================= */

.projekt-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  padding: 20px;
}

.projekt-modal.active {
  display: flex;
}

.modal-content {
  background: #FDF6E7;
  color: #23380B;
  border-radius: 28px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  position: relative;
  padding: 40px;
}

.modal-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.modal-inner img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.modal-text {
  flex: 1 1 320px;
  min-width: 280px;
}

.modal-text h2 {
  margin: 0 0 12px;
  font-family: "Kalnia", serif;
  font-size: 32px;
  font-weight: 700;
}

.modal-text p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(35, 56, 11, 0.9);
}

/* Schließen-Button */
.close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 36px;
  color: #23380B;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-modal:hover {
  transform: rotate(90deg);
  color: #4c662d;
}



/* ====== ≤1200px (Desktop schmal) ====== */
@media (max-width: 1200px){
  .projekte-header h1{ font-size: 72px; }

  .projekte-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 0 40px 90px;
  }

  .modal-content{
    width: min(680px, 88vw);
    max-height: 78vh;
    padding: 26px;
    border-radius: 20px;
  }
  .modal-inner{ gap: 22px; }
}

/* ====== ≤992px (Tablet) ====== */
@media (max-width: 992px){
  .projekte-header{ margin-top: 48px; margin-bottom: 64px; }
  .projekte-header h1{ font-size: 60px; }

  .projekte-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin: 0 28px 80px;
  }
  .projekt-card{ border-radius: 22px; }
  .projekt-info{ padding: 22px 22px 30px; }
  .projekt-info h2{ font-size: 24px; }
  .projekt-info p{ font-size: 17px; }

  /* Modal kompakter, Spalten stacken */
  .projekt-modal{ padding: 20px; }
  .modal-content{
    width: min(620px, 90vw);
    max-height: 76vh;
    padding: 24px;
    border-radius: 18px;
  }
  .modal-inner{
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .modal-inner img{
    width: 260px;
    aspect-ratio: 1 / 1; /* quadratisch */
    object-fit: cover;
    border-radius: 16px;
  }
  .modal-text{
    text-align: center;
    min-width: 0;
  }
  .modal-text h2{ font-size: 24px; }
  .modal-text p{ font-size: 16.5px; line-height: 1.6; }
}

/* ====== ≤768px (Mobile L) ====== */
@media (max-width: 768px){
  .projekte-header{
    margin-top: 36px;
    margin-bottom: 48px;
    padding: 0 16px;
  }
  .projekte-header h1{
    font-size: 48px;
  }

  .projekte-grid{
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 0 16px 70px;
  }
  .projekt-card{
    border-radius: 20px;
  }
  .projekt-info{
    padding: 18px 18px 24px;
  }
  .projekt-info h2{
    font-size: 22px;
  }
  .projekt-info p{
    font-size: 16px;
  }

  /* Modal als „Fenster“ mittig, klein */
  .projekt-modal{
    padding: 16px;
    align-items: center;
    justify-content: center;
  }

  .modal-content{
    width: 90vw;          /* etwas schmaler = sicherer */
    max-width: 420px;
    max-height: 72vh;
    padding: 18px 16px 22px;
    border-radius: 18px;
    overflow-y: auto;     /* Text scrollt in der Box, nicht raus */
  }

  .modal-inner{
    display: flex;
    flex-direction: column;   /* WICHTIG: untereinander, nicht nebeneinander */
    align-items: center;
    gap: 14px;
  }

  .modal-inner img{
    width: 190px;
    aspect-ratio: 1 / 1;      /* quadratisch */
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .modal-text{
    width: 100%;
    min-width: 0;             /* verhindert rausdrücken */
    text-align: center;
  }

  .modal-text h2{
    font-size: 22px;
    margin-bottom: 8px;
  }

  .modal-text p{
    font-size: 15.5px;
    line-height: 1.6;
  }

  .close-modal{
    top: 10px;
    right: 14px;
    font-size: 24px;
    background-color: #000;
    border-radius: 999px;
    color: #fff;
    padding: 2px 8px;
  }
}


/* ====== ≤560px (Mobile S) ====== */
@media (max-width: 560px){

  .projekte-header h1{
    font-size: 40px;
  }

  .projekte-grid{
    margin: 0 12px 60px;
    gap: 18px;
  }

  .projekt-card{
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.22);
  }

  .projekt-info{
    padding: 16px 16px 20px;
  }

  .projekt-info h2{
    font-size: 20px;
  }

  .projekt-info p{
    font-size: 15.5px;
  }

  /* MODAL MOBILE S */
  .modal-content{
    width: 92vw;                /* kleiner = echtes Fenster */
    max-width: 380px;           
    max-height: 70vh;
    padding: 16px 14px 20px;
    border-radius: 16px;
    overflow-y: auto;           /* verhindert, dass Text ausläuft */
  }

  .modal-inner{
    display: flex;
    flex-direction: column;     /* Bild oben, Text darunter */
    align-items: center;
    gap: 14px;
  }

  /* Kleineres Bild für kleine iPhones */
  .modal-inner img{
    width: 180px;
    aspect-ratio: 1 / 1;        /* quadratisch bleibt */
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .modal-text{
    width: 100%;
    min-width: 0;               /* verhindert rausdrücken */
    text-align: center;
  }

  .modal-text h2{
    font-size: 20px;
    margin-bottom: 6px;
  }

  .modal-text p{
    font-size: 14.5px;
    line-height: 1.55;
  }

  /* Close Button */
  .close-modal{
    top: 8px;
    right: 12px;
    font-size: 22px;
    background-color: #000;
    border-radius: 999px;
    color: white;
    padding: 2px 8px;
  }
}





















/* ===== FOOTER ===== */
.footer {
  margin: 60px 40px 0;
  background: #FDF6E7;
  border-radius: 28px;
  padding: 50px 40px 30px;
  color: #23380B;
  font-family: "Kaisei Decol", serif;
  margin-bottom: 25px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

/* Spalten */
.footer-col h3 {
  margin-bottom: 16px;
  font-family: "Kalnia", serif;
  font-size: 20px;
  font-weight: 700;
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 16px;
  color: #23380B;
  line-height: 1.6;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

/* Hover-Effekt für Links */
.footer-col a:hover {
  text-decoration: underline;
}

/* Untere Leiste */
.footer-bottom {
  border-top: 1px solid rgba(35,56,11,.15);
  padding-top: 18px;
  text-align: center;
  font-size: 14px;
  color: rgba(35,56,11,.8);
}

.footer-bottom a {
  font-weight: 600;
  color: #23380B;
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===========================
   FOOTER responsive
=========================== */
@media (max-width: 1100px) {
  .footer { margin: 48px 24px 0; padding: 36px 28px 24px; border-radius: 22px; }
  .footer-inner { gap: 24px; }
}

@media (max-width: 780px) {
  .footer { margin: 40px 16px 0; padding: 24px 18px 18px; border-radius: 18px; margin-bottom: 25px;}
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-col h3 { font-size: 18px; margin-bottom: 10px; }
  .footer-col p, .footer-col li, .footer-col a { font-size: 15px; }
  .footer-bottom { padding-top: 12px; font-size: 13px; }
}
