/* ==========================================================================
   Systemberatung Mainz — Stylesheet
   Modernisiert 2026. Farbwelt und Grundcharakter der Originalseite
   bewusst beibehalten (Rot/Petrol/Grau), Code und Layout neu aufgebaut.
   ========================================================================== */

@font-face {
  font-family: "Adagio Sans";
  src: url("../fonts/Adagio_Sans/Adagio_Sans_Light/Adagio_Sans-Light-2a6b8061ba.woff") format("woff"),
       url("../fonts/Adagio_Sans/Adagio_Sans_Light/Adagio_Sans-Light-9c2f1d895c.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Adagio Sans";
  src: url("../fonts/Adagio_Sans/Adagio_Sans_Medium/Adagio_Sans-Medium-62317f7baa.woff") format("woff"),
       url("../fonts/Adagio_Sans/Adagio_Sans_Medium/Adagio_Sans-Medium-3b55b78f3a.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Farben aus dem bestehenden Auftritt */
  --c-red: #980404;
  --c-red-dark: #700303;
  --c-teal: #358d88;
  --c-teal-dark: #296b68;
  --c-teal-darker: #1f4f4d;
  --c-teal-light: #85bab7;
  --c-teal-pale: #99d4d0;
  --c-grey: #f2f2f2;
  --c-ink: #201b1a;
  --c-white: #fff;

  --font-body: "Adagio Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow-hard: 8px 8px 0 0 rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --header-h: 84px;
}

/* ---------- Reset / Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.65;
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1.1em; }
a { color: var(--c-teal); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-teal-dark); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
li { margin-bottom: .5em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-white);
  color: var(--c-ink);
  padding: .75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--c-teal-pale);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  padding: .95em 2em;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--c-white); }

.btn-primary {
  background: var(--c-teal);
  color: var(--c-white);
  box-shadow: var(--shadow-hard);
}
.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 0 rgba(0, 0, 0, 0.28);
}
.btn-primary:active {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255, 255, 255, .6);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: var(--c-white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--c-red);
  border-bottom: 1px solid rgba(0, 0, 0, .22);
  transition: box-shadow .25s ease, padding .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--c-white);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.2rem;
}
.brand:hover { color: var(--c-white); opacity: .9; }
.brand svg { width: 46px; height: auto; flex: none; }
.brand small {
  display: block;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  opacity: .85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--c-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .95rem;
  font-weight: 700;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, opacity .2s ease;
}
.nav-links a:hover { border-color: rgba(255, 255, 255, .6); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.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); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-red-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.is-open { max-height: 320px; }
  .nav-links a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
  }
}

/* ---------- Sections (general) ---------- */
.section { padding: 6rem 0; }
.section--tight { padding: 4rem 0; }
.section-grey { background: var(--c-grey); }

.section-heading {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.85rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-red);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--c-white);
  text-align: center;
  background: linear-gradient(0deg, rgba(15, 40, 39, .55), rgba(15, 40, 39, .1) 55%),
              url("../images/mainz_siilhouette-f1d0101675.png") no-repeat center bottom / cover;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .88rem;
  opacity: .85;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-weight: 300;
  letter-spacing: .01em;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  margin-bottom: 1rem;
}
.hero h1 b { font-weight: 700; }
.hero .tagline {
  display: block;
  font-size: clamp(1.15rem, 2.3vw, 1.35rem);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: .9;
  margin-top: .5rem;
}
.hero .btn { margin-top: 2.5rem; }

/* ---------- Profil / Intro ---------- */
.intro {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.intro p { font-size: 1.2rem; }
.intro strong { color: var(--c-red); }
.intro .highlight {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-red);
  margin: 1.75rem auto;
}
.intro .phone {
  font-size: 1.35rem;
}
.intro .phone strong {
  font-size: 1.55rem;
  letter-spacing: .02em;
}

/* ---------- Leistungen ---------- */
.services-lead {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
  color: #4a4a4a;
  font-size: 1.1rem;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
.service-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-soft);
}
.service-card h3 {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.15rem;
  color: var(--c-teal-dark);
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--c-grey);
}
.service-card ul { list-style: none; }
.service-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.08rem;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 8px;
  height: 8px;
  background: var(--c-red);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.service-card li.is-note {
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #ddd;
}
.services-footnote {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-red);
}

/* ---------- Auftraggeber ---------- */
.clients {
  text-align: center;
}
.clients img { margin: 0 auto; }

/* ---------- Fernwartung ---------- */
.remote-wrap {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .remote-wrap { grid-template-columns: 1.1fr .9fr; text-align: left; }
}
.remote-intro { text-align: center; }
@media (min-width: 900px) { .remote-intro { text-align: left; } }
.remote-intro h3 { color: var(--c-red); font-size: 1.15rem; text-transform: none; }

.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.6rem 3rem;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--c-teal);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 1rem; top: 2rem; bottom: 0;
  width: 1px;
  background: rgba(53, 141, 136, .3);
}
.steps li:last-child::after { display: none; }

.remote-disclaimer {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--c-white);
  border-left: 4px solid var(--c-red);
  font-size: .85rem;
  color: #555;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.remote-disclaimer strong { color: var(--c-ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-teal-dark);
  color: var(--c-white);
  padding: 3.5rem 0 2rem;
  font-size: .95rem;
}
.footer-brand {
  color: var(--c-teal-pale);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}
.footer-contact {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}
.site-footer a { color: var(--c-white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: var(--c-teal-pale); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.footer-nav a { text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { text-decoration: underline; }

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .8rem;
  color: rgba(255, 255, 255, .65);
}

/* ---------- Legal / simple content pages ---------- */
.page-hero {
  margin-top: var(--header-h);
  background: var(--c-red);
  color: var(--c-white);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 2rem;
  margin: 0;
}
.legal {
  padding: 3.5rem 0 5rem;
  max-width: 48rem;
  margin: 0 auto;
}
.legal h2 {
  font-size: 1.2rem;
  color: var(--c-red);
  margin-top: 2.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.legal h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.legal h4 { font-size: .95rem; margin-top: 1.4rem; margin-bottom: .5rem; color: var(--c-teal-dark); text-transform: uppercase; letter-spacing: .03em; }
.legal p { font-size: .95rem; color: #333; }
.legal em { color: #666; font-size: .88rem; }
.legal a { word-break: break-word; }

.status-page {
  margin-top: var(--header-h);
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: var(--c-teal);
  color: var(--c-white);
}
.status-page .container { max-width: 40rem; }
.status-page h1 { text-transform: uppercase; letter-spacing: .05em; }
.status-page .btn-primary { margin-top: 1.5rem; box-shadow: 8px 8px 0 0 rgba(0,0,0,.2); }
