/* printing/static/printing/style.css */

/* -------------------- Reset / Base -------------------- */
* {
    box-sizing: border-box;
}

:root {
    --bg: #0b0f1e;
    --bg-soft: #0f1528;
    --card: #0e1324;
    --card-2: #10162b;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #e9ecf6;
    --text-dim: rgba(233, 236, 246, 0.75);
    --accent: #6ea3ff;
    --accent-2: #9aa7ff;
    --shadow: 0 10px 28px rgba(0,0,0,0.45);
    --radius-lg: 18px;
    --radius-md: 12px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: radial-gradient(1200px 800px at 50% -200px, #182044 0%, var(--bg) 60%);
    color: var(--text);
}

/* Page wrapper */
.page {
    width: 100%;
    min-height: 100vh;
}

/* Wichtig: Container nutzt maximale Breite, aber bleibt mittig.
   padding links/rechts ist symmetrisch, daher keine "optische Schieflage" mehr. */
.container {
    width: 100%;
    max-width: 1500px;      /* größer = weniger Randflächen */
    margin: 0 auto;
    padding: 0 32px;        /* gleichmäßig links/rechts */
}

/* -------------------- Header -------------------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    position: relative;
    z-index: 5;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    font-size: 20px;
}

.site-logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #9fc0ff 45%, #2c3a77 100%);
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 0 6px rgba(255,255,255,0.35);
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav-link {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 8px;
    transition: 0.15s ease;
}

.site-nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.theme-toggle {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.15s ease;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.06);
}

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #0a0f1f;
    box-shadow: 0 8px 18px rgba(110,163,255,0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.06);
}

/* -------------------- Cards / Sections -------------------- */
.main-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    margin: 18px 0;
}

.hero {
    margin-top: 14px;
}

.hero-title {
    font-size: 40px;
    line-height: 1.15;
    margin: 10px 0;
}

.hero-subtitle {
    color: var(--text-dim);
    font-size: 18px;
    max-width: 720px;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    color: var(--text-dim);
    flex-wrap: wrap;
}

/* -------------------- Rechner Layout -------------------- */

/* Das ist der entscheidende Teil:
   - Grid nimmt volle Containerbreite
   - Verhältnis 1/4 – 2/4 – 1/4
   - dadurch gleiche Außenabstände links/rechts */
.calculator-grid {
    margin-top: 20px;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 22px;
    align-items: start; /* oben bündig (Viewer nicht tiefer) */
}

/* Kartenbreiten NICHT fixieren -> sie dehnen sich im Verhältnis mit */
.calculator-card,
.preview-card,
.price-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    min-height: 120px;
}

/* Titel */
.calculator-card h1,
.calculator-card h2,
.preview-card h2,
.price-card h2 {
    margin-top: 0;
}

.preview-card h2,
.price-card h2 {
    font-size: 24px;
}

/* Formular */
.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

select, input[type="text"], input[type="email"], input[type="file"], textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
}

select:focus, input:focus, textarea:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 2px rgba(154,167,255,0.2);
}

/* Vorschau-Canvas / Viewer */
.viewer-shell {
    margin-top: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    height: 420px;              /* wie vorher */
    width: 100%;                /* füllt Mittelspalte */
    overflow: hidden;
    display: flex;
    align-items: center;        /* vertikal mittig */
    justify-content: center;    /* horizontal mittig */
}

/* Preisbox */
.price-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    margin: 6px 0;
}

.price-total {
    font-size: 22px;
    font-weight: 800;
    margin-top: 12px;
    color: var(--text);
}

/* -------------------- Footer -------------------- */
.site-footer {
    margin-top: 40px;
    padding: 18px 0 28px 0;
    color: var(--text-dim);
    font-size: 15px;
}

.footer-links {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-2);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 1100px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    .viewer-shell {
        height: 360px;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 32px;
    }
}