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

:root {
  --primary-color: #ff8fb1;
  --secondary-color: #bc6b99;
  --accent-color: #fcddec;
  --dark-color: #333;
  --light-color: #fff;
  --grey-color: #f6f6f6;
  --text-color: #444;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.8;
  letter-spacing: 0.3px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

h1, h2, h3 {
  margin-bottom: 20px;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

p {
  margin-bottom: 15px;
}

.highlight {
  color: var(--primary-color);
}

/* === NAVIGATION === */
.navbar {
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}
/* === INTERESSEN === */
.interest-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 0; /* Kein Abstand mehr über den Karten! */
}

.interest-card {
  background: var(--light-color);
  border-radius: 12px;
  padding: 20px;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: var(--transition);
}

.interest-card:hover {
  transform: translateY(-5px);
}

.interest-card i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.interest-card h3 {
  margin: 10px 0;
  font-size: 20px;
}

.interest-card p {
  font-size: 16px;
  color: var(--text-color);
}

.logo:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  background: linear-gradient(to right, rgba(255,143,177,0.5), rgba(252,221,236,0.5)),
              url('images/background.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: #ffffff;
  color: #333;
  padding: 16px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-size: 14px;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 auto;
}

.cookie-banner a {
  color: #9966cc;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #9966cc;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 16px;
  flex-shrink: 0;
}

.cookie-banner button:hover {
  background-color: #7c4dac;
}


.subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dark-color);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* === ABOUT === */
.about {
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--accent-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.about-text {
  flex: 1;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-3px);
}

/* === PROJEKTE === */
.projekte {
  background-color: var(--grey-color);
  text-align: center;
}

.projekt-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  padding: 8px 20px;
  color: var(--dark-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.projekt-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.projekt-item {
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.projekt-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.projekt-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.projekt-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.projekt-item:hover .projekt-image img {
  transform: scale(1.1);
}

.projekt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.projekt-item:hover .projekt-overlay {
  opacity: 1;
}

.projekt-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.play-game {
  width: auto;
  border-radius: 30px;
  padding: 0 20px;
  gap: 10px;
}

.projekt-info {
  padding: 20px;
  text-align: left;
}

.projekt-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.projekt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.projekt-tags span {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
}

/* === MODAL (Memory-Spiel) === */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background-color: var(--light-color);
  margin: 20px auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark-color);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
}

/* === MEMORY GAME GRID === */
.memory-game-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  perspective: 1000px;
}

.memory-card {
  height: 120px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  cursor: pointer;
}

.memory-card.flip {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-front {
  background-color: var(--primary-color);
  transform: rotateY(180deg);
  color: white;
}

.card-back {
  background-color: var(--accent-color);
}

/* === FORMULAR === */
.kontakt {
  background-color: var(--grey-color);
  text-align: center;
}

.kontakt form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.kontakt input,
.kontakt textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.kontakt input:focus,
.kontakt textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(255,143,177,0.3);
}

.kontakt textarea {
  min-height: 150px;
  resize: vertical;
}

.kontakt button {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kontakt button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* === FOOTER === */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 30px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .social-links {
  margin-top: 0;
}

footer .social-icon {
  background-color: #444;
  color: var(--light-color);
}

footer .social-icon:hover {
  background-color: var(--primary-color);
}

footer .fa-heart {
  color: var(--primary-color);
}

