/* SakuraHara-Werk — High-Contrast Theme-Styles
   Dark-Mode (Header/Hero) → Light-Mode (Content). */

:root {
    --ink: #1A1C23;        /* Dark Background */
    --paper: #FFFFFF;      /* Light Background */
    --primary: #0066FF;    /* Primary Accent (CTA) */
    --sakura: #FF3385;     /* Sakura Glow (Pink) */
    --neon: #9D00FF;       /* Sakura Glow (Violett) */
    --darktext: #F9FAFB;   /* Text auf dunklem BG */
    --lighttext: #111827;  /* Text auf hellem BG */
    --subtle: #F3F4F6;     /* Subtle Backgrounds */
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--paper);
    color: var(--lighttext);
}

/* Japanische Schrift betonen */
.jp { font-family: 'Noto Sans JP', 'Inter', sans-serif; }

::selection { background: rgba(0, 102, 255, 0.20); }

/* --- Navigation: aktiver Punkt mit #0066FF-Unterstreichung ---------------- */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.nav-active::after { width: 100%; }
.nav-link.nav-active { color: #fff; }

/* --- Key Visual Animation ------------------------------------------------- */
.sakura-visual .core { animation: core-pulse 3.2s ease-in-out infinite; transform-origin: 300px 300px; }
.sakura-visual .petals { animation: petal-breathe 6s ease-in-out infinite; transform-origin: 300px 300px; }
.sakura-visual .net-edges { animation: edge-pulse 4s ease-in-out infinite; }
.sakura-visual .code-dots { animation: dot-blink 3s ease-in-out infinite; }

@keyframes core-pulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}
@keyframes petal-breathe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.04) rotate(1.2deg); }
}
@keyframes edge-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}
@keyframes dot-blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* --- Content-Blöcke (BlockRenderer) — auf hellem Grund -------------------- */
.block-heading { font-weight: 700; letter-spacing: -0.02em; color: var(--lighttext); }
.block-paragraph { color: #4b5563; line-height: 1.8; }
.block-code {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
}
.block-quote {
    border-left: 3px solid var(--primary);
    padding-left: 1.25rem;
    font-size: 1.15rem;
    color: var(--lighttext);
}
.block-quote cite { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: #6b7280; }
.block-divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); margin: 2rem 0; }
.block-image img { border-radius: 1rem; border: 1px solid #e5e7eb; width: 100%; }
.block-list { list-style: disc; padding-left: 1.5rem; color: #4b5563; line-height: 1.9; }

/* --- Formular-Blöcke (Plugins) — helle Karten ----------------------------- */
.sh-form-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 10px 40px -15px rgba(17, 24, 39, 0.15);
}
.sh-form-card input,
.sh-form-card textarea,
.sh-form-card select {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0.6rem 0.8rem;
    color: var(--lighttext);
    font-size: 0.9rem;
}
.sh-form-card input:focus,
.sh-form-card textarea:focus,
.sh-form-card select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.sh-form-card label { display: block; font-size: 0.8rem; color: #4b5563; margin-bottom: 0.3rem; }
.sh-form-card button[type="submit"] {
    border-radius: 9999px;
    background: var(--primary);
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    transition: background 0.15s;
}
.sh-form-card button[type="submit"]:hover { background: #0052cc; }
.sh-form-card .hp-field { position: absolute; left: -9999px; opacity: 0; }
