/*
  ========================================
  Grundlegendes Setup
  ========================================
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #0f1a27;
  display: flex;
  flex-direction: column;
  height: 100svh;
}

/*
  ========================================
  Typografie und Elemente
  ========================================
*/
#guess-info {
  color: #c7a47a;
  font-weight: bold;
  margin-top: 10px;
}

.btn {
  background-color: #c7a47a;
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
  border-radius: 4px;
  transition: transform 0.3s ease-in-out;
}

.btn:hover {
  background-color: #a38361;
  transform: translateY(-3px);
}

.btn-dark {
  background-color: #0f1a27;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.3s ease-in-out;
}

.btn-dark:hover {
  background-color: #192a3d;
  transform: translateY(-3px);
}

/*
  ========================================
  Layout-Elemente
  ========================================
*/

/* Navigation */
.navbar {
  color: #fff;
  background-color: #0f1a27;
  padding: 15px 40px;
}

.navbar nav {
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  background-color: #0f1a27;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none; /* Entfernt den Unterstrich standardmäßig */
  transition: text-decoration 0.3s; /* Sorgt für einen sanften Übergang des Unterstrichs */
}

.nav-logo:hover,
.nav-logo:active {
  /* Bezieht sich auf den Hover- und geklickten Zustand */
  text-decoration: underline; /* Zeigt den Unterstrich nur beim Hovern an */
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: #0f1a27;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

.hero-image-wrapper {
  background-color: #c7a47a;
  border-radius: 50%;
  padding: 10px;
}

.hero-image-wrapper img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
}

.hero-text h4 {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 5px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Geometrische Shapes */
.shape {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: #c7a47a;
}

.shape-left {
  top: 20%;
  left: 5%;
  clip-path: circle(50% at 50% 50%);
}

.shape-right {
  top: 30%;
  right: 10%;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%);
}

/* About Section */
.about {
  position: relative;
  background-color: #f9f9f9;
  color: #222;
  padding: 60px 20px;
  overflow: hidden;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.about-container h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.about-container p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Geometrische Shapes im About-Bereich */
.about-shape {
  position: absolute;
  background-color: #c7a47a;
  opacity: 0.15;
  z-index: 1;
}

.about-shape.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 20px;
  left: -40px;
}

.about-shape.square {
  width: 100px;
  height: 100px;
  bottom: 30px;
  right: -40px;
}

.about-shape.half-circle {
  width: 100px;
  height: 50px;
  border-radius: 100px 100px 0 0;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
}

/* Projects Section */
.projects {
  background-color: #fff;
  color: #000;
  padding: 40px 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.project-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 15px;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  margin-top: 10px;
  font-size: 1.1rem;
}

.project-card p {
  font-size: 0.85rem;
  color: #666;
}

.project-btn {
  text-align: center;
}

/* Footer */
.footer {
  background-color: #0f1a27;
  color: #fff;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.footer-content a {
  color: #fff;
  text-decoration: none;
}

/* Styling für die Zahlenraten-Seite */
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

main h1 {
  font-size: 2.5em;
  color: #0f1a27;
  margin-bottom: 20px;
  text-align: center;
}

main p {
  font-size: 1.2em;
  margin: 10px 0;
  text-align: center;
  color: #444;
}

#message-list {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
  background-color: #f0f2f5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#message-list li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  color: #0f1a27;
  text-align: center;
}

#message-list li:last-child {
  border-bottom: none;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

#guess-input {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 1.1em;
  width: 200px;
  text-align: center;
}

/* Responsive Stile */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .shape-left,
  .shape-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .about-shape {
    display: none;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .project-card img {
    height: 150px;
  }
}
