@import url("https://fonts.googleapis.com/css2?family=Anonymous+Pro&display=swap");
:root {
  --font: "Nunito", sans-serif;
  --radius: 1.5rem;
  --transition: 0.3s ease;

  /* Light Theme */
  --bg: #fff5f7;
  --text: #2c2c2c;
  --accent: #ffafcc;
  --card: #ffe0eb;
  --comment: #fddde6;

  /* Dark Theme */
  --dark-bg: #18171c;
  --dark-text: #ffcce5;
  --dark-card: #24232a;
  --dark-comment: #2e2d35;
}
html,
body {
  overflow-x: hidden;
  width: 100%;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 🌙 Dark Mode Settings */
body.dark {
  --bg: var(--dark-bg);
  --text: var(--dark-text);
  --card: var(--dark-card);
  --comment: var(--dark-comment);
  --text-color: var(--dark-text);
  --input-bg: #1e1e1e;
  --input-text: var(--dark-text);
  --input-border: #555;

  background-color: var(--bg);
  color: var(--text-color);
}

.dark-mode-btn {
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(255, 105, 180, 0.25);
}
.dark-mode-btn:hover {
  background: #ffcce5;
  color: #111;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 182, 222, 0.5);
}

/* 🖤 Darkmode Style */
body.dark .dark-mode-btn {
  background: #ffb3d6;
  color: #111;
}
body.dark .dark-mode-btn:hover {
  background: #ffe3f0;
  color: #111;
}
/* ✨ Buttons behalten ihre Farbe im Darkmode */
body.dark .stay-light {
  background-color: var(--accent) !important;
  color: #343434;
}
body.dark .stay-light:hover {
  background-color: #ffcce5; /* oder dein bestehendes Rosa */
  color: #000000;
  text-shadow: 0 0 4px #f67aff;
  box-shadow: 0 0 8px rgba(255, 182, 222, 0.3); /* optional glow */
}
/* 💖 Fun-Fact Karten Hover */
.fact-card {
  transition: all 0.3s ease;
}

body.dark .fact-card:hover {
  background-color: #ffcce5;
  color: #1a1a1a;
}

/* 🌸 Glowy Links */
body.dark a:hover {
  color: #ffa5d8;
  text-shadow: 0 0 4px #ffb6e8;
}

/* 📝 Inputs im Darkmode */
body.dark input,
body.dark textarea {
  background-color: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
}

/* 🗂️ Project Cards im Darkmode */
body.dark .project-card {
  background-color: var(--card);
  color: var(--text-color);
  box-shadow: 0 0 10px rgba(255, 182, 222, 0.08);
}

.darkmode-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon {
  display: none;
  stroke: #fff;
  background: transparent;
}

.section {
  min-height: 100vh; /* 🔥 Voller Bildschirm */
  padding: 5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
  scroll-behavior: smooth;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.sidebar-nav {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border-radius: 30px;
  padding: 1.2rem 0.6rem;
  box-shadow: 0 0 10px rgba(255, 175, 215, 0.4);
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.nav-item {
  position: relative;
  text-align: center;
}

.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.nav-item img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.nav-item span {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-item:hover img {
  transform: scale(1.2);
}

.nav-item:hover span {
  opacity: 1;
  color: var(--accent-color);
}

.nav-item::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  background: #fff;
  color: #333;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.nav-item:hover::after {
  opacity: 1;
}

.logo {
  height: 80px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.logo:hover {
  transform: rotate(5deg) scale(1.1);
}

.section[data-aos] {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  scroll-margin-top: 100px;
}

.section {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--bg);
}

.section:nth-child(even) {
  background: var(--card);
}

h1,
h2 {
  font-weight: 800;
  margin-bottom: 1rem;
}
.about-description {
  max-width: 700px;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(255, 150, 200, 0.08);
  transition: background 0.3s ease;
}
.fun-facts-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
}
.badge-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 0 4px rgba(255, 182, 200, 0.5));
}

.carousel-window {
  overflow: hidden;
  width: 100%;
  max-width: 100rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.fact-card {
  flex: 0 0 calc(50% - 1rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 2rem;
  background: var(--card);
  color: var(--text-color);
  border-radius: var(--radius);
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(255, 180, 220, 0.1);
  font-size: 1rem;
  line-height: 1.5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeCard 0.8s ease forwards;
  max-width: 480px;
  justify-content: flex-start;
  will-change: transform;
}

@keyframes fadeCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fact-card:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #ffe6f2, #ffd9ec);
  box-shadow: 0 0 10px rgba(255, 200, 230, 0.4),
    0 4px 24px rgba(255, 170, 210, 0.2);
  z-index: 2;
}

.fact-card:hover .badge-img {
  animation: wiggle 0.6s ease-in-out;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.carousel-track {
  padding: 2rem 0;
  gap: 1rem;
}
.carousel-btn {
  background: var(--card);
  border: none;
  font-size: 1.8rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 150, 200, 0.2);
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: var(--accent-color, #ffaacc);
  color: white;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: 4rem;
}

.hero-type {
  font-family: "Anonymous Pro", monospace;
  font-size: 2.8rem;
  font-weight: bold;
  color: transparent;
  background: linear-gradient(90deg, #ffaad4, #ffc5ea);
  -webkit-background-clip: text;
  background-clip: text;
  text-align: center;
  position: relative;
  margin-bottom: 1rem;
}

.cursor {
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blinkingCursor 0.6s steps(30) infinite normal;
}

.typewriter-animation {
  animation: typewriter 4s steps(30) 0.8s 1 normal both,
    blinkingCursor 0.6s steps(30) infinite normal;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blinkingCursor {
  from {
    border-right-color: rgba(255, 255, 255, 0.75);
  }
  to {
    border-right-color: transparent;
  }
}
.hero-gif {
  width: 40px;
  height: 40px;
  margin-left: 10px;
  vertical-align: middle;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes wiggle {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(4deg);
  }
  50% {
    transform: scale(0.95) rotate(-4deg);
  }
  75% {
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.hero-gif.animate-wiggle {
  animation: wiggle 0.6s ease;
}

@keyframes gif-pop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-30deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.slogan-container {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 3rem;
}

.floating-hearts {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  animation: floaty 8s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -20px);
  }
}

.slogan-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 2;
}

.glow-typewriter {
  font-size: 1.5rem;
  font-family: "Anonymous Pro", monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #e98cbf;
  width: 0;
  background: linear-gradient(90deg, #e671a9, #d985d8, #e98cbf);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: typewriterGlow 6s steps(60) 1s 1 normal both,
    blinkingCursor 500ms steps(60) infinite normal,
    rainbowWave 10s linear infinite;
  transition: transform 0.2s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 3px #d98fb3);
}

.glow-typewriter:hover {
  transform: scale(1.015);
  filter: drop-shadow(0 0 5px #b853a3);
  background-position: right center;
  opacity: 0.97;
}

@keyframes typewriterGlow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blinkingCursor {
  from {
    border-right-color: #ffccde;
  }
  to {
    border-right-color: transparent;
  }
}

@keyframes rainbowWave {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

.bear-heart {
  width: 40px;
  height: auto;
  opacity: 0;
  animation: popIn 0.5s ease-in-out forwards,
    emojiWiggle 6s ease-in-out infinite;
  animation-delay: 6s;
  animation-fill-mode: forwards;
}

@keyframes emojiWiggle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(4deg) scale(1.05);
  }
  50% {
    transform: rotate(-3deg) scale(0.98);
  }
  75% {
    transform: rotate(2deg) scale(1.02);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.btn-cute {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.6rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #e671a9, #d985d8, #c85ca6);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(216, 133, 216, 0.4);
  transition: all 0.3s ease;
  animation: floatButton 3s ease-in-out infinite;
}

.btn-cute:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(216, 133, 216, 0.7);
  background: linear-gradient(135deg, #d179be, #e98cbf);
}

@keyframes floatButton {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.btn-emoji {
  width: 24px;
  height: 24px;
  pointer-events: none;
  animation: wiggleBtn 4s ease-in-out infinite;
}

@keyframes wiggleBtn {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(6deg);
  }
  50% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

.sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(
    circle,
    #ffc4e1 0%,
    #ff9ecb 60%,
    transparent 100%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: sparkle-fade 1s ease forwards;
}

@keyframes sparkle-fade {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(0.5) translateY(-30px);
    opacity: 0;
  }
}

.btn {
  background: var(--accent);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 800px;
  margin: auto;
}

.skills-grid span {
  background: var(--comment);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: inline-block;
  padding: 4px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  margin-right: 0.5rem;
  vertical-align: middle;
}

#projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 4rem;
}

.project-emoji {
  width: 36px;
  height: 36px;
  margin-bottom: 0.8rem;
  object-fit: contain;
  border-radius: 6px;
  animation: wiggle 15s ease-in-out infinite;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.project-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: underline;
}

.project-link {
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-link:hover {
  text-decoration: underline;
  color: #ff5c8a;
}

.comment-form {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 600px;
  margin-inline: auto;
}

.comment-form input,
.comment-form textarea {
  width: 30rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  background: var(--card);
  color: var(--text-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent);
}

.comment-form button {
  align-self: flex-start;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: bold;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

.comment-form button:hover {
  background: #ff79b0;
}
textarea {
  resize: vertical;
  max-height: 200px;
  min-height: 80px;
}

.comment {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 0.4rem 0.5rem;
  background: var(--comment);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(255, 190, 220, 0.15);
  transition: max-height 0.4s ease, padding 0.3s ease;
  overflow: hidden;
  position: relative;
}
.comment-list {
  margin-top: 3rem;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
}
.read-more-toggle {
  background-color: var(--accent); /* bleibt gleich für Light */
  color: #2c2c2c;
  border: none;
  padding: 0.4rem 1rem;
  margin-top: 0.6rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.read-more-toggle:hover {
  background-color: #ffc1dc;
  box-shadow: 0 0 10px rgba(255, 150, 190, 0.3);
}

/* ✨ Für Dark Mode */
body.dark .read-more-toggle {
  background-color: #ffcee2; /* hellrosa Button */
  color: #111; /* dunklere Schrift */
}

body.dark .read-more-toggle:hover {
  background-color: #fbbbd1; /* etwas intensiveres Rosa */
  color: #000;
  box-shadow: 0 0 10px rgba(255, 150, 190, 0.4);
}
.read-more-toggle:active {
  transform: scale(0.96);
}
.comment.expanded {
  max-height: 1000px; /* genug Platz für große Texte */
  padding-bottom: 2.5rem;
}

.read-more-btn {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  background-color: var(--comment);
  padding: 0.3rem 0.6rem;
  border-radius: 1.2rem;
  box-shadow: 0 2px 6px rgba(255, 170, 210, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font);
}

.char-counter {
  font-size: 0.9rem;
  color: var(--text-color);
  text-align: right;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
  transition: color 0.3s ease;
}

.char-counter.warning {
  color: #ff5c8a;
  font-weight: bold;
}

.read-more-btn::after {
  content: "✨";
  transition: transform 0.3s ease;
}

.read-more-btn:hover {
  background-color: #ffcce5;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 170, 220, 0.4);
}

.read-more-btn:hover::after {
  transform: rotate(20deg) scale(1.2);
}

.comment strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 1.1rem;
  text-align: left;
  width: 100%;
}

.comment p {
  text-align: left;
  line-height: 1.6;
  font-size: 0.95rem;
}
/* SKILL BARS */
.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.skill-column {
  flex: 1 1 250px;
  max-width: 300px;
}

.skill-column h3 {
  font-size: 1.4rem;
  font-weight: bold;
  position: relative;
  color: #ff69a2;
  margin-bottom: 50px;
}

.skill-column h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, #ffaacc, #ff77a9);
  border-radius: 2px;
  animation: slideUnderline 13s linear infinite;
}

@keyframes slideUnderline {
  0% {
    width: 30%;
  }
  50% {
    width: 60%;
  }
  100% {
    width: 30%;
  }
}
.skill-column h3:hover {
  transform: scale(1.05);
  text-shadow: 0 0 4px rgba(255, 160, 200, 0.4);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.skill {
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill span {
  display: block;
  display: inline-block;
  transition: all 0.4s ease;
  font-weight: 600;
  margin-bottom: 0.8rem;
  margin-top: 0.5rem;
}
.skill:hover span {
  color: #ff6ea0;
  transform: scale(1.05) rotate(-1deg);
  text-shadow: 0 0 4px rgba(255, 180, 220, 0.6);
}
.skill div {
  background-color: #ddd;
  border-radius: 30px;
  overflow: hidden;
}

.skill div div {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-align: right;
  color: white;
  font-weight: bold;
  transition: width 0.4s ease;
}
.skill-bar-bg {
  background-color: #ddd;
  border-radius: 50px;
  overflow: hidden;
  width: 100%;
  height: 36px; /* ⬅️ dicker */
  display: flex;
  align-items: center;
}

.bar:hover {
  animation: bounnii 1s ease-in-out, shineFlow 1s ease forwards;
  box-shadow: 0 0 8px rgba(255, 173, 214, 0.6),
    0 0 12px rgba(255, 170, 250, 0.4), inset 0 0 4px rgba(255, 190, 240, 0.3);
  cursor: pointer;
  position: relative;
  background-image: linear-gradient(
    120deg,
    rgba(255, 182, 222, 0.8),
    rgba(255, 128, 200, 0.9),
    rgba(255, 182, 222, 0.8)
  );
  background-size: 200% auto;
}
@keyframes shineFlow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}
@keyframes bounnii {
  0% {
    transform: scaleX(1);
  }
  25% {
    transform: scaleX(1.03) scaleY(1.05);
  }
  50% {
    transform: scaleX(0.98) scaleY(1);
  }
  75% {
    transform: scaleX(1.02) scaleY(1.05);
  }
  100% {
    transform: scaleX(1);
  }
}

.particle-heart {
  position: absolute;
  width: 16px;
  height: 16px;
  background-image: url("assets/icons/Flying_Hearts_White.gif"); /* Pfad anpassen */
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 1;
  z-index: 9999;
  animation: heart-pop 0.8s ease-out forwards;
}

@keyframes heart-pop {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(1.2) translate(var(--x), var(--y));
    opacity: 0;
  }
}

.sparkle-trail {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(
    circle,
    #fff6fa 30%,
    #ffc1e6 60%,
    transparent 100%
  );
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  z-index: 9998;
  animation: sparkle-fade 0.6s ease-out forwards;
}

@keyframes sparkle-fade {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.4);
    opacity: 0;
  }
}

.rainbow-glow {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #f5c6df;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  opacity: 0;
  animation: rainbowPulse 6s linear infinite, softPulse 5s ease-in-out infinite;
  transition: transform 0.3s ease, opacity 0.4s ease;
}
.rainbow-glow:hover {
  animation: rainbowPulse 6s linear infinite,
    softPulse 3.5s ease-in-out infinite, hoverBounce 0.6s ease,
    hoverColor 1.2s ease-in-out;
}

.interactive-title:hover::after {
  content: attr(data-title);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff0fa;
  color: #ff3399;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.3);
  margin-top: 8px;
  white-space: nowrap;
  animation: floatUp 0.4s ease-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Bunter, bewegter Glow */
@keyframes rainbowPulse {
  0% {
    text-shadow: 0 0 5px #ff9fd7, 0 0 10px #ff7eb3, 0 0 20px #ff65a3;
  }
  25% {
    text-shadow: 0 0 5px #ffa3cc, 0 0 10px #ff8eb8, 0 0 20px #ff70a6;
  }
  50% {
    text-shadow: 0 0 5px #fcb0e8, 0 0 10px #ea80fc, 0 0 20px #da70d6;
  }
  75% {
    text-shadow: 0 0 5px #c594ff, 0 0 10px #b580f2, 0 0 20px #a570d6;
  }
  100% {
    text-shadow: 0 0 5px #ff9fd7, 0 0 10px #ff7eb3, 0 0 20px #ff65a3;
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes hoverBounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.04) rotate(-1deg);
  }
  60% {
    transform: scale(1.02) rotate(1deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes hoverColor {
  0% {
    color: #fff;
  }
  50% {
    color: #ffc1e3;
  }
  100% {
    color: #fff;
  }
}

.cat-emoji {
  position: absolute;
  width: 48px;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: scale(1);
  transition: transform 0.3s ease;
}

/* Wenn Hover – katze erscheint & wackelt leicht */
.rainbow-glow:hover .cat-emoji {
  animation: catFloat 2s ease-in-out forwards;
}

@keyframes catFloat {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.8) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: translateY(0px) scale(1.05) rotate(3deg);
  }
  60% {
    transform: translateY(-4px) scale(1) rotate(-3deg);
  }
  100% {
    transform: translateY(-2px) scale(1) rotate(0deg);
  }
}

/* 💖 Zufälliges Erscheinen (Bonus, jede 15s) */
@keyframes catSurprise {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.5);
  }
  10% {
    opacity: 1;
    transform: translateX(10px) scale(1.1);
  }
  90% {
    opacity: 1;
    transform: translateX(-10px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(0) scale(0.5);
  }
}

/* Beispielhafte Farben */

/* LINK-HOVER */
a {
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* BUTTON HOVER SPARKLE */
.btn:hover {
  box-shadow: 0 0 10px var(--accent);
}

/* COMMENT BOX ENHANCED */

/* Aesthetic Extras */
body::before {
  content: \"☆彡\";
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-size: 2rem;
  opacity: 0.4;
  pointer-events: none;
}

.contact-description {
  text-align: center;
  max-width: 600px;
  margin: 3rem auto 2.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.9;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 5rem;
  margin-bottom: 7rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 2rem;
  background-color: var(--card);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 170, 200, 0.2);
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 170, 200, 0.4);
}

.contact-icon {
  height: 24px;
  object-fit: contain;
  width: auto;
}
#contact,
.section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-info,
.footer-links {
  text-align: center;
  color: var(--text-color);
  font-size: 0.9rem;
  opacity: 0.8;
}

.site-footer {
  padding: 2rem;
  background: var(--card);
  border-top: 1px solid #ffd5eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
}

body.dark .site-footer {
  background: var(--dark-card);
}

body.dark .footer-links a {
  color: #ffaacc;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg);
  color: var(--text-color);
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 0 20px rgba(255, 150, 200, 0.3);
  overflow-y: auto;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent);
}

.modal-content h2 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 📱 Hamburger Button */
.hamburger {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  font-size: 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 150, 200, 0.4);
  transition: background 0.3s ease;
}
.hamburger:hover {
  background: #ff8ec5;
}

#mobile-nav-wrapper {
  transition: left 0.3s ease;
}

/* 📱 Responsive Behavior */
/* 🍔 Hamburger sichtbar ab max-width */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    font-size: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 150, 200, 0.4);
    transition: background 0.3s ease;
  }

  .sidebar-nav {
    position: fixed;
    top: 3rem;
    transform: none !important;
    left: -5rem;
    width: 5rem;
    height: auto;
    background: var(--card);

    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
    transition: left 0.3s ease;
    z-index: 1000;
    border-radius: 0 1.5rem 1.5rem 0;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .sidebar-nav.active {
    left: 0;
  }

  .sidebar-nav ul {
    list-style: none;
    align-items: flex-start;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.2rem; /* Abstand zwischen Icon & Text */
    flex-direction: row; /* Damit Text neben dem Icon */
  }
  .sidebar-nav li img {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 8px;
  }
  .nav-item:last-child {
    margin-top: auto;
  }
  .nav-item:first-child {
    padding-top: 2rem;
  }
  .nav-label {
    display: inline;
  }

  .nav-item a {
    display: flex;
    align-items: center;
  }

  .nav-item img {
    width: 1rem;
    height: 3rem;
  }
  .sidebar-nav .nav-text {
    display: none;
  }
}
.nav-label {
  font-size: 0.9rem;
  margin-left: 0.5rem;
  color: var(--text-color);
  display: none; /* Standard: ausblenden */
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0.6rem;
}

.sidebar-nav .nav-text {
  display: inline-block;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 20;
}

@media (max-width: 768px) {
  #hero {
    padding: 4rem 1rem;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  .hero-type {
    font-size: 1.8rem;
    word-break: break-word;
    white-space: normal;
  }

  .hero-content h1 {
    font-size: 1rem;
    line-height: 2.4rem;
    word-break: break-word;
    word-wrap: break-word;
    white-space: normal;
  }

  .typewriter-container {
    font-size: 0.3rem;
    max-width: 90vw;
    word-break: break-word;
    word-wrap: break-word;
    white-space: normal;
  }
  .glow-typewriter {
    white-space: normal !important;
    word-break: break-word;
    text-align: center;
    font-size: 1rem;
    width: 100%;
    animation: none !important;
  }
  #typewriter-text {
    font-size: 1.1rem;
    max-width: 90%;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .btn-cute {
    font-size: 0.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.8rem;
  }

  #hero-gif {
    width: 1.5rem;
    height: 1.5rem;
  }

  .slogan-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -3rem;
    gap: 1rem;
  }
  .floating-hearts {
    width: 2rem;
    height: 2rem;
  }

  .bear-heart {
    width: 0;
    height: 0;
  }

  .sparkle-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}
@media (max-width: 768px) {
  .interactive-title {
    font-size: 1.7rem;
  }
  .interactive-title:hover::after {
    font-size: 0.5rem;
    padding: 0.3rem 0.6rem;
  }
  .about-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  #comment-list {
    padding: 0.8rem;
    gap: 0.6rem;
  }

  .comment {
    font-size: 0.7rem !important;
  }

  .comment * {
    font-size: inherit !important;
  }

  .char-counter {
    font-size: 0.5rem;
    color: var(--text-subtle); /* falls vorhanden */
    text-align: right;
    margin-top: -0.4rem;
    margin-bottom: 0.5rem;
  }
  .comment-form {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.4rem;
    font-size: 0.6rem;
    box-sizing: border-box;
    margin-bottom: 0.8rem;
  }

  .comment-form button {
    width: 100%;
    font-size: 0.7rem;
    padding: 0.6rem;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .carousel-track {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .fact-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    font-size: 0.8rem;
    padding: 1rem;
    margin: 0 auto;
  }

  .carousel-window {
    overflow: visible;
  }

  .badge-img {
    width: 28px;
    height: 28px;
  }
  .carousel-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .skills-wrapper {
    gap: 5rem;
  }
}
@media (max-width: 768px) {
  #skills h2,
  #skills .section-title,
  #skills .interactive-title {
    text-align: center !important;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    margin-right: 5rem;
    margin-bottom: -7rem;
  }
}
@media (max-width: 768px) {
  .skills-wrapper {
    padding: 1rem;
    gap: 1rem;
    transform: scale(0.95); /* Skalierung optional */
  }

  .skill-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .skill {
    font-size: 0.6rem;
    padding: 0.4rem 0.7rem;
  }

  .skill-bar-bg {
    height: 2rem; /* Kleiner für Handy */
  }

  .bar {
    height: 100%;
    padding: 0;
    line-height: 18px;
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .project-grid {
    padding: 1rem;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 0.8rem;
    font-size: 0.4rem;
    border-radius: 0.6rem;
  }

  .project-card h3 {
    font-size: 0.8rem;
  }

  .project-card p {
    font-size: 0.6rem;
  }
}
@media (max-width: 768px) {
  .contact-description {
    font-size: 0.8rem;
    margin-bottom: 3rem; /* 👈 hier reduzieren! */
  }

  .contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 1rem;
    margin-top: 0 !important; /* 👈 falls nötig */
    padding-top: 0.2rem;
  }

  .contact-btn {
    font-size: 0.75rem;
    padding-top: 0.3rem;
    border-radius: 0.6rem;
    justify-content: center;
    text-align: center;
  }

  .contact-icon {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.4rem;
  }
}
@media (max-width: 768px) {
  /* Überschriften kleiner und mit reduziertem Abstand */
  h1,
  h2,
  h3,
  h4 {
    margin-bottom: 2rem;
  }

  .section h2,
  .section h3 {
    margin-bottom: 2rem !important;
  }

  /* Spezifisch für bestimmte Sections */
  #about h2,
  #skills h2,
  #comments h2,
  #projects h2,
  #contact h2 {
    margin-bottom: 1.5rem !important;
  }

  #about .about-description,
  #skills .skills-wrapper,
  #comments .comment-form,
  #comments .comment-list,
  #projects .project-grid,
  #contact .contact-buttons {
    margin-top: 0 !important;
  }
}
@media (max-width: 768px) {
  .site-footer {
    padding: 1rem;
    gap: 0.5rem;
  }

  .footer-info,
  .footer-links {
    font-size: 0.7rem;
    text-align: center;
  }

  .footer-links {
    gap: 0.8rem;
    margin-top: 0.5rem;
  }

  .footer-links a {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .modal-content {
    padding: 1rem;
    font-size: 0.7rem;
  }

  .modal-content h2 {
    font-size: 1.2rem;
  }

  .modal-content p {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .modal-close {
    font-size: 1.2rem;
  }
}
