:root {
  --bg-primary: #f0f2f5;
  --bg-secondary: rgba(255, 255, 255, 0.75);
  --bg-tertiary: #e5e5e5;
  --text-primary: #1d1d1f;
  --text-secondary: #000000;
  --text-tertiary: #333333;
  --border-color: #d2d2d7;
  
  --standard-positive: #34c759;
  --standard-negative: #ff3b30;
  
  --accessible-positive: #007aff;
  --accessible-negative: #ff9500; 
  
  --accent-positive: var(--standard-positive);
  --accent-negative: var(--standard-negative);
  
  --accent-blue: #00f2ea;
  --accent-blue-rgb: 0, 242, 234;
  --shadow-color: rgba(0, 0, 0, 0.06);
  
  --btc-gold: #f7931a;
  --btc-dark: #3c3c3b;

  --icon-size: 52px;
}
html.dark {
  --bg-primary: #000000;
  --bg-secondary: rgba(10, 20, 40, 0.75);
  --bg-tertiary: #1c2c4c;
  --text-primary: #f5f5f7;
  --text-secondary: #e5e5e7;
  --text-tertiary: #a1a1a6;
  --border-color: #3a3a3c;
  
  --standard-positive: #30d158;
  --standard-negative: #ff453a;
  
  --accessible-positive: #0a84ff; 
  --accessible-negative: #ff9f0a;
  
  --shadow-color: rgba(0, 0, 0, 0.5);
}
html.accessibility-colors {
    --accent-positive: var(--accessible-positive);
    --accent-negative: var(--accessible-negative);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  cursor: default;
  background-size: 400% 400%;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  animation: gradientShift 20s ease infinite;
}
body.light-theme { background-image: linear-gradient(-45deg, #e0eafc, #cfdef3, #f0f2f5, #cfdef3); }
body.dark-theme { background-image: linear-gradient(-45deg, #020024, #090979, #000000, #00d4ff); }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
#particles-js { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: -1; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--icon-size) + 20px), 1fr)); gap: 1.5rem 0.5rem; justify-items: center; }

.app-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; cursor: pointer; opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.app-wrapper.visible { opacity: 1; transform: translateY(0); }
.arrow-indicator { position: absolute; top: -4px; right: -4px; font-size: 1.2rem; line-height: 1; text-shadow: 0 0 5px rgba(0,0,0,0.7); }
.coin-icon { background-color: var(--bg-secondary); border-radius: 22.5%; width: var(--icon-size); height: var(--icon-size); transition: all 0.2s ease-in-out; box-shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color); display: flex; align-items: center; justify-content: center; overflow: hidden; backdrop-filter: blur(10px); }
.app-wrapper:hover .coin-icon { transform: scale(1.1); box-shadow: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color); }
.coin-icon img { width: 100%; height: 100%; object-fit: cover; }
.coin-icon-label { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); text-align: center; width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-icon.bullish { box-shadow: 0 0 15px 0 var(--accent-positive); }
.coin-icon.bearish { box-shadow: 0 0 15px 0 var(--accent-negative); }
.text-positive { color: var(--accent-positive); }
.text-negative { color: var(--accent-negative); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
.page-wrapper { width: 90vw; max-width: 90vw; margin-left: auto; margin-right: auto; }
.content-card { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; box-shadow: 0 10px 25px -10px var(--shadow-color); backdrop-filter: blur(12px); transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out; }
.content-card:hover { transform: translateY(-5px); box-shadow: 0 0 25px 0 rgba(var(--accent-blue-rgb), 0.3), 0 10px 25px -10px var(--shadow-color); }
.apple-button { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 1px solid transparent; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; box-shadow: 0 1px 2px var(--shadow-color), inset 0 1px 0 rgba(255,255,255,0.1); text-align: center; }
.apple-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.apple-button.gray { background-color: #f2f2f7; color: #000; border-color: #d1d1d6; }
html.dark .apple-button.gray { background-color: #3a3a3c; color: #fff; border-color: #545458; }
.apple-button.btc-gradient { background-image: linear-gradient(to right, var(--btc-gold), #ffb900); color: var(--btc-dark); font-weight: bold; }
.tab-button { padding: 8px 16px; border-bottom: 2px solid transparent; font-weight: 600; color: var(--text-tertiary); cursor: pointer;}
.tab-button.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.tab-content { display: none; }
.tab-content.active { display: block; }
#heatmap-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 0.5rem; }
.heatmap-cell { padding: 0.25rem; border-radius: 8px; color: white; text-align: center; transition: all 0.2s; font-weight: 600; aspect-ratio: 1 / 1; font-size: 0.7rem; border: 1px solid rgba(0,0,0,0.2); }
.heatmap-cell:hover { transform: scale(1.1); z-index: 10; }
.chart-controls button.active { background-color: var(--accent-blue); color: white; }
html.dark .chart-controls button.active { color: black; }
#news-container { transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out, margin 0.5s ease-in-out; max-height: 22rem; overflow-y: auto; }
#news-container.collapsed { max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; overflow: hidden; }
.typing-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { from, to { opacity: 1; } 50% { opacity: 0; } }
.dominance-chart { width: 120px; height: 120px; border-radius: 50%; background-image: conic-gradient(var(--btc-gold) 0% var(--dominance-percent, 0%), var(--bg-tertiary) var(--dominance-percent, 0%) 100%); display: flex; justify-content: center; align-items: center; position: relative; transition: --dominance-percent 1s ease-in-out; }
@property --dominance-percent { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.dominance-chart::before { content: ''; position: absolute; width: 80%; height: 80%; background: var(--bg-secondary); border-radius: 50%; }
.dominance-text { position: relative; z-index: 1; font-size: 1.5rem; font-weight: bold; color: var(--btc-gold); }
.halving-countdown span { display: block; font-size: 1.5rem; font-weight: bold; }
.halving-countdown .label { font-size: 0.75rem; color: var(--text-tertiary); }
.has-tooltip { position: relative; }
.has-tooltip:hover::before, .has-tooltip:hover::after { opacity: 1; visibility: visible; transition-delay: 0.5s; }
.has-tooltip::before { content: attr(data-tooltip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background-color: var(--btc-dark); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; white-space: nowrap; z-index: 100; opacity: 0; visibility: hidden; transition: opacity 0.2s; }
.has-tooltip::after { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border-width: 5px; border-style: solid; border-color: var(--btc-dark) transparent transparent transparent; z-index: 100; opacity: 0; visibility: hidden; transition: opacity 0.2s; }
.has-tooltip.tooltip-bottom::before { top: 125%; bottom: auto; }
.has-tooltip.tooltip-bottom::after { top: 100%; bottom: auto; border-color: transparent transparent var(--btc-dark) transparent; }
.fng-gauge-wrapper { position: relative; width: 200px; height: 130px; margin: 0 auto; }
.fng-gauge { position: absolute; width: 200px; height: 100px; border-radius: 100px 100px 0 0; overflow: hidden; }
.fng-gauge-bg { width: 100%; height: 100%; background: conic-gradient(from -90deg at 50% 100%, #ff453a, #ff9f0a, #30d158); }
.fng-gauge-mask { position: absolute; top: 10px; left: 10px; width: 180px; height: 90px; background: var(--bg-secondary); border-radius: 90px 90px 0 0; }
.fng-needle { position: absolute; bottom: 30px; left: 50%; width: 2px; height: 80px; background: var(--text-primary); transform-origin: bottom center; transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55); box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.fng-center-dot { position: absolute; bottom: 25px; left: 50%; width: 10px; height: 10px; background: var(--text-tertiary); border-radius: 50%; transform: translateX(-50%); }
.fng-value-box { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); text-align: center; }
/* Logo Styling */
.crypto-logo {
    height: 2.5rem; /* Standardhöhe für das Logo */
    width: auto;   /* Automatische Breite beibehalten */
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .crypto-logo {
        height: 2rem; /* Etwas kleiner auf Mobilgeräten */
    }
}