/* Author: Jakob Zeise (Zeise Digital) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000;
  --neon-green: #00ff00;
  --dark-bg: #0a0a0a;
  --text: #fff;
}

html {
  font-size: 14px;
  line-height: 1.2;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Courier New', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1, h2, h3 {
  color: var(--neon-green);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--neon-green);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1rem;
}

a {
  color: var(--neon-green);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

button, input[type="submit"] {
  background: transparent;
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: all 0.2s;
}

button:hover, input[type="submit"]:hover {
  background: var(--neon-green);
  color: var(--black);
}

input[type="text"], 
input[type="number"], 
input[type="email"], 
textarea, 
select {
  background: transparent;
  border: 1px solid var(--neon-green);
  color: var(--text);
  padding: 0.4rem;
  font-family: inherit;
  font-size: 0.9rem;
}

input:focus, 
textarea:focus, 
select:focus {
  outline: none;
  box-shadow: 0 0 5px var(--neon-green);
}

.container {
  width: 100%;
  max-width: 800px;
  padding: 1rem;
}

.card {
  background: var(--dark-bg);
  border: 1px solid var(--neon-green);
  padding: 1rem;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid var(--neon-green);
  padding: 0.5rem;
  text-align: left;
}

th {
  background: var(--dark-bg);
  color: var(--neon-green);
}

::selection {
  background: var(--neon-green);
  color: var(--black);
}

::-moz-selection {
  background: var(--neon-green);
  color: var(--black);
}

.hidden {
  display: none;
}

@media only screen and (max-width: 768px) {
  html {
    font-size: 12px;
  }
  
  .container {
    padding: 0.5rem;
    max-width: 100%;
    position: relative !important;
  }
  
  .card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  h1 {
    font-size: 1.4rem;
    margin-top: 8rem !important;
    text-align: center !important;
  }
  
  h2 {
    font-size: 1rem;
  }
  
  h3 {
    font-size: 0.9rem;
  }
  
  /* Logo positioning for mobile */
  .container div[style*="position: absolute; top: 0; left: 0"] {
    position: static !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  .container div[style*="position: absolute; top: 40px; right: 0"] {
    position: static !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  /* Logo sizes for mobile */
  .container div img[src="Zeise Digital.svg"] {
    height: 120px !important;
  }
  
  .container div img[src="cyborg_verbot.png"] {
    height: 50px !important;
  }
  
  /* Responsive Grid für Gruppen */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  /* Responsive Grid für Berechnungen */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Responsive Grid für Trikots */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Charts responsive */
  canvas {
    max-height: 250px !important;
  }
  
  /* Target section grid responsive */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  /* Footer responsive */
  footer {
    padding: 1.5rem 1rem !important;
    margin-top: 2rem !important;
  }
  
  footer div[style*="max-width: 600px"] {
    max-width: 100% !important;
  }
  
  /* Text size adjustments for mobile */
  footer div[style*="font-size: 1.2rem"] {
    font-size: 1rem !important;
  }
  
  footer div[style*="font-size: 1rem"] {
    font-size: 0.9rem !important;
  }
}

@media only screen and (max-width: 480px) {
  html {
    font-size: 11px;
  }
  
  .container {
    padding: 0.25rem;
  }
  
  .card {
    padding: 0.5rem;
  }
  
  h1 {
    font-size: 1.2rem;
    margin-top: 6rem !important;
  }
  
  /* Logo sizes for very small screens */
  .container div img[src="Zeise Digital.svg"] {
    height: 80px !important;
  }
  
  .container div img[src="cyborg_verbot.png"] {
    height: 40px !important;
  }
  
  /* Trikot images smaller */
  .card img[style*="max-height: 400px"] {
    max-height: 250px !important;
  }
  
  canvas {
    max-height: 200px !important;
  }
  
  /* Target section main number smaller */
  div[style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }
  
  /* Smaller charts for very small screens */
  footer {
    padding: 1rem 0.5rem !important;
  }
}

.cyborg-shield-link:hover div {
  transform: scale(1.05) !important;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8) !important;
}

@media print {
  body {
    background: white;
    color: black;
  }
  
  h1, h2, h3, a, th {
    color: black;
  }
}