/*Body*/
body {
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif, sans-serif, Arial, Helvetica, sans-serif;
margin: 0; padding: 0;
text-align: justify;
line-height: 1.5;
}

/*Header und Footer, inkl. Navigationsleiste*/
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #c9cba3;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    z-index: 1000;
    box-sizing: border-box;
}

nav {
    text-align:center;
    height: 32px;
    border-radius: 20px;
    width: 100%;
}

.navbar {display: flex;
    justify-content: space-evenly;
}  

footer{
    width: 100%;
    height: 60px;
    background-color:#c9cba3;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 15px;
}
.small{
    width: 100%;
    height: 60px;
    background-color:#c9cba3;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    margin-top: 15px;
}

.layout-impressum {
    padding-top: calc( var(--header-height, 80px) + 57px );
    text-align: center;
    line-height: 1.5;
}

/*Überschrift im Header*/
header h1 {text-align:center; 
    color:navy; 
    font-size:30px;
    margin: 10px;
}

/*Buttondesign*/
a:link, a:visited {
    background-color: #c9cba3;
    color:#04151f;
    padding: 5px 25px;
    text-decoration: none;
    border-radius: 10px;
    outline-width: 2px;
}

a:hover{
    background-color: #183a37;
    color: white;
    border-radius: 10px;
}

/*Hauptinhaltslayout Index*/
.layout-start {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr;
  gap: 20px; 
}

.layout-start .left {
  display: block;
}

.layout-start .middle {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: calc( var(--header-height, 80px) + 50px );
}

.layout-start .right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding-top: calc( var(--header-height, 80px) + 65px );
}

/*Hauptinhaltslayout Other*/
.layout-other {
    display: flex;
    gap: 10px;
    padding-top: calc( var(--header-height, 80px) + 57px );
}

.layout-other .left {
    flex: 1;
}

.layout-other .middle {
    flex: 4;
}

.layout-other .right {
    flex: 1;
}


/*Artikelvorschau Hauptseite*/
.preview {
    border: 2px solid #04151f;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 15px;
}

.preview:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.preview img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/*Fotogalerie im Index*/
#index .gallery {
    margin-right: 20px;
    padding: 10px;
    border: 2px solid #04151f;
    border-radius: 10px;
    column-count: 3;
    column-gap: 8px;
}

#index .gallery img {
    width: 100%;
    margin-bottom: 8px;
    break-inside: avoid;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    width: 100%;
}

/*Fotogalerie in Fotostories*/
#photos .gallery {
    column-count: 3;    
    column-gap: 8px;    
    padding: 10px;
    border-radius: 10px;
}

#photos .gallery img {
    width: 100%;      
    height: auto;     
    border-radius: 5px;
    border: 2px solid #04151f;
    object-fit: cover;
    margin-bottom: 8px;
}

/*Bilderansicht*/
.article-main-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.article-main-image {
    display: flex;
    justify-content: center;
}

.article-thumbnails {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.article-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #04151f;
    border-radius: 5px;
}

/*Hauptbild mit Titel*/
.article-main-with-title {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.article-main-with-title img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) brightness(55%) sepia(80%) saturate(250%) hue-rotate(10deg);
}

.overlay-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* bessere Lesbarkeit */
    text-align:left;
}


/*Kommentarfunktion*/
.comments-section {
    margin-top: 40px;
    padding: 10px;
    border-top: 2px solid #04151f;
}

#comment-form input, #comment-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

a:link, a:visited {
    background-color: #c9cba3;
    color:#04151f;
    padding: 5px 25px;
    text-decoration: none;
    border-radius: 10px;
    outline-width: 2px;
}

#comment-form button {
    background-color: #c9cba3;
    color:#04151f;
    padding: 5px 16px;
    text-decoration: none;
    border-radius: 5px;
    outline-width: 2px;
    cursor: pointer;
}

#comment-form button:hover {
    background-color: #183a37;
    color: white;
    border-radius: 5px;  
}

#comments-display {
    margin-top: 20px;
}

.comment {
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
}
.comment strong {
    display: block;
    color: #04151f;
}

/* Media Queries*/
@media (max-width: 768px) {
    header h1{
        margin: 0;
        align: center;
}
  .layout-start {
    max-width: 100%;
    grid-template-columns: 1fr;
    padding-left: 15px;
    padding-right: 15px;
}
  .layout-start .left {
    display: none;
}
.layout-start .right {
    width: 100%;
}

  .layout-other {
    display: block;
    max-width: 100%;
    grid-template-columns: 1fr;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
  .layout-other .left {
    display: none;
}
 .layout-other .right {
    display: none;
}

  #index .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 4px;     
}

    #index .gallery img {
    width: 100%;
    display: block;
    border-radius: 5px;
    object-fit: cover;
}
    #photos .gallery {
        column-count: 2;
        column-gap: 6px;
}

    #photos .gallery img {
        height: auto;    
        margin-bottom: 6px;
}

.article-main-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

footer {
    margin: 0;
    align: center;
}

.article-thumbnails {
    display: block;
    gap: 5px;
    justify-content: center;
}

.article-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #04151f;
    border-radius: 5px;
    justify-items: center;
}

}

