/* =========================================================
   G.T. Gala-Bau – Stylesheet
   Design-System nach Design-Prompt_GT-Gala-Bau.md
   ========================================================= */

:root {
  /* Brand */
  --green:        #2E7D32;
  --green-dark:   #225c26;
  --green-light:  #4CAF50;
  --cream:        #EAF3D6;
  --ink:          #2C2C2A;
  --ink-soft:     #55554f;
  --bg:           #FFFFFF;
  --bg-soft:      #F5F5F5;
  --sand:         #C9A66B;
  --line:         #e4e6e0;
  --white:        #ffffff;

  /* Type */
  --font-head: "Archivo", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(44, 44, 42, 0.08);
  --shadow-lg: 0 18px 50px rgba(44, 44, 42, 0.14);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 800; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--cream); }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .6rem; }
.section__head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.text-muted { color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(46,125,50,.28); }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(44,44,42,.22); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { background: #f1f1f1; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 46px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: .25rem; margin-left: auto; list-style: none; padding: 0; }
.nav__menu a {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink);
  padding: .55rem .8rem; border-radius: 8px; display: block;
}
.nav__menu a:hover { background: var(--bg-soft); text-decoration: none; }
.nav__menu a[aria-current="page"] { color: var(--green-dark); background: var(--cream); }
.nav__menu .btn { display: none; }
.nav__menu a.btn:hover { text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: .9rem; }
.nav__tel { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.nav__tel:hover { color: var(--green-dark); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; border-radius: 8px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav__toggle span + span { margin-top: 5px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(20,38,20,.86) 0%, rgba(28,52,28,.66) 45%, rgba(28,52,28,.25) 100%); }
.hero__inner { padding-block: clamp(4rem, 12vw, 8rem); max-width: 720px; }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero__sub { font-size: 1.2rem; color: #f0f4ec; max-width: 600px; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero--page { color: #fff; }
.hero--page .hero__inner { padding-block: clamp(3rem, 7vw, 4.5rem); max-width: 820px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--green); color: #fff; }
.trust-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 1.5rem; }
.trust-item { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.trust-item svg { flex-shrink: 0; width: 26px; height: 26px; }

/* ---------- Service grid ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; box-shadow: var(--shadow);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--cream); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.service-card__icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--cream); color: var(--green-dark); border-radius: 10px; margin-bottom: .2rem; }
.service-card__icon svg { width: 22px; height: 22px; }
.service-card h3 { margin: 0; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.service-card .more { margin-top: auto; padding-top: .6rem; font-family: var(--font-head); font-weight: 700; color: var(--green-dark); font-size: .95rem; }

/* Service detail rows (leistungen) */
.service-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.service-row h2 { margin-bottom: .4rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--cream); aspect-ratio: 4/3; border: 0; padding: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .7rem; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .25s ease; }
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,20,15,.92); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: #f0f4ec; font-family: var(--font-head); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer; border-radius: 999px; width: 50px; height: 50px; font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.3rem; position: relative; box-shadow: var(--shadow); }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.step h3 { margin-bottom: .3rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- USP / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 5/4; object-fit: cover; }
.usp-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.usp-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1.02rem; }
.usp-list svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--green); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eaf3d6; max-width: 620px; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-band .btn { box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__q::after { content: "+"; font-size: 1.6rem; color: var(--green); flex-shrink: 0; transition: transform .2s ease; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a > div { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--bg-soft); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field .error-msg { color: #b00020; font-size: .85rem; margin-top: .3rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #b00020; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: var(--cream); color: var(--green-dark); }
.contact-info { display: grid; gap: 1.2rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.info-card h3 { margin-bottom: .6rem; }
.info-row { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .6rem; }
.info-row svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--cream); }
.map-card a { display: block; position: relative; }
.map-static { width: 100%; height: 220px; object-fit: cover; display: block; }
.map-card__overlay { padding: 1rem 1.2rem; background: #fff; font-family: var(--font-head); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d7d8d2; padding-block: 3rem 1.5rem; }
.site-footer a { color: #d7d8d2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { height: 50px; width: auto; margin-bottom: .9rem; filter: brightness(0) invert(1); }
.footer-brand p { color: #b6b8b0; font-size: .95rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.2rem; font-size: .9rem; color: #9a9c94; }
.footer-bottom nav { display: flex; gap: 1.2rem; }
.footer-credit { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; text-align: center; font-size: 1.05rem; color: #b6b8b0; }
.footer-credit a { color: #fff; font-family: var(--font-head); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; transition: color .2s ease, border-color .2s ease; }
.footer-credit a:hover { color: var(--green-light); border-color: var(--green-light); }

/* ---------- Page utilities ---------- */
.breadcrumb { font-size: .9rem; color: var(--ink-soft); padding-top: 1.2rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__actions { gap: .4rem; }
  .nav[data-open="true"] .nav__menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); padding: .6rem var(--gutter) 1.2rem; box-shadow: var(--shadow);
  }
  .nav[data-open="true"] .nav__menu a { padding: .9rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav[data-open="true"] .nav__menu .btn { display: inline-flex; margin-top: .8rem; justify-content: center; border-bottom: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .trust-bar__grid, .footer-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; border-radius: 4px; }
