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;
}



/* Blog Content */
/* Blog Terminal Styling */
.blog-terminal-container {
    margin-top: 50px;
}

#blog-terminal {
    width: 80%;
    height: auto;
    min-height: 500px;
}

/* Tabs in Terminal Header */
.tabs-container {
    display: flex;
    flex-grow: 1;
    margin-left: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Verhindert, dass Scrollbar den Text abschneidet */
}

.terminal-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.terminal-tabs .tab {
    padding: 5px 12px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 3px 3px 0 0;
    background-color: #2d2d2d;
    color: #aaa;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.terminal-tabs .tab:hover {
    background-color: #3a3a3a;
    color: #fff;
}

.terminal-tabs .tab.active {
    background-color: #1a1a1a;
    color: #A6E22E;
    border-bottom: 2px solid #A6E22E;
}

.blog-content {
    padding: 15px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
}

.terminal-welcome {
    margin-bottom: 20px;
}

.welcome-message {
    color: #ddd;
    display: block;
    margin-top: 5px;
    line-height: 1.5;
}

/* Blog Posts */
.blog-post {
    margin-bottom: 30px;
    border-bottom: 1px dashed #444;
    padding-bottom: 20px;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 10px;
    color: #A6E22E;
}

.post-command {
    color: #A6E22E;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.post-date {
    color: #888;
    font-size: 0.9em;
    margin-left: 10px;
}

.post-content {
    color: #ddd;
    margin-top: 10px;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 5px;
}

.post-tag {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 3px;
    background-color: #333;
    color: #eee;
}

.post-tag.docker {
    background-color: #2496ED;
    color: white;
}

.post-tag.linux {
    background-color: #FCC624;
    color: black;
}

.post-tag.ansible {
    background-color: #EE0000;
    color: white;
}

.post-tag.python {
    background-color: #3776AB;
    color: white;
}

.post-tag.devops {
    background-color: #6C3483;
    color: white;
}

.post-tag.automation {
    background-color: #27AE60;
    color: white;
}

/* Code Blocks */
.code-block {
    background-color: #282828;
    border-radius: 3px;
    padding: 10px;
    margin: 10px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    border-left: 3px solid #A6E22E;
}

.code-block pre {
    margin: 0;
}

.terminal-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%; /* 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 */
  }
  
  .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; }
  }

/* Responsive anpassungen */
@media (max-width: 768px) {
    #blog-terminal {
        width: 95%;
    }

    .terminal-tabs .tab {
        padding: 5px 8px;
        font-size: 0.9em;
    }
}

.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;
    }
  }
  
 /* Blog Content Erweiterungen - Übersichtlich */

/* Suchfeld */
.search-container {
    padding: 8px 12px;
    margin: 10px 0 20px;
    display: flex;
    align-items: center;
    background: #272727;
    border-radius: 4px;
    border-left: 2px solid #A6E22E;
  }
  
  #blog-search {
    background: transparent;
    border: none;
    color: #ddd;
    padding: 5px 10px;
    margin-left: 5px;
    font-family: monospace;
    flex-grow: 1;
    outline: none;
  }
  
  #blog-search:focus {
    color: #A6E22E;
  }
  
  /* Lesezeit */
  .post-meta {
    display: flex;
    align-items: center;
    margin: 5px 0 15px;
    color: #888;
    font-size: 0.85em;
  }
  
  .reading-time {
    display: flex;
    align-items: center;
  }
  
  .reading-time::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='%23aaa' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }
  
  /* Weiterlesen Button */
  .read-more-btn {
    background: transparent;
    color: #66D9EF;
    border: 1px solid #66D9EF;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 2px;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.9em;
    transition: all 0.2s ease;
  }
  
  .read-more-btn:hover {
    background: rgba(102, 217, 239, 0.1);
    transform: translateY(-1px);
  }
  
  /* Paginierung */
  .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #444;
  }
  
  .pagination-btn {
    background: transparent;
    color: #66D9EF;
    border: 1px solid #66D9EF;
    padding: 5px 10px;
    border-radius: 2px;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.9em;
    transition: all 0.2s ease;
  }
  
  .pagination-btn:hover:not(.disabled) {
    background: rgba(102, 217, 239, 0.1);
    transform: translateY(-1px);
  }
  
  .pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
    color: #555;
  }
  
  .page-info {
    color: #888;
    font-size: 0.9em;
  }
  
  /* Vollständige Post-Ansicht */
  .full-post-view {
    width: 100%;
  }
  
  .post-navigation {
    margin-bottom: 20px;
  }
  
  .back-to-posts-btn {
    background: transparent;
    color: #66D9EF;
    border: 1px solid #66D9EF;
    padding: 5px 10px;
    border-radius: 2px;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.9em;
    transition: all 0.2s ease;
  }
  
  .back-to-posts-btn:hover {
    background: rgba(102, 217, 239, 0.1);
    transform: translateY(-1px);
  }
  
  /* Verbesserte Blog-Posts */
  .blog-post {
    margin-bottom: 25px;
    border-bottom: 1px dashed #444;
    padding-bottom: 15px;
    position: relative;
  }
  
  .blog-post:last-child {
    border-bottom: none;
  }
  
  .post-command {
    color: #A6E22E;
    font-weight: normal;
    margin-bottom: 5px;
    display: block;
    font-size: 0.85em;
    opacity: 0.8;
  }
  
  .post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  
  .post-date {
    color: #888;
    font-size: 0.8em;
    margin-left: 10px;
    font-weight: normal;
  }
  
  .post-content {
    color: #ddd;
    margin-top: 5px;
    line-height: 1.5;
  }
  
  .post-content.preview {
    color: #bbb;
  }
  
  .post-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 5px;
  }
  
  .post-tag {
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 2px;
    color: #333;
    font-weight: bold;
  }
  
  /* Verbesserte Formatierung von Blog-Inhalten */
  .post-content h2 {
    color: #A6E22E;
    margin: 20px 0 10px;
    font-size: 1.3em;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
  }
  
  .post-content h3 {
    color: #F92672;
    margin: 18px 0 8px;
    font-size: 1.15em;
  }
  
  .post-content h4 {
    color: #66D9EF;
    margin: 15px 0 8px;
    font-size: 1.05em;
  }
  
  .post-content ul, 
  .post-content ol {
    margin: 12px 0;
    padding-left: 20px;
  }
  
  .post-content li {
    margin-bottom: 5px;
  }
  
  .post-content code {
    background-color: #272727;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #E6DB74;
  }
  
  .code-block {
    background-color: #272727;
    border-radius: 3px;
    padding: 8px 12px;
    margin: 10px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    border-left: 3px solid #A6E22E;
    font-size: 0.9em;
  }
  
  .code-block pre {
    margin: 0;
    color: #F8F8F2;
  }
  
  .post-content a {
    color: #66D9EF;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .post-content a:hover {
    text-decoration: underline;
    color: #A6E22E;
  }
  
  .post-content strong {
    color: #F92672;
    font-weight: bold;
  }
  
  .post-content em {
    color: #E6DB74;
    font-style: italic;
  }
  
  /* Ladeanzeige */
  .loader {
    margin-top: 10px;
    font-family: monospace;
  }
  
  .loader-text {
    animation: spin 1s linear infinite;
    display: inline-block;
    color: #A6E22E;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Tag-Farben */
  .post-tag.docker { background-color: #2496ED; }
  .post-tag.networking { background-color: #7B68EE; }
  .post-tag.devops { background-color: #6C3483; }
  .post-tag.linux { background-color: #FCC624; }
  .post-tag.monitoring { background-color: #E74C3C; }
  .post-tag.ansible { background-color: #EE0000; }
  .post-tag.automation { background-color: #27AE60; }
  .post-tag.python { background-color: #3776AB; }
  
  /* Posts-Container */
  .posts-container {
    margin-top: 15px;
  }
  
  /* Responsive-Anpassungen */
  @media (max-width: 600px) {
    .pagination {
      flex-direction: column;
      gap: 10px;
      align-items: center;
    }
    
    .post-header {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .post-date {
      margin-left: 0;
      margin-top: 5px;
    }
  }

/* Terminal-artige Suchleiste mit korrektem Abstand */
.search-container {
  padding: 8px 12px;
  margin: 10px 0 12px;
  display: flex;
  align-items: center;
  background: #272727;
  border-radius: 4px;
  border-left: 2px solid #A6E22E;
  font-size: 0.9em;
  white-space: nowrap;
}

.prompt {
  color: #A6E22E;
}

.prompt::after {
  content: " ~ "; /* Korrekter Abstand zwischen jan@server und % */
  white-space: pre;
  color: #ddd;
}

.search-prompt {
  color: #A6E22E;
  margin-right: 5px;
  margin-left: 5px; /* Abstand nach dem % */
}

/* Trennlinie unter der Suchfunktion */
.search-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #444, transparent);
    margin: 0 0 20px 0;
    width: 100%;
    display: block; /* Stellt sicher, dass der Divider angezeigt wird */
    content: ""; /* Leerer Inhalt erforderlich für manche Browser */
    min-height: 1px; /* Minimale Höhe explizit definieren */
    border: none; /* Falls es als HR-Element verwendet wird */
  }

/* Alternative als HR-Element */
hr.search-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #444, transparent);
    margin: 0 0 20px 0;
    width: 100%;
  }

#blog-search {
  background: transparent;
  border: none;
  color: #ddd;
  padding: 5px;
  margin: 0 5px;
  font-family: monospace;
  flex-grow: 1;
  outline: none;
  min-width: 50px;
}

#blog-search:focus {
  color: #A6E22E;
}

.search-execute {
  background: #333;
  color: #A6E22E;
  border: 1px solid #444;
  padding: 3px 10px;
  margin-left: 5px;
  cursor: pointer;
  font-family: monospace;
  font-size: 0.85em;
  border-radius: 3px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-execute:hover {
  background: #3a3a3a;
  transform: translateY(-1px);
}

.search-execute:active {
  transform: translateY(1px);
}

/* Responsive-Anpassungen für die Suche */
@media (max-width: 600px) {
  .search-container {
    flex-wrap: wrap;
  }
  
  .prompt, .search-prompt {
    margin-bottom: 5px;
  }
  
  #blog-search {
    width: 100%;
    margin: 5px 0;
    order: 3;
  }
  
  .search-execute {
    margin-left: auto;
    order: 4;
  }
}