/* Huggler Architektur – Website */
@font-face { font-family: "Abel"; src: url("fonts/abel.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/opensans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/opensans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --teal: #008193;
  --teal-a: rgba(0, 129, 147, .7);
  --text: #444;
  --h1: rgba(0, 0, 0, .29);
  --h3: rgba(0, 0, 0, .61);
  --box: rgba(255, 255, 255, .7);
  --foot: rgba(0, 0, 0, .6);
  --gap: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Abel", "Helvetica Neue", Arial, sans-serif; font-size: 20px; line-height: 1.6; color: var(--text); background: #ddd; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }

/* Hintergrund */
.bg { position: fixed; inset: 0; z-index: -1; background: #ccc; }
.bg-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.bg-slide.on { opacity: 1; }

/* Kopfzeile */
/* Transparenter Balken, bleibt immer oben – der Inhalt scrollt dahinter durch */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 150px; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.top-in { max-width: 1000px; height: 100%; margin: 0 auto; padding: 0 25px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: block; flex: 0 0 auto; }
.logo img { width: 120px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; }
.nav a { background: var(--teal); color: #fff; text-decoration: none; text-transform: uppercase; font-size: 20px; line-height: 1.5; padding: 5px 16px; transition: background .2s; }
.nav a:hover, .nav a.active { background: rgba(0, 129, 147, .72); }

/* Inhaltsbox */
.content { max-width: 1000px; margin: 200px auto 0; background: var(--box); padding: 20px 25px 30px; }
.content::after { content: ""; display: block; clear: both; }

h1, h2, h3 { font-weight: 400; text-transform: uppercase; margin: 0; line-height: 1.2; }
h1 { font-size: 70px; color: var(--h1); margin: 10px 0 6px; }
h2 { font-size: 34px; color: var(--teal); margin: 26px 0 10px; }
h3 { font-size: 24px; color: var(--h3); font-weight: 700; letter-spacing: .3px; margin: 6px 0 8px; }
.kicker { margin: 0; font-size: 18px; font-weight: 700; color: var(--teal); text-transform: uppercase; }
hr { border: 0; border-bottom: 1px solid var(--teal); margin: 0 0 22px; }
.text p { margin: 0 0 12px; }
.text ul { margin: 0 0 12px; padding-left: 1.2em; }
.text strong { color: #333; }
.spacer { height: 30px; }
.small { font-size: 16px; }

/* Schaltflächen */
.btn-wrap { margin: 16px 0; }
.btn { display: inline-block; border: 1px solid var(--teal); color: var(--teal); background: transparent; font: inherit; font-size: 18px; padding: 10px 20px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--teal); color: #fff; }

/* Spalten */
.cols { display: grid; gap: 30px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols[style] { grid-template-columns: var(--cols); }
.col > :first-child { margin-top: 0; }

/* Bilder & Galerien */
.image { margin: 0 0 16px; }
.image img { width: 100%; }
.image figcaption { font-size: 14px; font-style: italic; margin-top: 4px; }
.gallery { display: grid; gap: var(--gap); margin: 12px 0 16px; }
.gallery a { display: block; overflow: hidden; background: rgba(0,0,0,.05); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-small { grid-template-columns: repeat(3, 1fr); }
.gallery-small a { aspect-ratio: 1; }
.gallery-wide { grid-template-columns: repeat(4, 1fr); }
.gallery-wide a { aspect-ratio: 4 / 3; }
.gallery-thumbs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery-thumbs a { aspect-ratio: 1; }

/* Projekt-Übersicht mit einrollender Fläche */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 10px 0 20px; }
.project { position: relative; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; display: block; overflow: hidden; aspect-ratio: 3 / 2; color: #fff; text-decoration: none; }
.project img { width: 100%; height: 100%; object-fit: cover; }
.project .ov { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 12px; clip-path: inset(0 100% 0 0); transition: clip-path .4s ease; }
.project:hover .ov, .project:focus-visible .ov, .project.open .ov { clip-path: inset(0 0 0 0); }
.ov-t { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; margin-bottom: 6px; }
.ov-d { font-size: 14px; line-height: 1.3; }
.ov-hint { display: none; position: absolute; left: 0; right: 0; bottom: 10px; font-size: 13px; letter-spacing: 1px; opacity: .9; }
@media (hover: none) { .ov-hint { display: block; } .project .ov { padding-bottom: 36px; } }

/* Einbettungen erst nach Klick (Datenschutz) */
.consent-embed { background: rgba(0,0,0,.06); border: 1px dashed rgba(0,0,0,.2); padding: 24px; text-align: center; margin: 10px 0 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.consent-embed p { margin: 0 0 10px; font-size: 16px; }
.consent-embed.map { min-height: 260px; }
.consent-embed.loaded { padding: 0; border: 0; background: none; }
.consent-embed iframe { width: 100%; height: 100%; border: 0; }
.consent-embed.map.loaded iframe { height: 300px; }
.download a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.pdf { background: #c0392b; color: #fff; font-size: 13px; font-weight: 700; padding: 10px 8px; }

/* Kontaktformular */
.contact label { display: block; margin-bottom: 14px; font-size: 18px; }
.contact input, .contact textarea { display: block; width: 100%; max-width: 520px; font: inherit; font-size: 18px; padding: 8px 10px; border: 1px solid rgba(0,0,0,.25); background: rgba(255,255,255,.85); margin-top: 4px; }
.contact textarea { max-width: none; }
.contact .hp { position: absolute; left: -9999px; }
.notice { padding: 10px 14px; }
.notice.ok { background: #dff0e3; } .notice.err { background: #f6dcdc; }

/* Fusszeile – mit Abstand zum Seitenende, Hintergrund bleibt sichtbar */
.foot { margin-top: 90px; background: var(--foot); color: #fff; text-align: center; padding: 130px 20px 130px; font-size: 22px; line-height: 1.45; }
.foot-logo { width: 190px; margin: 0 auto 60px; }
.foot-text p { margin: 0 0 40px; }
.foot-text a { color: rgba(255,255,255,.65); text-decoration: none; }
.foot-text a:hover { color: #fff; }
.foot h3 { color: var(--teal); font-weight: 400; font-size: 34px; margin: 90px 0 14px; letter-spacing: .5px; }
.insta { display: inline-block; transition: transform .2s; }
.insta:hover { transform: scale(1.06); }
.insta svg { display: block; border-radius: 15px; }
.foot-bottom { min-height: 80px; padding: 26px 20px 20px 110px; }
.foot-links { margin: 0; font-size: 15px; display: flex; gap: 24px; max-width: 1000px; }
.foot-links a { color: rgba(255,255,255,.85); text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.foot-links a:hover { color: #fff; }
.to-top { position: fixed; left: 30px; bottom: 30px; z-index: 30; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.45); color: #fff; font-size: 26px; line-height: 1; padding-top: 10px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.edit-fab { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: #222; color: #fff; padding: 10px 16px; border-radius: 30px; text-decoration: none; font-size: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 14px; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb .lb-x { top: 6px; right: 10px; } .lb .lb-p { left: 6px; } .lb .lb-n { right: 6px; }
.lb .lb-c { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 15px; }

/* Tablet */
@media (max-width: 1060px) {
  .content { margin: 200px 20px 0; }
  .top-in { padding: 0 45px; }
}
@media (max-width: 900px) {
  h1 { font-size: 54px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-template-columns: repeat(2, 1fr); }
}
/* Handy */
@media (max-width: 767px) {
  body { font-size: 18px; }
  .top { height: 84px; }
  .top-in { padding: 0 12px; gap: 10px; }
  .logo img { width: 62px; }
  .nav { gap: 5px; }
  .nav a { font-size: 15px; padding: 4px 9px; }
  .content { margin: 100px 10px 0; padding: 16px 16px 24px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 21px; }
  .cols-2, .cols-3, .cols[style] { grid-template-columns: 1fr; gap: 10px; }
  .projects { grid-template-columns: 1fr; gap: 12px; }
  .ov-t { font-size: 24px; } .ov-d { font-size: 16px; } .ov-hint { font-size: 15px; }
  .gallery-thumbs { grid-template-columns: 1fr 1fr; }
  .gallery-small { grid-template-columns: repeat(3, 1fr); }
  .foot { margin-top: 50px; padding: 70px 16px; font-size: 19px; }
  .foot-logo { width: 140px; margin-bottom: 40px; }
  .foot-text p { margin-bottom: 28px; }
  .foot h3 { margin-top: 50px; font-size: 28px; }
  .to-top { left: 14px; bottom: 14px; }
  .foot-links { justify-content: center; }
  .foot-bottom { padding-left: 20px; padding-bottom: 70px; }
}
