@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), system-ui, -apple-system, sans-serif;
}

/* Tiptap editor typography — minimal, replaces @tailwindcss/typography */
.tiptap {
  outline: none;
  /* Prevent long words/URLs from blowing out the container width */
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.tiptap * {
  max-width: 100%;
}
.tiptap h1 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin-top: 1.25em; margin-bottom: 0.5em; letter-spacing: -0.02em; }
.tiptap h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; margin-top: 1.25em; margin-bottom: 0.5em; letter-spacing: -0.015em; }
.tiptap h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin-top: 1.25em; margin-bottom: 0.5em; }
.tiptap p { margin: 0.6em 0; line-height: 1.7; }
.tiptap ul, .tiptap ol { padding-left: 1.5em; margin: 0.6em 0; }
.tiptap ul { list-style: disc; }
.tiptap ol { list-style: decimal; }
.tiptap li { margin: 0.2em 0; line-height: 1.7; }
.tiptap li > p { margin: 0.1em 0; }
.tiptap blockquote { border-left: 3px solid #d4d4d8; padding-left: 1em; color: #71717a; font-style: italic; margin: 1em 0; }
.tiptap a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.tiptap img { max-width: 100%; border-radius: 0.375rem; margin: 0.75em 0; }
.tiptap code { background: #f4f4f5; padding: 0.15em 0.35em; border-radius: 0.25em; font-size: 0.9em; }
.tiptap p.is-editor-empty:first-child::before {
  color: #a1a1aa;
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .tiptap blockquote { border-color: #3f3f46; color: #a1a1aa; }
  .tiptap a { color: #60a5fa; }
  .tiptap code { background: #27272a; }
  .tiptap p.is-editor-empty:first-child::before { color: #52525b; }
}

/* Sidebar-Styling lebt direkt in den Komponenten als Inline-Styles oder
 * Tailwind-Klassen. Tailwind-4/Turbopack kompiliert raw CSS-Additions in
 * dieser Datei aktuell nicht zuverlässig in den Bundle (verifiziert via
 * .next/dev-Cache). Daher keine sidebar-Tokens, Tooltip-Rules oder
 * Keyframes hier — alles in JSX. */
