/* ============================================================
   Gimenez Solutions – One-Pager
   Farben aus dem Logo: Navy / Grün / Rot
   ============================================================ */

:root {
  --navy: #16419C;
  --navy-dark: #0F2F73;
  --navy-deep: #0A2254;
  --green: #3BB54A;
  --red: #E8382C;
  --ink: #152238;
  --muted: #5A6B85;
  --bg: #FFFFFF;
  --bg-soft: #F2F6FC;
  --line: #DFE7F4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 47, 115, 0.10);
  --shadow-sm: 0 4px 14px rgba(15, 47, 115, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16.5px;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; }
h3 { font-size: 1.15rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(15, 47, 115, 0.07);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--navy);
}
.brand-mark { width: 64px; height: 45px; }
.brand-text {
  font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap;
}
.brand-text em { font-style: normal; color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .35rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); border-bottom-color: var(--green); }
.main-nav a.nav-cta {
  background: var(--navy); color: #fff; padding: .55rem 1.15rem;
  border-radius: 999px; border-bottom: none; transition: background .2s;
}
.main-nav a.nav-cta:hover { background: var(--navy-dark); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 3px; width: 26px; margin-inline: auto;
  background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(59, 181, 74, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(232, 56, 44, 0.07), transparent 55%),
    linear-gradient(180deg, #F6F9FE 0%, #EEF3FB 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: 3rem; padding: 4.5rem 0 4rem;
}
.eyebrow {
  color: var(--green); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: .9rem;
}
.eyebrow-light { color: #9FD8A8; }
.hl-navy { color: var(--navy); }
.tagline {
  color: var(--red); font-weight: 800; letter-spacing: .22em;
  font-size: .95rem; margin: 1rem 0 .9rem;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .85rem 1.7rem; border-radius: 999px; font-size: 1rem;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-dark); box-shadow: var(--shadow); }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.hero-facts {
  display: flex; gap: 2.2rem; list-style: none; margin-top: 2.4rem; flex-wrap: wrap;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { color: var(--navy); font-size: 1.35rem; font-weight: 900; }
.hero-facts span { color: var(--muted); font-size: .85rem; }

.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  width: min(430px, 100%);
  filter: drop-shadow(0 18px 35px rgba(15, 47, 115, 0.14));
}

/* ---------- Sections ---------- */
.section { padding: 5.2rem 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-sub { color: var(--muted); margin-top: .7rem; }
section { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
.about-text p { margin-bottom: 1.1rem; }
.quote {
  border-left: 4px solid var(--green); padding: .7rem 1.1rem;
  background: var(--bg-soft); border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--navy-dark); font-weight: 600;
}
.about-cards { display: grid; gap: 1rem; }
.value-card {
  display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto;
  column-gap: 1rem; padding: 1.15rem 1.3rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.value-card h3 { grid-column: 2; align-self: center; }
.value-card p { grid-column: 2; color: var(--muted); font-size: .95rem; }
.value-icon {
  grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 12px;
  background: rgba(22, 65, 156, 0.08); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 28px; height: 28px; }

/* ---------- Karten-Grids ---------- */
.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9D7EF; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(22,65,156,.10), rgba(59,181,74,.12));
  color: var(--navy); display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: .5rem; color: var(--navy-dark); }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- Vorteile ---------- */
.benefit {
  padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.benefit::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--navy) 55%, var(--red));
  opacity: 0; transition: opacity .25s;
}
.benefit:hover::after { opacity: 1; }
.benefit-num {
  font-weight: 900; font-size: .85rem; color: var(--green); letter-spacing: .1em;
}
.benefit h3 { margin: .35rem 0 .45rem; color: var(--navy-dark); }
.benefit p { color: var(--muted); font-size: .96rem; }

/* ---------- Ablauf (navy) ---------- */
.section-navy {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, #1D4FBC 100%);
  color: #fff;
}
.section-navy h2 { color: #fff; }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem; list-style: none; counter-reset: none;
}
.step {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius); padding: 1.7rem 1.5rem; backdrop-filter: blur(2px);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 1rem;
  background: var(--green); color: #fff; font-weight: 900; font-size: 1.15rem;
}
.step h3 { color: #fff; margin-bottom: .45rem; }
.step p { color: #D6E1F5; font-size: .97rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: stretch; }
.contact-card, .contact-note {
  border-radius: var(--radius); padding: 2rem 1.9rem;
}
.contact-card {
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  border-top: 5px solid var(--green);
}
.contact-card h3 { color: var(--navy); font-size: 1.35rem; }
.contact-owner { color: var(--muted); margin: .2rem 0 1rem; font-size: .95rem; }
address { font-style: normal; font-weight: 600; margin-bottom: 1rem; }
.contact-list { list-style: none; margin-bottom: 1.5rem; }
.contact-list li { padding: .3rem 0; }
.contact-label { font-weight: 700; color: var(--navy-dark); }
.placeholder { color: var(--red); font-weight: 600; }
.contact-note {
  background: var(--bg-soft); border: 1px dashed #B9C9E6;
}
.contact-note h3 { color: var(--navy-dark); margin-bottom: .6rem; }
.contact-note p { color: var(--muted); margin-bottom: 1rem; }
.contact-hint {
  background: #fff; border-left: 4px solid var(--navy);
  padding: .8rem 1rem; border-radius: 0 10px 10px 0; font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C9D6EE; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 2.4rem 0 1.2rem; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand img { background: #fff; border-radius: 10px; padding: 6px; }
.footer-brand p { font-weight: 900; color: #fff; line-height: 1.3; letter-spacing: .03em; }
.footer-slogan { color: #F08A82; font-size: .78rem; letter-spacing: .18em; font-weight: 700; }
.footer-address { font-size: .95rem; }
.footer-nav { display: flex; gap: 1.3rem; }
.link-btn {
  background: none; border: 0; color: #fff; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: var(--green); }
.footer-copy { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.1rem; }
.footer-copy p { font-size: .85rem; color: #8FA3C8; }

/* ---------- To-Top ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 1.3rem; font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transform: translateY(8px); transition: opacity .25s, transform .25s, background .2s;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--green); }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 25, 60, 0.55); }
.modal-box {
  position: relative; background: #fff; border-radius: var(--radius);
  width: min(680px, calc(100% - 2rem)); max-height: 84vh; overflow-y: auto;
  padding: 2.2rem 2.1rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.modal-box h2 { color: var(--navy); margin-bottom: 1rem; }
.modal-box h3 { margin: 1.3rem 0 .4rem; color: var(--navy-dark); font-size: 1.02rem; }
.modal-box p { font-size: .95rem; color: var(--ink); }
.modal-close {
  position: absolute; top: .8rem; right: .9rem; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--navy);
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--red); color: #fff; }
body.modal-open { overflow: hidden; }

/* ---------- Reveal-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .to-top { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; padding: 3.2rem 0; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(320px, 80%); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 3.8rem 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .6rem 1.25rem 1.1rem;
    box-shadow: 0 18px 30px rgba(15, 47, 115, 0.12);
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a.nav-cta { margin-top: .8rem; text-align: center; }
  .brand-text { font-size: .95rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
