/* Rechtsseiten von punktdev.com: ruhige Textseiten, gleiche Schrift und Farben wie die Startseite. */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/sora-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg:        #07090f;
  --surface:   rgba(16, 22, 36, 0.75);
  --line:      rgba(255, 255, 255, 0.08);
  --blue:      #4a80f0;
  --text-1:    #dde4f0;
  --text-body: #c3ccdb;
  --text-2:    #8d99b0;
  --text-3:    #5c6d89;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg:        #eef1f8;
  --surface:   rgba(255, 255, 255, 0.8);
  --line:      rgba(0, 0, 0, 0.08);
  --blue:      #2563eb;
  --text-1:    #0d1526;
  --text-body: #26324a;
  --text-2:    #4a5b78;
  --text-3:    #6b7a94;
}

/* Ohne JavaScript entscheidet die Systemeinstellung */
@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    color-scheme: light;
    --bg:        #eef1f8;
    --surface:   rgba(255, 255, 255, 0.8);
    --line:      rgba(0, 0, 0, 0.08);
    --blue:      #2563eb;
    --text-1:    #0d1526;
    --text-body: #26324a;
    --text-2:    #4a5b78;
    --text-3:    #6b7a94;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: .4rem .7rem;
  background: var(--surface);
  color: var(--text-1);
  border-radius: 6px;
}

.skip:focus { top: 1rem; }

.site-header,
.doc,
.site-footer {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ─── Logo-Link zurück zur Startseite ─── */
.site-header { padding-top: 2rem; padding-bottom: 1.5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  padding: .25rem 0;
}

.brand-mark { display: inline-flex; align-items: center; gap: 5px; }

.brace {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-3);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px 1px rgba(74, 128, 240, .55);
}

.brand-name { font-size: .95rem; line-height: 1; letter-spacing: .01em; }
.n-punkt { color: var(--text-1); font-weight: 500; }
.n-dev   { color: var(--text-2); font-weight: 400; }
.n-tld   { color: var(--text-3); font-weight: 400; }

/* ─── Text ─── */
.doc { padding-bottom: 3rem; }

h1, h2, h3 {
  color: var(--text-1);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}

h1 { font-size: 1.75rem; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }

h2[id], p[id] { scroll-margin-top: 1rem; }

p { margin: 0 0 .9rem; }

.meta {
  font-size: .85rem;
  color: var(--text-2);
  margin-bottom: 2rem;
}

.lead { color: var(--text-1); }

strong { font-weight: 500; color: var(--text-1); }

ul { margin: 0 0 .9rem; padding-left: 1.2rem; }
li { margin-bottom: .45rem; }
li::marker { color: var(--text-3); }

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.brand:focus-visible { outline-offset: 4px; }

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .85em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .05em .3em;
  overflow-wrap: anywhere;
}

.callout {
  border-left: 2px solid var(--blue);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.1rem .2rem;
  margin: 1.2rem 0;
}

/* ─── Footer ─── */
.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-2);
}

.site-footer a { color: var(--text-2); }

@media (max-width: 560px) {
  .site-header { padding-top: 1.4rem; padding-bottom: 1.1rem; }
  h1 { font-size: 1.5rem; }
  body { font-size: .97rem; }
}
