/* newtech.network — Farben wie NeuroFlow, inkl. Hell/Dunkel/SW */

:root {
  --bg: #f4efe6;
  --bg-accent: #ede4d8;
  --panel: rgba(255, 255, 255, 0.9);
  --border: rgba(63, 52, 40, 0.12);
  --shadow: 0 24px 56px rgba(82, 59, 32, 0.13);
  --text: #2f261f;
  --muted: #75685d;
  --surface: rgba(255, 255, 255, 0.5);
  --link: #285a8a;
}

body[data-theme="dark"] {
  --bg: #0f0d1a;
  --bg-accent: #15122a;
  --panel: rgba(21, 18, 42, 0.97);
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
  --text: #e4ddf2;
  --muted: #8a7fa8;
  --surface: rgba(255, 255, 255, 0.05);
  --link: #9aaef0;
}

body[data-theme="bw"] {
  --bg: #f0f0f0;
  --bg-accent: #e0e0e0;
  --panel: rgba(255, 255, 255, 0.95);
  --border: rgba(0, 0, 0, 0.14);
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
  --text: #111;
  --muted: #555;
  --surface: rgba(0, 0, 0, 0.04);
  --link: #111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  /* Platz für festen Theme-Schalter oben rechts */
  padding-top: max(56px, calc(24px + env(safe-area-inset-top, 0px)));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 20% 10%, rgba(95, 114, 216, 0.12), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(179, 106, 214, 0.1), transparent 40%),
    linear-gradient(160deg, var(--bg-accent), var(--bg));
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.nt-theme-toggle {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.15rem;
  line-height: 1;
}

.nt-theme-toggle:hover {
  filter: brightness(1.03);
}

.nt-theme-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--link) 70%, transparent);
  outline-offset: 2px;
}

.wrap {
  width: min(100%, 880px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.wrap.wrap--legal-wide {
  width: min(100%, 920px);
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 24px;
}

.head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.head > div {
  flex: 1;
  min-width: 0;
}

.title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 42px;
  min-width: 7.5rem;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.section {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.card code {
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
}

ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.contact-pending {
  color: var(--muted);
  font-style: italic;
  font-size: 0.88rem;
}

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

a.back {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .back {
    align-self: flex-start;
    order: 1;
  }

  .head > div {
    order: 0;
  }
}

/* Willkommensseite */
.nt-welcome-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 8px;
}

.nt-welcome-logo {
  width: min(200px, 70vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(82, 59, 32, 0.15));
}

body[data-theme="dark"] .nt-welcome-logo {
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45));
}

.nt-welcome-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.nt-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.nt-welcome-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
