/*
  XONTO Web-App Template
  Basis-CSS für Header, Footer, Layout und CI.
  App-spezifische Anpassungen bitte in assets/css/app.css ergänzen.
*/

:root {
  --xonto-black: #000000;
  --xonto-blue: #2f80ff;
  --xonto-white: #ffffff;

  --xonto-bg: #ffffff;
  --xonto-surface: #ffffff;
  --xonto-text: #080a10;
  --xonto-muted: #626b7a;
  --xonto-border: rgba(8, 10, 16, 0.12);
  --xonto-border-strong: rgba(8, 10, 16, 0.2);
  --xonto-focus: rgba(47, 128, 255, 0.85);

  --xonto-page-gutter: 24px;
  --xonto-shell-max: 1280px;
  --xonto-content-narrow: 860px;
  --xonto-content-default: 1180px;
  --xonto-content-wide: var(--xonto-shell-max);

  --xonto-header-height: 68px;
  --xonto-footer-min-height: 52px;

  --xonto-radius-sm: 10px;
  --xonto-radius-md: 16px;

  --xonto-font-headline: "Montserrat", "Sora", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --xonto-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--xonto-text);
  background: var(--xonto-bg);
  font-family: var(--xonto-font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--xonto-focus);
  outline-offset: 3px;
}

::selection {
  color: var(--xonto-white);
  background: var(--xonto-blue);
}

.xonto-shell {
  width: min(100% - calc(var(--xonto-page-gutter) * 2), var(--xonto-shell-max));
  margin-inline: auto;
}

.xonto-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 9px 12px;
  color: var(--xonto-white);
  background: var(--xonto-black);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.xonto-skip-link:focus {
  transform: translateY(0);
}

.xonto-noscript {
  width: min(100% - calc(var(--xonto-page-gutter) * 2), var(--xonto-shell-max));
  margin: 14px auto 0;
  padding: 12px 14px;
  color: var(--xonto-black);
  background: rgba(47, 128, 255, 0.12);
  border: 1px solid rgba(47, 128, 255, 0.42);
  border-radius: var(--xonto-radius-sm);
  font-size: 0.95rem;
  font-weight: 650;
}

.xonto-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--xonto-header-height);
  background: var(--xonto-white);
  border-bottom: 1px solid var(--xonto-border);
}

.xonto-header__inner {
  min-height: var(--xonto-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}

.xonto-brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.xonto-brand__logo {
  width: 138px;
  height: auto;
  background: transparent;
}

.xonto-main {
  flex: 1 0 auto;
  padding-block: clamp(18px, 3vw, 34px);
}

.xonto-content {
  width: min(100% - calc(var(--xonto-page-gutter) * 2), var(--xonto-content-max, var(--xonto-content-default)));
  margin-inline: auto;
}

.xonto-content--narrow {
  --xonto-content-max: var(--xonto-content-narrow);
}

.xonto-content--default {
  --xonto-content-max: var(--xonto-content-default);
}

.xonto-content--wide {
  --xonto-content-max: var(--xonto-content-wide);
}

.xonto-content--full {
  width: 100%;
  max-width: none;
  padding-inline: var(--xonto-page-gutter);
}

.xonto-content-placeholder {
  min-height: max(360px, calc(100dvh - var(--xonto-header-height) - var(--xonto-footer-min-height) - 84px));
  display: grid;
  place-items: center;
  color: rgba(8, 10, 16, 0.38);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.xonto-content-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px dashed rgba(8, 10, 16, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.xonto-footer {
  flex: 0 0 auto;
  min-height: var(--xonto-footer-min-height);
  color: rgba(255, 255, 255, 0.72);
  background: var(--xonto-black);
}

.xonto-footer__inner {
  min-height: var(--xonto-footer-min-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding-block: 8px;
}

.xonto-footer__brandline {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.xonto-footer__icon-link {
  flex: 0 0 auto;
  border-radius: var(--xonto-radius-sm);
  text-decoration: none;
}

.xonto-footer__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.xonto-footer__appmeta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  line-height: 1.25;
}

.xonto-footer__appname {
  max-width: 34ch;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xonto-footer__links {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  font-size: 0.78rem;
  line-height: 1.25;
  min-width: 0;
  max-width: 100%;
}

.xonto-footer__links a {
  min-width: 0;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 400;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.xonto-footer__links a:hover {
  color: var(--xonto-white);
}

@media (max-width: 1100px) {
  :root {
    --xonto-page-gutter: 22px;
    --xonto-shell-max: 1120px;
    --xonto-content-default: 1040px;
    --xonto-content-wide: 1120px;
  }
}

@media (max-width: 900px) {
  :root {
    --xonto-page-gutter: 20px;
    --xonto-footer-min-height: 78px;
  }

  .xonto-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 10px;
  }

  .xonto-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --xonto-page-gutter: 18px;
    --xonto-header-height: 62px;
    --xonto-footer-min-height: 88px;
  }

  .xonto-header__inner {
    gap: 11px;
  }

  .xonto-brand__logo {
    width: 112px;
  }

  .xonto-main {
    padding-block: 18px;
  }

  .xonto-content-placeholder {
    min-height: max(300px, calc(100dvh - var(--xonto-header-height) - var(--xonto-footer-min-height) - 54px));
  }

  .xonto-footer__links {
    gap: 8px 12px;
  }
}

@media (max-width: 560px) {
  :root {
    --xonto-page-gutter: 16px;
  }

  .xonto-header__inner {
    gap: 9px;
  }

  .xonto-footer__brandline {
    align-items: flex-start;
  }

  .xonto-footer__appmeta {
    padding-top: 3px;
  }

  .xonto-footer__links {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  :root {
    --xonto-page-gutter: 12px;
    --xonto-header-height: 58px;
    --xonto-footer-min-height: 132px;
  }

  .xonto-brand__logo {
    width: 96px;
  }

  .xonto-footer__appname {
    max-width: 22ch;
  }

  .xonto-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }
}

@media (max-width: 360px) {
  :root {
    --xonto-page-gutter: 10px;
  }

  .xonto-brand__logo {
    width: 88px;
  }

  .xonto-header__inner {
    gap: 8px;
  }

  .xonto-footer__links {
    column-gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
