/* Zaunbau Lorin e.U. – style.css | Mobile First, keine externen Ressourcen */
@font-face { font-family: "Lorin Sans"; src: url("fonts/lorin-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lorin Sans"; src: url("fonts/lorin-sans-700.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --green: #08732d; --green-dark: #04551f; --green-light: #6bc27f;
  --ink: #202225; --white: #fff;
  --bg: #f5f5f1; --surface: #fff; --text: #202225; --accent: #08732d;
  --line: #d9dcd4; --muted: #5b625c; --tile: #e9e9e4; --btn-dark: #202225;
  --header-bg: rgba(245,245,241,.97);
  --container: 1180px;
  --font: "Lorin Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-bottom: 64px; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 14px 22px; border: 0; border-radius: 2px; font-size: 14px; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-green { background: var(--green); color: #fff; }
.button-green:hover { background: var(--green-dark); }
.button-dark { background: var(--btn-dark); color: #fff; }
.button-large { padding: 18px 26px; font-size: 15px; }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 8px; min-height: 76px; }
.brand { display: block; flex: none; width: 64px; margin-right: auto; }
.icon-call, .menu-toggle { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: background .2s, border-color .2s; }
.icon-call { border-color: var(--green); background: var(--green); color: #fff; }
.icon-call:hover { background: var(--green-dark); }
.icon-call svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle span { position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s, top .25s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] { border-color: var(--green); background: var(--green); }
.menu-toggle[aria-expanded="true"] span { background: #fff; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }
.header-contact { display: none; }
.main-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; padding: 8px 16px 24px; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 20px 30px rgba(0,0,0,.12); font-size: 1.125rem; font-weight: 700; }
.js .main-nav { display: none; }
.js .main-nav.open { display: flex; animation: nav-in .22s ease-out; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } }
.main-nav a:not(.button) { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.main-nav a:not(.button)::after { content: "→"; color: var(--accent); font-weight: 400; }
.nav-cta { margin-top: 20px; }
.main-nav a:not(.button):hover { color: var(--accent); }
.footer-links a:hover { color: var(--green-light); }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: 600px; overflow: hidden; color: #fff; background: var(--ink); }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 32%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,22,24,.78) 0%, rgba(20,22,24,.68) 60%, rgba(20,22,24,.85) 100%); }
.hero-content { position: relative; z-index: 2; padding: 64px 0 72px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow, .eyebrow.light { color: #8fd59d; }
.hero h1 { font-size: clamp(2.9rem, 11vw, 5.75rem); letter-spacing: -.04em; line-height: .94; }
h1 em, h2 em { color: var(--green-light); font-style: normal; }
.hero-lead { max-width: 34rem; margin: 24px 0 28px; color: #e6eae6; font-size: 1.0625rem; line-height: 1.6; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--green-light); }
.trustbar { background: var(--green); color: #fff; }
.trustbar ul { display: grid; gap: 4px; margin: 0 auto; padding: 14px 0; list-style: none; font-size: 14px; font-weight: 600; }
.trustbar li { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.trustbar b { color: #cdeed3; font-size: 12px; }

/* Sections */
.section { padding: 72px 0; }
.section-heading { display: grid; gap: 20px; margin-bottom: 40px; }
.section h2, .contact-section h2 { font-size: clamp(2.4rem, 8vw, 4.25rem); line-height: .96; }
.section-intro { max-width: 26rem; margin: 0; color: var(--muted); line-height: 1.7; }
.service-grid { display: grid; border-top: 1px solid var(--line); }
.service-grid article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-number { color: var(--accent); font-size: 25px; font-weight: 800; }
.service-grid h3 { margin: 22px 0 12px; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
.service-grid p { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.service-grid a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 700; font-size: 14px; }

.process-band { padding: 64px 0; background: var(--green); color: #fff; }
.process-inner { display: grid; gap: 36px; }
.process-band h2 { font-size: clamp(2.6rem, 9vw, 3.5rem); }
.process-band .eyebrow { color: #cdeed3; }
.process-steps { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.process-steps li { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.4); }
.process-steps .num { display: block; margin-bottom: 10px; color: #cdeed3; font: 1.5rem Georgia, serif; }
.process-steps strong { font-size: 1rem; }
.process-steps p { margin: 4px 0 0; color: #e0f2e3; font-size: .9rem; }

/* Referenzen */
.references { background: var(--surface); }
.category-tabs:empty { display: none; }
.category-tabs { display: flex; gap: 24px; margin-bottom: 32px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.category-tabs button { flex: none; min-height: 48px; padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.category-tabs button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--green); }
.gallery-head { display: grid; gap: 14px; margin-bottom: 28px; justify-items: start; }
.gallery-head h3 { font-size: 2.4rem; letter-spacing: -.03em; }
.gallery-head p:not(.eyebrow) { max-width: 34rem; margin: 0; color: var(--muted); line-height: 1.65; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
html:not(.js) .gallery-cat + .gallery-cat { margin-top: 72px; }
.gallery-toggle { display: none; margin-top: 28px; }
.js .gallery-toggle { display: inline-flex; }
.js .gallery-more { display: none; }
.js .gallery-cat.is-open .gallery-more { display: block; }
.gallery-tile { display: block; position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: var(--tile); cursor: zoom-in; }
.gallery-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile::after { content: "+"; position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; background: #fff; color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1; }

/* Lightbox (<dialog>) */
.lightbox { width: 100%; max-width: 100vw; height: 100%; max-height: 100vh; margin: 0; padding: 56px 16px; border: 0; background: transparent; color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15,18,16,.94); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; margin-inline: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; font-size: 13px; letter-spacing: .12em; color: #dce8de; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--green); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: #0b8f39; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }

/* Kontakt */
.contact-section { padding: 72px 0 96px; background: var(--ink); color: #fff; }
.contact-grid { display: grid; gap: 48px; }
.contact-copy { max-width: 26rem; margin: 24px 0; color: #c6cdc7; line-height: 1.7; }
.contact-data { margin: 0 0 24px; font-style: normal; color: #d7ddd7; line-height: 1.8; }
.contact-data dt { margin-top: 12px; color: #9fb0a2; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-data dd { margin: 0; }
.contact-data a { text-decoration: underline; text-underline-offset: 3px; }
.phone-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding-bottom: 6px; border-bottom: 1px solid #77c687; color: #8fd59d; font-size: 1.6rem; font-weight: 700; }
.phone-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-note { margin-top: 12px; color: #aab5ac; font-size: 12px; }
.contact-form { display: grid; gap: 20px; align-content: start; }
.contact-form label:not(.consent) { display: grid; gap: 6px; color: #d2dbd3; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.contact-form input:not([type="checkbox"]), .contact-form select { width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid #7b867d; border-radius: 0; background: transparent; color: #fff; font-size: 16px; }
.contact-form input:focus, .contact-form select:focus { outline: 0; border-bottom-color: #8fd59d; box-shadow: 0 2px 0 #8fd59d; }
.contact-form option { background: #fff; color: var(--ink); }
.consent { display: flex; align-items: flex-start; gap: 12px; color: #c6cdc7; font-size: 13px; line-height: 1.5; }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--green-light); }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .button { width: 100%; }
.form-status { min-height: 1.5em; margin: 0; font-size: 14px; }
.form-status.ok { color: #8fd59d; }
.form-status.error { color: #ffb4a8; }

/* Footer */
.site-footer { padding: 48px 0 24px; background: #151718; color: #d7ddd7; }
.footer-top { display: grid; gap: 36px; padding-bottom: 40px; }
.footer-brand { font: bold 1.5rem Georgia, serif; }
.footer-brand span { color: var(--green-light); }
.footer-slogan { margin: 12px 0 0; color: #7fcb8d; font: italic .95rem Georgia, serif; line-height: 1.6; }
.footer-links { display: grid; gap: 28px; }
.footer-links div { display: grid; gap: 4px; font-size: 14px; }
.footer-links strong { margin-bottom: 6px; color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid #343936; color: #98a19a; font-size: 12px; }

/* Sticky Call (nur mobil) */
.sticky-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -5px 20px rgba(0,0,0,.15); }
.sticky-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px; font-size: 15px; font-weight: 700; }
.sticky-call { background: var(--green); color: #fff; }
.sticky-wa { background: #25d366; color: #0b2e1a; }

/* Rechtliche Seiten / 404 */
.legal { padding: 48px 0 80px; }
.legal .container { max-width: 800px; }
.legal h1 { margin-bottom: 28px; font-size: clamp(2.2rem, 7vw, 3.2rem); }
.legal h2 { margin: 36px 0 12px; font-size: 1.4rem; letter-spacing: -.02em; }
.legal p, .legal li { line-height: 1.7; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .hinweis { padding: 14px 16px; border-left: 4px solid var(--green); background: var(--surface); font-size: .95rem; }
.legal-footer { padding: 24px 0 90px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.not-found { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 20px; }

.h1-kicker { display: block; margin-bottom: 16px; color: #8fd59d; font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }

/* Über Helmut */
.about { background: var(--surface); }
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-brand { display: grid; justify-items: center; margin: 0 12px 12px 0; padding: 36px 24px 32px; background: var(--bg); box-shadow: 12px 12px 0 var(--green); }
.about-brand .about-logo { width: min(100%, 400px); height: auto; }
.about-brand .about-slogan { width: min(88%, 360px); height: auto; margin-top: -4px; }
.about-lead { max-width: 34rem; margin: 24px 0; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }
.about-stat { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.about-stat strong { color: var(--accent); font-size: 4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.about-stat span { font-size: .95rem; font-weight: 700; line-height: 1.4; }
.about-values { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.about-values li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 700; }

/* WhatsApp, Icons in Buttons */
.button svg, .wa-link svg, .sticky-bar svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-outline { border: 2px solid rgba(255,255,255,.85); background: transparent; color: #fff; }
.button-outline:hover { background: rgba(255,255,255,.14); }
.wa-link { display: flex; align-items: center; gap: 10px; width: max-content; min-height: 48px; margin-top: 8px; color: #8fd59d; font-weight: 700; }
.wa-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* FAQ + Einzugsgebiet */
.faq-grid { display: grid; gap: 40px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.7rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { max-width: 44rem; padding-bottom: 22px; color: var(--muted); line-height: 1.7; }
.faq-list .answer p { margin: 0 0 .8em; }
.faq-list .answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-note { margin: 20px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.orte { align-self: start; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.orte h3 { margin-bottom: 12px; font-size: 1.5rem; letter-spacing: -.02em; }
.orte p { margin: 0; color: var(--muted); line-height: 1.65; }
.orte ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.orte li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.orte a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Ab Tablet / Desktop */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .hero { min-height: 700px; }
  .hero-photo img { object-position: 50% 38%; }
  .hero::before { background: linear-gradient(90deg, rgba(20,22,24,.88) 0%, rgba(20,22,24,.7) 42%, rgba(20,22,24,.1) 100%); }
  .hero-content { padding: 90px 0; }
  .hero-actions { flex-direction: row; align-items: center; gap: 28px; }
  .trustbar ul { display: flex; flex-wrap: wrap; gap: 8px 40px; }
  .section { padding: 112px 0; }
  .section-heading { grid-template-columns: 1fr .75fr; gap: 50px; align-items: end; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid article { padding: 30px 30px 20px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .service-grid article:not(:first-child) { padding-left: 30px; }
  .service-grid article:last-child { border-right: 0; }
  .process-inner { grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: center; }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 25px; }
  .gallery-head { grid-template-columns: 1fr auto; align-items: end; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .gallery-tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .lightbox { padding: 50px 110px; }
  .faq-grid { grid-template-columns: 1.5fr .7fr; gap: 64px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 90px; }
  .orte { position: sticky; top: 24px; }
  .contact-grid { grid-template-columns: 1fr .85fr; gap: 100px; }
  .contact-form .button { width: max-content; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-links { grid-template-columns: repeat(2, auto); gap: 80px; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .legal-footer { padding-bottom: 32px; }
}
/* Desktop-Header erst ab 1100px, damit die Navigation nie umbricht */
@media (min-width: 1100px) {
  .icon-call, .menu-toggle, .nav-cta { display: none; }
  .header-bar { min-height: 88px; gap: 28px; }
  .brand { width: 76px; margin-right: 0; }
  .js .main-nav, .main-nav { position: static; display: flex; flex-direction: row; flex: 1; justify-content: center; gap: 30px; padding: 0; border: 0; background: none; box-shadow: none; animation: none; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
  .main-nav a:not(.button) { min-height: 44px; border: 0; }
  .main-nav a:not(.button)::after { content: none; }
  .header-contact { display: flex; align-items: center; gap: 22px; }
  .header-contact > div { display: grid; gap: 2px; text-align: right; font-size: 15px; font-weight: 700; white-space: nowrap; }
  .header-contact small { color: var(--muted); font-size: 11px; font-weight: 400; }
  .header-contact .button { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Sanftes Einblenden beim Scrollen (reines CSS, nur wo unterstützt) */
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-heading, .service-grid article, .process-steps li, .gallery-head, .gallery-tile, .faq-list details, .orte, .about-grid > *, .contact-grid > * {
      animation-name: reveal; animation-duration: 1ms; animation-timing-function: linear; animation-fill-mode: both;
      animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}

/* Weiche Seitenübergänge zwischen Startseite und Rechtsseiten */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
