/*
 * Copyright (c) 2026 Martin Bundschuh, SeeBubble Media FlexCo. All rights reserved.
 * Written by Martin Bundschuh.
 *
 * Gestaltung der Seite „Neue Datei“ (neuedatei.html). Nachthimmel wie die übrigen Mac-Tools,
 * Akzent im Grün-Türkis des App-Symbols. Alle Klassen beginnen mit nd-, damit nichts mit dem
 * gemeinsamen Rahmen (sb-design.css) kollidiert.
 */
:root {
  --nd-nacht: #05080d;
  --nd-flaeche: #0b1219;
  --nd-flaeche-2: #101a23;
  --nd-rand: rgba(170, 255, 225, 0.15);
  --nd-rand-leise: rgba(170, 255, 225, 0.08);
  --nd-gruen: #2eb88c;
  --nd-tuerkis: #3fe0c5;
  --nd-verlauf: linear-gradient(120deg, #3fe0c5 0%, #2eb88c 55%, #38ebff 100%);
  --nd-verlauf-knopf: linear-gradient(120deg, #138a6a 0%, #1fa37f 55%, #0f8aa6 100%);
  --nd-text: #ffffff;
  --nd-text-2: rgba(255, 255, 255, 0.74);
  --nd-text-3: rgba(255, 255, 255, 0.52);
  --nd-schrift: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.sb-s-neuedatei {
  margin: 0;
  background-color: var(--nd-nacht);
  color: var(--nd-text);
  font-family: var(--nd-schrift);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.sb-s-neuedatei main img { max-width: 100%; }
.sb-s-neuedatei main :where(img[width][height]) { height: auto; }
.sb-s-neuedatei main a { color: var(--nd-tuerkis); }

/* ------------------------------------------------------------------ Hero */
.nd-hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--sb-rand-seite, 24px) clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.nd-hero::before {
  content: '';
  position: absolute;
  inset: -10% -20% auto;
  height: 620px;
  background: radial-gradient(ellipse at 70% 40%, rgba(46, 184, 140, 0.22), transparent 60%),
              radial-gradient(ellipse at 20% 10%, rgba(56, 235, 255, 0.12), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.nd-hero-symbol { width: 92px; height: 92px; filter: drop-shadow(0 14px 30px rgba(46, 184, 140, 0.35)); }
.nd-marke { margin: 14px 0 0; font-size: 15px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nd-tuerkis); }
.nd-nur-mac, .nd-laden-mac {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 16px 0 0; padding: 6px 12px;
  border: 1px solid var(--nd-rand); border-radius: 999px;
  font-size: 14px; color: var(--nd-text-2); background: rgba(255, 255, 255, 0.03);
}
.nd-nur-mac svg, .nd-laden-mac svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nd-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 30%, rgba(210, 255, 240, 0.85));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nd-hero-text { margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--nd-text-2); max-width: 36em; }
.nd-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nd-knopf {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform var(--sb-dauer, .25s), box-shadow var(--sb-dauer, .25s), background var(--sb-dauer, .25s);
}
.sb-s-neuedatei main .nd-knopf { color: #fff; }
.nd-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nd-knopf-haupt { background: var(--nd-verlauf-knopf); box-shadow: 0 10px 30px rgba(31, 163, 127, 0.35); }
.nd-knopf-haupt:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(31, 163, 127, 0.5); }
.nd-knopf-neben { border: 1px solid var(--nd-rand); background: rgba(255, 255, 255, 0.04); }
.nd-knopf-neben:hover { background: rgba(255, 255, 255, 0.09); }
.nd-knopf-gross { padding: 18px 30px; font-size: 18px; }
.nd-knopf:focus-visible { outline: 3px solid var(--nd-tuerkis); outline-offset: 3px; }
.nd-hero-hinweis { margin: 14px 0 0; font-size: 14px; color: var(--nd-text-3); }
.nd-merkmale { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--nd-text-2); }
.nd-merkmale li::before { content: '✓'; margin-right: 6px; color: var(--nd-tuerkis); font-weight: 800; }

/* Illustration des Kontextmenüs (macOS-Menüs nachempfunden) */
.nd-menue-bild { position: relative; margin: 0; min-height: 360px; }
.nd-menue {
  position: absolute; left: 0; top: 30px; width: 250px;
  padding: 5px; border-radius: 11px;
  background: rgba(40, 44, 50, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0.5px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  font: 13.5px/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Plus Jakarta Sans', sans-serif;
  color: rgba(255, 255, 255, 0.92);
}
.nd-unter { left: 236px; top: 150px; width: 280px; }
.nd-eintrag { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; }
.nd-aktiv, .nd-hover { background: #1c74e8; color: #fff; }
.nd-pfeil { margin-left: auto; opacity: 0.85; }
.nd-plus { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nd-trenner { height: 1px; margin: 5px 9px; background: rgba(255, 255, 255, 0.14); }
.nd-typ {
  display: inline-grid; place-items: center; width: 18px; height: 20px; border-radius: 3px;
  font: 700 9px/1 -apple-system, sans-serif; font-style: normal;
  background: #e9edf1; color: #4b5560;
}
.nd-t-blau { background: #2b6dd2; color: #fff; }
.nd-t-gruen { background: #1f8a4c; color: #fff; }
.nd-t-orange { background: #d4572b; color: #fff; }
.nd-t-lila { background: #3a6ea5; color: #ffd84d; }

/* ------------------------------------------------------------------ Abschnitte */
.nd-abschnitt { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--sb-rand-seite, 24px) 0; }
.nd-etikett { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nd-tuerkis); }
.nd-titel { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.015em; }
.nd-text { margin: 14px 0 0; max-width: 40em; font-size: 18px; line-height: 1.6; color: var(--nd-text-2); }

.nd-schritte { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nd-schritt { padding: 26px; border-radius: 20px; background: var(--nd-flaeche); border: 1px solid var(--nd-rand-leise); }
.nd-schritt-nr { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--nd-verlauf); color: #04110c; font-weight: 800; }
.nd-schritt h3 { margin: 16px 0 0; font-size: 20px; }
.nd-schritt p { margin: 8px 0 0; line-height: 1.6; color: var(--nd-text-2); }

.nd-vorlagen { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.nd-vorlagen li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--nd-flaeche); border: 1px solid var(--nd-rand-leise); color: var(--nd-text-2); }
.nd-vorlagen b { min-width: 52px; padding: 5px 8px; border-radius: 8px; text-align: center; font: 700 13px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--nd-tuerkis); background: rgba(63, 224, 197, 0.09); }

.nd-zeilen { display: grid; gap: 28px; margin-top: 36px; }
.nd-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.nd-zeile:nth-child(even) .nd-fenster { order: 2; }
.nd-fenster { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--nd-rand); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); background: #f6f6f6; justify-self: center; max-width: 560px; }
.nd-fenster img { display: block; width: 100%; }
.nd-nummer { font-size: 14px; font-weight: 800; color: var(--nd-tuerkis); letter-spacing: 0.1em; }
.nd-zeile-text h3 { margin: 8px 0 0; font-size: clamp(22px, 2.4vw, 30px); }
.nd-zeile-text p { margin: 10px 0 0; font-size: 17px; line-height: 1.65; color: var(--nd-text-2); }

/* ------------------------------------------------------------------ Download */
.nd-laden {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 70px); align-items: center;
  padding: clamp(28px, 5vw, 60px); border-radius: 28px;
  background: radial-gradient(ellipse at 15% 0%, rgba(46, 184, 140, 0.22), transparent 60%), var(--nd-flaeche);
  border: 1px solid var(--nd-rand);
}
.nd-laden-symbol { width: 80px; height: 80px; }
.nd-laden h2 { margin: 14px 0 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
.nd-laden .nd-knopf-gross { margin-top: 24px; }
.nd-laden-angaben { margin: 14px 0 0; font-size: 14px; color: var(--nd-text-3); }
.nd-laden-hinweis { margin: 12px 0 0; max-width: 34em; line-height: 1.6; color: var(--nd-text-2); }
.nd-laden-bild { max-width: 340px; max-height: 520px; }
.nd-laden-bild img { object-fit: cover; object-position: top; max-height: 520px; }

/* ------------------------------------------------------------------ Fragen */
.nd-fragen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0 clamp(60px, 9vw, 120px); }
.nd-frage { padding: 22px 24px; border-radius: 18px; background: var(--nd-flaeche); border: 1px solid var(--nd-rand-leise); }
.nd-frage h3 { margin: 0; font-size: 17px; }
.nd-frage p { margin: 8px 0 0; line-height: 1.6; color: var(--nd-text-2); }

/* ------------------------------------------------------------------ Schmal */
@media (max-width: 960px) {
  .nd-hero, .nd-laden, .nd-zeile { grid-template-columns: 1fr; }
  .nd-zeile:nth-child(even) .nd-fenster { order: 0; }
  .nd-menue-bild { min-height: 380px; max-width: 520px; }
  .nd-schritte, .nd-fragen { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nd-menue { width: 210px; }
  .nd-unter { left: 92px; top: 170px; width: 240px; }
  .nd-menue-bild { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nd-knopf { transition: none; }
}
