/* ==========================================================
   countercity.de — Clean Utility Design System
   Prefix: cc-
   Fonts: Plus Jakarta Sans (headings), Figtree (body)
   Colors: Indigo + Emerald + Amber
   ========================================================== */

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

/* --- VARIABLES --- */
:root {
    --cc-indigo: #4F46E5;
    --cc-indigo-light: #6366F1;
    --cc-indigo-bg: rgba(79,70,229,0.05);
    --cc-emerald: #10B981;
    --cc-emerald-light: #34D399;
    --cc-amber: #F59E0B;
    --cc-bg: #F8FAFC;
    --cc-bg-white: #FFFFFF;
    --cc-text: #111827;
    --cc-text-muted: #6B7280;
    --cc-border: #E5E7EB;
    --cc-font-heading: 'Plus Jakarta Sans', sans-serif;
    --cc-font-body: 'Figtree', sans-serif;
    --cc-max-width: 1140px;
    --cc-content-width: 760px;
    --cc-radius-card: 16px;
    --cc-radius-pill: 999px;
    --cc-radius-sm: 8px;
    --cc-radius-md: 12px;
    --cc-shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --cc-shadow-hover: 0 8px 30px rgba(0,0,0,0.08);
    --cc-shadow-cta: 0 4px 14px rgba(16,185,129,0.3);
}

/* --- BASE --- */
body {
    font-family: var(--cc-font-body);
    background: var(--cc-bg);
    color: var(--cc-text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--cc-indigo); text-decoration: none; font-weight: 600; }
a:hover { color: var(--cc-indigo-light); }

img { max-width: 100%; height: auto; display: block; }

/* --- HEADER (sticky, blur-backdrop) --- */
.cc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cc-border);
    padding: 0 2rem;
}
.cc-header-inner {
    max-width: var(--cc-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.cc-logo {
    font-family: var(--cc-font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--cc-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cc-logo span { color: var(--cc-indigo); }
.cc-logo img { height: 48px; width: auto; }

/* --- NAVIGATION --- */
.cc-nav { display: flex; gap: 2rem; list-style: none; align-items: center; }
.cc-nav a {
    color: var(--cc-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.cc-nav a:hover { color: var(--cc-indigo); }
.cc-nav-cta {
    background: var(--cc-indigo);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--cc-radius-pill);
    font-weight: 600 !important;
    transition: background 0.2s;
}
.cc-nav-cta:hover { background: var(--cc-indigo-light); color: #fff !important; }

/* Mobile menu toggle */
.cc-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.cc-menu-toggle svg { width: 24px; height: 24px; stroke: var(--cc-text); }

/* --- TRUST BAR --- */
.cc-trust-bar {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--cc-bg-white);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-pill);
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--cc-text-muted);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.cc-trust-bar span { display: flex; align-items: center; gap: 0.35rem; }
.cc-trust-bar strong { color: var(--cc-text); }

/* --- HERO --- */
.cc-hero {
    max-width: var(--cc-max-width);
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    text-align: center;
}
.cc-hero h1 {
    font-family: var(--cc-font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--cc-text);
}
.cc-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--cc-indigo), var(--cc-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cc-hero p {
    font-size: 1.15rem;
    color: var(--cc-text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}
.cc-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- BUTTONS --- */
.cc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cc-emerald);
    color: #fff;
    font-family: var(--cc-font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--cc-radius-pill);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: var(--cc-shadow-cta);
    border: none;
    cursor: pointer;
}
.cc-btn-primary:hover { background: var(--cc-emerald-light); transform: translateY(-1px); color: #fff; }

.cc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cc-bg-white);
    color: var(--cc-text);
    font-family: var(--cc-font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--cc-radius-pill);
    text-decoration: none;
    border: 1px solid var(--cc-border);
    transition: border-color 0.2s;
    cursor: pointer;
}
.cc-btn-secondary:hover { border-color: var(--cc-indigo); color: var(--cc-text); }

/* --- COUNTER PREVIEW (Homepage) --- */
.cc-counter-preview {
    max-width: 800px;
    margin: 3rem auto 0;
    background: var(--cc-bg-white);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-card);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    box-shadow: var(--cc-shadow-card);
}
.cc-counter-sample {
    background: var(--cc-bg);
    border-radius: var(--cc-radius-sm);
    padding: 1rem;
    text-align: center;
    font-family: var(--cc-font-heading);
}
.cc-counter-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cc-indigo);
}
.cc-counter-label { font-size: 0.75rem; color: var(--cc-text-muted); margin-top: 0.25rem; }

/* --- SECTION TITLES --- */
.cc-section-title {
    font-family: var(--cc-font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}
.cc-section-sub {
    text-align: center;
    color: var(--cc-text-muted);
    margin-bottom: 3rem;
}

/* --- STEPS (3-col grid) --- */
.cc-steps {
    max-width: var(--cc-max-width);
    margin: 5rem auto;
    padding: 0 2rem;
}
.cc-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.cc-step-card {
    background: var(--cc-bg-white);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-card);
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.2s;
}
.cc-step-card:hover { box-shadow: var(--cc-shadow-hover); }
.cc-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cc-indigo);
    color: #fff;
    font-family: var(--cc-font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.cc-step-card h3 {
    font-family: var(--cc-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.cc-step-card p { color: var(--cc-text-muted); font-size: 0.9rem; }

/* --- FEATURES (auto-fit grid) --- */
.cc-features {
    max-width: var(--cc-max-width);
    margin: 0 auto 5rem;
    padding: 4rem 2rem;
    background: var(--cc-bg-white);
    border-radius: 24px;
    border: 1px solid var(--cc-border);
}
.cc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.cc-feature-card {
    padding: 1.5rem;
    border-radius: var(--cc-radius-md);
    border: 1px solid var(--cc-border);
    transition: border-color 0.2s;
}
.cc-feature-card:hover { border-color: var(--cc-indigo); }
.cc-feature-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.cc-feature-tag.tool { background: rgba(79,70,229,0.1); color: var(--cc-indigo); }
.cc-feature-tag.money { background: rgba(16,185,129,0.1); color: var(--cc-emerald); }
.cc-feature-tag.casino { background: rgba(245,158,11,0.1); color: var(--cc-amber); }
.cc-feature-card h3 {
    font-family: var(--cc-font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}
.cc-feature-card p { color: var(--cc-text-muted); font-size: 0.9rem; }

/* --- CONTENT SECTION (articles, max 760px) --- */
.cc-content-section {
    max-width: var(--cc-content-width);
    margin: 0 auto 5rem;
    padding: 0 2rem;
}
.cc-content-card {
    background: var(--cc-bg-white);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-card);
    padding: 2.5rem;
}
.cc-content-card h1 {
    font-family: var(--cc-font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.cc-content-card h2 {
    font-family: var(--cc-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.cc-content-card h3 {
    font-family: var(--cc-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cc-indigo);
    margin: 1.5rem 0 0.75rem;
}
.cc-content-card h4 {
    font-family: var(--cc-font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}
.cc-content-card p { color: var(--cc-text-muted); margin-bottom: 1rem; line-height: 1.7; }
.cc-content-card ul, .cc-content-card ol {
    color: var(--cc-text-muted);
    margin: 0 0 1rem 1.5rem;
    line-height: 1.7;
}
.cc-content-card li { margin-bottom: 0.35rem; }

/* --- TABLE --- */
.cc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    border-radius: var(--cc-radius-sm);
    overflow: hidden;
}
.cc-table th {
    background: var(--cc-bg);
    text-align: left;
    padding: 0.75rem 1rem;
    font-family: var(--cc-font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--cc-text-muted);
}
.cc-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--cc-border);
}
.cc-table tr:last-child td { border-bottom: none; }
.cc-table tr:hover td { background: var(--cc-bg); }

/* --- INFOBOX --- */
.cc-infobox {
    background: var(--cc-indigo-bg);
    border-left: 3px solid var(--cc-indigo);
    border-radius: 0 var(--cc-radius-sm) var(--cc-radius-sm) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.cc-infobox strong { color: var(--cc-indigo); }

/* --- TOOL SECTION (calculator, interactive) --- */
.cc-tool-wrapper {
    max-width: var(--cc-content-width);
    margin: 0 auto 3rem;
    padding: 0 2rem;
}
.cc-tool-card {
    background: var(--cc-bg-white);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-card);
    padding: 2.5rem;
}
.cc-tool-card h1 {
    font-family: var(--cc-font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.cc-tool-input-group {
    margin-bottom: 1.25rem;
}
.cc-tool-input-group label {
    display: block;
    font-family: var(--cc-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--cc-text);
}
.cc-tool-input-group input,
.cc-tool-input-group select {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-sm);
    font-family: var(--cc-font-body);
    font-size: 0.95rem;
    color: var(--cc-text);
    background: var(--cc-bg);
    transition: border-color 0.2s;
}
.cc-tool-input-group input:focus,
.cc-tool-input-group select:focus {
    outline: none;
    border-color: var(--cc-indigo);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.cc-tool-result {
    background: var(--cc-bg);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}
.cc-tool-result-value {
    font-family: var(--cc-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cc-indigo);
}
.cc-tool-result-label {
    font-size: 0.85rem;
    color: var(--cc-text-muted);
    margin-top: 0.25rem;
}

/* --- FOOTER --- */
.cc-footer {
    background: var(--cc-bg-white);
    border-top: 1px solid var(--cc-border);
    margin-top: 2rem;
    padding: 3rem 2rem;
}
.cc-footer-inner {
    max-width: var(--cc-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}
.cc-footer-brand {
    font-family: var(--cc-font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.cc-footer-brand span { color: var(--cc-indigo); }
.cc-footer p { color: var(--cc-text-muted); font-size: 0.85rem; }
.cc-footer h4 {
    font-family: var(--cc-font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--cc-text-muted);
}
.cc-footer ul { list-style: none; }
.cc-footer li { margin-bottom: 0.4rem; }
.cc-footer a { color: var(--cc-text); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.cc-footer a:hover { color: var(--cc-indigo); }
.cc-footer-bottom {
    max-width: var(--cc-max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cc-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--cc-text-muted);
}

/* --- BREADCRUMB --- */
.cc-breadcrumb {
    max-width: var(--cc-max-width);
    margin: 0 auto;
    padding: 1rem 2rem 0;
    font-size: 0.8rem;
    color: var(--cc-text-muted);
}
.cc-breadcrumb a { font-weight: 500; }
.cc-breadcrumb span { margin: 0 0.35rem; }

/* --- PAGE HEADER (for content/tool/legal pages) --- */
.cc-page-header {
    max-width: var(--cc-max-width);
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}
.cc-page-header h1 {
    font-family: var(--cc-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.cc-page-header p {
    font-size: 1.1rem;
    color: var(--cc-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* --- 404 PAGE --- */
.cc-error-page {
    max-width: var(--cc-max-width);
    margin: 0 auto;
    padding: 8rem 2rem;
    text-align: center;
}
.cc-error-code {
    font-family: var(--cc-font-heading);
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--cc-indigo), var(--cc-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.cc-error-page h1 {
    font-family: var(--cc-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.cc-error-page p {
    color: var(--cc-text-muted);
    margin-bottom: 2rem;
}

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 1023px) {
    .cc-footer-inner { grid-template-columns: 1fr 1fr; }
    .cc-hero h1 { font-size: 2.5rem; }
    .cc-page-header h1 { font-size: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .cc-header { padding: 0 1rem; }
    .cc-header-inner { height: 56px; }

    .cc-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--cc-bg-white);
        border-bottom: 1px solid var(--cc-border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: var(--cc-shadow-card);
    }
    .cc-nav.open { display: flex; }
    .cc-nav a { padding: 0.65rem 1rem; font-size: 1rem; }
    .cc-nav-cta { text-align: center; }
    .cc-menu-toggle { display: block; }

    .cc-hero { padding: 3rem 1rem 2rem; }
    .cc-hero h1 { font-size: 2rem; }
    .cc-hero p { font-size: 1rem; }

    .cc-steps { padding: 0 1rem; margin: 3rem auto; }
    .cc-steps-grid { grid-template-columns: 1fr; }

    .cc-features { padding: 2rem 1rem; margin: 0 1rem 3rem; }
    .cc-features-grid { grid-template-columns: 1fr; }

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

    .cc-content-section { padding: 0 1rem; }
    .cc-content-card { padding: 1.5rem; }
    .cc-content-card h1 { font-size: 1.5rem; }

    .cc-tool-wrapper { padding: 0 1rem; }
    .cc-tool-card { padding: 1.5rem; }
    .cc-tool-card h1 { font-size: 1.5rem; }

    .cc-page-header { padding: 2rem 1rem 1rem; }
    .cc-page-header h1 { font-size: 1.75rem; }

    .cc-footer { padding: 2rem 1rem; }
    .cc-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .cc-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    .cc-error-code { font-size: 5rem; }
    .cc-error-page { padding: 4rem 1rem; }

    .cc-breadcrumb { padding: 0.75rem 1rem 0; }
}
