/*
 * 4TS – design system for the public site.
 * Brand: lime #b1c903, grey #828479, claim "Verbindlich besser.", font Blender.
 * Contrast rules (WCAG 2.1 AA): lime is a surface/accent colour and display colour on dark
 * backgrounds only; on light backgrounds green text uses --lime-strong (large headings,
 * >= 3:1) or --lime-ink (body text and links, >= 4.5:1).
 */

/* ---------- Fonts ---------- */
@font-face { font-family: "Blender"; src: url("../fonts/Blender-Book.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Blender"; src: url("../fonts/Blender-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Blender"; src: url("../fonts/Blender-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Blender"; src: url("../fonts/Blender-Heavy.woff") format("woff"); font-weight: 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --lime: #b1c903;
  --lime-hover: #bdd226;
  --lime-strong: #7f9200;   /* large green text on light backgrounds (3.5:1) */
  --lime-ink: #566300;      /* green body text and links on light backgrounds (6.6:1) */
  --lime-wash: #f3f7d9;
  --gray: #828479;          /* brand grey: large headings only (3.8:1) */
  --gray-ink: #6b6d63;      /* small secondary text (5.3:1) */
  --ink: #3d3e38;           /* body text (10.8:1) */
  --night: #24261f;         /* dark sections and footer bar */
  --night-soft: #2f312a;
  --on-night: #c9cbbf;      /* text on dark (9.3:1) */
  --surface: #f4f5ef;
  --line: #dfe1d6;
  --white: #ffffff;
  --info: #24527a;
  --warn: #9c4f00;
  --crit: #b3261e;
  --ok: #3f7a1f;

  --font: "Blender", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgb(36 38 31 / 6%), 0 6px 20px rgb(36 38 31 / 8%);
  --container: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3rem, 8vw, 6rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

a { color: var(--lime-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--night); }

:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; border-radius: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

/* headings are never hyphenated; site.js makes a heading smaller when a word does not fit the line */
h1, h2, h3, h4 { font-weight: 900; line-height: 1.1; margin: 0 0 .6em; color: var(--night); letter-spacing: .01em; overflow-wrap: break-word; hyphens: none; }
.word { white-space: nowrap; }   /* set by site.js around words like "Business-Internet" */
h1 { font-size: clamp(2.25rem, 6vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--night); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

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

/* ---------- Two-tone heading (signature of the 2016 brand) ---------- */
.tt { display: block; }
.tt__gray { display: block; color: var(--gray); }
.tt__green { display: block; color: var(--lime-strong); }
.section--dark .tt__gray, .hero .tt__gray { color: var(--on-night); }
.section--dark .tt__green, .hero .tt__green { color: var(--lime); }

.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime-ink);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--lime); }

.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.55; max-width: 44rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 2.9rem; padding: .7rem 1.35rem;
  font: 700 1rem/1.1 var(--font); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--lime); color: var(--night); }
.btn--primary:hover { background: var(--lime-hover); color: var(--night); }
.btn--secondary { border-color: currentColor; color: var(--night); background: transparent; }
.btn--secondary:hover { background: var(--night); color: var(--white); border-color: var(--night); }
.section--dark .btn--secondary, .hero .btn--secondary { color: var(--white); }
.section--dark .btn--secondary:hover, .hero .btn--secondary:hover { background: var(--white); color: var(--night); border-color: var(--white); }
.btn--dark { background: var(--night); color: var(--white); }
.btn--dark:hover { background: var(--night-soft); color: var(--lime); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.75rem; }
.btn-row--flush { margin-top: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Notice banner (Störungsmeldung) ---------- */
.notice { color: var(--white); background: var(--info); }
.notice--warning { background: var(--warn); }
.notice--critical { background: var(--crit); }
.notice__inner { display: flex; gap: .9rem; align-items: flex-start; padding-block: .85rem; }
.notice__icon { width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.notice__title { font-weight: 700; margin: 0; }
.notice__text { margin: .15rem 0 0; }
.notice__meta { font-size: .875rem; opacity: .9; margin: .25rem 0 0; }
.notice a { color: inherit; font-weight: 700; }

/* ---------- Header ---------- */
.topbar { background: var(--night); color: var(--on-night); font-size: .9rem; }
.topbar__inner { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; min-height: 2.4rem; flex-wrap: wrap; }
.topbar a { color: var(--on-night); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--lime); }
.topbar svg { width: 1rem; height: 1rem; }
.topbar__phone { margin-right: auto; font-weight: 700; color: var(--white) !important; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 200px; height: auto; display: block; }

.nav-toggle {
  margin-left: auto; display: none; align-items: center; gap: .5rem;
  background: none; border: 2px solid var(--night); border-radius: var(--radius);
  padding: .45rem .75rem; font: 700 .95rem var(--font); text-transform: uppercase; color: var(--night); cursor: pointer;
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem;
  font-weight: 700; font-size: 1.02rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; color: var(--night);
  border-radius: var(--radius);
}
.main-nav a:hover { background: var(--surface); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.main-nav a .ext { width: .85em; height: .85em; opacity: .7; }
.main-nav__service { display: none; }
@media (max-width: 62rem) { .main-nav__service { display: block; } }
.main-nav .btn { margin-left: .5rem; }

/* Without JavaScript the menu simply stacks below the logo; with JavaScript it becomes a toggle. */
@media (max-width: 62rem) {
  .site-header__inner { flex-wrap: wrap; }
  .main-nav { width: 100%; margin-left: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 0 1.25rem; gap: 0; }
  .main-nav a { display: flex; padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .main-nav__service a { font-size: .95rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); }
  .main-nav .main-nav__service svg { width: 1.1rem; height: 1.1rem; color: var(--lime-ink); }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--lime); padding-left: .9rem; }
  .main-nav .btn { margin: 1rem 0 0; justify-content: center; border-bottom: 0; }
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .main-nav ul { padding-inline: var(--gutter); }
  .js .main-nav.is-open { display: block; }
  .topbar__inner { justify-content: space-between; gap: .75rem; }
  .topbar__links { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(3.5rem, 10vw, 7rem); max-width: 52rem; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { color: var(--on-night); }
.hero__mark {
  position: absolute; z-index: 0; right: -6%; bottom: -18%; width: min(48vw, 34rem); opacity: .16;
  pointer-events: none;
}
.hero--compact .hero__inner { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

/* Hero with photo: on wide screens the photo fills the right half and fades into the dark
   background, so the text always sits on solid dark; on narrow screens the photo lies
   behind the text under a dark veil (text contrast stays >= 4.5:1). */
.hero__photo { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 50%; }
.hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--night) 0%, var(--night) 2%, rgb(36 38 31 / 55%) 22%, rgb(36 38 31 / 0%) 55%);
}.hero--photo .hero__inner { max-width: calc(50% - var(--gutter)); }
@media (max-width: 52rem) {
  .hero__photo { width: 100%; }
  .hero__photo::after { background: rgb(36 38 31 / 86%); }
  .hero--photo .hero__inner { max-width: none; }
}
.hero--compact h1 { font-size: clamp(2rem, 5vw, 3.25rem); }

.status-pill {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 2rem;
  padding: .45rem .9rem; border: 1px solid rgb(201 203 191 / 35%); border-radius: 999px;
  color: var(--white); text-decoration: none; font-size: .95rem;
}
.status-pill:hover { border-color: var(--lime); color: var(--white); }
.status-pill__dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(177 201 3 / 25%); }
.status-pill--warning .status-pill__dot { background: #f0a030; box-shadow: 0 0 0 4px rgb(240 160 48 / 25%); }
.status-pill--critical .status-pill__dot { background: #ff6b5e; box-shadow: 0 0 0 4px rgb(255 107 94 / 25%); }

.breadcrumb { font-size: .9rem; margin-bottom: 1.25rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: var(--on-night); }
.breadcrumb [aria-current] { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--night); color: var(--on-night); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Dark section with a decorative background photo under a strong veil. */
.section--photo { position: relative; isolation: isolate; overflow: hidden; }
.section__bg { position: absolute; inset: 0; z-index: -1; }
.section__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.section__bg::after { content: ""; position: absolute; inset: 0; background: rgb(36 38 31 / 88%); }

/* Photo next to text. */
.media { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.media__img img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 52rem) { .media { grid-template-columns: 1fr; } }
.section__head--center { margin-inline: auto; text-align: center; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
/* Four cards: 1, 2 or 4 columns, never 3 + 1. */
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 36rem) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

/* ---------- Check list (Vorteile) ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .75rem; align-items: start; }
.checklist svg { width: 1.6rem; height: 1.6rem; color: var(--lime-ink); }
.section--dark .checklist svg { color: var(--lime); }
.checklist--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); column-gap: 2.5rem; }

/* ---------- Feature (icon + title + text) ---------- */
.feature { display: flex; flex-direction: column; gap: .6rem; }
.feature__icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: var(--radius-lg);
  background: var(--lime-wash); color: var(--lime-ink);
}
.feature__icon svg { width: 1.75rem; height: 1.75rem; }
.section--dark .feature__icon { background: rgb(177 201 3 / 14%); color: var(--lime); }
.feature h3 { margin: .35rem 0 0; }
.feature p { margin: 0; }

/* ---------- Product card ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem; box-shadow: var(--shadow);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--lime); }
/* Accent colours of the 2016 product lines (SIP Single green, PBX blue, Gateways red). */
.card--blue::before { background: #1895d7; }
.card--red::before { background: #eb493d; }
.card--gray::before { background: var(--gray); }
.card__icon { width: 2.6rem; height: 2.6rem; color: var(--lime-ink); }
.card h3 { font-size: 1.55rem; font-weight: 900; text-transform: uppercase; margin: 0; }
.card__kicker { font-size: 1rem; font-weight: 500; color: var(--gray-ink); margin: -.6rem 0 0; }
.card .checklist { gap: .55rem; font-size: 1rem; }
.card .checklist li { grid-template-columns: 1.25rem 1fr; gap: .55rem; }
.card .checklist svg { width: 1.25rem; height: 1.25rem; margin-top: .15rem; }
.card__foot { margin-top: auto; padding-top: .5rem; }
.card--link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
/* Card with a photo across the top; the accent stripe stays above the photo. */
.card--media { padding-top: 0; overflow: hidden; }
.card--media::before { z-index: 1; }
.card__media { margin: 0 -1.5rem; overflow: hidden; }
.card__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.card--link:hover .card__media img { transform: scale(1.03); }
.grid--4 .card h3 { font-size: 1.2rem; }
.card--link:hover { transform: translateY(-2px); color: inherit; box-shadow: 0 2px 4px rgb(36 38 31 / 8%), 0 12px 28px rgb(36 38 31 / 12%); }

/* ---------- Tariff table ---------- */
.tariff { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tariff__head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.tariff__head h3 { margin: 0; }
.tariff__head p { margin: .35rem 0 0; color: var(--gray-ink); font-size: .95rem; }
.tariff table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tariff th, .tariff td { padding: .8rem 1.5rem; text-align: left; border-bottom: 1px solid var(--line); }
.tariff thead th { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-ink); background: var(--surface); }
.tariff td.num, .tariff th.num { text-align: right; }
.tariff tbody tr:last-child td, .tariff tbody tr:last-child th { border-bottom: 0; }
.tariff tbody th { font-weight: 700; }
.tariff .cc { display: inline-block; min-width: 2.2rem; margin-right: .6rem; padding: .05rem .35rem; border-radius: 3px; background: var(--surface); font-size: .85rem; text-align: center; }
.tariff__foot { margin: 0; padding: 1rem 1.5rem; background: var(--surface); font-size: .9rem; color: var(--gray-ink); }

/* ---------- Downloads ---------- */
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.download {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
}
.download:hover { border-color: var(--lime-strong); color: var(--ink); }
.download svg { width: 2rem; height: 2rem; color: var(--crit); }
.download__title { display: block; font-weight: 700; color: var(--night); }
.download__meta { display: block; font-size: .875rem; color: var(--gray-ink); }
.download__arrow { margin-left: auto; color: var(--lime-ink) !important; width: 1.4rem !important; height: 1.4rem !important; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--lime-strong);
}
.section--dark .steps li::before { color: var(--lime); }
.steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.steps p { margin: 0; }

/* ---------- Call-to-action band ---------- */
.cta { background: var(--lime); color: var(--night); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 3rem); }
.cta h2 { margin: 0; color: var(--night); font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta p { margin: .3rem 0 0; font-size: 1.1rem; }
.cta__phone { font-weight: 900; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--night); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.cta__phone svg { width: 1.6rem; height: 1.6rem; }
.cta a:hover { color: var(--night); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 700; color: var(--night); }
.field .req { color: var(--crit); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #a9ab9f; border-radius: var(--radius); padding: .7rem .85rem; min-height: 2.9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--lime); outline-offset: 0; border-color: var(--night); }
.field__hint { font-size: .875rem; color: var(--gray-ink); }
.field__error { font-size: .9rem; color: var(--crit); font-weight: 700; }
.field--invalid input, .field--invalid textarea { border-color: var(--crit); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: inline-flex; align-items: center; gap: .5rem; margin-right: 1.5rem; font-weight: 400; }
.choice input { width: 1.2rem; height: 1.2rem; accent-color: var(--lime-ink); }
.consent { display: grid; grid-template-columns: 1.2rem 1fr; gap: .65rem; align-items: start; font-size: .95rem; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--lime-ink); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact card ---------- */
.contact-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; display: grid; gap: 1.25rem; }
.contact-card h2 { font-size: 1.4rem; margin: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.contact-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .75rem; align-items: start; }
.contact-list svg { width: 1.4rem; height: 1.4rem; color: var(--lime-ink); margin-top: .1rem; }
.contact-list a { color: var(--night); font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 4px solid var(--lime); font-size: .98rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (max-width: 56rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo { width: 210px; height: auto; margin-bottom: 1rem; }
.site-footer h2 { font-size: .9rem; letter-spacing: .12em; margin-bottom: .9rem; color: var(--night); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--lime-ink); text-decoration: underline; }
.site-footer__bar { background: var(--night); color: var(--on-night); font-size: .9rem; }
.site-footer__bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1rem; }
.site-footer__bar a { color: var(--on-night); }
.site-footer__bar a:hover { color: var(--lime); }
.ext-icon { width: .8em; height: .8em; vertical-align: -.05em; margin-left: .2em; opacity: .75; }

/* ---------- Chat launcher (K12) ---------- */
.chat-launcher {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.1rem;
  background: var(--night); color: var(--white); border: 0; border-radius: 999px; box-shadow: var(--shadow);
  font: 700 .95rem var(--font); letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
.chat-launcher svg { width: 1.3rem; height: 1.3rem; color: var(--lime); }
.chat-launcher:hover { background: var(--night-soft); }

/* ---------- Prose (rich text from the editor) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }

/* ---------- Error page ---------- */
.error-page { max-width: 40rem; margin: 15vh auto; padding: 0 1rem; text-align: center; }
.error-code { font-size: 3rem; font-weight: 900; color: var(--lime-strong); margin: 0; }
.error-detail { text-align: left; white-space: pre-wrap; background: var(--surface); padding: 1rem; }

/* ---------- M0 skeleton page ---------- */
.skeleton { max-width: 40rem; margin: 15vh auto; padding: 0 1rem; text-align: center; }
.skeleton h1 { margin-bottom: 0; color: var(--gray); }
.skeleton p:first-of-type { margin-top: 0; font-weight: 700; color: var(--lime-ink); letter-spacing: .05em; }
.skeleton-note { font-size: .875rem; color: var(--gray-ink); }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .site-header, .chat-launcher, .cta, .notice, .hero__mark { display: none !important; }
  .hero, .section--dark { background: none; color: #000; }
  body { font-size: 11pt; }
  a { color: #000; }
}

/* ---------- Blocks from the CMS (M2) ---------- */
.narrow { max-width: 52rem; }
.prose--compact { margin-bottom: 1.5rem; font-size: 1rem; }
.prose--compact h3 { font-size: 1.05rem; margin: 1.1em 0 .35em; text-transform: none; }
.prose--compact ul { margin: 0 0 .5em; }
.prose a { color: var(--lime-ink); }
.prose { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.section--dark .prose a { color: var(--lime); }
.card__facts { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; margin: 0; font-size: .95rem; }
.card__facts dt { font-weight: 700; }
.card__facts dd { margin: 0; }
.card__price { margin: 0; font-weight: 700; color: var(--night); }
.preview-bar { background: var(--warn); color: var(--white); text-align: center; padding: .5rem 1rem; font-weight: 700; }
.preview-bar a { color: var(--white); }

.form-message { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-lg); margin-bottom: 1.25rem; }
.form-message svg { width: 1.6rem; height: 1.6rem; flex-shrink: 0; }
.form-message--ok { background: #eef6e8; color: #24451a; }
.form-message--ok svg { color: var(--ok); }
.form-message--error { background: #fdecea; color: #6d1712; }
.form-message--error svg { color: var(--crit); }

.service-status { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.4rem; border-radius: var(--radius-lg); border: 1px solid #cfe3c0; background: #eef6e8; margin-bottom: 2rem; }
.service-status__icon { width: 2.4rem; height: 2.4rem; color: var(--ok); }
.service-status__title { margin: 0 0 .25rem; font-size: 1.3rem; font-weight: 900; color: var(--night); }
.service-status p { margin: 0 0 .25rem; }
.service-status__meta { font-size: .9rem; color: var(--gray-ink); }
.service-status--info { background: #e8f0f7; border-color: #c4d6e6; }
.service-status--info .service-status__icon { color: var(--info); }
.service-status--warning { background: #fff3e0; border-color: #f0d3a6; }
.service-status--warning .service-status__icon { color: var(--warn); }
.service-status--critical { background: #fdecea; border-color: #f2c1bc; }
.service-status--critical .service-status__icon { color: var(--crit); }
.service-help { margin-bottom: 2rem; }
.history__title { font-size: 1.05rem; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pill-site { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--white); background: var(--info); }
.pill-site--warning { background: var(--warn); }
.pill-site--critical { background: var(--crit); }
.muted { color: var(--gray-ink); }

/* Quotes block */
.quote { position: relative; margin: 0; padding: 2.25rem 1.5rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--lime); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1rem; }
.quote::before { content: "\201E"; position: absolute; top: -.35rem; left: 1.1rem; font: 900 3.5rem/1 var(--font); color: var(--lime-strong); }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--night); }
.quote blockquote p { margin: 0; }
.quote figcaption { margin-top: auto; font-size: .95rem; }
.quote figcaption strong { display: block; color: var(--night); }
.quote figcaption span { color: var(--gray-ink); }
.quotes--single { max-width: 52rem; }
.quotes--single .quote blockquote { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.section--dark .quote { background: var(--night-soft); border-color: #45473e; border-top-color: var(--lime); }
.section--dark .quote blockquote, .section--dark .quote figcaption strong { color: var(--white); }
.section--dark .quote figcaption span { color: var(--on-night); }

/* Image and text rows (showcase block) */
.showcase { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.showcase__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.showcase__row--flip .showcase__img { order: 2; }
.showcase__img img { display: block; width: 100%; height: auto; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--lime); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.showcase__text h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .7rem; }
.showcase__text p { margin: 0 0 .85rem; }
.showcase__text p:last-child { margin-bottom: 0; }
.btn-row--center { justify-content: center; margin-top: clamp(2rem, 5vw, 3rem); }
@media (max-width: 52rem) {
  .showcase__row { grid-template-columns: 1fr; }
  .showcase__row--flip .showcase__img { order: 0; }
}

/* Graphics with transparent background stay on a white card */
.media__img img { background: var(--white); }

/* Product logo in the hero */
.hero__logo { display: block; width: clamp(9rem, 20vw, 12.5rem); height: auto; margin-bottom: 1.25rem; }

/* Quotes: portraits and a photo beside a single quote */
.quote__who { display: block; }
/* customer portrait: large and round, centred at the top of the card */
.quote__portrait { display: flex; justify-content: center; margin-bottom: .25rem; }
.quote__avatar { display: block; width: clamp(7.5rem, 11vw, 9rem); height: clamp(7.5rem, 11vw, 9rem); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--lime), var(--shadow); }
.quote--portrait { padding-top: 1.75rem; }
.quote--portrait blockquote, .quote--portrait figcaption { text-align: center; }
.media--quote .quotes--single { max-width: none; }

/* Call to action with a cut-out person */
.cta__lead { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.cta--image { overflow: hidden; }
.cta__img { flex: none; align-self: flex-end; width: auto; height: 10.5rem; margin-block: -1rem calc(-1 * clamp(2rem, 5vw, 3rem)); }
@media (max-width: 40rem) { .cta__img { display: none; } }

/* Hero with a cut-out shown whole on the right (paragraph sign on the legal pages) */
.hero--cutout { display: flex; align-items: center; min-height: clamp(15rem, 26vw, 21rem); }
.hero__cutout { position: absolute; z-index: 0; top: 10%; bottom: 10%; right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); pointer-events: none; }
.hero__cutout img { display: block; width: auto; height: 100%; filter: drop-shadow(0 1.25rem 1.5rem rgb(0 0 0 / 45%)); }
.hero--cutout .hero__inner { max-width: min(52rem, calc(100% - 14rem)); }
@media (max-width: 52rem) {
  .hero__cutout { right: -1.5rem; opacity: .22; }
  .hero--cutout .hero__inner { max-width: none; }
}
