body {
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding-top: 100px;
}

h2 {
  color: #A6E22E;
}

/* START Nav */
header {
  width: 80%;
  height: 40px;
  background: #333;
  color: white;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 15px;
  margin-top: 15px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  justify-content: space-between;
}

#buttons_nav {
  margin-left: 15px;
  display: flex;
}

#title_nav {
  flex-grow: 1;
  text-align: center;
}

header ul a{
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #fff;
}

header ul a:hover{
  text-decoration: underline;
}

header .logo{
  display: block;
  float: left;
  display: block;
  font-size: 2em;
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
}

header .menu {
  position: absolute;
  top: 50px; /* Abstand nach unten vom Hamburger-Icon */
  right: 0px; /* Rechts ausgerichtet */
  background: #222; /* Dunkler Hintergrund */
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  width: 200px; /* Breite der Box */
  max-height: 0;
  min-height: 50px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0; /* Unsichtbar standardmäßig */
  padding: 10px;
}

header .menu a {
  color: white;
  text-decoration: none;
  display: block;
}

header .menu a:hover {
  background: #2e2e2e;
}

header .menu .item1 .icon,
header .menu .item2 .icon,
header .menu .item3 .icon,
header .menu .item .icon{
  margin-right: 5px;
}

header .menu .item1 .icon .fa,
header .menu .item2 .icon .fa,
header .menu .item3 .icon .fa,
header .menu .item .icon .fa{
  font-size: 20px;
  transition: 0.5s;
  color: #ffffff;
}

header .menu .item1:hover .icon .fa,
header .menu .item2:hover .icon .fa,
header .menu .item3:hover .icon .fa,
header .menu .item:hover .icon .fa{
  transform: rotate(360deg);
}

header .menu-icon{
  padding: 28px 20px;
  position: relative;
  float: right;
  cursor: pointer;
}

header .menu-icon .nav-icon{
  background: #ffffff;
  display: block;
  height: 2px;
  width: 18px;
  position: relative;
  transition: background .2s ease-out;
}

header .menu-icon .nav-icon:before{
  background: #ffffff;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
  top: 5px;
  transition: all .2s ease-out;
}

header .menu-icon .nav-icon:after{
  background: #ffffff;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
  top: -5px;
  transition: all .2s ease-out;
}

header .menu-btn{
  display: none;
}

header .menu-btn:checked ~ .menu {
  max-height: 300px;
  opacity: 1;
}

header .menu-btn:checked ~ .menu-icon .nav-icon{
  background: transparent;
}

header .menu-btn:checked ~ .menu-icon .nav-icon:before{
  top: 0;
  transform: rotate(-45deg);
}

header .menu-btn:checked ~ .menu-icon .nav-icon:after{
  top: 0;
  transform: rotate(45deg);
}

header .menu li {
  list-style: none;
  border-bottom: 1px solid #444;
}

header .menu li:last-child {
  border-bottom: none;
}
/* END Nav */


/* START Terminal */

/* Terminal-Container für spezifische Positionierung */
.terminal-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  width: 80%; /* Gleiche Breite wie die Navigationsleiste */
  margin-bottom: 50px;
}

/* Standardmäßig: About-Me-Terminal links, Skills-Terminal rechts */
.terminal:nth-of-type(1) {
  order: 1; /* About-Me-Terminal zuerst (links) */
  width: 65%; /* Breiteres Terminal für About-Me */
  height: 500px; /* Fixe Höhe für das About-Me-Terminal */
}

#skills_terminal {
  order: 2; /* Skills-Terminal als zweites (rechts) */
  width: 25%; /* Schmaler für die Seitenleiste */
  height: 500px; /* Gleiche Höhe wie About-Me-Terminal */
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.5);
}

.terminal {
  background-color: #1a1a1a;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 50px;
}

.header {
  display: flex;
  align-items: center;
  padding: 5px;
  background: #333;
  border-radius: 5px 5px 0 0;
}
.buttons {
  display: flex;
}
.buttons div {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }
.content {
  padding: 0;
  white-space: pre-line;
  flex: 1;
  overflow-y: auto;
  background-color: #1a1a1a;
  max-height: calc(100% - 30px); /* Abzüglich Header-Höhe */
}
.prompt {
  color: #A6E22E;
}
.command-line {
  margin: 0;
  padding: 4px 10px;
}
.output-line {
  margin: 0;
  padding: 0 10px;
}
.cursor {
  display: inline-block;
  width: 10px;
  height: 16px;
  background: #ffffff;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  50% { opacity: 0; }
}
/* END Terminal */

/* START Terminal Skills */
section {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Zwei Spalten im Skills-Terminal */
  gap: 15px;
  padding: 15px;
  height: 100%;
  overflow-y: auto;
  align-items: start;
  justify-items: center;
}

section .card {
  position: relative;
  width: 80px;
  height: 100px;
  transform-style: preserve-3d;
  perspective: 10000px;
  margin: 0;
}

section .card .box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: 1s ease;
}

section .card:hover .box {
  transform: rotateY(180deg);
}

section .card .box .imgBx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
}

section .card .box .imgBx svg {
  width: 55px;
  height: 55px;
}

section .card .box .contentBx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1A1A1A;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
}

section .card .box .contentBx div {
  transform-style: preserve-3d;
  height: 60px;
  width: 60px;
  padding: 5px;
  transform: translateZ(40px);
  align-items: center;
  justify-content: center;
  display: flex;
}

section .card .box .contentBx div svg {
  width: 100%;
  height: 100%;
}

section .card .box .contentBx div svg text {
  font-size: 36px;
}
/* END Terminal Skills */

/* START Gitlab Pipeline */
.pipeline-container {
  width: 80%; /* Gleiche Breite wie die Navigationsleiste */
  margin: 0 auto;
  margin-bottom: 25px;
}

.pipeline-header {
  display: flex;
  border-bottom: 1px solid #383640;
  margin-bottom: 20px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.tab {
  padding: 8px 16px;
  margin-right: 10px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  background-color: #A6E22E;
  color: white;
  border: 1px solid #A6E22E;
}

.tab:not(.active) {
  background-color: transparent;
  border: 1px solid #383640;
}

.counter {
  background-color: #383640;
  border-radius: 50%;
  display: inline-block;
  width: 18px;
  height: 18px;
  text-align: center;
  font-size: 12px;
  margin-left: 5px;
}

/* Pipeline Ansicht */
.pipeline-view {
  display: block;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.pipeline-row {
  display: contents;
}

.stage {
  background-color: #333333;
  border-radius: 8px;
  min-width: 0;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  height: fit-content;
}

.stage-header {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #383640;
}

.job {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #383640;
}

.job:last-child {
  border-bottom: none;
}

.job-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-name {
  flex-grow: 1;
  font-size: 14px;
  word-break: break-word;
}

.retry-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  flex-shrink: 0;
}

.retry-icon svg {
  transition: transform 0.3s ease;
}

.success-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #27ae60;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.failed-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e24329;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.pending-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #1068bf;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.pending-icon svg {
  animation: rotate 2s linear infinite;
}

.planned-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #777777;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Jobs Ansicht */
.jobs-view {
  display: none;
}

.job-entry {
  background-color: #333333;
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 16px;
}

.job-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.job-status {
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.job-number {
  margin-right: 10px;
  color: #aaa;
}

.job-stage {
  background-color: #3c3c54;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  margin-left: 10px;
}

.job-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #aaa;
}

.job-time {
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.job-time svg {
  margin-right: 5px;
}

.job-date {
  display: flex;
  align-items: center;
}

.job-date svg {
  margin-right: 5px;
}

.job-actions {
  display: flex;
  justify-content: flex-end;
}

.job-refresh {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.job-refresh svg {
  color: #aaa;
  transition: transform 0.3s ease;
}

.job-tag {
  background-color: #3c3c54;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.job-tag svg {
  margin-right: 5px;
}

.passed-text {
  color: #27ae60;
}

.running-text {
  color: #1068bf;
}

.rotating {
  animation: rotate-refresh 1s linear infinite;
}

@keyframes rotate-refresh {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design für verschiedene Bildschirmgrößen */
/* iPad und kleiner (768px ist typische iPad-Breite) */
@media (max-width: 768px) {
  .terminal:nth-of-type(1),
  #skills_terminal {
    order: 0; /* Zurücksetzen der Reihenfolge */
    width: 100%; /* Volle verfügbare Breite innerhalb des Containers */
  }
  
  #skills_terminal {
    height: auto; /* Höhe automatisch anpassen */
  }
  
  section {
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten auf iPad */
  }
  
  /* Kleinere Bildschirme: Pipeline-Grid auf einzelne Spalte */
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  
  /* Job-Meta auf kleineren Geräten neu anordnen */
  .job-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .job-time, .job-tag {
    margin-bottom: 5px;
  }
  
  /* Container-Breite bei kleineren Bildschirmen anpassen, aber Verhältnis zur Nav behalten */
  .terminal-container,
  .pipeline-container {
    width: 80%;
  }
}

/* Handys und sehr kleine Bildschirme */
@media (max-width: 480px) {
  section {
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Handy */
    gap: 10px;
  }
  
  section .card {
    width: 70px; /* Etwas kleiner auf Handys */
    height: 90px;
  }
  
  section .card .box .imgBx svg {
    width: 45px;
    height: 45px;
  }
}

/* Projektgalerie Container */
.projects-container {
  width: 80%;
  margin: 50px auto;
  padding: 20px;
}

/* Projekttitel */
.projects-title {
  color: #A6E22E;
  font-size: 28px;
  text-align: center;
  margin-bottom: 50px;
}

/* Projektgalerie Grid */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  position: relative;
}

/* Projekt-Karten */
.project-card {
  width: 280px;
  height: 130px;
  padding: 1rem;
  background: #222;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
  border-left: 2px rgba(255, 255, 255, 0.2) outset;
  box-shadow: -10px 15px 20px rgba(0, 0, 0, 0.3);
  transform: skewX(5deg);
  transition: all 0.4s ease;
  overflow: hidden;
  color: white;
  position: relative;
  margin-bottom: 30px;
}

.project-card:nth-child(even) {
  transform: skewX(-5deg);
  margin-top: 15px;
}

.project-card:hover {
  transform: skew(0deg) translateY(-10px);
  height: 280px;
  background: rgba(50, 50, 50, 0.85);
  box-shadow: -15px 20px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* Projektüberschrift */
.project-card h3 {
  text-align: center;
  margin: 1rem 0;
  color: #A6E22E;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  font-size: 1.2rem;
}

/* Projektinhalt */
.project-content {
  padding: 0 10px 15px 10px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-content {
  opacity: 1;
}

/* Projekt-Technologien */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 15px 0;
}

.tech-tag {
  background: #1a1a1a;
  color: #A6E22E;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  border: 1px solid #333;
}

/* Projekt-Links */
.project-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.project-link {
  color: #FFBD2E;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  position: relative;
}

.project-link:hover {
  color: #FFF;
  text-decoration: underline;
}

.project-link::after {
  content: '>';
  margin-left: 3px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-link:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

/* Rote, gelbe und grüne Punkte */
.align {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  margin-bottom: 10px;
}

.red {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #FF5F56;
  box-shadow: 0 0 3px rgba(255, 95, 86, 0.5);
}

.yellow {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #FFBD2E;
  box-shadow: 0 0 3px rgba(255, 189, 46, 0.5);
}

.green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #27C93F;
  box-shadow: 0 0 3px rgba(39, 201, 63, 0.5);
}

/* Farben für verschiedene Tech-Tags */
.tech-tag:nth-of-type(1) { background-color: #1D1D1D; }
.tech-tag:nth-of-type(2) { background-color: #212121; }
.tech-tag:nth-of-type(3) { background-color: #1A1A1A; }

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .projects-container {
    width: 95%;
  }
  
  .projects-grid {
    gap: 20px;
  }
  
  .project-card {
    width: 260px;
  }
}

@media (max-width: 480px) {
  .project-card {
    width: 240px;
    margin-bottom: 10px;
  }
  
  .project-card:nth-child(even) {
    margin-top: 5px;
  }
  
  .project-card:hover {
    height: 300px;
  }
}

.terminal-footer {
  width: 100%;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  padding: 15px 0;
  margin-top: 40px;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
  font-family: monospace;
  color: #b4b4b4;
  position: relative;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px 0;
  min-height: 100px;
}

/* Exit code - top left */
.exit-code-indicator {
  position: absolute;
  top: -10px;
  left: 0;
  background-color: rgba(26, 26, 26, 0.9);
  padding: 5px 10px;
  border-radius: 4px;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
}

.exit-code {
  font-weight: bold;
}

.exit-success {
  color: #A6E22E;
}

/* Session active indicator - top right */
.session-indicator {
  position: absolute;
  top: -10px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(26, 26, 26, 0.9);
  padding: 5px 10px;
  border-radius: 4px;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #A6E22E;
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
}

.session-text {
  color: #A6E22E;
}

@keyframes pulse {
  0% {
      transform: scale(1);
      opacity: 1;
  }
  50% {
      transform: scale(1.3);
      opacity: 0.7;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* Terminal vars in the bottom center */
.footer-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.terminal-vars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.var-name {
  color: #F92672;
}

.var-value {
  color: #E6DB74;
}

/* Center section with social command links */
.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 40px 0; /* Space above the terminal vars */
}

.social-commands {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.command-link {
  color: #66D9EF;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.command-link:hover {
  color: #A6E22E;
}

.command-link:hover::before {
  content: ">";
  position: absolute;
  left: -12px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .terminal-vars {
      flex-direction: column;
      align-items: center;
      gap: 5px;
  }
  
  .footer-center {
      margin-bottom: 60px; /* More space for stacked terminal vars */
  }
}

@media (max-width: 480px) {
  .footer-container {
      width: 95%;
  }
  
  .exit-code-indicator, 
  .session-indicator {
      position: relative;
      top: 0;
      left: 0;
      right: 0;
      margin: 5px auto;
      width: fit-content;
  }
  
  .social-commands {
      flex-direction: column;
      align-items: center;
      gap: 10px;
  }
  
  .footer-center {
      margin: 20px 0;
  }
  
  .footer-bottom {
      position: relative;
      margin-top: 20px;
  }
}

/* Verbesserte Responsive-Anpassungen für den Footer */

/* Basis-Tablet-Anpassungen (max-width: 768px) */
@media (max-width: 768px) {
  .footer-container {
    padding: 30px 0 50px 0;
  }
  
  .exit-code-indicator, 
  .session-indicator {
    position: absolute;
    top: -10px;
  }
  
  .terminal-vars {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .var-name, .var-value {
    font-size: 0.9rem;
  }
  
  .social-commands {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .command-link {
    font-size: 0.9rem;
  }
}

/* Handy-Anpassungen (max-width: 480px) */
@media (max-width: 480px) {
  .footer-container {
    width: 95%;
    padding: 40px 10px 30px 10px;
  }
  
  .exit-code-indicator, 
  .session-indicator {
    position: relative;
    top: -30px;
    left: 0;
    right: 0;
    margin: 0 auto 10px auto;
    width: fit-content;
  }
  
  .exit-code-indicator {
    margin-bottom: 15px;
  }
  
  .session-indicator {
    margin-bottom: 5px;
  }
  
  .footer-center {
    order: 2;
    margin: 15px 0;
  }
  
  .footer-bottom {
    order: 3;
    position: relative;
    margin-top: 10px;
  }
  
  .terminal-vars {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  
  .var-name, .var-value {
    font-size: 0.85rem;
  }
  
  .command-link {
    font-size: 0.85rem;
  }
  
  /* Füge Flexbox-Eigenschaften zum Footer-Container hinzu für die Reihenfolge */
  .footer-container {
    display: flex;
    flex-direction: column;
  }
}

/* Sehr kleine Handys (max-width: 350px) */
@media (max-width: 350px) {
  .dot {
    width: 6px;
    height: 6px;
  }
  
  .session-text, .exit-code, .var-name, .var-value, .command-link {
    font-size: 0.8rem;
  }
  
  .terminal-vars {
    gap: 4px;
  }
}

