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

:root {
  --color-bg: #020617;
  --color-surface: #0F172A;
  --color-text: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-border: #1E293B;
  --color-accent: #38BDF8;
  --color-accent-hover: #7DD3FC;
  --color-accent-soft: #0C4A6E;
  --color-focus: #38BDF8;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 0.75rem;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  --pad-x: 1.25rem;
  --max-home: 40rem;
  --max-legal: 40rem;
  --max-shell: 72rem;
  --max-insights: 72rem;
  --phone-radius: 1.75rem;
  --phone-radius-inner: 1.25rem;
  --phone-bezel: 0.55rem;
  --phone-width: 11.5rem;
  --phone-width-lg: 13.5rem;
}

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

html {
  color-scheme: dark;
  -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);
}

.home__disclaimer {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  text-align: left;
  margin: 0 0 0.5rem;
}

@media (min-width: 36rem) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card--nutzen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
}

.feature-card--nutzen .feature-card__icon {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.feature-card__body {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.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: var(--color-bg);
  background: var(--color-accent);
}

.btn--primary:hover {
  color: var(--color-bg);
  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);
}

.btn--soon {
  margin: 0;
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.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;
  }
}



/* —— App-Einblicke (docs/SCREENSHOTS.md) —— */
.app-insights {
  width: 100%;
  max-width: var(--max-insights);
  margin: 3rem auto 0;
  padding: 2.5rem var(--pad-x) 0;
  border-top: 1px solid var(--color-border);
}

.app-insights__intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.app-insights__intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.app-insights__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.app-insights__scroller {
  display: flex;
  justify-content: center;
  justify-content: safe center;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-bottom: 0.5rem;
  /* Mobile: seitlicher Inset, damit Snap-Karten optisch mittiger sitzen */
  padding-inline: max(0px, calc((100% - var(--phone-width)) / 2));
  scroll-padding-inline: max(0px, calc((100% - var(--phone-width)) / 2));
}

.app-insights__scroller:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.app-insights__item {
  flex: 0 0 auto;
  width: var(--phone-width);
  margin: 0;
  scroll-snap-align: center;
}

.phone-frame {
  background: #000;
  border: 1px solid var(--color-border);
  border-radius: var(--phone-radius);
  padding: var(--phone-bezel);
  box-shadow: var(--shadow-card);
}

.phone-frame img,
.phone-frame picture {
  display: block;
  width: 100%;
  height: auto;
}

.phone-frame img {
  border-radius: var(--phone-radius-inner);
}

.app-insights__item figcaption {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  text-align: center;
}

.app-insights__hint {
  display: block;
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (min-width: 768px) {
  .app-insights {
    margin-top: 3.5rem;
    padding-top: 3rem;
  }

  .app-insights__intro h2 {
    font-size: 1.375rem;
  }

  .app-insights__scroller {
    gap: 1.25rem;
    /* Desktop: Gruppe zentrieren ohne Carousel-Inset (sonst Overflow) */
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .app-insights__item {
    width: var(--phone-width-lg);
  }

  .app-insights__hint {
    display: none;
  }
}


/* Theme toggle + shot visibility (§13) */
.app-insights[data-app-shots="light"] .shot--dark,
.app-insights[data-app-shots="dark"] .shot--light {
  display: none !important;
}
.app-insights[data-app-shots="light"] .shot--light,
.app-insights[data-app-shots="dark"] .shot--dark {
  display: block;
}
.app-insights .shot[hidden] {
  display: none !important;
}

.app-insights__theme {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 0.35rem;
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
  margin: 0 auto 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
}

.app-insights__theme-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  user-select: none;
}

.app-insights__theme-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.95rem;
  border: none;
  border-radius: 9999px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
}

.app-insights__theme-btn[aria-pressed="true"] {
  color: var(--color-bg);
  background: var(--color-accent);
}

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

.phone-frame .shot img {
  border-radius: var(--phone-radius-inner);
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}



.wortmarke--lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(18rem, 78vw);
  text-decoration: none;
  color: var(--color-text);
}

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

.wortmarke__mark {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: block;
}

.wortmarke__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.15;
}

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

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

.wortmarke__sub {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.wortmarke--lockup img.wortmarke__raster {
  width: 100%;
  height: auto;
}


.home__tagline {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  text-align: center;
}

.wortmarke--brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
  max-width: min(20rem, 78vw);
}

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

.wortmarke__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.wortmarke__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
  min-width: 0;
}

.wortmarke__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

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

.wortmarke__sub {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}




.wortmarke__name::after {
  content: ".";
  color: var(--color-accent);
}


.wortmarke__mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.wortmarke__dot {
  color: var(--color-accent);
}
