/* ============================================================
   Mandaric GmbH — styles.css
   Premium, ruhig, hochwertig. Blau + Anthrazit, viel Weißraum.
   Mobile-first.
   ============================================================ */

:root {
  /* Canvas & ink */
  --bg:        #ffffff;
  --bg-2:      #f4f7fa;   /* kühler, heller Blauton als Sektionshintergrund */
  --surface:   #ffffff;
  --ink:       #1b2027;   /* anthrazitnahes Schwarz */
  --ink-soft:  #525c68;
  --ink-faint: #8994a1;
  --line:      #e2e8ee;

  /* Brand: Blau + Anthrazit */
  --blue:      #478ac9;
  --blue-dk:   #2f6aa3;
  --blue-lt:   #6fa5d8;
  --anthracite:      #22262d;
  --anthracite-soft: #343b44;
  --grad:      linear-gradient(120deg, #2f6aa3 0%, #478ac9 55%, #6fa5d8 100%);
  --grad-dark: linear-gradient(135deg, #22262d 0%, #343b44 100%);

  --ok:        #1f9d76;
  --warn:      #c94747;

  --radius:    18px;
  --radius-sm: 11px;
  --shadow:    0 1px 2px rgba(20,24,29,.05), 0 14px 34px -20px rgba(20,24,29,.28);
  --shadow-lg: 0 30px 70px -28px rgba(47,106,163,.35);
  --ring:      0 0 0 4px rgba(71,138,201,.18);

  --container: 1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: "Sora", system-ui, sans-serif; line-height: 1.1; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
address { font-style: normal; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--anthracite); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; border-radius: 100px;
  padding: 13px 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap; cursor: pointer;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff; background: var(--blue);
  background-image: var(--grad);
  box-shadow: 0 12px 28px -10px rgba(47,106,163,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(47,106,163,.7); }
.btn-primary:active { transform: translateY(0); }
.btn-arrow { transition: transform .25s var(--ease); }
.btn-primary:hover .btn-arrow, .btn-dark:hover .btn-arrow { transform: translateX(3px); }

.btn-dark {
  color: #fff; background: var(--anthracite);
  box-shadow: 0 12px 26px -12px rgba(34,38,45,.55);
}
.btn-dark:hover { transform: translateY(-2px); background: var(--anthracite-soft); }

.btn-ghost {
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #c9d5e0; }

.btn-ghost-light {
  color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(20,24,29,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1; color: var(--anthracite); }
.brand-dot { color: var(--blue); }
.brand-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .25s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-links > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--anthracite); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared section ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; margin-bottom: 16px; }
.section-lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-dk); background: rgba(71,138,201,.09);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.eyebrow-light { color: #cfe0f2; background: rgba(255,255,255,.12); }
.eyebrow-light .eyebrow-dot { background: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 74px 0 96px;
  background: var(--grad-dark);
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(640px 380px at 85% 0%, rgba(71,138,201,.45), transparent 65%),
    radial-gradient(520px 360px at 8% 100%, rgba(71,138,201,.22), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-title { font-size: clamp(36px, 6.4vw, 60px); font-weight: 700; margin-bottom: 22px; color: #fff; }
.hero-sub { font-size: clamp(16px, 2.2vw, 19px); color: #c7d3de; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 22px 28px;
  font-size: 14px; color: #a9b7c4; font-weight: 500;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: "✓"; color: var(--blue-lt); font-weight: 700; }
.hero-more-link {
  display: inline-block; margin-top: 22px; font-size: 14px; font-weight: 600;
  color: #cfe0f2; border-bottom: 1px solid rgba(207,224,242,.35); transition: color .2s, border-color .2s;
}
.hero-more-link:hover { color: #fff; border-color: rgba(255,255,255,.6); }

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.services { background: var(--bg); }
.service-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-card {
  position: relative; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column; gap: 14px;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(71,138,201,.35);
}
.svc-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; color: var(--blue-dk);
  background: rgba(71,138,201,.1); transition: background .3s, color .3s, transform .3s;
}
.service-card:hover .svc-icon { color: #fff; background-image: var(--grad); transform: scale(1.05); }
.svc-title { font-size: 20px; font-weight: 700; }
.svc-desc { font-size: 15px; color: var(--ink-soft); }

/* ============================================================
   ÜBER UNS
   ============================================================ */
.about { background: var(--bg-2); overflow: hidden; }
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center;
}
.about-copy .eyebrow { margin-bottom: 18px; }
.about-copy h2 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 20px; }
.about-text { font-size: clamp(16px, 2.1vw, 18px); color: var(--ink-soft); line-height: 1.75; margin-bottom: 24px; }
.about-text + .about-text { margin-top: -10px; }

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 20px; box-shadow: var(--shadow);
}
.about-stat-num { font-family: "Sora", sans-serif; font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--blue-dk); line-height: 1; margin-bottom: 6px; }
.about-stat-lbl { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }

.about-visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--grad-dark);
  display: flex; align-items: flex-end; padding: 26px;
  box-shadow: var(--shadow-lg);
}
.about-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.055) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 64px);
}
.about-visual-badge {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm);
  padding: 18px 20px; color: #fff;
}
.about-visual-badge strong { display: block; font-family: "Sora", sans-serif; font-size: 18px; margin-bottom: 4px; }
.about-visual-badge span { font-size: 13.5px; color: #c7d3de; }

/* ============================================================
   REFERENZEN / GALERIE
   ============================================================ */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-item {
  position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; color: #fff;
  background: linear-gradient(0deg, rgba(20,24,29,.72), rgba(20,24,29,0));
}
.gallery-cap span { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.gallery-cap small { font-size: 10.5px; color: rgba(255,255,255,.75); font-weight: 500; white-space: nowrap; }
.gallery-note { text-align: center; font-size: 13.5px; color: var(--ink-faint); margin-top: 26px; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.contact-copy h2 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 16px; }

.contact-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s;
}
.contact-card:hover { transform: translateY(-2px); border-color: rgba(71,138,201,.4); }
.cc-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; background-image: var(--grad);
}
.cc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.cc-value { font-size: 15.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.cc-value a { transition: color .2s; }
.cc-value a:hover { color: var(--blue-dk); }

.contact-area {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(71,138,201,.08); border: 1px solid rgba(71,138,201,.2);
  font-size: 14.5px; color: var(--ink-soft);
}
.contact-area strong { color: var(--ink); }

.cal-cta {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 18px;
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cal-cta .cal-ic { font-size: 24px; line-height: 1.15; }
.cal-cta-body { display: flex; flex-direction: column; gap: 4px; }
.cal-cta-body strong { font-size: 15px; color: var(--ink); }
.cal-cta-body small { color: var(--ink-faint); font-size: 13.5px; line-height: 1.5; }
.cal-cta-btn { align-self: flex-start; margin-top: 12px; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.form-head { display: flex; flex-direction: column; gap: 5px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.form-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); background: var(--surface); }
.field input.invalid, .field textarea.invalid { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(201,71,71,.14); }

.checkbox { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.checkbox a { color: var(--blue-dk); text-decoration: underline; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14.5px; font-weight: 600; min-height: 1em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--warn); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--anthracite); color: #b7c0ca; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-claim { font-size: 14.5px; color: #93a0ac; max-width: 340px; margin-bottom: 16px; }
.footer-legal-lines { font-size: 13px; color: #7d8894; line-height: 1.7; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7d8894; margin-bottom: 4px; }
.footer-nav a { font-size: 15px; color: #cbd3db; transition: color .2s; width: fit-content; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 13px; color: #7d8894;
}

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.legal-main { max-width: 800px; margin: 0 auto; padding: 60px 22px 90px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--blue-dk); margin-bottom: 26px; }
.legal-back:hover { text-decoration: underline; }
.legal-main h1 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 10px; }
.legal-lead { color: var(--ink-soft); margin-bottom: 30px; }
.legal-main h2 { font-size: 21px; margin: 34px 0 12px; }
.legal-main h3 { font-size: 16px; margin: 20px 0 8px; }
.legal-main p, .legal-main li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 10px; }
.legal-main ul { padding-left: 20px; margin-bottom: 12px; }
.legal-main address { color: var(--ink); }
.legal-main .no-link { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 940px) {
  .hero { padding: 90px 0 120px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1.05fr .95fr; gap: 60px; }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
    padding: 18px 22px 26px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    box-shadow: 0 24px 40px -24px rgba(20,24,29,.4);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 12px; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }
  .hero { padding: 44px 0 56px; }
  .hero-title { margin-bottom: 16px; }
  .hero-sub { margin-bottom: 24px; }
  .hero-actions { margin-bottom: 26px; }
  .contact-grid { gap: 28px; }
  .contact-form { padding: 22px; }
  .service-grid { gap: 14px; }
  .gallery-grid { gap: 10px; }
}
