/* ============================================================
   VAITS Digital Services — Basis-Stylesheet (gemeinsam für alle Seiten)
   Farbrichtung: „Blau auf Papierweiß“
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --bg:#FAFAF7;
  --fg:#0F1E30;
  --accent:#0080E0;
  --accent-dark:#0068B8;
  --dim:#5C6570;
  --line:#DCE0E2;
  --surface:#F1F1EC;
  --radius:6px;
  --maxw:1180px;
  --font-display:'Bricolage Grotesque',Georgia,serif;
  --font-text:'Public Sans',Arial,sans-serif;
}

html{scroll-behavior:smooth}

body{
  font-family:var(--font-text);
  background:var(--bg);
  color:var(--fg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{list-style:none}
button{font:inherit;cursor:pointer}
::selection{background:var(--accent);color:#fff}

:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 clamp(1.25rem,5vw,2.5rem)}

h1,h2,h3{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;line-height:1.12}

p{max-width:62ch}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  font-family:var(--font-text);
  font-weight:600;
  font-size:.98rem;
  padding:.85rem 1.5rem;
  border-radius:var(--radius);
  border:1.5px solid transparent;
  transition:background .15s,border-color .15s,color .15s;
}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-dark)}
.btn-ghost{background:transparent;color:var(--fg);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}

/* ---------- Header / Nav ---------- */
#site-header{
  position:sticky;top:0;z-index:100;
  background:var(--bg);
  border-bottom:1px solid transparent;
  transition:border-color .2s;
}
#site-header.scrolled{border-bottom-color:var(--line)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:78px}
.brand{display:flex;align-items:center;gap:.65rem}
.brand img{height:40px;width:auto}
.brand-text{font-family:var(--font-display);font-weight:700;font-size:1.05rem;line-height:1.15}
.brand-text small{display:block;font-family:var(--font-text);font-weight:400;font-size:.72rem;color:var(--dim)}
.nav-links{display:flex;align-items:center;gap:2.2rem}
.nav-links a{font-size:.95rem;font-weight:500;color:var(--fg)}
.nav-links a:hover{color:var(--accent)}
.nav-links .nav-cta{background:var(--accent);color:#fff;padding:.6rem 1.2rem;border-radius:var(--radius);font-weight:600}
.nav-links .nav-cta:hover{background:var(--accent-dark);color:#fff}
.burger{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:6px}
.burger span{width:22px;height:2px;background:var(--fg);border-radius:2px}

@media(max-width:860px){
  .nav-links{
    position:fixed;top:78px;left:0;right:0;bottom:0;
    background:var(--bg);
    flex-direction:column;align-items:flex-start;gap:0;
    padding:.5rem clamp(1.25rem,5vw,2.5rem) 2rem;
    overflow-y:auto;
    display:none;
  }
  .nav-links.open{display:flex}
  .nav-links a{display:block;width:100%;padding:1.05rem 0;border-bottom:1px solid var(--line)}
  .nav-links .nav-cta{display:inline-block;margin-top:1.2rem}
  .burger{display:flex}
}

/* ---------- Hero (Startseite) ---------- */
.hero{padding:3.5rem 0 4.5rem}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:3rem;align-items:center}
.hero h1{font-size:clamp(2rem,4.2vw,3.1rem);max-width:16ch}
.hero .lead{margin-top:1.3rem;font-size:1.1rem;color:var(--dim);max-width:46ch}
.hero .hero-actions{margin-top:2rem;display:flex;gap:1rem;flex-wrap:wrap}
.hero-photo{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
.hero-photo img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:2.2rem}
  .hero-photo{max-width:340px}
}

/* orchestrierter Lade-Moment: einmalig, nur Hero */
.load-in{opacity:0;transform:translateY(14px);animation:loadIn .6s ease forwards}
.load-in:nth-child(1){animation-delay:.05s}
.load-in:nth-child(2){animation-delay:.15s}
.load-in:nth-child(3){animation-delay:.25s}
@keyframes loadIn{to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .load-in{opacity:1;transform:none;animation:none}
}

/* ---------- Section-Grundgerüst ---------- */
section{padding:4.5rem 0}
.section-head{max-width:56ch;margin-bottom:2.5rem}
.section-head h2{font-size:clamp(1.6rem,3vw,2.1rem)}
.section-head p{margin-top:.8rem;color:var(--dim)}

/* ---------- Leistungen-Teaser (Startseite) ---------- */
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.service-card{border-top:2px solid var(--accent);padding-top:1.1rem}
.service-card h3{font-size:1.05rem;margin-bottom:.5rem}
.service-card p{color:var(--dim);font-size:.95rem}
@media(max-width:900px){.services-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.services-grid{grid-template-columns:1fr}}

/* ---------- Über mich Teaser (Startseite) ---------- */
.about-teaser{max-width:62ch}
.about-teaser .txt p{color:var(--dim);margin-top:1rem}
.about-teaser .txt a.btn{margin-top:1.5rem}

/* ---------- Referenz / Case (Pegasos) ---------- */
.case{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:grid;grid-template-columns:1fr 1fr;align-items:start}
.case-photo img{width:100%;height:auto;aspect-ratio:8/5;object-fit:cover}
.case-body{padding:2.2rem}
.case-body .where{color:var(--dim);font-size:.92rem;margin-bottom:1rem}
.case-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.2rem 0}
.case-tags span{border:1px solid var(--line);border-radius:999px;padding:.3rem .85rem;font-size:.82rem;color:var(--dim)}
.case-quote{border-left:2px solid var(--accent);padding-left:1rem;margin:1.2rem 0;font-size:1.02rem;color:var(--fg)}
.case-quote cite{display:block;margin-top:.5rem;font-size:.85rem;color:var(--dim);font-style:normal}
.case-body .btn{margin-top:.5rem}
@media(max-width:760px){.case{grid-template-columns:1fr}}

/* kleine Referenzliste (Verweis, kein ausführlicher Case) */
.ref-list{margin-top:1.75rem;display:flex}
.ref-item{display:flex;align-items:center;gap:1rem;border:1px solid var(--line);border-radius:var(--radius);padding:.75rem 1.1rem;max-width:420px}
.ref-item img{width:56px;height:56px;object-fit:cover;border-radius:4px;flex-shrink:0}
.ref-item .t{font-size:.9rem}
.ref-item .t strong{display:block;font-size:.95rem}
.ref-item .t span{color:var(--dim)}
.ref-item:hover{border-color:var(--accent)}

/* ---------- CTA-Band ---------- */
.cta-band{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cta-band .wrap{padding-top:3.5rem;padding-bottom:3.5rem;display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.cta-band h2{font-size:clamp(1.4rem,2.6vw,1.9rem);max-width:26ch}

/* ---------- Footer ---------- */
#site-footer{border-top:1px solid var(--line);padding:3rem 0 0}
.footer-inner{display:flex;justify-content:space-between;gap:2.5rem;flex-wrap:wrap;padding-bottom:2.5rem}
.footer-brand{max-width:26ch}
.footer-brand .brand-text{margin-bottom:.6rem}
.footer-brand p{color:var(--dim);font-size:.92rem}
.footer-cols{display:flex;gap:3.5rem;flex-wrap:wrap}
.footer-col h4{font-size:.88rem;margin-bottom:.8rem;color:var(--dim)}
.footer-col a{display:block;font-size:.92rem;padding:.28rem 0}
.footer-col a:hover{color:var(--accent)}
.footer-bottom{border-top:1px solid var(--line);padding:1.4rem 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.7rem;font-size:.82rem;color:var(--dim)}
.footer-bottom a{color:var(--dim)}
.footer-bottom a:hover{color:var(--accent)}
.cc-reopen{background:none;border:none;color:inherit;font:inherit;cursor:pointer;padding:0;text-decoration:underline}

/* ---------- WhatsApp Sticky-Button ---------- */
.wa-float{
  position:fixed;right:1.25rem;bottom:1.25rem;z-index:90;
  display:flex;align-items:center;gap:.6rem;
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:.7rem 1.1rem;font-size:.9rem;font-weight:600;color:var(--fg);
  box-shadow:0 2px 10px rgba(15,30,48,.08);
}
.wa-float:hover{border-color:var(--accent);color:var(--accent)}
.wa-float svg{width:20px;height:20px;flex-shrink:0}

@media(max-width:560px){
  .wa-float span{display:none}
  .wa-float{padding:.75rem;border-radius:50%}
}

/* Cookie-Banner sichtbar -> WhatsApp-Button nach oben ausweichen */
body.cc-open .wa-float{bottom:190px}
@media(max-width:760px){ body.cc-open .wa-float{bottom:300px} }
