/* Hugot Glas – statische Website
   Nachbau des bisherigen WordPress-Themes (SCRN), leicht modernisiert. */

:root {
  --text: #3d3d3d;
  --head: #434343;
  --muted: #515151;
  --line: #aeaeae;
  --line-soft: rgba(0, 0, 0, .09);
  --brand: #2e1f8f;          /* Violett aus dem Logo */
  --paper: #cdcac2;          /* Grundton der Papier-Textur */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- Kopfbereich mit Logo ---------- */
.intro {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.intro .bild {               /* wie im Original: 600px hohes Bild, oben 400px sichtbar */
  position: absolute; left: 0; right: 0; top: 0; height: 600px;
  background: center / cover no-repeat;
}
@media (min-width: 1100px) and (hover: hover) {
  .intro .bild { height: 100%; background-attachment: fixed; }
}
.intro .logo {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: min(1024px, 92vw);
  transform: translate(-50%, -50%);
}

/* ---------- Navigation (klebt oben) ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(6px);
  box-shadow: 0 3px 3px rgba(0, 0, 0, .3);
  display: flex; justify-content: center; align-items: center;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.nav li { display: flex; border-right: 1px solid #e6e6e6; }
.nav li:first-child { border-left: 1px solid #e6e6e6; }
.nav a {
  display: flex; align-items: center; padding: 0 26px;
  font-size: 16px; font-weight: 300; text-transform: uppercase; letter-spacing: .02em;
  color: var(--muted); text-decoration: none;
  position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 6px; height: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover, .nav a.active { color: #000; }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }

/* ---------- Inhaltsbereiche auf Papier-Textur ---------- */
.section {
  position: relative; z-index: 2;
  background: var(--paper) url("../img/bg-grey.jpg");
  padding: 20px 0 60px;
  box-shadow: 0 0 16px rgba(0, 0, 0, .9);
}
.section h2 {
  font-size: 60px; font-weight: 700; line-height: 1.15;
  color: var(--head); text-transform: uppercase; text-align: center;
  margin: 50px 0;
}
.section h2 span { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.lead {
  text-align: center; font-size: 22px; font-weight: 600; line-height: 1.05;
  color: var(--muted); max-width: 940px; margin: 90px auto 70px;
}

/* Leistungen: Titel + Icon links, Liste rechts */
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start;
  margin-bottom: 90px;
}
.service-head { text-align: center; margin-top: 30px; }
.service-head h3 {
  font-size: 36px; font-weight: 600; text-transform: uppercase; color: var(--head);
  margin: 0 0 50px;
}
.service-head img {
  width: 129px; height: 129px; margin: 0 auto; border-radius: 50%;
  object-fit: cover; object-position: center top;   /* immer exakt rund, auch bei nicht quadratischen Grafiken */
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.service:hover .service-head img { transform: scale(1.06) rotate(-3deg); }

.check { list-style: none; margin: 0; padding: 0; }
.check li {
  padding: 6px 0 7px 21px; font-size: 15px; line-height: 18px;
  border-bottom: 1px solid #c2bfb8;
  background: url("../img/check.png") no-repeat 1px 11px;
}
.check li + li { margin-top: 8px; }
.check strong { font-weight: 700; }

.brands { border-top: 1px solid #b9b6af; border-bottom: 1px solid #b9b6af; text-align: center; padding: 22px 0 6px; margin-bottom: 40px; }

/* Galerie */
.gallery {
  display: grid; grid-template-columns: repeat(4, 150px);
  justify-content: space-between; gap: 20px 0;
  max-width: 870px; margin: 0 auto;
  list-style: none; padding: 0;
}
.gallery a {
  display: block; width: 150px; height: 150px; overflow: hidden;
  border: 2px solid #cfcfcf; background: #ddd; cursor: zoom-in;
  transition: box-shadow .25s, border-color .25s;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.gallery a:hover { border-color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.gallery a:hover img { transform: scale(1.08); }
.gallery a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Trenner-Bilder (Parallax auf großen Bildschirmen) */
.separator { height: 500px; background: center / cover no-repeat; position: relative; z-index: 1; }
@media (min-width: 1100px) and (hover: hover) { .separator { background-attachment: fixed; } }

/* ---------- Kontakt ---------- */
.kontakt-lines p { margin: 0 0 18px; font-size: 15px; }
.kontakt-lines .sep { color: #8b8880; padding: 0 .45em; }
.kontakt-lines a { text-decoration: none; border-bottom: 1px solid currentColor; }
.kontakt-lines a:hover { color: var(--brand); }
.kontakt-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 6px; }
.kontakt-box .shop { flex: 0 0 230px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.kontakt-box .shop img { width: 230px; aspect-ratio: 4 / 3; object-fit: cover; }
.kontakt-zeiten { font-size: 15px; line-height: 18px; padding-top: 4px; }
.kontakt-zeiten strong { display: block; }
.kontakt-zeiten .hinweis { margin-top: 35px; font-weight: 700; }
.kontakt-zeiten .route { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted); }
.kontakt-zeiten .route:hover { color: var(--brand); }

/* ---------- Impressum ---------- */
.impressum { text-align: center; }
.impressum p { margin-bottom: 23px; }
.impressum .copy { margin-top: 43px; }

/* ---------- Footer mit Impressum ---------- */
.site-footer {
  position: relative; z-index: 2;
  background: #343434; color: #c9c7c2;
  font-size: 14px; line-height: 1.55;
  padding: 44px 0 26px;
  box-shadow: 0 0 16px rgba(0, 0, 0, .9);
}
.site-footer h4 {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
}
.site-footer p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: inherit; }
.site-footer b { color: #e6e4df; font-weight: 600; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s; }
.site-footer a:hover { border-color: #fff; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 48px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.f-grid > div:last-child { padding-top: 29px; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 18px 0 6px; }
.f-links span { color: #777; }
.site-footer .copy { font-size: 13px; color: #8e8c87; margin: 0; }
@media (max-width: 720px) {
  .f-grid { grid-template-columns: 1fr; }
  .f-grid > div:last-child { padding-top: 0; }
  .f-links { flex-direction: column; align-items: flex-start; gap: 8px; }
  .f-links span { display: none; }
}

/* ---------- Unterseiten (Rechtstexte) ---------- */
.legal { padding-bottom: 80px; }
.legal .container { max-width: 940px; }
.legal h2 { margin-bottom: 40px; }
.legal h3, .legal h4 { font-size: 20px; font-weight: 700; text-transform: none; margin: 1.8em 0 .5em; color: var(--head); }
.legal p, .legal li { font-size: 15px; }
.legal a { word-break: break-word; }
.back { display: inline-block; margin-bottom: 30px; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--brand); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 20, 24, .92);
}
.lb.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.lb img { max-width: 92vw; max-height: 86vh; width: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); border: 4px solid #fff; }
.lb button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 44px/1 var(--font); padding: 16px; opacity: .75;
}
.lb button:hover { opacity: 1; }
.lb .close { top: 8px; right: 12px; }
.lb .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .gallery a { width: 100%; height: auto; aspect-ratio: 1; }
}
@media (max-width: 720px) {
  .intro { height: 220px; }
  .nav a { padding: 0 12px; font-size: 13px; }
  .nav a::after { left: 12px; right: 12px; }
  .section h2 { font-size: 34px; margin: 36px 0; }
  .lead { font-size: 18px; line-height: 1.3; margin: 40px auto; }
  .service { grid-template-columns: 1fr; margin-bottom: 50px; }
  .service-head { margin: 0 0 24px; }
  .service-head h3 { font-size: 28px; margin-bottom: 20px; }
  .service-head img { width: 96px; height: 96px; }
  .separator { height: 260px; }
  .kontakt-lines .sep { display: block; height: 0; overflow: hidden; }
  .kontakt-box { flex-direction: column; }
  .kontakt-box .shop, .kontakt-box .shop img { width: 100%; flex-basis: auto; }
}
@media (max-width: 420px) {
  .nav a { padding: 0 8px; font-size: 12px; }
  .nav a::after { left: 8px; right: 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
