/* Timekeeper — static site styles (system fonts only, no CDN) */

:root {
  --color-bg: #FAFAF9;
  --color-surface: #FFFFFF;
  --color-text: #1C1917;
  --color-text-muted: #78716C;
  --color-border: #E7E5E4;
  --color-accent: #0F766E;
  --color-accent-hover: #0D9488;
  --color-accent-soft: #CCFBF1;
  --color-focus: #0F766E;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 0.75rem;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 12px rgb(0 0 0 / 0.04);
  --pad-x: 1.25rem;
  --max-home: 36rem;
  --max-legal: 40rem;
  --max-shell: 72rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--pad-x);
  top: -100%;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--max-shell);
  margin: 0 auto;
  padding: 1rem var(--pad-x);
}

.wortmarke {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wortmarke:hover {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-main {
  flex: 1;
  width: 100%;
  padding: 2.5rem var(--pad-x) 3rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.25rem var(--pad-x);
}

.site-footer__inner {
  max-width: var(--max-shell);
  margin: 0 auto;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.site-footer__sep {
  margin: 0 0.35rem;
  color: var(--color-border);
}

.home {
  max-width: var(--max-home);
  margin: 0 auto;
  text-align: center;
}

.home__pill {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.home h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.home__lead {
  margin: 0 0 1.75rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.home__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.home__secondary {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.home__secondary a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home__secondary .sep {
  margin: 0 0.4rem;
  color: var(--color-border);
}

.feature-card {
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.35rem;
}

.feature-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.feature-card__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 9999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.btn--primary {
  color: #fff;
  background: var(--color-accent);
}

.btn--primary:hover {
  color: #fff;
  background: var(--color-accent-hover);
}

.btn--primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary[aria-disabled="true"]:hover {
  background: var(--color-accent);
}

.prose {
  max-width: var(--max-legal);
  margin: 0 auto;
}

.prose h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose .meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.prose .notice {
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p {
  margin: 1rem 0;
}

.prose ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose a:hover {
  color: var(--color-accent-hover);
}

.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.05em 0.35em;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.address-block {
  margin: 1rem 0;
  line-height: 1.7;
}

@media (min-width: 768px) {
  :root {
    --pad-x: 2rem;
  }

  .site-main {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .home h1,
  .prose h1 {
    font-size: 2rem;
  }

  .prose h2 {
    font-size: 1.375rem;
  }
}
