:root {
    --bg: #0b0f1f;
    --text: #e6e8f0;
    --muted: #a6a6b8;
    --accent: #7fffd4;
}

body {
  background: #0b0f1f;
  color: #e6e8f0;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  margin: 0;
}

h2 {
  font-size: 2.2rem;
  margin-top: 32px;
  margin-bottom: 40px;
  text-align: center;
}

h2 span { color: var(--accent); }

/* Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce ) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Navigationbar index.html */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 20px auto;
    padding: 8px;
    background: #171717;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-links a {
    display: block;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    border-radius: 999px;
    transition: background 0.2s;
}

a {
    color: #7fffd4;
}

.nav-links a:hover {
    background: rgba( 255, 255, 255, 0.1);
}

.nav-links a.active {
    background: #fd853a;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: #fd853a;
    border-radius: 50%;
    font-size: 12px;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  opacity: 1;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animation to X */
.navbar.open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar.open .burger span:nth-child(2) { opacity: 0; }
.navbar.open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    margin: 12px;
    padding: 8px 8px 8px 16px;
    border-radius: 28px;
  }

  .logo { order: 1;}
  .burger { order: 2; display: flex;}

  .nav-links {
    order: 3;
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .navbar.open .nav-links { display: flex; }
  .navbar.open .nav-links:first-of-type { margin-top: 12px; }
  .nav-links a { padding: 14px 20px; text-align: center; }
}

/* About Me/Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin: 16px 0; }
.hero h1 span { color: #7fffd4; }
.hero .subtitle { color: #a0a6b8; font-size: 1.2rem; margin-bottom: 32px; }
.tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

#projects h2 {
  text-align: center;
  margin-bottom: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, opacity 0.8s ease;;
}

.project-card.reveal:nth-child(2) {
  transition-delay: 0.15s;
}

.project-card.visible:hover {
  transform: translateY(-6px);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #7fffd4;
}

.project-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.card-body { padding: 20px; }
.card-body h3 { margin: 0 0 8px; }
.card-body p { color: #a6a6b8; margin: 0 0 16px; }

.card-link {
    color: #7fffd4;
    text-decoration: none;
    font-weight: 600;
}

.card-actions {
  display: flex;
  justify-content: center;   /* schiebt beide in die Mitte */
  align-items: center;
  gap: 24px;
}

.center { text-align: center; margin: 40px 0 100px; }

/* More Projects Button */
.btn {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border: none;
  outline: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-transform: uppercase;
  background-color: rgb(14, 14, 26);
  color: rgb(234, 234, 234);
  font-weight: 700;
  transition: 0.6s;
  box-shadow: 0px 0px 60px #1f4c65;
  display: inline-block;
  text-decoration: none;
  -webkit-box-reflect: below 10px linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.4));
}

.btn:active {
  scale: 0.92;
}

.btn:hover {
  background: rgb(2,29,78);
  background: linear-gradient(270deg, rgba(2, 29, 78, 0.681) 0%, rgba(31, 215, 232, 0.873) 60%);
  color: rgb(4, 4, 38);
}

/* Play on Roblox Button */
.button-with-icon {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1a9e82;
  font-family: inherit;
  letter-spacing: 1px;
  padding: 0 12px;
  text-align: center;
  width: 120px;
  height: 40px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: normal;
  border-radius: 3px;
  outline: none;
  user-select: none;
  cursor: pointer;
  transform: translateY(0px);
  position: relative;
  box-shadow:
    inset 0 30px 30px -15px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 1px 20px rgba(0, 0, 0, 0),
    0 3px 0 #1a9e82,
    0 3px 2px rgba(0, 0, 0, 0.2),
    0 5px 10px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.1);
  background: #2fd4b0;
  color: white;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  transition: 150ms all ease-in-out;
  text-decoration: none;
}

.button-with-icon .icon {
  margin-right: 8px;
  width: 24px;
  height: 24px;
  transition: all 0.5s ease-in-out;
}

.button-with-icon:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 16px 2px -15px rgba(0, 0, 0, 0),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 20px rgba(0, 0, 0, 0.1),
    0 0 0 #1a9e82,
    0 0 0 2px rgba(255, 255, 255, 0.5),
    0 0 0 rgba(0, 0, 0, 0),
    0 0 0 rgba(0, 0, 0, 0);
}

.button-with-icon:hover .text {
  transform: translateX(80px);
}
.button-with-icon:hover .icon {
  transform: translate(23px);
}

.button-with-icon .text {
  transition: all 0.5s ease-in-out;
}

/* Contact Form */
.form-card1 {
  max-width: 700px;
  margin: 0 auto 80px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), rgba(127, 255, 212, 0.1) 60%);
  border-radius: 22px;
  transition: box-shadow 0.3s;
}

.form-card1:hover {
  box-shadow: 0 0 40px rgba(127, 255, 212, 0.15);
}

.form-card2 {
  border-radius: 21px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 48px 40px;
  background: #0e1428;
  border-radius: 21px;
  font-family: inherit;
}

.form-heading {
  text-align: center;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 600;
}

.form-field {
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, background 0.2s;
}

.form-field:focus-within {
  border-color: var(--accent);
  background: rgba(127, 255, 212, 0.04);
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}

.input-field::placeholder {
  color: var(--muted);
}

.sendMessage-btn {
  align-self: center;
  margin-top: 12px;
  padding: 14px 40px;
  border: none;
  outline: none;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0f1f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sendMessage-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(127, 255, 212, 0.3);
}

@media (max-width: 600px) {
  .form { padding: 32px 20px; }
}

/* Footer */
.footer{
  margin-top: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding:  60px 20px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-text {
  color: var(--muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255 0.15);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copyright {
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects.html */
.case-study {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.case-study section { padding: 48px 0; }
.case-study h2 { text-align: left; }
.case-study h3 { margin: 28px 0 12px; color: var(--accent); font-size: 1.1rem; }
.back-link { text-decoration: none; color: var(--muted); }

.cs-header { text-align: center; padding: 60px 0 40px; }
.cs-header h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 16px 0; }
.cs-header h1 span { color: var(--accent); }

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.cs-tags li {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}

.cs-hero-img {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 40px;
  border-radius: 20px;
}

.cs-video {
  width: 100%;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0e1428;
  margin-top: 32px;
}

.feature-list { padding-left: 20px; }
.feature-list li { margin-bottom: 12px; }

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.screenshot-grid figure { margin: 0; }

.screenshot-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.screenshot-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

.cs-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-nav a { text-decoration: none; font-weight: 600; }

/* Code Sample */
.code-window {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #0e1428;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
  margin-left: 12px;
  color: var(--muted);
  font-size: 13px;
}

.code-window pre {
  margin: 0;
  padding: 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}

.code-window pre code.hljs {
  background: transparent;
  padding: 0;
}

/* Dunkle Scrollbar statt der weißen */
.code-window pre::-webkit-scrollbar { height: 8px; }
.code-window pre::-webkit-scrollbar-track { background: transparent; }
.code-window pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
.code-window pre { scrollbar-color: rgba(255,255,255,0.15) transparent; } /* Firefox */

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: #0b0f1f;
  border-color: var(--accent);
  font-weight: 600;
}

.project-card.hidden {
  display: none;
}

/* In Progress Badge */
.project-card { position: relative; }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 22px;
  border-radius: 999px;
  background: rgba(11, 15, 31, 0.85);
  border: 1px solid #fdd835;
  color: #fdd835;
  font-size: 12px;
  font-weight: 600;
}

/* Resume.html */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.exp-card {
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.exp-head,
.exp-role-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-head h3 { margin: 0; font-size: 1.2rem; }

.exp-date {
  color: var(--muted);
  font-size: 14px;
}

.exp-role {
  color: var(--accent);
  font-weight: 600;
  margin: 4px 0 0;
}

.exp-text {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 15px;
}

.exp-sub {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

/* Zeitleiste für mehrere Rollen */
.exp-roles {
  list-style: none;
  margin: 16px 0 0;
  padding-left: 20px;
  border-left: 2px solid rgba(127, 255, 212, 0.3);
}

.exp-roles li {
  position: relative;
  padding-bottom: 16px;
}

.exp-roles li:last-child { padding-bottom: 0; }

.exp-roles li::before {          /* Punkt auf der Linie */
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.skill-group {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.skill-group h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 14px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  margin: 0;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stars {
  color: #fdd835;
  letter-spacing: 2px;
}

.testimonial blockquote {
  margin: 0;
  font-style: italic;
  line-height: 1.7;
  flex-grow: 1;        /* Namen stehen bei allen Karten unten auf einer Höhe */
}

.testimonial figcaption {
  display: flex;
  flex-direction: column;
}

.testimonial figcaption span {
  color: var(--muted);
  font-size: 14px;
}

/* Serice.html */
.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 550px;
  margin: -16px auto 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Tablet: 2 × 3 */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Handy: untereinander */
@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: transform 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  font-size: 24px;
  background: rgba(127, 255, 212, 0.1);
  border-radius: 14px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}