
html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.header {
  background-color: #C3D501;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

/* Gemeinsame Basis für Nav & Upload */
.nav, .upload-bar {
  display: flex;
  background-color: #9d9e9e;
  height: 60px; /* Gesamthöhe, z. B. auf Desktop */
  align-items: center; /* Vertikal zentrieren */
  min-height: 40px; /* Fallback bei kleinen Bildschirmen */
}

.nav a, .upload-bar a {
  flex: 1 1 14.2857%; /* = 100 / 7 */
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  color: black;
  background-color: #9d9e9e;
  transition: background-color 0.3s ease;
  height: 100%;
  line-height: 20px;  /* Mindestens 20px Zeilenhöhe */
  padding: 2px 5px;   /* Für Abstand innen */
  box-sizing: border-box;
}

/* Hover + aktiv: Nav = grün */
.nav a:hover,
.nav a.active {
  background-color: #c4d601;
}

/* Hover + aktiv: Upload = violett */
.upload-bar a:hover,
.upload-bar a.active {
  background-color: #9632c8;
  color: white;
}

/* Uploadbar: Schrift leicht kleiner */
.upload-bar {
  font-size: 13px;
}

.system-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background-color: #eaeaea;
  padding: 5px 0;
  font-size: 11px;
  border-bottom: 1px solid #ccc;
}

.system-nav a {
  margin: 5px 10px;
  padding: 5px 8px;
  color: black;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.system-nav a:hover {
  color: #9632c8;
  text-decoration: underline;
}


.content {
  flex: 1;
  padding: 20px;
  background: #fff;
}

.footer {
  background-color: #9d9e9e;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  margin-top: auto;
}

.login-area, .user-area {
  font-size: 14px;
}
.logo {
  display: block;
  margin: 0 auto;
  width: 200px; /* optional, falls du die Größe beschränken willst */
  height: auto; 
  padding: 10px 0;
}

ChatGPT:

Hier ist dein Style-Code für die style.css und der passende HTML-Code, um Seiten (wie die Projektliste in deinem Screenshot) einheitlich zu gestalten – mit:

einer zentrierten Überschrift mit Trennlinie,

einer grün hinterlegten Tabellenkopfzeile,

fettgedruckten Spaltennamen,

gleichmäßiger Formatierung für die Datenzeilen.

🟢 1. CSS-Code für style.css

(Diesen Teil kannst du am Ende deiner style.css einfügen)


/* =====================Kartenansicht für Projektwahl ===================== */
.projekt-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px; /* Abstand zwischen den Karten */
  padding: 30px;
  background-color: #f5f5f5; /* Seitenhintergrund */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.projekt-card {
  background-color: #ffffff; /* Kartenhintergrund hellgrau */
  border: 2px solid #c4d601; /* grüner Rahmen */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-sizing: border-box;
  flex: 1 1 calc(33.333% - 30px); /* Drei Karten nebeneinander bei Desktop */
  min-width: 280px;
  max-width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projekt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
  background-color: #9d9e9e;
}

.projekt-card h2 {
  font-size: 20px;
  color: #000;
  margin-bottom: 12px;
  border-bottom: 1px solid #c4d601;
  padding-bottom: 6px;
}

.projekt-card p {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.projekt-actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.projekt-actions form button {
  background-color: #c4d601;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.projekt-actions form button:hover {
  background-color: #b2c100;
}

.projekt-bearbeiten {
  font-size: 13px;
  color: #9632c8;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.projekt-bearbeiten:hover {
  text-decoration: underline;
}

/* RESPONSIVE ANPASSUNGEN */
@media (max-width: 1000px) {
  .projekt-card {
    flex: 1 1 calc(50% - 30px); /* zwei Karten nebeneinander */
  }
}

@media (max-width: 600px) {
  .projekt-card {
    flex: 1 1 100%; /* eine Karte pro Zeile */
  }
}
.projekt-container {
  display: flex;
  flex-wrap: wrap; /* Damit Karten umbrechen dürfen, wenn's zu eng wird */
  gap: 20px; /* Abstand zwischen den Karten */
  justify-content: center; /* Karten zentrieren */
  padding: 20px;
}
.projekt-card {
  flex: 1 1 300px; /* flexible Karten mit Mindestbreite */
  max-width: 30%;  /* max. 3 Karten pro Reihe */
  background-color: #f8f8f8; /* Helles Grau */
  border: 2px solid #c4d601; /* CI-Farbe grün */
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.projekt-card:hover {
  transform: translateY(-5px);
}
.projekt-card h2 {
  font-size: 18px;
  margin-top: 0;
}

.projekt-card p {
  font-size: 14px;
  line-height: 1.4;
}

.projekt-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.projekt-actions form button,
.projekt-actions .projekt-bearbeiten {
  background-color: #c4d601;
  border: none;
  padding: 8px 12px;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.projekt-actions .projekt-bearbeiten {
  background-color: #9d9e9e;
}

.projekt-actions form button:hover {
  background-color: #b0c200;
}

.projekt-actions .projekt-bearbeiten:hover {
  background-color: #888;
}
/* ===================== SEITEN-STANDARDDESIGN ===================== */
.page-container {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.page-title {
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  border-bottom: 3px dotted black;
  padding-bottom: 10px;
}

.table-hint {
  text-align: center;
  font-style: italic;
  font-weight: bold;
  color: purple;
  margin: 10px 0 20px;
}

table.project-table {
  width: 100%;
  border-collapse: collapse;
}

table.project-table thead th {
  background-color: #C3D501;
  padding: 12px 10px;
  font-weight: bold;
  text-align: left;
}

table.project-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #bbb;
  vertical-align: top;
}

.project-row form {
  display: inline;
}

.project-button {
  padding: 4px 10px;
  font-weight: bold;
  background-color: white;
  border: 1px solid black;
  cursor: pointer;
  margin-right: 10px;
}

.edit-link {
  color: purple;
  text-decoration: none;
  font-weight: normal;
}


/* ===================== SEITEN-STANDARDDESIGN Ende ===================== */

/* ===================== Willkommen-Seite ===================== */
.willkommen-body {
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.willkommen-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* Vollbildhöhe */
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}
.logo_W {
  width: 550px;
  height: auto;
  margin-bottom: 20px;
}

.willkommen-wrapper h1 {
  color: #333;
  font-size: 28px;
  margin-bottom: 30px;
}

.spinner {
  margin: 0 auto 20px auto;
  width: 40px;
  height: 40px;
  border: 5px solid #c3d501;
  border-top: 5px solid #9d9e9e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.info {
  color: #666;
  font-size: 14px;
  margin-top: 15px;
}

/* ===================== Willkommen-Seite Ende ===================== */
/* ===================== Projekt info-Seite  ===================== */

.projektinfo-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Segoe UI", sans-serif;
}

h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 10px;
}

.dotted {
  border: none;
  border-top: 3px dotted black;
  margin-bottom: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.info-card {
  background-color: #f7f7f7;
  border-left: 6px solid #c4d601;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
}

.info-card.highlight {
  background-color: #ffffcc;
  border-color: #f1c40f;
}

.info-card h2 {
  margin-top: 0;
  color: #000;
  font-size: 1.2em;
}

.karte-container {
  margin-top: 40px;
}

.karte-container h2 {
  font-size: 1.3em;
  margin-bottom: 10px;
}
.trenner-zeile {
  height: 5px;
  background-color: #9d9e9e; /* Helles Grau als Trenner */
  margin: 20px 0;
  border-radius: 5px;
}

.baubesprechung-banner {
  display: flex;
  align-items: center;
  background-color: #c4d601; /* CI-Grün */
  padding: 15px 25px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
  margin-top: 20px;
  font-family: sans-serif;
}

.baubesprechung-icon {
  font-size: 60px;
  margin-right: 5px;
}

.baubesprechung-content {
  flex-grow: 1;
}

.baubesprechung-title {
  font-size: 20px;
  font-weight: bold;
}

.baubesprechung-divider {
  height: 1px;
  background-color: #000;
  margin: 5px 0;
  width: 100%;
}

.baubesprechung-zeit {
  font-size: 16px;
}
.wochentagsbalken {
  display: flex;
  margin-top: 4px;
  height: 14px;
  width: 200px; /* Gesamtbreite */
  gap: 10px;
}

.balken-tag {
  flex: 1;
  background-color: #9d9e9e;  /* Standard grau */
  border-radius: 2px;
}

.balken-tag.active {
  background-color: #9632c8; /* CI-Violett für aktiven Tag */
}


/* ===================== Projekt info-Seite Ende ===================== */
/* ===================== Projekt Upload-Seite  ===================== */
 
.upload-form {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border: 2px solid #c4d601;
  border-radius: 10px;
}

.upload-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-left: 5px solid #c4d601;
  background-color: #fff;
}

.upload-section legend {
  font-weight: bold;
  color: #333;
  padding: 0 10px;
}

.upload-section label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: bold;
}

.upload-section input[type="text"],
.upload-section input[type="number"],
.upload-section select,
.upload-section input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
}

.massstab-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.upload-submit {
  text-align: center;
  margin-top: 1rem;
}

.upload-submit button {
  background-color: #c4d601;
  color: black;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-submit button:hover {
  background-color: #b2c200;
}

.hinweis {
  color: #9632c8;
  font-style: italic;
  margin-top: 0.5rem;
}
.upload-form.compact .form-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem; /* vorher: 1rem → kompakter */
}
.upload-form.compact .form-row label {
  width: 150px;
  font-weight: bold;
  font-size: 0.95rem;
}
.upload-form.compact .form-row input[type="text"],
.upload-form.compact .form-row input[type="number"],
.upload-form.compact .form-row select,
.upload-form.compact .form-row input[type="file"] {
  flex: 1;
  max-width: 300px;
  padding: 5px 6px;
  font-size: 0.95rem;
}

.upload-form.compact .form-row.checkbox {
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.massstab-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.massstab-input input {
  width: 80px;
}

.upload-form .hinweis {
  font-size: 0.85rem;
  color: #555;
  margin-top: -0.2rem;
}

.upload-submit {
  margin-top: 1.5rem;
  text-align: center;
}
.upload-form input[type="file"] {
  border: none;
  outline: none;
  background-color: transparent;
  padding: 0;
  font-size: 0.95rem;
}


/* ===================== Projekt Upload-Seite Ende ===================== */
/* --- FIX: Ansprechpartner-Felder zentrieren & nicht überstehen --- */
.ap-grid {
  display: grid;
  /* 10% / 35% / 10% / 35% / 10%  => ergibt genau 100% */
  grid-template-columns: 10% 35% 10% 35% 10% !important;
  gap: 12px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Zeile mit zwei Feldern (links/rechts) */
.ap-row { display: contents; }
.ap-gutter-left  { grid-column: 1 / 2; }
.ap-left         { grid-column: 2 / 3; }
.ap-gutter-mid   { grid-column: 3 / 4; }
.ap-right        { grid-column: 4 / 5; }
.ap-gutter-right { grid-column: 5 / 6; }

/* Zeile mit „Funktion“ über beide Inhaltsspalten */
.ap-function { grid-column: 2 / 5 !important; }

/* Inputs füllen nur ihre Spaltenbreite aus */
.ap-grid input,
.ap-grid select {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Optional: Trennlinie auf Containerbreite beschränken */
.ap-trenner {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

