:root {
    --bg: #F5F5F7;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-alt: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text: #1D1D1F;
    --text-dim: rgba(29, 29, 31, 0.6);
    --accent: #FF5C00;
    --accent-hover: #E05000;
    --cyan: #007AFF;
    --glow: rgba(0, 122, 255, 0.15);
    --nav-bg: rgba(245, 245, 247, 0.7);
    --nav-border: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg: #090a0f;
    --surface: rgba(18, 20, 28, 0.6);
    --surface-alt: rgba(26, 29, 39, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 229, 255, 0.3);
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --accent: #ff5c00;
    --accent-hover: #ff7b33;
    --cyan: #00e5ff;
    --glow: rgba(0, 229, 255, 0.15);
    --nav-bg: rgba(9, 10, 15, 0.7);
    --nav-border: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at center 30%, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center 30%, black 10%, transparent 80%);
}

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

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--cyan);
    top: -100px;
    left: 10%;
}

.glow-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -100px;
    right: 5%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .glow-orb-1, .glow-orb-2 { animation: none; }
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Nav */
nav {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--nav-border);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(255, 92, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a, .back-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.nav-links a:hover, .back-link:hover {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.theme-toggle:hover {
    color: var(--text);
    background: rgba(128, 128, 128, 0.1);
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Main Content Wrapper */
main {
    flex: 1;
    width: 100%;
}

/* Hero */
.hero {
    padding: 8rem 3rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--cyan);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .status-dot { animation: none; }
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text);
    background: linear-gradient(135deg, var(--text) 0%, var(--text-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Bento Grid */
.playground-section {
    padding: 2rem 3rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    auto-rows: minmax(280px, auto);
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, var(--border-hover), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.bento-card.large {
    grid-column: span 2;
}

@media (max-width: 1000px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.large {
        grid-column: span 1;
    }
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 20px var(--glow);
    background: var(--surface-alt);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.card-icon {
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.03);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.card-tag {
    font-size: 0.75rem;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.bento-card p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.bento-card:hover .card-footer {
    opacity: 1;
    transform: translateX(0);
}

/* Tech Detail Snippet */
.code-snippet {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.02);
}

.code-snippet span { color: var(--accent); }

/* Specific Pages Layout (Impressum / Datenschutz) */
.page-container {
    padding: 4rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.legal-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    backdrop-filter: blur(16px);
}

.legal-section {
    margin-bottom: 3.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.05rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-section h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
}

.legal-section p, .legal-section ul {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.legal-section ul {
    margin-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-section a:hover {
    color: var(--text);
    text-decoration: underline;
}

.highlight {
    color: var(--text);
    font-weight: 600;
}

.data-block {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.02);
}

.data-block strong {
    color: var(--text);
    font-weight: 600;
}

/* Footer */
footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--nav-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: auto;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
}

footer a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--text);
}

/* Tool Specific Layout (DPC, License Check, etc.) */
.tool-header {
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.tool-header p {
    color: var(--cyan);
    font-size: 0.95rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Tool Panels */
.tool-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.panel-header {
    background: rgba(0,0,0,0.3);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.panel-body {
    padding: 2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

select, input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03);
    color: var(--text);
    transition: all 0.3s;
    font-family: inherit;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.2);
    background: #fff;
}

select option {
    background: #fff;
    color: var(--text);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-group:hover {
    border-color: rgba(255,255,255,0.3);
}

.toggle-group.active {
    border-color: var(--accent);
    background: rgba(255, 92, 0, 0.05);
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--text-dim);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-group.active .toggle-switch {
    background: rgba(255, 92, 0, 0.2);
    border-color: var(--accent);
}

.toggle-group.active .toggle-switch::after {
    left: 22px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.4);
}

/* Platform specific fields */
.platform-fields {
    display: none;
    padding-left: 1rem;
    border-left: 2px solid rgba(255,255,255,0.1);
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.platform-fields.active {
    display: block;
}

.platform-fields.intune { border-color: #0078d4; }
.platform-fields.workspaceone { border-color: #e9741c; }

/* Generate Button */
.btn-generate {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 92, 0, 0.2);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 92, 0, 0.4);
}

/* Terminal Actions */
.terminal-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
}

.icon-btn.success {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Terminal Content */
.terminal-content {
    background: rgba(0, 0, 0, 0.6);
    min-height: 400px;
    padding: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.placeholder {
    color: var(--text-dim);
    font-style: italic;
}

/* Syntax Highlighting */
.json-key { color: var(--cyan); }
.json-string { color: #fff; }
.json-boolean { color: var(--accent); }

/* Status Bar */
.status-bar {
    grid-column: 1 / -1;
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-card:nth-child(1) { animation-delay: 0.1s; }
.bento-card:nth-child(2) { animation-delay: 0.2s; }
.bento-card:nth-child(3) { animation-delay: 0.3s; }
.bento-card:nth-child(4) { animation-delay: 0.4s; }
.bento-card:nth-child(5) { animation-delay: 0.5s; }
.bento-card:nth-child(6) { animation-delay: 0.6s; }
.bento-card:nth-child(7) { animation-delay: 0.7s; }

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    nav { padding: 1.5rem; flex-direction: column; gap: 1rem; text-align: center; }
    footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
    footer a { margin: 0 0.75rem; }
    .hero { padding: 4rem 1.5rem 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .playground-section { padding: 1.5rem; }
    .page-container { padding: 2rem 1.5rem; }
    .legal-panel { padding: 2rem; }
}

@media (max-width: 900px) {
    .tool-grid { grid-template-columns: 1fr; }
    .terminal-content { min-height: 250px; }
}
