/* Inter, selbst ausgeliefert statt von Google Fonts geholt.
   Der Abruf dort gab bei jedem Seitenaufruf die Besucher-IP an einen Dritten,
   bevor irgendetwas zu sehen war. Zwei Subsets genuegen fuer diese Seite:
   latin und latin-ext; Kyrillisch, Griechisch und Vietnamesisch kosten Platz
   ohne Nutzen. Variabler Schnitt, deshalb deckt eine Datei 100-900 ab.
   Lizenz: SIL Open Font License 1.1, siehe fonts/Inter-OFL.txt */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-color: #0b0c10;
    --text-color: #c5c6c7;
    --primary-color: #66fcf1;
    --secondary-color: #45a29e;
    --panel-bg: rgba(31, 40, 51, 0.6);
    --panel-border: rgba(102, 252, 241, 0.2);
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Animated Orbs */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.red-orb {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(69,162,158,1) 0%, rgba(11,12,16,0) 70%);
    top: -10%;
    left: -10%;
}

.blue-orb {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(102,252,241,0.6) 0%, rgba(11,12,16,0) 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.nav-brand {
    font-weight: 800;
    color: #fff;
    font-size: 1.05rem;
}

.nav-brand::after { display: none; }

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-weight: 600;
}

.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.hero {
    padding: 100px 0 50px;
    text-align: center;
}

.intro-hero {
    padding: 60px 0 40px;
}

/* Masked video link */
.video-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 10px 20px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: rgba(31, 40, 51, 0.6);
    color: var(--primary-color);
    font-weight: 600;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.video-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.25);
    transform: translateY(-2px);
}

.video-link::after { display: none; }

.video-icon {
    font-size: 0.8rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.highlight {
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.concept-card {
    margin-bottom: 30px;
}

.concept-card p {
    margin-bottom: 15px;
}

.concept-card ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.concept-card li {
    margin-bottom: 5px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Form Elements */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background: rgba(11, 12, 16, 0.8);
    border: 1px solid var(--panel-border);
    color: #fff;
    font-family: var(--font-family);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.primary-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #0b0c10;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Results Area */
.results-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hidden {
    display: none;
}

.step {
    background: rgba(11, 12, 16, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.step.active {
    opacity: 1;
    border-left-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.1);
}

.step h4 {
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-icon {
    font-size: 1.2rem;
}

.step.processing .status-icon {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

footer {
    margin-top: auto;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--panel-border);
    background: rgba(11, 12, 16, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .glass-panel { padding: 20px; }
    .nav-links { gap: 16px; }
}

/* Intro content: lists & tables */
.info-section p { margin-bottom: 15px; }

.info-section ul,
.info-section ol {
    margin: 0 0 18px 22px;
}

.info-section li {
    margin-bottom: 8px;
}

.info-section h3 {
    margin-top: 24px;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table th,
table td {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--panel-border);
    vertical-align: top;
}

table th {
    color: #fff;
    background: rgba(102, 252, 241, 0.08);
    font-weight: 600;
}

table tr:nth-child(even) td {
    background: rgba(11, 12, 16, 0.35);
}

.cta-row {
    margin-top: 24px;
}

.cta-row .primary-btn {
    display: inline-block;
    text-decoration: none;
}

.cta-row .primary-btn::after { display: none; }

/* Solver button row */
.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--panel-border);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.secondary-btn:active {
    transform: translateY(0);
}
