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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f0f0f0;
  color: #222;
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background-color: #54c8c3;
  width: 250px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.start-link {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 30px;
  display: inline-block;
}

.search-box {
  position: relative;
  margin-top: 10px;
}

.search-box input {
  width: 100%;
  padding: 8px 30px 8px 10px;
  border-radius: 10px;
  border: none;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 8px;
}

.main-content {
  flex: 1;
  background-color: white;
  padding: 30px;
}

.main-header {
  text-align: center;
  margin-bottom: 20px;
}

.main-header h1 a {
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  border-bottom: 3px solid black;
}

.nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.highlight {
  background-color: #54c8c3;
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin: 20px 0;
}

.news article {
  margin-bottom: 30px;
}

.news h3 {
  margin-bottom: 10px;
}

.news p {
  margin-bottom: 10px;
}

.news img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 10px;
}

.read-more {
  color: #54c8c3;
  text-decoration: none;
}

.right-logo {
  display: flex;
  align-items: top;
  padding: 10px;
  width: 80px;
  background-color: white;
}

.right-logo img {
  max-height: 150px;
  object-fit:fill;
}
.user-area {
  margin-top: 40px;
  color: white;
}

.user-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
}

.user-links {
  list-style: none;
  padding-left: 0;
}

.user-links li {
  margin-bottom: 10px;
}

.user-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center; 
  gap: 30px;
  flex-wrap: wrap;
}

.nav a,
#user-display {
  font-weight: 500;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  height: 100%;
}

.fachbereiche {
  max-width: 600px;
  margin-left: 10px;    
  padding-left: 10px;   
}

.fachbereiche h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
  text-align: left;
}

.fachbereich-liste {
  list-style: none;
  padding: 0;
}

.fachbereich-liste li {
  margin-bottom: 30px;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: left;
}

.fachbereich-liste a {
  display: inline-block;
  font-weight: bold;
  color: #0077aa;
  text-decoration: none;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.fachbereich-liste a:hover {
  text-decoration: underline;
}

.fachbereich-flex {
  display: flex;
  align-items: flex-start;
  gap: 200px;          
  justify-content: center;
}

.fachbereich-bilder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 440px;
  min-width: 320px;
  margin-top: 80px;
  margin-left: 30px; 
  background: linear-gradient(120deg, #e0f7fa 60%, #fff 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(84,200,195,0.10), 0 2px 8px rgba(0,0,0,0.06);
  padding: 32px 24px;
}

.fachbereich-bilder img {
  max-width: 100%;
  width: 380px;
  height: 210px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  background: #f8f8f8;
  border: 3px solid #54c8c3;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fachbereich-bilder img:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 16px 48px rgba(84,200,195,0.18), 0 4px 16px rgba(0,0,0,0.10);
}

.fachbereich-image {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 55%;
  min-width: 400px;
  margin-top: 200px; 
}

.fachbereich-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto;
}

.fachbereich-detail-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.fachbereich-card {
  background: linear-gradient(120deg, #e0f7fa 70%, #fff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(84,200,195,0.10), 0 1px 4px rgba(0,0,0,0.06);
  padding: 24px 28px 18px 28px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.fachbereich-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(84,200,195,0.16), 0 2px 8px rgba(0,0,0,0.10);
}

.fachbereich-card h3 {
  font-size: 1.2rem;
  color: #0077aa;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.fachbereich-card ul {
  list-style: none;
  padding: 0;
}

.fachbereich-card ul li {
  padding-left: 0;
  margin-bottom: 10px;
  position: relative;
  font-size: 1.07rem;
}

.fachbereich-card ul li::before {
  content: "•";
  color: #54c8c3;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-size: 1.2em;
  vertical-align: middle;
}

.projekt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.projekt-card {
  background: linear-gradient(120deg, #e0f7fa 70%, #fff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(84,200,195,0.13), 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  width: 340px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.projekt-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(84,200,195,0.16), 0 2px 8px rgba(0,0,0,0.10);
}

.projekt-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid #54c8c3;
}

.projekt-info {
  padding: 20px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projekt-info h3 {
  margin-bottom: 10px;
  color: #0077aa;
  font-size: 1.2rem;
}

.projekt-info p {
  flex: 1;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.projekt-info .read-more {
  align-self: flex-start;
  color: #54c8c3;
  font-weight: bold;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.projekt-info .read-more:hover {
  text-decoration: underline;
}


.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 36px;
  margin-top: 30px;
  margin-bottom: 40px;
}
.news-card {
  background: linear-gradient(120deg, #e0f7fa 70%, #fff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(84,200,195,0.13), 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.news-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(84,200,195,0.16), 0 2px 8px rgba(0,0,0,0.10);
}
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid #54c8c3;
}
.news-info {
  padding: 22px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-info h3 {
  margin-bottom: 10px;
  color: #0077aa;
  font-size: 1.3rem;
}
.news-info p {
  flex: 1;
  margin-bottom: 12px;
  font-size: 1.07rem;
}
.news-info .read-more {
  align-self: flex-start;
  color: #54c8c3;
  font-weight: bold;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.news-info .read-more:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .news-card img {
    height: 160px;
  }
}



@media (max-width: 1200px) {
  .fachbereich-flex {
    gap: 30px;
  }
  .fachbereiche {
    margin-left: 10px;
    padding-left: 10px;
  }
  .fachbereich-bilder {
    width: 100%;
    min-width: unset;
    margin-left: 0;
    padding: 24px 8px;
  }
  .fachbereich-bilder img {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .fachbereich-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .fachbereiche {
    margin-left: 0;
    padding-left: 0;
  }
  .fachbereich-bilder {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin: 30px auto 0 auto;
    width: 100%;
    gap: 20px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .fachbereich-bilder img {
    width: 100px;
    height: 70px;
    max-width: 120px;
    border: 2px solid #54c8c3;
  }
}

@media (max-width: 1100px) {
  .projekt-grid {
    gap: 20px;
  }
  .projekt-card {
    width: 90vw;
    max-width: 400px;
  }
}

/* Kontaktformular-Styles */
.kontakt-container {
  max-width: 500px;
  margin: 60px auto 0 auto;
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(84,200,195,0.13), 0 1px 4px rgba(0,0,0,0.06);
  padding: 32px 28px 24px 28px;
}

.kontakt-container h2 {
  text-align: center;
  margin-bottom: 28px;
  color: #0077aa;
}

.kontakt-container label {
  display: block;
  margin-bottom: 6px;
  margin-top: 18px;
  font-weight: 500;
  color: #222;
}

.kontakt-container input[type="text"],
.kontakt-container input[type="email"],
.kontakt-container textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #54c8c3;
  border-radius: 8px;
  background: #f8f8f8;
  margin-bottom: 2px;
  font-size: 1rem;
  transition: border 0.2s;
}

.kontakt-container input[type="text"]:focus,
.kontakt-container input[type="email"]:focus,
.kontakt-container textarea:focus {
  border: 1.5px solid #0077aa;
  outline: none;
  background: #e0f7fa;
}

.kontakt-container textarea {
  min-height: 100px;
  resize: vertical;
}

.kontakt-checkbox-group {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.kontakt-checkbox-group label {
  display: flex;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 400;
  color: #333;
  margin: 0;
}

.kontakt-checkbox-group input[type="checkbox"] {
  accent-color: #54c8c3;
  margin-right: 6px;
  width: 18px;
  height: 18px;
}

.kontakt-submit-button {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.kontakt-submit-button button {
  padding: 10px 32px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #54c8c3 70%, #0077aa 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(84,200,195,0.10);
  transition: background 0.2s, transform 0.1s;
}

.kontakt-submit-button button:hover {
  background: linear-gradient(90deg, #0077aa 70%, #54c8c3 100%);
  transform: translateY(-2px) scale(1.03);
}
