/* ============================================================
   Nufio Services GmbH – Onepager Styles
   ============================================================ */

:root {
  --blue: #1268C3;
  --blue-dark: #0B4C95;
  --blue-darker: #093C77;
  --blue-100: #eaf3fc;
  --blue-50: #f4f9fe;
  --ink: #14233a;
  --body: #45566b;
  --muted: #6b7a8d;
  --line: #e2eaf2;
  --white: #ffffff;
  --bg: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(15, 45, 90, .06);
  --shadow: 0 14px 40px rgba(15, 45, 90, .10);
  --shadow-lg: 0 24px 60px rgba(15, 45, 90, .16);

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* Accessibility */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: inherit; font-weight: 700; font-size: .98rem;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap; line-height: 1;
}
.btn-lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(18,104,195,.30); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18,104,195,.38); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu > li > a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .98rem; position: relative; }
.nav-menu > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue); transition: width .25s var(--ease);
}
.nav-menu > li > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bar { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 .9rem;
}
.eyebrow.center { justify-content: center; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.text-grad { background: linear-gradient(100deg, var(--blue), #3f9be8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(170deg, var(--blue-50) 0%, var(--blue-100) 100%); padding: 2.4rem 0 4.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; position: relative; z-index: 2; }
.hero-copy { text-align: left; }
.hero-lead { font-size: 1.12rem; color: var(--body); max-width: 42ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-trust { display: flex; flex-direction: column; gap: .5rem; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); font-size: .96rem; }
.hero-trust svg { color: var(--blue); flex: none; }
.hero-media { position: relative; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--white);
  -webkit-mask: radial-gradient(120% 100% at 50% 100%, transparent 70%, #000 71%);
  mask: radial-gradient(120% 100% at 50% 100%, transparent 70%, #000 71%); z-index: 1; }

/* ---------- USP strip ---------- */
.usp { background: var(--white); padding: 2.6rem 0; }
.usp-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.usp-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s;
}
.usp-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.usp-head {
  position: relative; height: 118px; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 24px;
  background: radial-gradient(120% 120% at 30% 15%, #4ba2ea 0%, var(--blue) 55%, var(--blue-dark) 100%);
}
.usp-head::before { /* dezentes Punktmuster */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 1.4px, transparent 1.5px);
  background-size: 16px 16px; opacity: .55;
}
.usp-head::after { /* Fade nach unten ins Weiss */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(to bottom, transparent, var(--white) 92%);
}
.usp-ico {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; color: #fff;
  filter: drop-shadow(0 4px 10px rgba(9,60,119,.35));
  transition: transform .3s var(--ease);
}
.usp-item:hover .usp-ico { transform: scale(1.08); }
.usp-body { padding: .2rem 1.4rem 1.6rem; margin-top: -8px; }
.usp-item h3 { margin-bottom: .4rem; }
.usp-item p { margin: 0; font-size: .96rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--blue-50); }
.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--blue), #4ba2ea); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-ico { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 14px; background: var(--blue-100); color: var(--blue); margin-bottom: 1rem; transition: background .25s, color .25s; }
.card:hover .card-ico { background: var(--blue); color: #fff; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

.leistungen-cta { text-align: center; margin-top: 2.6rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.leistungen-cta p { font-weight: 600; color: var(--ink); margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.4rem; grid-template-columns: 1fr; counter-reset: step; max-width: 980px; margin-inline: auto; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem 1.6rem; position: relative; text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.4rem; margin-bottom: 1rem; box-shadow: 0 8px 20px rgba(18,104,195,.30); }
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.4rem; align-items: center; }
.about-media { position: relative; max-width: 460px; margin-inline: auto; }
.about-img { border-radius: var(--radius); background: var(--blue-100); box-shadow: var(--shadow); width: 100%; }
.about-badge { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-radius: 12px; padding: .7rem 1.1rem; box-shadow: var(--shadow-sm); }
.about-badge strong { display: block; color: var(--ink); font-size: 1.05rem; }
.about-badge span { color: var(--blue); font-size: .85rem; font-weight: 600; }
.quote { margin: 1.4rem 0; padding: 1.2rem 1.4rem; background: var(--blue-50); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; font-size: 1.08rem; font-style: italic; color: var(--ink); }
.quote cite { display: block; margin-top: .6rem; font-style: normal; font-weight: 700; font-size: .92rem; color: var(--blue); }
.about-points { display: grid; gap: .6rem; margin-top: 1rem; }
.about-points li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); }
.about-points li::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--blue-100); color: var(--blue); font-size: .8rem; font-weight: 800; }

/* ---------- Einsatzgebiet ---------- */
.gebiet-grid { display: grid; gap: 2rem; align-items: center; }
.gebiet-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.gebiet-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .45em 1em; font-weight: 600; font-size: .92rem; color: var(--ink); }
.gebiet-card { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 2.4rem 1.8rem; text-align: center; box-shadow: var(--shadow); }
.gebiet-card strong { display: block; font-size: 1.3rem; margin-top: .6rem; }
.gebiet-card span { display: block; color: rgba(255,255,255,.85); margin: .4rem 0 1.4rem; }
.gebiet-pin { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; }
.gebiet-card .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.gebiet-card .btn-ghost:hover { background: #fff; color: var(--blue); }

/* ---------- Kontakt ---------- */
.kontakt-grid { display: grid; gap: 2.4rem; align-items: start; }
.contact-list { display: grid; gap: 1.1rem; margin: 1.6rem 0; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--blue-100); color: var(--blue); }
.contact-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-list a { font-weight: 700; color: var(--ink); }
.contact-list a:hover { color: var(--blue); }
.qr-block { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; padding: 1rem 1.2rem; background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius); max-width: 340px; }
.qr-block img { width: 96px; height: 96px; border-radius: 8px; background: #fff; }
.qr-block p { margin: 0; font-weight: 700; color: var(--ink); font-size: .96rem; }

.kontakt-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--blue-50); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-100);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-check { display: flex; align-items: flex-start; gap: .6rem; margin: .4rem 0 1.2rem; }
.field-check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.field-check label { font-size: .9rem; color: var(--muted); font-weight: 500; }
.form-note { margin: .9rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: #1a8a4b; }
.form-note.err { color: #cc3344; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-darker); color: rgba(255,255,255,.78); padding-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2.4rem; }
.footer-logo { height: 44px; width: auto; background: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 38ch; font-size: .96rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a, .footer-contact li { color: rgba(255,255,255,.78); font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.2rem 0; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: .6rem; align-items: center; text-align: center; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal a { color: rgba(255,255,255,.78); }
.footer-legal a:hover { color: #fff; }
.footer-legal span { margin: 0 .5rem; }
.footer-credit { text-align: center; padding-top: .9rem; }
.footer-credit p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-credit a { color: rgba(255,255,255,.78); font-weight: 600; }
.footer-credit a:hover { color: #fff; }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-hero { background: linear-gradient(170deg, var(--blue-50), var(--blue-100)); padding: 3rem 0 2.4rem; }
.legal-hero a.back { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; margin-bottom: 1rem; }
.legal { padding: 2.6rem 0 4rem; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal li { color: var(--body); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal ul li { margin-bottom: .3rem; }
.legal .placeholder { background: #fff5d6; border: 1px dashed #e0b400; border-radius: 8px; padding: .1em .4em; font-style: italic; }
.legal address { font-style: normal; line-height: 1.8; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-top: 2.4rem; }

/* ---------- Floating call button (mobile) ---------- */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(18,104,195,.45);
  animation: pulse 2.6s infinite;
}
.fab-call:hover { color: #fff; background: var(--blue-dark); }
@keyframes pulse { 0% { box-shadow: 0 10px 28px rgba(18,104,195,.45), 0 0 0 0 rgba(18,104,195,.4); } 70% { box-shadow: 0 10px 28px rgba(18,104,195,.45), 0 0 0 14px rgba(18,104,195,0); } 100% { box-shadow: 0 10px 28px rgba(18,104,195,.45), 0 0 0 0 rgba(18,104,195,0); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .fab-call { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}


@media (min-width: 900px) {
  .hero { padding: 4rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .usp-grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .gebiet-grid { grid-template-columns: 1.4fr 1fr; }
  .kontakt-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .fab-call { display: none; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 899px) {
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1.4rem; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s var(--ease);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-menu > li > a:not(.btn) { display: block; padding: 1rem .25rem; font-size: 1.05rem; }
  .nav-menu > li > a:not(.btn)::after { display: none; }
  .nav-cta { border-bottom: 0; padding-top: 1rem; }
  .nav-cta .btn { width: 100%; }
}
