@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;700&display=swap');

:root {
  --bg-dark: #121212;
  --bg-light: #1e1e1e;
  --accent-green: #ffb300;
  --text-primary: #fff5d4;
  --text-secondary: #ffe082;
  --text-muted: #666;
  --shadow: rgba(0, 0, 0, 0.2);
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  --hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
}

/* --- Header / Navbar --- */
.navbar {
  background: var(--bg-light);
  padding: 15px 30px;
  border-radius: 15px;
  margin: 10px auto 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 10px;
  z-index: 1000;
  width: 95%;
  max-width: 1140px;
}

.navbar .logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--accent-green);
  text-decoration: none;
}

.navbar .logo span {
  color: var(--text-primary);
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 5px;
  border-radius: 0;
  transition: color 0.3s ease;
  font-weight: bold;
  position: relative;
  border-bottom: 2px solid transparent;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: var(--accent-green);
  background-color: transparent;
  border-bottom: 2px solid var(--accent-green);
}

/* --- Main Content --- */
main {
  flex-grow: 1;
}

h1, h2, h3 {
  color: var(--accent-green);
  margin-bottom: 15px;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
}

p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.hero p {
  line-height: 1.4;
  margin-bottom: 0px;
}

/* --- Card Base --- */
.card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

/* --- Button Styles --- */
.btn {
  --color: #ffb300;
  font-family: inherit;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 8em;
  height: 2.6em;
  margin: 20px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--color);
  transition: color 0.5s;
  z-index: 1;
  font-size: 17px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--color);
  text-align: center;
  padding: 0;
}

.btn:before {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--color);
  height: 150px;
  width: 200px;
  border-radius: 50%;
}

.btn:hover {
  color: #000000;
}

.btn:before {
  top: 100%;
  left: 100%;
  transition: all 0.7s;
}

.btn:hover:before {
  top: -30px;
  left: -30px;
}

.btn:active:before {
  background: #ffb300;
  transition: background 0s;
}

/* --- Honeycomb / Hexagon Structure --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 0px;
  justify-content: center;
}

.service-card {
  background-color: var(--bg-light);
  padding: 35px 25px;
  text-align: center;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  width: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--accent-green);
  font-size: 1.6em;
  position: relative;
  z-index: 2;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

/* --- Hardware Section --- */
.hardware-section {
  margin-top: 40px;
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.hardware-card {
  background: var(--bg-dark);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hardware-card:hover {
  transform: scale(1.03);
  box-shadow: var(--hover-shadow);
}

.hardware-card h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
}

.hardware-card dl {
  margin-top: 10px;
  text-align: left;
}

.hardware-card dt {
  color: var(--text-secondary);
  font-weight: bold;
  margin-bottom: 5px;
}

.hardware-card dd {
  color: var(--text-secondary);
  margin-left: 0;
  margin-bottom: 10px;
}

/* --- Game Hosting Section (gamecomb.html) --- */
.game-section {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 1;
}

.game-section h2 {
  font-size: 1.8em;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.package-card {
  background: var(--bg-dark);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: scaleIn 0.5s ease-out forwards;
}

.package-card:hover {
  box-shadow: var(--hover-shadow);
  transform: scale(1.05);
}

.package-card h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.package-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.package-card ul li {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 5px;
}

.package-card .price {
  font-weight: bold;
  color: var(--accent-green);
  margin-bottom: 15px;
}

/* --- Community Info Section --- */
.community-info {
  border-left: 4px solid var(--accent-green);
  padding: 25px;
  background-color: #2a2a2a;
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  margin-bottom: 40px;
}

.community-info h2 {
  margin-top: 0;
  font-size: 1.6em;
}

.community-info ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.community-info ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.community-info ul li::before {
  content: '•';
  font-family: sans-serif;
  color: var(--accent-green);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 1.2em;
}

/* --- Paket Legende --- */
.package-legend {
  padding: 15px 20px;
  color: var(--text-secondary);
  background-color: var(--bg-light);
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  margin-top: 30px;
}

.package-legend p {
  margin-bottom: 8px;
  line-height: 1.5;
}

.package-legend p:last-child {
  margin-bottom: 0;
}

.package-legend strong {
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9em;
  background-color: var(--bg-light);
  border-top: 1px solid var(--bg-dark);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-nav {
  margin-top: 10px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

.footer-nav ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--accent-green);
}

/* --- Animationen --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Animation Delays */
.container > h1 { animation-delay: 0.1s; }
.container > p { animation-delay: 0.2s; }
.community-info { animation-delay: 0.3s; }
.game-section:nth-of-type(1) { animation-delay: 0.4s; }
.game-section:nth-of-type(2) { animation-delay: 0.5s; }
.package-legend { animation-delay: 0.6s; }

/* Honeycomb Wrapper - OPTIMIERT mit reduziertem Abstand zur Überschrift */
.honeycomb-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 40px; /* Add more space below the hexagons */
}

.honeycomb-row {
  display: flex;
  gap: 45px; /* Increased gap between hexagons */
  justify-content: center;
  flex-wrap: wrap;
}

.honeycomb-row.top {
  transform: translateY(20%);
  margin-bottom: -10px;
}

/* Wabenform mit exaktem Hexagon-Clipping */
.hex {
  width: 320px; /* Increased from 260px */
  aspect-ratio: 1.15;
  clip-path: polygon(
    50% 0%, 
    93% 25%, 
    93% 75%, 
    50% 100%, 
    7% 75%, 
    7% 25%
  );
  text-align: center;
  padding: 40px 30px; /* Increased padding for more breathing room */
  box-shadow: var(--card-shadow);
  background-color: var(--bg-light);
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hex .btn {
  position: relative;
  margin: 15px auto 5px; /* More space above the button */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hex:hover .btn {
  transform: translateZ(0); /* Beim Hovern scharf bleiben */
}

.hex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hex:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--hover-shadow);
}
.hex h3 {
  margin-bottom: 15px;
  color: var(--accent-green);
  font-size: 1.4em; /* Larger font size */
}

.hex p {
  color: var(--text-secondary);
  font-size: 1.05em; /* Larger font size */
  margin-bottom: 20px;
  max-width: 85%; /* Prevent text from getting too wide */
  margin-left: auto;
  margin-right: auto;
}

/* Spezielle Farbe für zentrale Wabe */
.hex.system {
  background-color: #2a2a2a;
  min-height: 180px; /* Ensure minimum height for top hex */
}


/* Allgemeine Stilregeln */
body, p, span, div, h1, h2, h3, h4, h5, h6, a {
  text-decoration: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 15px;
  }

  h1 { font-size: 2em; }
  h2 { font-size: 1.6em; }

  /* Header/Navbar Mobile */
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    position: static;
    margin-bottom: 20px;
    width: 100%;
    border-radius: 10px;
  }

  .navbar .logo {
    margin-bottom: 15px;
  }

  .navbar ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  .navbar ul li {
    margin-left: 0;
    margin-bottom: 5px;
  }

  .navbar ul li a {
    display: block;
    padding: 8px 12px;
    text-align: center;
    border-radius: 5px;
  }

  .navbar ul li a:hover,
  .navbar ul li a.active {
    background-color: rgba(255, 179, 0, 0.1);
    border-bottom: none;
  }

  /* Padding Anpassungen */
  .card,
  .game-section,
  .community-info,
  .package-legend {
    padding: 20px;
  }

  /* Grid Layouts für Mobile */
  .services-grid,
  .hardware-grid,
  .package-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Wabenform anpassen */
  .service-card {
    clip-path: none;
    min-height: auto;
    padding: 25px;
    border-radius: 15px;
  }

  /* Honeycomb für Mobile */
  .honeycomb-wrapper {
    gap: 20px;
    margin-top: 10px;
  }
  
  .honeycomb-row {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
  
  .honeycomb-row.top {
    transform: none;
    margin-bottom: 0;
  }
  
  .hex {
    width: 85%;
    max-width: 300px;
    clip-path: none;
    border-radius: 15px;
    aspect-ratio: auto;
    min-height: 200px;
  }

  /* Button Anpassungen */
  .btn {
    margin: 10px auto;
    width: 80%;
    max-width: 200px;
    display: block;
  }
  
  /* Karten und Sektionen */
  .card:hover {
    transform: none;
  }
  
  .package-card:hover {
    transform: none;
  }
  
  .hardware-card:hover {
    transform: none;
  }
  
  /* Community Info Sektion */
  .community-info ul li {
    padding-left: 20px;
  }
  
  /* Footer Anpassungen */
  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }
  
  .btn {
    padding: 8px 15px;
    font-size: 0.9em;
    height: auto;
    line-height: normal;
    width: 90%;
    max-width: none;
  }
  
  .navbar .logo img {
    width: 140px;
    height: auto;
  }
  
  .container { 
    padding: 10px; 
    width: 100%;
  }
  
  .card,
  .game-section,
  .community-info,
  .package-legend {
    padding: 15px;
    border-radius: 15px;
  }
  
  /* Hexagons für kleine Bildschirme anpassen */
  .hex {
    width: 95%;
    padding: 15px;
  }
  
  .hex h3 {
    font-size: 1.3em;
  }
  
  .hex p {
    font-size: 0.85em;
  }
  
  /* Package Cards optimieren */
  .package-card {
    padding: 15px 10px;
  }
  
  .package-card h4 {
    font-size: 1.2em;
  }
  
  .package-card ul li {
    font-size: 0.85em;
  }
  
  /* Hardware Cards optimieren */
  .hardware-card {
    padding: 15px;
  }
  
  .hardware-card dt {
    font-size: 0.9em;
  }
  
  .hardware-card dd {
    font-size: 0.85em;
  }
}

/* Icon Styling */
i.fas, i.far, i.fab {
  margin-right: 5px;
  color: var(--accent-green);
}

.navbar ul li a i {
  margin-right: 5px;
  font-size: 0.9em;
}

.hardware-card dt i {
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

.features ul {
  list-style: none;
  padding-left: 10px;
}

.features ul li {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.features ul li i {
  color: var(--accent-green);
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Adjust hero icon */
h1 i, h2 i {
  margin-right: 10px;
}

/* Footer icons */
.footer-nav ul li a i {
  margin-right: 5px;
  font-size: 0.9em;
}

/* Responsive adjustments for icons */
@media (max-width: 768px) {
  i.fas, i.far, i.fab {
    margin-right: 4px;
  }
  
  .navbar ul li a i {
    display: block;
    margin: 0 auto 5px;
    font-size: 1.2em;
  }
}

