/* BtcPreis.de - Bitcoin Live Theme */
:root {
    --btc-orange: #F7931A;
    --btc-orange-dark: #C97515;
    --btc-orange-light: #FFB14D;
    --btc-deep: #0B0F1A;
    --btc-deep-soft: #131A2B;
    --btc-deep-line: #1F2940;
    --bg-light: #F8F9FB;
    --bg-light-2: #EEF1F6;
    --text-dark: #0B0F1A;
    --text-muted: #5A6478;
    --text-on-dark: #E6EAF2;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Top Bar */
.top-bar {
    background: var(--btc-deep);
    color: var(--btc-orange);
    padding: 0.5rem 2rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--btc-deep-line);
}
.top-bar-content {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.top-bar-left { display: flex; gap: 2rem; flex-wrap: wrap; }
.top-bar-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(230,234,242,.85); }
.top-bar-item i { color: var(--btc-orange); }
.price-ticker { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--btc-orange); }

/* Header */
.header {
    background: linear-gradient(180deg, var(--btc-deep) 0%, var(--btc-deep-soft) 100%);
    padding: 1rem 2rem;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.header-content {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--btc-orange) 0%, var(--btc-orange-dark) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white;
    box-shadow: 0 4px 18px rgba(247,147,26,.45);
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
}
.logo-text { font-family: 'Space Grotesk', sans-serif; }
.brand-title, .logo-text h1 {
    font-size: 1.4rem; font-weight: 700; color: var(--btc-orange);
    letter-spacing: 0.02em;
}
.logo-text span {
    font-size: .68rem; color: rgba(255,255,255,.6);
    text-transform: uppercase; letter-spacing: 2px; display: block;
}

.nav { display: flex; gap: .25rem; }
.nav-link {
    padding: .55rem 1rem; color: rgba(255,255,255,.85);
    text-decoration: none; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px; font-size: .78rem;
    border: 1px solid transparent; border-radius: 6px;
    transition: all .25s; position: relative;
}
.nav-link::before {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 0; height: 2px;
    background: var(--btc-orange); transition: width .25s;
}
.nav-link:hover::before, .nav-link.active::before { width: 70%; }
.nav-link:hover, .nav-link.active { color: var(--btc-orange); }

.menu-toggle {
    display: none; background: none; border: none;
    color: var(--btc-orange); font-size: 1.5rem; cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--btc-deep) 0%, var(--btc-deep-soft) 100%);
    padding: 4rem 2rem; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(247,147,26,.18), transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(247,147,26,.10), transparent 45%);
    pointer-events: none;
}
.hero-content {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; position: relative; z-index: 1;
}
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem; font-weight: 700; color: white;
    line-height: 1.1; margin-bottom: 1.25rem; letter-spacing: -0.02em;
}
.hero-title .accent { color: var(--btc-orange); }
.hero-subtitle {
    font-size: 1.1rem; color: rgba(230,234,242,.78);
    margin-bottom: 2rem; font-weight: 400; max-width: 560px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn {
    padding: .9rem 1.75rem;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    text-decoration: none; text-transform: uppercase;
    letter-spacing: .06em; border-radius: 8px;
    transition: all .25s;
    display: inline-flex; align-items: center; gap: .65rem;
    border: none; cursor: pointer; font-size: .82rem;
}
.btn-orange {
    background: linear-gradient(135deg, var(--btc-orange) 0%, var(--btc-orange-dark) 100%);
    color: white; border: 2px solid var(--btc-orange);
    box-shadow: 0 6px 20px rgba(247,147,26,.35);
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(247,147,26,.5); }
.btn-outline {
    background: transparent; color: var(--btc-orange);
    border: 2px solid var(--btc-orange);
}
.btn-outline:hover { background: var(--btc-orange); color: white; }

/* Currency toggle */
.currency-toggle {
    display: inline-flex; gap: 4px; padding: 4px;
    background: rgba(11,15,26,.06); border-radius: 8px;
    margin-bottom: 1rem;
}
.currency-toggle button {
    background: transparent; border: none; cursor: pointer;
    padding: .35rem .9rem; border-radius: 6px;
    font-family: 'JetBrains Mono', monospace; font-size: .82rem;
    font-weight: 600; color: var(--text-muted);
    transition: all .15s;
}
.currency-toggle button.active {
    background: var(--btc-orange); color: white;
    box-shadow: 0 2px 8px rgba(247,147,26,.35);
}
.currency-toggle button:hover:not(.active) { background: rgba(11,15,26,.05); color: var(--text-dark); }

/* Price Display Card */
.price-display {
    background: white; border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    border: 1px solid rgba(247,147,26,.25);
    position: relative;
}
.price-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding-bottom: 1rem;
    border-bottom: 1px solid rgba(11,15,26,.07);
}
.price-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .82rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .12em;
}
.live-badge {
    display: flex; align-items: center; gap: .45rem;
    padding: .3rem .7rem;
    background: rgba(34,197,94,.1); color: var(--success);
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    border-radius: 999px;
}
.live-badge::before {
    content: ''; width: 7px; height: 7px;
    background: var(--success); border-radius: 50%;
    animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem; font-weight: 700;
    color: var(--text-dark);
    text-align: center; margin: .75rem 0 .5rem;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.price-value .symbol { color: var(--btc-orange); margin-right: .35rem; font-weight: 600; }

.price-change {
    display: flex; align-items: center; justify-content: center;
    gap: .5rem; font-size: 1rem; font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}
.price-change.positive { color: var(--success); }
.price-change.negative { color: var(--danger); }

/* Inline sparkline */
.sparkline {
    width: 100%; height: 56px; margin: .5rem 0 1rem;
    display: block;
}
.sparkline path.line { stroke: var(--btc-orange); stroke-width: 2; fill: none; }
.sparkline path.area { fill: rgba(247,147,26,.15); stroke: none; }

.price-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
    padding-top: 1rem; border-top: 1px solid rgba(11,15,26,.07);
}
.price-stat { text-align: center; }
.price-stat-label {
    font-size: .68rem; text-transform: uppercase;
    letter-spacing: .1em; color: var(--text-muted);
    margin-bottom: .25rem;
}
.price-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: .92rem; font-weight: 600; color: var(--text-dark);
}
.last-update {
    text-align: center; font-size: .72rem;
    color: var(--text-muted); margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Section */
.section { padding: 4rem 2rem; }
.section-content { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.1rem; color: var(--text-dark); margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.05rem; color: var(--text-muted);
    max-width: 600px; margin: 0 auto;
}
.ornament {
    width: 80px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--btc-orange), transparent);
    margin: 1.25rem auto;
}

/* Halving Section */
.halving-section {
    background: linear-gradient(135deg, var(--btc-deep) 0%, var(--btc-deep-soft) 100%);
    color: white; padding: 4rem 2rem; position: relative; overflow: hidden;
}
.halving-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23F7931A' fill-opacity='0.04'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.halving-section .section-title { color: var(--btc-orange); }
.halving-section .section-subtitle { color: rgba(230,234,242,.75); }
.halving-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    max-width: 800px; margin: 2.5rem auto 0;
    position: relative; z-index: 1;
}
.halving-cell {
    text-align: center; padding: 1.5rem 1rem;
    background: rgba(255,255,255,.05); border: 1px solid rgba(247,147,26,.25);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}
.halving-cell .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem; font-weight: 700; color: var(--btc-orange);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.halving-cell .label {
    font-size: .72rem; color: rgba(230,234,242,.65);
    text-transform: uppercase; letter-spacing: .1em;
    margin-top: .5rem;
}
.halving-meta {
    text-align: center; margin-top: 1.5rem;
    color: rgba(230,234,242,.7); font-size: .9rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Chart */
.chart-section { background: #131722; padding: 3rem 0; }
.chart-section .section-content { max-width: 100%; padding: 0 1rem; }
.chart-section .section-header { max-width: 1200px; margin: 0 auto 2rem; padding: 0 1rem; }
.chart-section .section-title, .chart-section .section-subtitle { color: var(--text-on-dark); }
.chart-section .section-title { color: var(--btc-orange); }
.chart-container {
    background: #131722; line-height: 0;
    max-width: 1600px; margin: 0 auto;
}
.chart-container iframe {
    width: 100%; height: 600px; border: none; display: block; background: #131722;
}
@media (max-width: 1024px) { .chart-container iframe { height: 500px; } }
@media (max-width: 768px)  { .chart-container iframe { height: 400px; } }
@media (max-width: 480px)  { .chart-container iframe { height: 350px; } }

/* Stats Banner */
.stats-banner {
    background: linear-gradient(135deg, var(--btc-deep) 0%, var(--btc-deep-soft) 100%);
    padding: 3rem 2rem; position: relative;
}
.stats-content {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    position: relative; z-index: 1;
}
.stat-item {
    text-align: center; padding: 1rem;
    border-right: 1px solid rgba(247,147,26,.2);
}
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 1.6rem; color: var(--btc-orange); margin-bottom: .5rem; }
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem; font-weight: 700;
    color: var(--btc-orange);
    margin-bottom: .35rem;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: .75rem; color: rgba(255,255,255,.7);
    text-transform: uppercase; letter-spacing: .08em;
}

/* Calculator */
.calculator-section {
    background: white;
}
.calculator-section .section-title { color: var(--text-dark); }
.calculator-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.calculator-card {
    background: var(--bg-light);
    border: 1px solid rgba(11,15,26,.06);
    border-radius: 14px; padding: 1.75rem;
    color: var(--text-dark);
    transition: border-color .2s, transform .2s;
}
.calculator-card:hover { border-color: rgba(247,147,26,.4); }
.calculator-card h3 {
    color: var(--text-dark); margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: .55rem;
    font-size: 1.1rem;
}
.calculator-card h3 i { color: var(--btc-orange); }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; margin-bottom: .45rem;
    font-weight: 600; color: var(--text-muted);
    font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
}
.form-control {
    width: 100%; padding: .75rem 1rem;
    border: 1.5px solid rgba(11,15,26,.1); border-radius: 8px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    transition: border-color .2s, box-shadow .2s;
    background: white;
}
.form-control:focus {
    outline: none; border-color: var(--btc-orange);
    box-shadow: 0 0 0 3px rgba(247,147,26,.15);
}
select.form-control { cursor: pointer; }
.result-box {
    background: linear-gradient(135deg, rgba(247,147,26,.08) 0%, rgba(247,147,26,.16) 100%);
    border: 1.5px solid rgba(247,147,26,.4);
    border-radius: 10px; padding: 1.25rem; margin-top: 1rem;
}
.result-label {
    font-size: .72rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: .35rem;
}
.result-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem; font-weight: 700;
    color: var(--btc-orange);
    font-variant-numeric: tabular-nums;
}

/* Features */
.features { background: var(--bg-light); }
.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.feature-card {
    background: white;
    border: 1px solid rgba(11,15,26,.06);
    border-radius: 12px; padding: 1.75rem 1.5rem;
    text-align: center; transition: all .25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(11,15,26,.08);
    border-color: rgba(247,147,26,.4);
}
.feature-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--btc-orange) 0%, var(--btc-orange-dark) 100%);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; font-size: 1.4rem; color: white;
    box-shadow: 0 8px 18px rgba(247,147,26,.32);
}
.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem; color: var(--text-dark);
    margin-bottom: .6rem;
}
.feature-desc { font-size: .9rem; color: var(--text-muted); }

/* Trust */
.trust-section { background: white; padding: 2rem; text-align: center; }
.trust-content { max-width: 1000px; margin: 0 auto; }
.trust-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem;
    color: var(--text-dark); margin-bottom: 1.25rem;
}
.trust-badges {
    display: flex; justify-content: center; align-items: center;
    gap: 2.5rem; flex-wrap: wrap;
}
.trust-badge {
    display: flex; align-items: center; gap: .55rem;
    color: var(--text-muted); font-size: .88rem;
}
.trust-badge i { color: var(--btc-orange); font-size: 1.1rem; }

/* Prediction page */
.prediction-section { background: var(--bg-light-2); }
.prediction-card {
    background: white; border-radius: 12px; padding: 2rem;
    border: 1px solid rgba(247,147,26,.3); margin-bottom: 1.75rem;
}
.prediction-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid rgba(11,15,26,.07);
    flex-wrap: wrap; gap: 1rem;
}
.prediction-title {
    color: var(--text-dark); display: flex; align-items: center; gap: .65rem;
    font-size: 1.3rem;
}
.prediction-title i { color: var(--btc-orange); }
.prediction-badge {
    padding: .3rem .9rem; border-radius: 999px;
    font-size: .8rem; font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase; letter-spacing: .08em;
}
.prediction-badge.bullish { background: rgba(34,197,94,.13); color: var(--success); }
.prediction-badge.bearish { background: rgba(239,68,68,.13);  color: var(--danger);  }
.prediction-badge.neutral { background: rgba(245,158,11,.13); color: var(--warning); }

.prediction-targets {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.target-box {
    text-align: center; padding: 1.25rem;
    background: var(--bg-light); border-radius: 10px;
}
.target-label {
    font-size: .72rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: .4rem;
}
.target-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem; font-weight: 700;
    color: var(--text-dark);
    font-variant-numeric: tabular-nums;
}
.target-value.positive { color: var(--success); }
.target-value.negative { color: var(--danger); }

.analysis-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.analysis-card {
    background: white; border-radius: 12px; padding: 1.75rem;
    border-left: 4px solid var(--btc-orange);
}
.analysis-card h3 {
    color: var(--text-dark); margin-bottom: 1rem;
    display: flex; align-items: center; gap: .65rem;
    font-size: 1.05rem;
}
.analysis-card h3 i { color: var(--btc-orange); }
.analysis-list { list-style: none; }
.analysis-list li {
    padding: .65rem 0;
    border-bottom: 1px solid rgba(11,15,26,.06);
    display: flex; align-items: center; gap: .65rem;
    font-size: .92rem;
}
.analysis-list li:last-child { border-bottom: none; }
.analysis-list i { color: var(--btc-orange); }

/* Footer */
.footer {
    background: var(--btc-deep);
    color: white; padding: 3rem 2rem 1rem;
    border-top: 1px solid var(--btc-deep-line);
}
.footer-content {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 2rem;
}
.footer-brand h3 { color: var(--btc-orange); margin-bottom: 1rem; font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.footer-brand p { color: rgba(255,255,255,.65); line-height: 1.75; font-size: .95rem; }
.footer-links h4 { color: var(--btc-orange); margin-bottom: 1rem; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
    color: rgba(255,255,255,.65); text-decoration: none;
    transition: color .2s; font-size: .92rem;
}
.footer-links a:hover { color: var(--btc-orange); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.75rem; text-align: center;
    color: rgba(255,255,255,.45); font-size: .85rem;
}

/* Loading */
.loading-spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 2px solid rgba(247,147,26,.25);
    border-top-color: var(--btc-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .4s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .calculator-grid { grid-template-columns: 1fr; }
    .stats-content { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(247,147,26,.2); }
    .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
    .halving-grid { grid-template-columns: repeat(2, 1fr); }
    .prediction-targets { grid-template-columns: 1fr; }
    .analysis-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--btc-deep-soft); flex-direction: column; padding: 1rem;
    }
    .nav.active { display: flex; }
    .menu-toggle { display: block; }
    .hero-title { font-size: 2.1rem; }
    .price-value { font-size: 2.1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-content { grid-template-columns: 1fr; }
    .stat-item { border-bottom: 1px solid rgba(247,147,26,.2); border-right: none; }
    .stat-item:last-child { border-bottom: none; }
    .price-stats { grid-template-columns: 1fr; gap: .35rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .hero-cta { flex-direction: column; }
    .top-bar-left { flex-direction: column; gap: .5rem; }
    .trust-badges { flex-direction: column; gap: 1rem; }
    .halving-grid { grid-template-columns: repeat(2, 1fr); }
    .halving-cell .num { font-size: 2rem; }
}
