/* =========================================================
   BASIS
   ========================================================= */
html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; margin: 0; padding: 0; }

/* Für Screenreader-Only-Elemente (A11y) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
header {
  background-color:#ffffff; color:black; padding: .3em 2em;
  position: sticky; top: 0; z-index: 1001;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
header.menu-open { box-shadow: none; }

nav { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5em; display: flex; align-items: center; transition: opacity .5s ease; }
.logo img { margin: 0; padding: 0; height: clamp(60px, 7vw, 80px); }

.wordmark{
  font-family: "Poppins","Segoe UI",sans-serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color:#111; line-height: 1.2;
  margin-left:.5rem; margin-right:auto;
}

.burger-menu { display: none; font-size: 1.2em; cursor: pointer; z-index: 1002; }

.nav-links { list-style: none; display: flex; margin: 0; padding: 0; }
.nav-links li { margin-right: 20px; }
.nav-links a { color: black; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { font-weight: bold; }

/* =========================================================
   HERO
   ========================================================= */
#title-photo { text-align: center; }

.title-photo-container{
  position: relative; text-align: center; height: 100vh; overflow: hidden;
}
.title-photo-container img{
  position: absolute; inset: 0;
  width:100%; height:100%; object-fit: cover;
  filter: brightness(60%); opacity: 0; transition: opacity 1.5s ease;
}
.title-photo-container img.active{ opacity: 1; z-index: 0; }

.title-photo-container figcaption{
  position: absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  color: white; font-size: clamp(2rem,5vw,3.5rem); font-weight: bold; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.6); line-height: 1.4; padding: 0 1rem;
}
.title-photo-container.hide { opacity: 0; }

.scroll-down{
  position: absolute; top: 80%; left: 50%; transform: translateX(-50%);
  font-size: 3rem; color: white; text-decoration: none;
  animation: bounce 2s infinite; z-index: 2; opacity: .95;
}
@keyframes bounce{
  0%,20%,50%,80%,100%{ transform: translateX(-50%) translateY(0) }
  40%{ transform: translateX(-50%) translateY(-15px) }
  60%{ transform: translateX(-50%) translateY(-7px) }
}

/* =========================================================
   ALLGEMEINE SECTIONS
   ========================================================= */
section { padding: 2em 9vw; scroll-margin-top: 80px; }
section h2{
  position: relative; text-align: center; font-size: 2.5rem;
  margin-bottom: 1.2em; font-weight: bold; color: #333;
}
section h2::after{
  content:""; display:block; width:60px; height:3px; background-color:#1A808B;
  margin:.5em auto 0; border-radius:2px;
}

/* =========================================================
   Besichtigung
   ========================================================= */

.besichtigung-image {
  width: 100%;     /* nimmt die ganze Breite der Seite ein */
  height: auto;    /* Höhe passt sich proportional an */
  display: block;  /* entfernt unerwünschte Abstände */
}

/* =========================================================
   GALERIE
   ========================================================= */
#projects { 
background-color: #ffffff; 
text-align: center; 
}

#projects h2 { font-size: 2.5rem; }

.project-gallery{
  columns: 3 300px; column-gap: 20px;
  max-width: 1100px; margin: 0 auto;
}

.project-item{
  position: relative; display: inline-block; width: 100%;
  margin: 0 0 20px; break-inside: avoid; overflow: hidden;
  border-radius: 0; box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.project-item img{
  width: 100%; height: auto; display: block;
  transition: filter .3s ease, transform .3s ease;
}
.project-item:hover img{ filter: blur(4px); transform: scale(1.05); }

.overlay{
  position: absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  color:#fff; font-size:1.2rem; font-weight:bold; text-shadow:0 2px 6px rgba(0,0,0,.6);
  opacity:0; transition: opacity .3s ease; z-index:1; pointer-events:none;
}
.project-item:hover .overlay{ opacity: 1; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox{
  position: fixed; inset: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  z-index: 9999;
}
.lightbox.open { display: flex; }

.lightbox img{
  max-width: 90%; max-height: 80%;
  box-shadow: 0 0 30px rgba(0,0,0,.5); border-radius: 0;
}

.lightbox-nav,
.lightbox-close{
  position: absolute; border: none; background: rgba(255,255,255,.15);
  color: #fff; font-size: 2.2rem; line-height: 1; padding: .4rem .8rem;
  cursor: pointer; border-radius: .5rem; backdrop-filter: blur(2px);
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,.28); }

.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close    { top: 18px; right: 18px; font-size: 2rem; padding: .2rem .6rem; }

/* =========================================================
   LAYOUT: SPALTEN
   ========================================================= */
.columns { display: flex; flex-wrap: wrap; gap: 20px; margin: 3em 0; }
.column  { flex: 1 1 48%;  text-align: left; box-sizing: border-box; }

/* =========================================================
   KONTAKT
   ========================================================= */
#kontakt { padding: 3em 9vw; background-color: #f9f9f9; }
.contact-container{
  display: flex; flex-wrap: wrap; column-gap: 1em; row-gap: 2em;
  justify-content: space-between; align-items: flex-start;
  max-width: 1000px; margin: 0 auto;
}
.contact-info, .contact-map { flex: 1 1 45%; font-size: 1em; line-height: 1.6; text-align: left; }
.contact-info a { color: #333; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer-pro { background-color:#1A808B; color:#fff; padding:3em 2em 2em; font-size:.95em; }
.footer-grid{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-start;
  gap:4em; max-width:1000px; margin:0 auto; text-align:left;
}
.footer-column { flex:1 1 300px; min-width:220px; }
.footer-column h4 { margin-bottom:.8em; font-size:1.05em; font-weight:bold; }
.footer-column a, .footer-links a { color:#cdd9f2; text-decoration:none; transition:.3s ease; }
.footer-column a:hover, .footer-links a:hover { text-decoration: underline; opacity:.9; }

.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:.5em; }

.footer-logo { width:120px; margin-bottom:1em; }

.footer-line { border:0; height:1px; background-color:#cfd8e1; margin:2em 0 1em; opacity:.3; }

.footer-bottom{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:.8em; font-size:.85em; margin-top:1.5em; color:#e0e6f0; opacity:.85;
}
.footer-bottom > * { padding:0 .7em; }
.footer-bottom > *:not(:first-child)::before{
  content:"|"; position:absolute; left:0; color:#fff; opacity:.9; font-weight:400;
}
.footer-bottom a { color:#e0e6f0; text-decoration:none; position:relative; padding:0 .5em; }
.footer-bottom a:hover { text-decoration: underline; }

/* =========================================================
   BAUPLÄNE (PLANS)
   ========================================================= */
.plans-toolbar{ display:flex; gap:.5rem; justify-content:center; margin:-.5rem 0 1.5rem; flex-wrap:wrap; }
.plan-filter{ width:min(520px, 90vw); padding:.7rem 1rem; border:1px solid #ddd; border-radius:8px; font-size:1rem; }

.btn{ border:1px solid #1A808B; background:#1A808B; color:#fff; border-radius:8px; padding:.55rem .9rem; cursor:pointer; }
.btn:hover{ filter: brightness(1.05); }
.btn-secondary{ background:#fff; color:#1A808B; }

.plans-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:16px; max-width:1100px; margin:0 auto;
}
.plan-card{
  display:flex; flex-direction:column; background:#fff; border:1px solid #eee;
  border-radius:10px; box-shadow:0 4px 10px rgba(0,0,0,.06);
  overflow:hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.plan-card:hover{ transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }

/* Vorschaubereich (mit Mini-PDF als Fallback) */
.plan-thumb{
  position: relative;
  display:flex; align-items:center; justify-content:center;
  height: 90px; background: linear-gradient(180deg, #f7f9fb, #eef4f7);
}
.plan-thumb .pdf-stamp{
  position:absolute; top:10px; left:10px;
  background:#E53935; color:#fff; font-weight:bold; font-size:.75rem;
  padding:.2rem .45rem; border-radius:4px; letter-spacing:.5px;
}
.plan-thumb .plan-emoji{ font-size:46px; opacity:.15; } /* bleibt sichtbar, wenn PDF nicht lädt */

.plan-mini{
  position:absolute; inset:0; width:100%; height:100%; border:0;
  transform: scale(1); transform-origin: center;
}

.plan-title{
  padding:.6rem 1rem 0;
  font-weight: bold; font-size:.95rem; color:#333; line-height:1.3;
}

/* Metadaten werden bewusst ausgeblendet (Anforderung) */
.plan-meta{ display:none !important; }

/* Aktionen (einheitlich – Duplikate entfernt) */
.plan-actions{
  margin-top:auto; display:flex; gap:8px; padding:.8rem 1rem 1rem;
}
.plan-actions a, .plan-actions button{ flex:1; text-align:center; text-decoration:none; }

/* PDF Modal */
.pdf-modal{
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.72); z-index: 10000;
}
.pdf-modal.open{ display: flex; }
.pdf-modal__dialog{
  width: min(1200px, 94vw); height: min(86vh, 900px);
  background:#fff; border-radius:12px; overflow:hidden; display:flex; flex-direction:column;
}
.pdf-modal__bar{
  display:flex; align-items:center; justify-content:space-between; gap:.8rem;
  padding:.6rem .8rem; background:#f5f7fa; border-bottom:1px solid #e6eaf0;
}
.pdf-modal__actions{ display:flex; gap:.5rem; flex-wrap:wrap; }
.pdf-frame{ width:100%; height:100%; border:0; }

/* =========================================================
   NEUBAU – INFORMATIONSBEREICH
   ========================================================= */
#information{
  max-width: 1000px; 
  margin: auto;
  background:#fff;
}

/* Header über volle Breite (ersetzt frühere Flex-Variante) */
.info-header{
  display: block;            /* statt flex */
  margin-bottom: 1.25rem;
}
.info-title{ 
max-width: 960px; 
text-align: left; 
}

.info-title h3{
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.15; 
  margin: 0 0 .35rem;
}

.info-title .subtitle{
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight:700; line-height:1.35; margin:0 0 .35rem;
}

.info-title .address{ 
margin:.2rem 0 0; 
color:#5f6b76;
}

/* Preis-Badge (allgemein) */
.info-price {
  margin-bottom: 1.5em;
}

.info-price p:first-child{
  font-size:.78rem; letter-spacing:.2px; opacity:.9;
  font-weight:700; text-transform:uppercase;
}
.info-price .price{
  color:#ffffff; 	
}
.info-price .price span{ opacity:.85; font-weight:600; font-size:.95rem; }

/* Details (2-spaltig) */
.info-details{
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 2rem;
}

.info-details h3 {
	margin-top: 0;
}

.info-details dl{
  margin: 0; display: grid;
  grid-template-columns: 150px 1fr; gap: .4rem 1rem;
    text-align: left;
}
.info-details dt{ 
font-weight: 600; 
}

.info-details dd{ 
margin: 0; 
}

.info-details ul{ 
margin: 0; 
padding: 0; 
list-style: none; 
}

.info-details ul li{
  padding-left: 1.1rem; 
  position: relative;
}

.info-details ul li::before{
  content: "•"; 
  position: absolute; 
  left: 0; 
  color: #7aa6a2;
}

/* Beschreibung */
.info-footer {
  display: grid;
  grid-template-columns: 1fr 1fr; /* zwei Spalten */
  gap: 2rem;                     /* Abstand dazwischen */
  align-items: start;
}
.info-description {
  margin-bottom: 2.5rem;  /* vergrößert Abstand nach unten */
}

.features-wrapper h3 {
  margin-top: 0;
  margin-bottom: 1	rem;
  text-align: left;
}

.features {
  columns: 2 200px;    /* 2-spaltig, bricht automatisch um */
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.6;
}
.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  opacity: .6;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Aside-Variante (Preis + Flächen) – spezifisch */
.info-aside .info-price {
  background:#0f7f87; 
  color:#fff; 
  border:none;
  border-radius: 8px;   /* auch eckiger */
  padding:.7rem 1.1rem;
  box-shadow: 0 6px 18px rgba(15,127,135,.18);
  display:inline-block; 
}
.info-aside .info-price p{ 
margin:.05rem 0; 
text-align:center; 
line-height:1.2; 
}

.info-aside .info-price p:first-child{
  font-size:.78rem; 
  letter-spacing:.2px; 
  opacity:.95; 
  font-weight:700; 
  text-transform:uppercase;
}

.info-aside .price{ 
font-size:1.06rem; 
font-weight:800; 
white-space:nowrap; 
}

.info-aside .price span{ 
opacity:.85; 
font-weight:600; 
font-size:.95rem; 
}

.area-list{ 
	margin:.2rem 0 0; 
	padding:0; 
	list-style:none;
	text-align: left; 
}
.area-list li{ 
position:relative; 
padding-left:1.1rem; 
line-height:1.5; 
}
.area-list li::before{ 
content:"•"; 
position:absolute; 
left:0; 
color:#7aa6a2; 
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Galerie-Spalten anpassen */
@media (max-width: 900px){ .project-gallery{ columns: 2; } }
@media (max-width: 600px){ .project-gallery{ columns: 1; } }

/* Navigation / Hero / Layout bei ≤768px */
@media only screen and (max-width: 768px){
  .nav-links{
    display: none; flex-direction: column; position: fixed; top: 90px; left: 0;
    width: 100%; height: calc(100% - 60px); background: #fff; padding: 2em 1em; z-index: 1000;
  }
  .nav-links.show{ display: flex; }
  .nav-links a{ font-size: 2em; margin-bottom: 30px; }
  .burger-menu{ display: block; }

  .title-photo-container{ height: 70vh; }
  .title-photo-container figcaption{ font-size: 1.6rem; }
  .scroll-down{ font-size: 2.5rem; top: 90%; }

  .columns{ flex-direction: column; }
  .column{ flex: 1 1 100%; }

  .contact-container{ flex-direction: column; align-items: center; }
  .contact-info, .contact-map{ flex: 1 1 100%; text-align: center; }

  .footer-grid{ flex-direction: column; gap: 1.5em; padding: 1em; }
  .footer-column{ flex: 1 1 0; margin-bottom: 0; }
  .footer-logo{ max-width: 150px; height: auto; margin-bottom: .5em; }
  .footer-links li{ margin: .3em 0; }
  .footer-column p, .footer-column a{ margin: 0; padding: 0; line-height: 1.4; }
  .footer-column > p:not(:last-child){ margin-bottom: .3em; }
  .footer-bottom{ flex-direction: column; gap: .5em; text-align: center; margin-top: 1em; }

  .lightbox img { max-width: 94%; max-height: 76%; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }

  /* Info-Bereich: einspaltig */
  .info-details{ grid-template-columns: 1fr; }
  .info-footer{  grid-template-columns: 1fr; }
}

/* Kleine Desktop-Optimierung für Footer-Links */
@media only screen and (min-width: 769px){
  .footer-links a{ margin-right: 20pt; }
}
