/*
 * hub.kuono.ch: Auswahl zwischen Webseite, Portal, WebApp und Status.
 *
 * Kein eigenes Design. Werte und Regeln stammen aus kuono-website
 * (src/app/tokens.css und globals.css): Kopf, Wortmarke, Schaltflächen und
 * der Hinweis zur Besuchsmessung wörtlich, die Kacheln nach der Preistabelle
 * (.pricing, .plan) mit Haarlinien statt Schatten. Hier stehen nur die Token,
 * die die Seite braucht; wer einen ändert, ändert ihn zuerst dort.
 *
 * Die Sicherheitsrichtlinie erlaubt nur Stile aus dieser Datei, also keine
 * style-Attribute im HTML.
 */
@font-face {
  font-family: "Inter Tight Variable";
  src: url("/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ku-bg: #ffffff;
  --ku-bg-desk: #f2f2f0;
  --ku-text: #22252a;
  --ku-text-body: #3e4247;
  --ku-text-muted: #5c6167;
  --ku-text-subtle: #6e7379;
  --ku-edge: #22252a;
  --ku-border: #c9c7c3;
  --ku-line: #e6e4e0;
  --ku-accent: #3c4650;
  --ku-accent-soft: #d5d3ce;
  --ku-action: #22252a;
  --ku-action-hover: #34383e;
  --ku-action-active: #14161a;
  --ku-hover-soft: #f4f4f2;
  --ku-swiss: #da291c;
  --ku-font: "Inter Tight Variable", "Inter Tight", system-ui, -apple-system, sans-serif;
  --ku-r-1: 2px;
  --ku-bw-focus: 1.5px;
  --ku-focus: var(--ku-bw-focus) solid var(--ku-accent);
  --ku-focus-offset: 2px;
  --ku-shadow-menu: 0 6px 20px rgba(34, 37, 42, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--ku-bg);
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--ku-font);
  color: var(--ku-text);
  background: var(--ku-bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
p {
  margin: 0;
}
p {
  font-weight: 400;
  line-height: 1.8;
  color: var(--ku-text-body);
}
h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
::selection {
  background: var(--ku-accent-soft);
  color: var(--ku-text);
}
a:focus-visible,
button:focus-visible {
  border-radius: 0;
  outline: var(--ku-focus);
  outline-offset: var(--ku-focus-offset);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(100% - 112px, 1328px);
  margin-inline: auto;
}
.eyebrow {
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ku-text-muted);
}
.lead {
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 56ch;
}
.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  transform: translateY(-150%);
  z-index: 100;
  background: var(--ku-bg);
  padding: 16px;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Kopf wie auf kuono.ch, ohne Navigation: Die Auswahl ist die Seite selbst. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ku-bg);
  border-bottom: 1px solid var(--ku-line);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  height: 88px;
  max-width: 1440px;
  margin: auto;
  padding-inline: 56px;
  display: flex;
  align-items: center;
}
.wordmark {
  font-weight: 600;
  font-size: 2.15rem;
  letter-spacing: -0.05em;
  line-height: 1;
}
.wordmark span {
  color: var(--ku-text-muted);
}

.hub {
  flex: 1;
  padding-block: 96px 112px;
}
.hub h1 {
  margin-top: 18px;
}
.hub .lead {
  margin-top: 20px;
}

/*
 * Die Kacheln: eine Haarlinie um alles und zwischen den Kacheln, wie die
 * Spalten der Preistabelle. Die Linien kommen aus dem 1px-Abstand auf dem
 * Linienton, damit sie bei vier, zwei oder einer Spalte gleich sitzen.
 */
.hub-kacheln {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--ku-border);
  border: 1px solid var(--ku-border);
}
.hub-kachel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 300px;
  padding: 40px 32px 32px;
  background: var(--ku-bg);
  transition: background 180ms ease;
}
.hub-kachel:hover {
  background: var(--ku-hover-soft);
}
.hub-kachel:focus-visible {
  outline-offset: -4px;
}
.hub-host {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ku-text-muted);
}
.hub-kachel h2 {
  margin-top: 16px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.hub-kachel p {
  margin-top: 12px;
  font-size: 0.85rem;
}
.hub-kachel svg {
  margin-top: auto;
  padding-top: 32px;
  box-sizing: content-box;
  transition: transform 180ms ease;
}
.hub-kachel:hover svg {
  transform: translate(3px, -3px);
}

.footer {
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-bottom {
  border-top: 1px solid var(--ku-line);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.69rem;
  color: var(--ku-text-muted);
}
.footer-bottom > div {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-bottom a,
.mess-schalter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.mess-schalter {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
}
.footer-bottom a:hover,
.mess-schalter:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.swiss {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ku-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--ku-action);
  color: var(--ku-bg);
  padding: 18px 24px;
  min-height: 54px;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--ku-action);
  border-radius: var(--ku-r-1);
  transition: background 180ms ease;
}
.ku-button:hover {
  background: var(--ku-action-hover);
}
.ku-button:active {
  background: var(--ku-action-active);
}
.ku-button.small {
  padding: 12px 18px;
  min-height: 46px;
  font-size: 0.76rem;
  gap: 22px;
}
.ku-button.secondary {
  background: transparent;
  color: var(--ku-text);
  border-color: var(--ku-border);
}
.ku-button.secondary:hover {
  background: var(--ku-hover-soft);
}

/* Hinweis zur Besuchsmessung, wie auf kuono.ch unten rechts. */
.mess-hinweis {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  width: min(420px, calc(100% - 48px));
  padding: 20px 22px;
  background: var(--ku-bg);
  border: 1px solid var(--ku-border);
  border-radius: var(--ku-r-1);
  box-shadow: var(--ku-shadow-menu);
  animation: mess-hinweis-in 320ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.mess-hinweis p {
  font-size: 0.8rem;
  line-height: 1.7;
}
.mess-hinweis a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mess-hinweis-aktionen {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mess-hinweis-aktionen .ku-button {
  flex: 1;
  gap: 0;
}
@keyframes mess-hinweis-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1150px) {
  .wrap {
    width: min(100% - 80px, 1328px);
  }
  .header-inner {
    padding-inline: 40px;
  }
  .hub-kacheln {
    grid-template-columns: repeat(2, 1fr);
  }
  .hub-kachel {
    min-height: 240px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    height: 76px;
  }
  .hub {
    padding-block: 64px 80px;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    padding-inline: max(20px, env(safe-area-inset-left));
    height: 72px;
  }
  .wordmark {
    font-size: 1.95rem;
  }
  .hub {
    padding-block: 44px 56px;
  }
  .hub-kacheln {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .hub-kachel {
    min-height: 0;
    padding: 28px 24px 24px;
  }
  .hub-kachel svg {
    padding-top: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .footer-bottom > div {
    flex-wrap: wrap;
    gap: 4px 24px;
  }
  .mess-hinweis {
    right: 12px;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
.hub-zurueck {
  text-decoration: underline;
  text-underline-offset: 4px;
}
