 :root {
      --bg: #f4f4f4;
      --text: #222;
      --accent: #9ad1d4;
      --muted: #888;
      --font-main: 'Courier New', Courier, monospace;
    }

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

    body {
      font-family: var(--font-main);
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
      padding: 1rem;
    }

    header {
      background: var(--accent);
      color: #000;
      padding: 1rem;
      border: 2px solid #333;
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .header-content img {
      width: 80px;
      height: 80px;
      object-fit: contain;
    }

    .header-content h1 {
      font-size: 1.8rem;
      text-align: center;
    }

/***************************************************
 INTERACTION
 ***************************************************/
	
	.article-interaction {
	  margin-top: 2rem;
	  padding-top: 1rem;
	  border-top: 1px dashed #999;
	}
	
	.voting {
	  display: flex;
	  gap: 1rem;
	  margin-bottom: 1.5rem;
	}
	
	.vote-btn {
	  font-family: inherit;
	  font-size: 1.1rem;
	  background: #e0e0e0;
	  border: 1px solid #888;
	  padding: 0.4rem 0.8rem;
	  border-radius: 4px;
	  cursor: pointer;
	  display: flex;
	  align-items: center;
	  gap: 0.5rem;
	  transition: background 0.2s;
	}
	
	.vote-btn:hover {
	  background: #d0d0d0;
	}
	
	.vote-btn span {
	  font-weight: bold;
	}
	
	.comment-form {
	  margin-bottom: 2rem;
	}
	
	.comment-form h3 {
	  margin-bottom: 0.5rem;
	  font-size: 1.1rem;
	}
	
	.comment-form label {
	  display: block;
	  margin-top: 0.5rem;
	  font-size: 0.95rem;
	}
	
	.comment-form input,
	.comment-form textarea {
	  width: 100%;
	  padding: 0.5rem;
	  margin-top: 0.2rem;
	  border: 1px solid #aaa;
	  background: #f9f9f9;
	  font-family: inherit;
	  font-size: 0.95rem;
	}
	
	.comment-form textarea {
	  height: 100px;
	  resize: vertical;
	}
	
	.comment-form button {
	  margin-top: 0.8rem;
	  background: var(--accent);
	  color: #000;
	  border: 1px solid #555;
	  padding: 0.5rem 1rem;
	  cursor: pointer;
	  font-weight: bold;
	}
	
	.comment-form button:hover {
	  background: #c7e8ea;
	}
	
	.comments {
	  border-top: 1px dotted #aaa;
	  padding-top: 1rem;
	}
	
	.comment {
	  margin-bottom: 1rem;
	}
	
	.comment strong {
	  color: #222;
	}
	
	.comment p {
	  margin: 0.2rem 0 0.5rem;
	  font-size: 0.95rem;
	}

/***************************************************
 PREVIEW
 ***************************************************/
	    
	.post-preview {
	  margin-bottom: 2rem;
	}
	
	
	.preview-item {
	  display: flex;
	  gap: 1rem;
	  background: #fff;
	  border: 1px solid #ccc;
	  padding: 1rem;
	  text-decoration: none;
	  color: inherit;
	  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
	  transition: background 0.2s;
	}
	
	.preview-item:hover {
	  background: #f0f0f0;
	}
	
	.preview-item img {
	  width: 120px;
	  height: 120px;
	  object-fit: cover;
	  flex-shrink: 0;
	  border: 1px solid #aaa;
	}
	
	.preview-text {
	  flex: 1;
	}
	
	.preview-text h2 {
	  margin-bottom: 0.5rem;
	  font-size: 1.2rem;
	}
	
	.preview-text p {
	  font-size: 0.95rem;
	  color: #444;
	}
	    
/***************************************************
 NAV
 ***************************************************/

    nav {
      margin-top: 0.5rem;
      text-align: center;
    }

    nav a {
      display: inline-block;
      margin: 0 0.75rem;
      text-decoration: none;
      color: #000;
      font-weight: bold;
      border-bottom: 2px solid transparent;
      padding-bottom: 0.2rem;
    }

    nav a:hover {
      border-color: #000;
    }

.content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  max-width: 1350px; 	/* 1000 */
  margin: 2rem auto;
  padding: 0 1rem;
}


    main {
      max-width: 1000px;	 	/* 700 */
      margin: 2rem auto;
      padding: 1rem;
      background: #fff;
      border: 1px solid #ccc;
      box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
      flex: 2;
    }

    article {
      margin-bottom: 2rem;
    }

    article-meta {
      font-size: 0.8rem;
      margin-bottom: 1rem;
    }

    h2 {
      margin-bottom: 1rem;
    }

    p {
      margin-bottom: 1rem;
    }

    footer {
      text-align: center;
      font-size: 0.9rem;
      color: var(--muted);
      margin-top: 2rem;
    }



/***************************************************
 TABELLE
 ***************************************************/
.table-section {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
}

.table-section h2 {
  margin-bottom: 1rem;
}

.retro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.retro-table th,
.retro-table td {
  border: 1px solid #aaa;
  padding: 0.5rem 0.8rem;
  text-align: left;
}

.retro-table th {
  background: var(--accent);
  color: #000;
  font-weight: bold;
}

.retro-table tr:nth-child(even) {
  background: #f9f9f9;
}

.retro-table tr:hover {
  background: #eaeaea;
}


/* Debug-Panel */
.debug-panel {
  flex: 1;
  max-width: 350px;
  background: #f8f8f8;
  border: 1px dashed #aaa;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.6rem;
  color: #444;
  overflow-x: auto;
}

.debug-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2rem;
}

/* Debug-Panel auf kleinen Bildschirmen ausblenden */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .debug-panel {
    display: none;
  }
}



    @media (max-width: 600px) {
      nav a {
        display: block;
        margin: 0.5rem 0;
      }

      .header-content {
        flex-direction: column;
      }

      .header-content h1 {
        text-align: center;
      }
      
      
      
	  .preview-item {
	    flex-direction: column;
	    align-items: center;
	    text-align: center;
	  }
	
	  .preview-item img {
	    width: 100%;
	    max-width: 300px;
	    margin-bottom: 1rem;
	  }
	
	  .preview-text {
	    text-align: left;
	  }
      
    }
    
    
    
    
    .tooltip {
  position: relative;
  display: inline;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


/***************************************************
 DOWNLOADS
 ***************************************************/
.downloads {
  margin-top: 2rem;
  border-top: 1px dashed #999;
  padding-top: 1rem;
}

.downloads h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.download-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.file-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  line-height: 2rem;
}

.file-details {
  flex: 1;
}

.file-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.file-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.file-description {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.file-download {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 0.4rem 0.8rem;
  border: 1px solid #555;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.file-download:hover {
  background: #c7e8ea;
}

/***************************************************
 KONTAKTFORMULAR
 ***************************************************/
.contact-section {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.2rem;
  border: 1px solid #aaa;
  background: #f9f9f9;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 0.8rem;
  background: var(--accent);
  color: #000;
  border: 1px solid #555;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: bold;
}

.contact-form button:hover {
  background: #c7e8ea;
}

.social-links {
  margin-top: 1rem;
  text-align: center;
}

.social-links a {
  font-size: 1.5rem;
  margin: 0 0.3rem;
  text-decoration: none;
}

.social-links a:hover {
  opacity: 0.7;
}

/***************************************************
 404-Fehlerseite
 ***************************************************/
.error-box {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border: 2px solid #333;
  box-shadow: 4px 4px 0 #000;
  max-width: 500px;
  margin: 2rem auto;
}

.sad {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-box a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  border: 1px solid #444;
  font-weight: bold;
}

.error-box a:hover {
  background: #c7e8ea;
}
