/* --- Allgemeine Einstellungen --- */
html, body {
    height: 100%;
    margin: 0;
    font-family: Garamond, sans-serif;
    line-height: 1.75em;
    color: rgb(20, 20, 20);
    display: flex;
    flex-direction: column;
    background: #fafafa;
    scroll-behavior: smooth;
    user-select: none; /* Standard für alle Browser */
    -webkit-user-select: none; /* Chrome, Safari, Opera */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    -khtml-user-select: none; /* Konqueror */
    -webkit-touch-callout: none; /* Android, iOS */
}
.main img {
    /*width: 180px;
    height: 180px;*/
	width: 60%;
    max-width: 100%;
	height: 60%;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* --- Sidebar --- */
.sidebar {
    width: 220px;
    background-color: rgb(52, 53, 51);
    color: white;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.sidebar img {
    width: 100%;
    max-width: 180px;
    display: block;
    margin: 0 auto 30px;
}

.sidebar h2 {
    margin-top: 10px;
    text-align: center;
    color: #e9f5ec;
    font-size: smaller;
}

.nav a {
    display: block;
    padding: 12px 10px;
    color: rgb(231, 235, 238);
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
}

.nav a:hover {
    background-color: rgba(36, 72, 102, 0.15);
}

/* --- Hauptbereich --- */
.main {
    flex: 1;
    margin-left: 220px;
    /*padding: 40px;*/
    padding: 0px 40px;
    width: calc(100% - 220px);
    box-sizing: border-box;
}

section {
    padding-top: 10em;
    margin-bottom: 30px;
    /* Rounded border */
    border-top: 8px solid #bbb;
    /*border-bottom: 4px inset rgb(171, 187, 140);*/
    border-radius: 5px;
    box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.05), inset 0 0.1em 0.1em 0 rgba(0, 0, 0, 0.025);
}

h1, h2, p, li, a {
    color: rgb(1, 13, 22);
}

p, ul {
    /*max-width: 800px;*/
	max-width: 1500px;
    line-height: 1.6;
}
 /* --- TEAM SECTION --- */
 .team-container {
	display: flex;
	flex-direction: column; /* untereinander */
	gap: 30px;
}

.team-member {
    display: flex;
    flex-direction: row;
    align-items: left;
    gap: 20px;
    /*border: 1px solid #ccc;
    border-radius: 8px;*/
    padding: 15px;
    /*max-width: 1000px;*/
    width: 100%;
}

.team-member img {
	width: 10%;
    max-width: 100%;
	height: 10%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.team-text {
    flex: 1;        /* Text nimmt restlichen Platz ein */
    text-align: left;
    font-size: smaller;
}

/* --- Responsive Galerie --- */
* {
    box-sizing: border-box;
}

/*body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f4f4f4;
}*/

h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
/*.gallery {
    display: grid;
    gap: 12px;
    padding: 10px;
    /* dynamische Gridgrößen */
    /*grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}*/
.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
}

/* --- Footer --- */
.footer {
    background-color: rgb(52, 53, 51);
    color: rgb(231, 235, 238);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.footer a {
    color: rgb(231, 235, 238);
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}
/* --- Hamburger Button --- */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: rgb(235, 14, 51); /* grellrot */
    margin-bottom: 15px;
}

/* --- Mobile Sidebar --- */
@media (max-width: 600px) {

    /* Sidebar verstecken (Schubladenmenü) */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 50px; /* leave room for hamburger */
        width: 70%;
        max-width: 250px;
        height: 100vh;
        background-color: rgb(52, 53, 51);
        transition: left 0.3s ease;
        padding-top: 40px;
        z-index: 9999;
    }

    /* Sidebar sichtbar, wenn geöffnet */
    .sidebar.open {
        left: 0;
    }

    /* Hamburger anzeigen */
    .hamburger {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 10000;
    }

    /* Inhalt nach oben, nicht neben Sidebar */
    .main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .sidebar {
        width: 180px;
        padding: 15px;
    }

    .main {
        margin-left: 180px;
        width: calc(100% - 180px);
        padding: 30px;
    }

    .sidebar img {
        max-width: 150px;
    }

	.gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #eee;

    /* Hover Effekt */
    transition: transform 0.25s ease, opacity 0.4s ease;
    opacity: 0;
}

/* Fade-in nach Laden */
.gallery img.loaded {
    opacity: 1;
}

/* Leichter Zoom Hover */
.gallery img:hover {
    transform: scale(1.03);
}


.kontakt img{
    width: 1%;
    max-width: 1%;
    min-width: 1%;
	height: auto;
    object-fit: cover;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E1306C;
  text-decoration: none;
  /*font-size: 18px;*/
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.article {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.article h2 {
  margin-top: 0;
}

.article p {
  line-height: 1.6;
  white-space: pre-line;
}

.article small {
  display: block;
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
