/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─────────────────────────────────────────
   CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
    /* Surfaces */
    --bg:            #F8FAFC;
    --surface:       #FFFFFF;
    --surface-hover: #F8FAFC;

    /* Borders */
    --border:        #E2E8F0;
    --border-strong: #CBD5E1;

    /* Text */
    --text:             #0F172A;
    --text-secondary:   #475569;
    --text-muted:       #94A3B8;
    --text-placeholder: #CBD5E1;

    /* Brand blue */
    --blue:        #2563EB;
    --blue-hover:  #1D4ED8;
    --blue-subtle: #EFF6FF;
    --blue-muted:  #BFDBFE;
    --blue-ring:   rgba(37, 99, 235, 0.18);

    /* Shadows */
    --shadow-card:  0 0 0 1px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.04);
    --shadow-input: 0 1px 2px rgba(0,0,0,0.03);

    /* Radii */
    --radius:    10px;
    --radius-sm: 6px;
    --radius-xs: 4px;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
html { background: var(--bg); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
    margin-right: auto;
}

.navbar-brand .dot { color: var(--blue); }

.navbar-links {
    display: flex;
    gap: 0.25rem;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 450;
    padding: 0.3rem 0.625rem;
    border-radius: var(--radius-xs);
    transition: background 0.12s, color 0.12s;
}

.navbar-links a:hover {
    background: var(--bg);
    color: var(--text);
}

.navbar-links a.active {
    color: var(--blue);
    font-weight: 500;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
}

.hero-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-tag {
    background: var(--blue-subtle);
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    border: 1px solid var(--blue-muted);
    letter-spacing: 0.005em;
}

.hero h1 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 0.625rem;
}

.hero p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
    padding: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─────────────────────────────────────────
   CONTENT SECTION (gemeinsamer Wrapper)
───────────────────────────────────────── */
.content-section {
    padding: 0 1.75rem 3rem;
    margin: 0 auto;
}

.content-section--narrow { max-width: 860px; }

/* ─────────────────────────────────────────
   index.html – TOOL
───────────────────────────────────────── */
.tool-section {
    padding: 0 1.75rem 3rem;
    max-width: 1240px;
    margin: 0 auto;
}

.tool-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    display: flex;
    overflow: hidden;
}

.panel-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.875rem;
}

.panel-left {
    width: 34%;
    min-width: 260px;
    padding: 1.625rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

textarea {
    flex: 1;
    min-height: 340px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.7;
    resize: vertical;
    outline: none;
    box-shadow: var(--shadow-input);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-ring), var(--shadow-input);
    background: var(--surface);
}

textarea::placeholder { color: var(--text-placeholder); }

.panel-right {
    flex: 1;
    padding: 1.625rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem 1.25rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.field label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.field input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.4375rem 0.5625rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text);
    outline: none;
    box-shadow: var(--shadow-input);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    width: 100%;
}

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-ring), var(--shadow-input);
    background: var(--surface);
}

.field input:not(:placeholder-shown):not(:focus) {
    background: var(--surface);
    border-color: var(--border-strong);
}

.field input::placeholder { color: var(--text-placeholder); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5625rem 1.125rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.005em;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(37,99,235,0.2), 0 0 0 1px rgba(37,99,235,0.08);
}

.btn-primary::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9M4.5 7l3.5 3.5L11.5 7M2 13h12' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9M4.5 7l3.5 3.5L11.5 7M2 13h12' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-primary:hover {
    background: var(--blue-hover);
    box-shadow: 0 2px 6px rgba(37,99,235,0.28), 0 0 0 1px rgba(37,99,235,0.12);
}

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

/* ─────────────────────────────────────────
   index.html – TIPS
───────────────────────────────────────── */
.tips-section {
    padding: 0 1.75rem 3rem;
    max-width: 1240px;
    margin: 0 auto;
}

.tips-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tip {
    display: flex;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8125rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    box-shadow: var(--shadow-card);
}

.tip::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background: var(--blue);
    border-radius: 50%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%232563EB' stroke-width='1.5' fill='none'/%3E%3Cpath d='M8 7v4M8 5h.01' stroke='%232563EB' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%232563EB' stroke-width='1.5' fill='none'/%3E%3Cpath d='M8 7v4M8 5h.01' stroke='%232563EB' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ─────────────────────────────────────────
   infos.html – CARDS & STEPS
───────────────────────────────────────── */
.section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.08);
}

.card-header,
.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon-wrap,
.step-icon-wrap {
    width: 2rem;
    height: 2rem;
    background: var(--blue-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.card h3,
.step h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
}

.card p,
.step p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-number {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ─────────────────────────────────────────
   credits.html – CREDITS
───────────────────────────────────────── */
.section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    margin-top: 2.25rem;
}

.section-label:first-child { margin-top: 0; }

.credit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.25rem 1.375rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.625rem;
    transition: border-color 0.15s;
}

.credit-card:hover { border-color: var(--border-strong); }

.credit-icon {
    width: 2rem;
    height: 2rem;
    background: var(--blue-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 0.8125rem;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.credit-body { flex: 1; min-width: 0; }

.credit-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3125rem;
    flex-wrap: wrap;
}

.credit-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
}

.credit-version {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.125rem 0.4375rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    letter-spacing: 0.02em;
}

.credit-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.credit-desc code {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    background: var(--bg);
    padding: 0.1rem 0.3125rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text);
}

.credit-footer {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.license-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.125rem 0.4375rem;
}

.credit-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    transition: color 0.12s;
}

.credit-link:hover { color: var(--blue-hover); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 820px) {
    .tool-card { flex-direction: column; }

    .panel-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .fields-grid { grid-template-columns: repeat(2, 1fr); }

    .cards-grid,
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 1.5rem; }

    .navbar { padding: 0 1rem; }

    .tool-section,
    .tips-section,
    .content-section { padding-left: 1rem; padding-right: 1rem; }

    .fields-grid { grid-template-columns: 1fr; }

    .credit-card {
        flex-direction: column;
        gap: 0.75rem;
    }

    .credit-link { margin-left: 0; }
}
