/* Chrome-optimierte CSS für Credits Seite - Scroll Fix */

/* Chrome Performance Custom Properties */
:root {
  /* Farbschema */
  --bg-primary: #0b0b0a;
  --bg-secondary: #121212;
  --text-primary: #f0f0f0;
  --text-secondary: #aaa;
  --accent-pink: #ff0077;
  --accent-cyan: #00ffff;
  --accent-red: #ba0001;
  --border-color: #888;
  --shadow-glow: rgba(255, 255, 255, 0.1);

  /* Chrome Performance Variables */
  --transition-fast: 0.15s;
  --transition-medium: 0.3s;
  --border-radius: 5px;
  --spacing-small: 0.5rem;
  --spacing-medium: 1rem;
  --spacing-large: 2rem;
  --spacing-xl: 3rem;

  /* Typography */
  --font-primary: -webkit-system-ui, system-ui, Arial, sans-serif;
  --font-secondary: Verdana, Arial, sans-serif;
  --line-height-base: 1.8;
  --font-size-base: 1.2rem;
}

/* Chrome Hardware Acceleration */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
}

/* Chrome HTML Optimierungen - Scroll Fix */
html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;

  /* Scroll Fixes */
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;

  /* Chrome Performance - entfernt contain */
  will-change: scroll-position;
}

/* Body Scroll Fixes */
html,
body {
  overflow: visible;
  height: auto;
  min-height: 100vh;
}

/* Chrome Body Optimierungen - Scroll Fix */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;

  /* Scroll Fixes */
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;

  /* Chrome Text Rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Chrome Performance - entfernt contain */
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

/* Chrome Container Optimierungen - Scroll Fix */
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: var(--spacing-large);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 20px var(--shadow-glow);

  /* Scroll Fixes */
  min-height: auto;
  height: auto;

  /* Chrome Performance - entfernt contain */
  will-change: box-shadow;
  transform: translate3d(0, 0, 0);

  /* Chrome Border Radius */
  border-radius: 8px;
  isolation: isolate;

  /* Footer Platz */
  margin-bottom: 4rem;
}

/* Chrome Typography Optimierungen */
h1 {
  text-align: center;
  color: var(--accent-pink);
  margin-bottom: var(--spacing-medium);
  font-size: clamp(1.8rem, 4vw, 2.5rem);

  /* Chrome Text Performance */
  will-change: color;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: optimizeSpeed;
}

h2 {
  color: var(--accent-cyan);
  margin-top: var(--spacing-large);
  font-size: clamp(1.4rem, 3vw, 1.8rem);

  /* Chrome Performance - entfernt contain */
  will-change: color;
}

p,
li {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);

  /* Chrome Text Rendering */
  text-rendering: optimizeSpeed;
}

/* Chrome List Optimierungen - Scroll Fix */
ul {
  list-style-type: circle;
  padding-left: var(--spacing-large);

  /* Chrome Performance - entfernt contain */
}

li {
  margin-bottom: var(--spacing-small);

  /* Chrome Performance */
  will-change: contents;
}

li strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Chrome Link Optimierungen */
.popup-link {
  display: inline-block;
  margin: var(--spacing-medium) var(--spacing-medium) 0 0;
  padding: var(--spacing-small) var(--spacing-medium);
  background: #333;
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  text-decoration: none;
  border-radius: var(--border-radius);

  /* Chrome Hardware Acceleration */
  will-change: background-color, border-color, transform;
  transform: translate3d(0, 0, 0);

  /* Chrome Smooth Transitions */
  transition: all var(--transition-medium) cubic-bezier(0.4, 0, 0.2, 1);

  /* Chrome Touch Optimizations */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.popup-link:hover {
  background: #222;
  border-color: var(--accent-cyan);
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 4px 8px rgba(0, 255, 255, 0.2);
}

.popup-link:active {
  transform: translate3d(0, 0, 0);
  transition-duration: var(--transition-fast);
}

.popup-link:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Chrome Footer Optimierungen - Scroll Fix */
footer {
  text-align: center;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-large);
  padding-bottom: var(--spacing-large);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;

  /* Chrome Performance - entfernt contain */
  will-change: color;
}

/* Chrome Utility Classes */
.c1 {
  text-transform: uppercase;
}

.c2 {
  display: block;
}

.c3 {
  color: var(--accent-red);
  font-weight: bold;
}

.c4 {
  display: none;
}

.red {
  color: var(--accent-red);
}

.hype {
  text-decoration: none;
  line-height: unset;
}

/* Chrome Mobile Optimierungen - Scroll Fix */
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-medium);
    margin: var(--spacing-small) var(--spacing-small) 3rem var(--spacing-small);
    max-width: calc(100% - 2rem);
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
    margin-top: var(--spacing-medium);
  }

  p,
  li {
    font-size: 1rem;
    line-height: 1.6;
  }

  ul {
    padding-left: var(--spacing-medium);
  }

  .popup-link {
    display: block;
    margin: var(--spacing-small) 0;
    text-align: center;
  }

  footer {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
}

/* Chrome Tablet Optimierungen */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 750px;
    padding: 1.5rem;
    margin-bottom: 3rem;
  }
}

/* Chrome High Resolution Zoom - Scroll Fix */
@media (min-width: 1000px) and (min-height: 801px) {
  html {
    zoom: 1;
    overflow: visible;
  }

  #d1 {
    zoom: 1;
    transform: none;
  }
}

/* Chrome Landscape Fix */
@media (min-width: 1900px) and (orientation: landscape) {
  html {
    zoom: 1;
    overflow: visible;
    height: auto;
    min-height: 100vh;
  }

  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
}

/* Chrome High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  h1,
  h2,
  .popup-link {
    -webkit-font-smoothing: subpixel-antialiased;
  }

  .popup-link {
    border-width: 0.5px;
  }
}

/* Chrome Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --shadow-glow: rgba(255, 255, 255, 0.15);
  }

  .container {
    box-shadow: 0 0 25px var(--shadow-glow);
  }
}

/* Chrome Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .popup-link:hover {
    transform: none;
  }
}

/* Chrome Print Optimierungen */
@media print {
  .container {
    box-shadow: none;
    background-color: white;
    color: black;
    margin: 0;
    padding: 1rem;
  }

  h1 {
    color: black;
  }

  h2 {
    color: black;
  }

  .popup-link {
    display: none;
  }

  footer {
    margin-top: 2rem;
  }
}

/* Chrome Focus-within Support */
.container:focus-within {
  box-shadow: 0 0 25px var(--shadow-glow),
  0 0 0 2px var(--accent-cyan);
}

/* Chrome Scroll-margin für bessere Navigation */
h1,
h2 {
  scroll-margin-top: 2rem;
}

/* Chrome Loading States */
.container.loading {
  opacity: 0.7;
  filter: blur(1px);
}

.container:not(.loading) {
  opacity: 1;
  filter: none;
  transition: opacity var(--transition-medium) ease,
  filter var(--transition-medium) ease;
}

/* Chrome Intersection Observer Animation */
@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-in {
  -webkit-animation: fade-slide-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation: fade-slide-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Debug Scroll Issues */
/* .debug-scroll {
  outline: 2px solid red !important;
  overflow: visible !important;
  height: auto !important;
} */

body {background-color: #0b0b0a!important;}

@media (orientation:landscape) {
html {max-height: 100%!important;overflow-y: auto;min-height: unset!important;}}