@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");
@import url("variables.css");

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--hms-ink);
  background: var(--hms-paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
p {
  margin: 0 0 var(--space-2);
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--hms-amber);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hms-amber);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--hms-amber);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-2);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--hms-navy);
  color: var(--hms-white);
}
.btn-primary:hover {
  background: var(--hms-navy-2);
}
.btn-ghost {
  border-color: var(--hms-line);
  color: var(--hms-navy);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--hms-navy);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hms-line);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 248, 247, 0.9);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav__list {
  display: flex;
  gap: var(--space-3);
}
.nav__list a {
  font-size: var(--fs-2);
  font-weight: 500;
  color: var(--hms-slate);
  position: relative;
  padding: 0.3rem 0;
}
.nav__list a:hover,
.nav__list a.is-active {
  color: var(--hms-navy);
}
.nav__list a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--hms-amber);
}
.lang-switch {
  display: flex;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-1);
}
.lang-switch a {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--hms-line);
  border-radius: 4px;
  color: var(--hms-slate);
}
.lang-switch a.is-active {
  border-color: var(--hms-navy);
  color: var(--hms-navy);
  background: var(--hms-mist);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--hms-navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-5);
  background: var(--hms-navy);
  color: var(--hms-white);
}
.hero__contours {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}
.hero__content {
  position: relative;
}
.hero h1 {
  font-size: var(--fs-7);
  color: var(--hms-white);
  hyphens: auto;
}
.hero p.lead {
  font-size: var(--fs-3);
  color: #c6d3de;
  max-width: 62ch;
  margin-bottom: var(--space-4);
}
.hero__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--hms-white);
}
.hero .btn-ghost:hover {
  border-color: var(--hms-white);
}

/* Signature element: kompakte Logo-Marke über dem Eyebrow */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-6) 0;
}
.section--muted {
  background: var(--hms-mist);
}
.section__head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}
.section__head--wide {
  max-width: none;
}
.section__head h2 {
  font-size: var(--fs-6);
}
.section__head p {
  color: var(--hms-slate);
  font-size: var(--fs-3);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.about__grid > * {
  min-width: 0;
}
.about__points {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.about__point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-2);
}
.about__point .idx {
  font-family: var(--font-mono);
  color: var(--hms-amber);
  font-size: var(--fs-1);
  border: 1px solid var(--hms-amber-soft);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  flex-shrink: 0;
}
.about__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hms-line);
  background: var(--hms-navy);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__figure svg {
  width: 80%;
}
.text-link {
  color: var(--hms-amber);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.text-link:hover {
  text-decoration: underline;
  color: var(--hms-navy);
}
/* Cards grid (services / products) */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.grid > * {
  min-width: 0;
}
/* Cards grid (services / products): 3 Spalten, nutzt dieselben
   Breakpoints wie .grid (siehe responsive.css: 980px -> 2, 720px -> 1) */
.grid--services,
.grid--products {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--hms-white);
  border: 1px solid var(--hms-line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
}
.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--hms-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--hms-navy);
}
.card h3 {
  font-size: var(--fs-3);
  margin-bottom: 0.4rem;
}
.card p {
  color: var(--hms-slate);
  font-size: var(--fs-2);
  margin-bottom: 0;
}
.card__image-link {
  display: block;
  margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) var(--space-3);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.card__image-link:hover .card__image {
  transform: scale(1.05);
}
.card__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--hms-slate);
  font-size: var(--fs-2);
  line-height: 1.6;
}

.card__list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  font-weight: 700;
}
/* Contact */
.contact__grid {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact__info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact__info-item span.label {
  font-family: var(--font-mono);
  font-size: var(--fs-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hms-slate);
}
.contact__info-item span.value {
  font-size: var(--fs-3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hms-navy);
  color: #c6d3de;
  padding: var(--space-5) 0 var(--space-3);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: var(--space-2);
}
.footer__brand img {
  width: 60%;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fb4c4;
  margin-bottom: var(--space-2);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__links a {
  font-size: var(--fs-2);
}
.footer__links a:hover {
  color: var(--hms-white);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #7e93a4;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero a {
  color: var(--hms-amber);
  font-weight: 600;
  text-decoration: none;
}

.hero a:hover {
  text-decoration: underline;
}
.about-slider {
  position: relative;

  overflow: hidden;

  border-radius: 14px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  height: 100%;
}

.about-slider .about-slide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-slider .about-slide.active {
  display: block;
}

.slider-btn {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 42px;

  height: 42px;

  border: none;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.45);

  color: white;

  font-size: 22px;

  cursor: pointer;

  transition: 0.25s;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* -------- Navigationspunkte -------- */

.slider-dots {
  position: absolute;

  bottom: 18px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  gap: 10px;
}

.dot {
  width: 12px;

  height: 12px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.55);

  cursor: pointer;

  transition: 0.25s;
}

.dot:hover {
  background: white;
}

.dot.active {
  background: #d98a2b;

  transform: scale(1.2);
}
