/* Online4Business – Stylesheet */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Markenfarben (übernommen von der bisherigen Website) */
  --navy: #293f65;
  --navy-deep: #1c2c48;
  --orange: #e48f09;
  --orange-deep: #e46e1d;
  --mist: #bbc6d1;

  --paper: #f4f6f9;
  --tint: #e8edf2;
  --white: #fff;
  --muted: #56667f;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--orange-deep); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--tint);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; }

.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 3.6rem; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.nav a { font-weight: 500; font-size: 1rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--mist); border-radius: 6px;
  font: 500 0.95rem var(--font-body); color: var(--navy);
  padding: 0.5rem 0.9rem; cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 1rem/1 var(--font-body);
  padding: 0.95rem 1.4rem; border-radius: 6px;
  text-decoration: none; transition: background-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--orange); color: var(--navy-deep); }
.btn-primary:hover { background: var(--orange-deep); color: var(--white); }
.btn-ghost { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--mist); }
.btn-ghost:hover { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-small { padding: 0.7rem 1.05rem; font-size: 0.95rem; }

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--mist); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end; gap: 2rem;
  padding-top: clamp(3.5rem, 9vw, 7rem);
}
.hero-text { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 14ch; }
.hero .lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34rem; margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero-mark { justify-self: end; line-height: 0; }
.hero-mark svg { display: block; height: clamp(18rem, 44vw, 34rem); width: auto; }

.mark-shape { fill: var(--navy); }
.mark-text { fill: var(--white); font-family: Arial, Helvetica, sans-serif; }

/* Der einzige Auftritt: die 4 wächst aus der Grundlinie, danach erscheint die Schrift im Stamm */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .mark-shape { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; transform-origin: 50% 100%; }
  .hero-mark .mark-text { animation: appear 0.6s ease-out 0.75s both; }
}
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Abschnitte ---------- */

.section { padding-block: var(--section); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); }
.split-aside { align-self: start; position: sticky; top: 7rem; }
.split-aside h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.split-aside p { color: var(--muted); margin-top: 1.25rem; max-width: 22rem; }

/* Leistungen */

.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--mist); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem;
  padding-block: 2rem 1.75rem; border-top: 1px solid var(--mist);
}
.service h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); font-weight: 600; }
.service p { margin: 0; max-width: 38rem; }
.service .detail { color: var(--muted); font-size: 1rem; margin-top: 0.6rem; }

/* Übernahmen */

.takeover { background: var(--tint); }
.takeover h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); max-width: 18ch; }
.takeover-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); margin-top: 2.5rem; }
.takeover-body > p { font-size: 1.2rem; max-width: 36rem; }
.welcome {
  background: var(--white); border-left: 4px solid var(--orange);
  padding: 1.6rem 1.75rem; border-radius: 0 8px 8px 0; align-self: start;
}
.welcome h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6rem; }
.welcome p { margin: 0; font-size: 1.05rem; }

/* Über uns */

.about-text { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; max-width: 40rem; }
.about-text p:last-child { margin-bottom: 0; }

/* Kontakt */

.contact { background: var(--navy-deep); color: var(--white); }
.contact h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.contact .intro { color: var(--mist); max-width: 34rem; margin-top: 1.25rem; }
.contact .intro a:hover { color: var(--orange); }
.contact-mail {
  display: inline-block; margin-top: 2.5rem;
  font: 600 clamp(2rem, 6vw, 4.5rem)/1.05 var(--font-display); letter-spacing: -0.02em;
  color: var(--orange); text-decoration: none; overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--white); }
.contact-details {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start;
  gap: 1.25rem 4rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgb(187 198 209 / 0.25);
}
.contact-details dt { color: var(--mist); font-size: 0.95rem; }
.contact-details dd { margin: 0.2rem 0 0; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--orange); }

/* ---------- Fußzeile ---------- */

.site-footer { background: var(--paper); font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; padding-block: 2.5rem; }
.site-footer img { height: 2.6rem; width: auto; display: block; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 1.5rem; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Rechtstexte ---------- */

.legal { padding-block: clamp(3rem, 7vw, 5rem) var(--section); }
.legal-inner { max-width: 44rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.4rem; }
.legal .subtitle { color: var(--muted); margin-bottom: 3rem; }
.legal h2 { font-size: 1.6rem; margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--mist); }
.legal h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { font-size: 1.05rem; }
.legal ul, .legal ol { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .stand { color: var(--muted); margin-top: 3rem; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 2rem; margin: 0 0 2rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* ---------- Responsiv ---------- */

@media (max-width: 960px) {
  .split, .takeover-body { grid-template-columns: minmax(0, 1fr); }
  .split-aside { position: static; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--white); border-bottom: 1px solid var(--mist);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 0.7rem 0; font-size: 1.1rem; }
  .nav .btn { justify-content: center; }

  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-text { padding-bottom: 2.5rem; }
  .hero-mark { justify-self: start; }
  .hero-mark svg { height: 14rem; }

  .contact-details { grid-template-columns: minmax(0, 1fr); }
  .site-footer ul { margin-left: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: 0.6rem; }
}

.legal ul.enum { list-style: none; padding-left: 0; }
