:root {
  --transition-speed: 0.6s;
  --font-family: 'Poppins', sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
  --neon-color1: #00ffff;
  --neon-color2: #ff00ff;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  background: #000;
  font-family: var(--font-family);
}

.container {
  display: flex;
  height: 100vh;
  width: 100%;
  padding: 20px;
  gap: 20px;
  overflow: hidden;
}

/* PANELS */
.panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 18px;

  text-decoration: none !important;
  color: inherit;

  transition:
    flex-grow var(--transition-speed) ease,
    border-width 0.4s ease,
    border-color 0.4s ease;
}

/* Hover: Panel wird groß, Rand wächst */
.panel:hover {
  flex-grow: 3;
  border-width: 4px;
  border-color: rgba(255,255,255,0.25);
}

.panel img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  position: absolute;
  top: -5%;
  left: -5%;
  z-index: 1;
  transition: transform var(--transition-speed) ease;
}

.panel:hover img {
  transform: scale(1.1);
}

/* Overlay */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

/* TEXT (unten) */
.text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 3;

  opacity: 0;
  font-size: 2em;
  font-weight: 600;
  color: #fff;
  padding: 20px 40px;
  border-radius: 15px;

  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);

  /* Schnell verschwinden, smooth erscheinen */
  transition:
    opacity 0.2s ease,
    transform 0.4s ease;
}

/* Hover → Text erscheint mit Delay & Glow */
.panel:hover .text {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1.05);
  transition-delay: 0.25s;
  animation: textGlow 3s infinite alternate;
}

/* Glow Animation */
@keyframes textGlow {
  0%   { text-shadow: 0 0 10px var(--neon-color1), 0 0 20px var(--neon-color1); }
  50%  { text-shadow: 0 0 15px var(--neon-color2), 0 0 30px var(--neon-color2); }
  100% { text-shadow: 0 0 10px var(--neon-color1), 0 0 20px var(--neon-color1); }
}

/* MOBILE */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .panel {
    height: 33.33vh;
    border-width: 2px;
  }

  /* Text dauerhaft sichtbar & unten */
  .text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    animation: none;
    font-size: 1.5em;
    padding: 15px 25px;
    transition-delay: 0s;
  }
}

/* Sicherstellen, dass Links niemals unterstrichen sind */
.panel,
.panel:hover,
.panel:active,
.panel:focus,
.panel:visited {
  text-decoration: none !important;
  outline: none !important;
  color: inherit !important;
}
