/* Allgemeine Stile */

body {
  font-family: 'Trebuchet MS', Courier, monospace;
  font-size: 100%;
  color: black;
  background-color: #f2f2f2;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #666;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Trebuchet MS', Courier, monospace;
  color: black;
}

p {
  font-family: 'Trebuchet MS', Courier, monospace;
  font-size: 100%;
  color: black;
  line-height: 1.5em;
}



/* Formularelemente */

input[type=text] {
  font-family: 'Trebuchet MS', Courier, monospace;
  font-size: 100%;
  width: 20%;
  color: black;
  background-color: #ffffff;
  border: none;
  padding: 5px 10px;
  margin: 4px 2px;
  cursor: pointer;
}

input[type=button], input[type=submit], input[type=reset] {
  font-family: 'Trebuchet MS', Courier, monospace;
  font-size: 100%;
  color: black;
  background-color: #f2f2f2;
  border: 1px solid grey; 
  padding: 5px 10px;
  margin: 4px 2px;
  cursor: pointer;
}

input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover {
  background-color: #ccc;
  color: white;
}

textarea {
  font-family: 'Trebuchet MS', Courier, monospace;
  font-size: 1em;
  color: black;
  background-color: #ffffff;
  cursor: pointer;
  height: 5em;
  width: 50em;
}



/* Buttons */

.button {
  font-family: 'Trebuchet MS', Courier, monospace;
  font-size: 1em;
  color: black;
  background-color: #f2f2f2;
  border: 1px solid black;
  padding: 5px 10px;
  margin: 4px 2px;
  cursor: pointer;
}

.button:hover {
  background-color: #ddd;
  color: #333;
}



/* Header */

header {
  border-color: black;
  background-color: #fcde67;
}

.header-foto {
  margin-left: 5%;
  margin-top: 0%;
  margin-bottom: 0%;
}

#titel, #unternehmen {
  font-family: 'Trebuchet MS', Courier, monospace;
  font-size: 1em;
  color: black;
  margin: 0;
  padding: 0;
}

.header-nav {
  width: 80%;
  margin: 0 auto;
}

/* Main Navigation */
.main-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}

.main-nav li {
  position: relative;
  display: inline-block;
}

.main-nav li a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.main-nav li a:hover {
  background-color: #f0c040;
  text-decoration: none;
}

/* Dropdown Styles */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fcde67;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #f0c040;
}

.dropdown-content a:hover {
  background-color: #f0c040;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.navlogin {
  text-align: right;
}



.zentrieren {
    margin-left: 10%;
    padding-left: 20px;
  }



/* .container */
.container {
    margin-left: 10%;
    margin-right: 10%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: 
    "main";
    }

  

  /* .main */
  .main {
    grid-area: main;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto-fill, 50px);
    grid-gap: 10px;
    /* border: 2px solid black; */
  }



/* .grid-container-a */
  .grid-container-a {
    display: grid;
    grid-column: 1 / 1;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    padding: 10px;
  }



/* .grid-item-a */

.grid-item-a {
    padding: 10px;
    font-size: 1em;
    text-align: left;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }



  .grid-item-b {
   
    padding: 10px;
    font-size: 1em;
    text-align: left;
  
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    
  }

  .grid-item-c {
   
    padding: 10px;
    font-size: 1em;
    text-align: left;
   
    grid-column: 3 / 5;
    grid-row: 1 / 2;
    
  }






  /* Sidebar */
  .sidebar {
    grid-area: sidebar;
    background-color: #fcde67;
    padding: 10px;

  }
  
  /* Footer */
  footer {
    grid-area: footer;
  }












table {
    border:1px solid black;
}

td {
 
    border:1px solid black;
    min-width: 50px;
 
 

}
   


#tdAnsicht {
    
    overflow: hidden;
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;

  
}

.rechtliche-beurteilung {
  overflow: hidden;
  word-break: break-all;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

   
.verkuerzter-text {
  overflow: hidden;
  word-break: break-all;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  cursor: pointer;
}

.popup {
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  display: none;
  width: 30%; 
  word-break: normal;
}

   
    



.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  .pagination a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 0 5px;
  }
  
  .pagination a:hover {
    background-color: #f2f2f2;
  }