/* Hermann Solutions – static site, styled after the previous WordPress design.
   Fonts are self-hosted (no Google Fonts requests). */

@font-face {
  font-family: "Roboto Slab";
  src: url("/assets/fonts/roboto-slab.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --mint: #a3dbc2;        /* brand green: headings, buttons, highlighted sections, footer */
  --mint-dark: #7fc4a5;   /* hover */
  --white: #ffffff;
  --light: #f8f8f8;       /* header and alternating sections */
  --text: #7a7a7a;        /* body copy */
  --ink: #000000;         /* sub-headings, text on mint */
  --fb: #3b5998;
  --slab: "Roboto Slab", Georgia, serif;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1300px;
  --gutter: max(16px, 3vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fb); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-family: var(--slab); line-height: 1.25; }
p { margin: 0 0 1em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: #fff; padding: .5rem 1rem; color: #000; }

/* ---------- Header ---------- */

.site-header { background: var(--light); }
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 24px;
  min-height: 64px;
  padding-block: 8px;
}
.header-left { display: flex; align-items: center; gap: 28px; }
.fb-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 3px;
  background: var(--fb); color: #fff;
}
.fb-link svg { width: 16px; height: 16px; fill: currentColor; }
.phone-link {
  display: inline-flex; align-items: center; gap: 12px;
  color: #000; text-decoration: none; font-size: 15px; white-space: nowrap;
}
.phone-link svg { width: 16px; height: 16px; fill: currentColor; }
.phone-link:hover { text-decoration: underline; }
.brand { justify-self: center; }
.brand img { height: 46px; width: auto; }
.header-buttons {
  justify-self: end;
  display: flex; gap: 4px;
  background: var(--mint);
  border-radius: 3px;
  padding: 3px;
}
.header-buttons a {
  color: #fff; text-decoration: none;
  font-family: var(--slab); font-weight: 700; font-size: 13px;
  padding: 7px 14px; border-radius: 2px;
}
.header-buttons a:hover, .header-buttons a[aria-current="page"] { background: var(--mint-dark); }

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

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(380px, 54vw, 760px);
  padding: 60px var(--gutter);
  background: #333 url("/assets/img/hero-buero.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .55);
}
.hero--sundiscret { background-image: url("/assets/img/hero-sundiscret.jpg"); }
.hero__inner { position: relative; max-width: 900px; }
.hero h1 {
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.hero__sub {
  margin: .6em 0 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 34px);
  line-height: 1.35;
  text-transform: uppercase;
}
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.btn {
  display: inline-block;
  background: var(--mint); color: #fff;
  font-family: var(--slab); font-weight: 700; font-size: 14px;
  text-decoration: none;
  padding: 10px 22px; border-radius: 3px;
}
.btn:hover { background: var(--mint-dark); }

/* ---------- Service sections ---------- */

.service { background: var(--white); scroll-margin-top: 0; }
.service--light { background: var(--light); }
.service--mint { background: var(--mint); color: var(--ink); }

.service .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 2.5%;
  align-items: start;
  padding-block: clamp(48px, 7vw, 100px);
}
.service h2 {
  color: var(--mint);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
}
.service--mint h2 { color: #fff; }
.service__sub {
  margin: .3em 0 1.1em;
  font-family: var(--slab);
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 400;
  color: var(--ink);
  text-transform: uppercase;
}
.service__text p { max-width: 70ch; }
.service--mint .service__text p { color: var(--ink); font-weight: 500; }

.features {
  margin: 1.6em 0 0;
  padding-left: 1.9em;
  list-style: disc;
}
.features li { padding-left: .2em; }
.service--mint .features { color: var(--ink); font-weight: 500; }
.service__more { margin-top: 1.6em; }

/* ---------- Gallery (one image at a time, arrows + dots) ---------- */

.gallery { min-width: 0; }
.gallery__stage { position: relative; }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: 0; padding: 0; list-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track li { flex: 0 0 100%; scroll-snap-align: start; }
.gallery__track img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #fff;
}
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px;
  border: 0; background: transparent; cursor: pointer;
  color: #b3b3b3; font-size: 44px; line-height: 1; font-family: var(--sans); font-weight: 300;
}
.gallery__arrow:hover { color: #888; }
.gallery__arrow--prev { left: 0; }
.gallery__arrow--next { right: 0; }
.service--mint .gallery__arrow { color: rgba(255,255,255,.85); }
.gallery__dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; min-height: 8px; }
.gallery__dots button {
  width: 14px; height: 14px; padding: 4px; border: 0; background: transparent; cursor: pointer;
}
.gallery__dots button::before {
  content: ""; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: #000; opacity: .2;
}
.gallery__dots button[aria-current="true"]::before { opacity: .75; }
.no-js .gallery__arrow, .no-js .gallery__dots { display: none; }

/* ---------- Contact ---------- */

.contact { background: var(--white); scroll-margin-top: 0; }
.contact .wrap { padding-block: clamp(48px, 7vw, 100px); }
.contact h2 { color: var(--mint); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; }
.contact .service__sub { margin-bottom: 1.6em; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 2.5%;
}
.contact__lines { display: grid; gap: 14px; margin-top: 1.2em; }
.contact__lines div { display: grid; }
.contact__lines small { font-size: 13px; color: var(--text); }
.contact__lines a {
  font-family: var(--slab); font-size: clamp(18px, 1.8vw, 22px);
  color: #000; text-decoration: none;
}
.contact__lines a:hover { color: var(--mint-dark); text-decoration: underline; }
.contact address { font-style: normal; padding-left: 4%; }
.contact address h3 {
  font-family: var(--sans); font-weight: 400; font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text);
  margin-bottom: 1.2em;
}
.contact address a:hover { color: #000; }

/* ---------- Footer ---------- */

.site-footer { text-align: center; font-size: 13px; }
.site-footer__band { background: var(--mint); color: #fff; padding: 28px var(--gutter); }
.site-footer__band p { margin: 0; }
.site-footer__links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px;
  list-style: none; margin: 0; padding: 22px var(--gutter);
}
.site-footer__links a { color: var(--text); text-decoration: none; }
.site-footer__links a:hover { color: #000; text-decoration: underline; }

/* ---------- Sundiscret landing page ---------- */

.benefits-section { background: var(--white); }
.benefits-section .wrap { padding-block: clamp(48px, 7vw, 90px); }
.benefits {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 2.5%;
}
.benefits h2 { color: var(--mint); font-size: clamp(20px, 2vw, 26px); font-weight: 500; margin-bottom: .4em; }
.photo-section { background: var(--light); }
.photo-section .wrap { padding-block: clamp(48px, 7vw, 90px); }
.photo-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.photo-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Legal pages, 404 ---------- */

.legal .wrap { max-width: 860px; padding-block: clamp(48px, 7vw, 90px); overflow-wrap: break-word; hyphens: auto; }
.legal h1, .notfound h1 { color: var(--mint); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; margin-bottom: 1em; }
.legal h2 { color: #000; font-size: 20px; font-weight: 400; margin: 2em 0 .6em; }
.legal h3 { color: #000; font-size: 17px; font-weight: 400; margin: 1.6em 0 .5em; }
.legal a { color: #000; overflow-wrap: anywhere; }
.legal ul { padding-left: 1.4em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .stand { margin-top: 3em; font-size: 13px; }
.notfound .wrap { padding-block: clamp(64px, 10vw, 140px); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1 / -1; grid-row: 1; }
  .header-left { gap: 16px; }
  .service .wrap, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact address { padding-left: 0; }
}
@media (max-width: 520px) {
  .phone-link span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .phone-link {
    width: 32px; height: 32px; justify-content: center;
    border: 1px solid #ddd; border-radius: 3px; background: #fff;
  }
  .header-buttons a { padding: 7px 11px; }
}
