body {
    margin: 0;
    background-color: #003300; /* outside area */
    font-family: Arial, sans-serif;
	color: white;
}
/* Center the whole layout */
#page-wrapper {
    width: 1024px;
    height: 767px;
    margin: 10px auto;
}
/* Grid replaces the table */
#layout {
    display: grid;
    grid-template-columns: 183px 841px;
    grid-template-rows: 185px 582px;
    width: 100%;
    height: 100%;
}
/* Top cells */
#top-left {
    background: url("grafiken/wappen.gif") no-repeat center;
}
#top-right {
    background: url("grafiken/bunner.jpg") no-repeat center;
}
/* Sidebar */
#sidebar {
    background: url("grafiken/Menu.gif");
    padding-top: 20px;
}
/* Menu buttons only in sidebar.html*/
div.menu {
    width: 174px;
    margin: 0 auto;
	margin-top: 8px;
}

div.menu a {
    display: block;
    height: 31px;
    line-height: 31px;
    padding-left: 10px;
    margin-bottom: 6px;
    text-decoration: none;
    font-size: 10pt;
    font-weight: bold;    
    background: url("grafiken/butt.png");
}

div.menu a.sub {
    padding-left: 20px;
}

div.menu a:hover {
	background-color:#003300;
	font-size: 11pt;
}
div.menu a.active {
    background-color: #333300;
	font-size: 11pt;
}

/* Main content */
#main {
    background: url("grafiken/Feld.gif");
    display: flex;
	flex-direction:column;
    align-items: center;
    justify-content: center;
}

/* Make images show a pointer on hover */
img.hover {
  cursor: pointer;
  transition: transform 0.2s;
}

img.hover:hover { /* optional */
  transform: scale(1.05);
}

/* Floating overlay */
#overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#overlay img {
  max-width: 70vw;   /* 70% of viewport width */
  max-height: 70vh;  /* 70% of viewport height */
    	
  width: auto;
  height: auto;
  
  border: 2px solid white;
  border-radius: 4px;
}


/* Ausschreibungen*/
#pdf-container {
  width: 95%;
  height: 92%;   
  margin: auto;

  border: 1px solid #ccc;

  overflow-y: auto;     /* vertical scrollbar */
  overflow-x: hidden;

  background: rgba(10,10,10,0.8);
  
}
#pdf-container canvas {
  display: block;	
  margin-bottom: 5px; 
}
#pdf-container canvas:last-child {
  margin-bottom: 0;
}

/* Kontakt*/
#tdWithFallback {
    width: 33.33%;
    width: calc(100% / 3);
}

.Vereinsposition {
    font-size: 10pt;
    font-weight: bold;
    text-decoration: underline;
    color: yellow;
    margin: 8px 0 4px 0;
}

.Name {
    font-size: 10pt;
    font-weight: bold;
    color: #ccc;
}

.Telefonnummer {
    font-size: 10pt;
    color: #ccc;
}

.Adresse {
    font-size: 8pt;
    color: #ccc;
}

/* Galerie*/
.gallery{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:10px;

    max-height:600px;
    overflow-y:auto;

    padding:10px;

	width: 93%;
	height: 90%; 
}

.gallery-item{
    text-align:center;
}

.gallery-item img{
    width:100%;
    height:auto;
    //border-radius:6px;
}

.filename{
    margin-top:6px;
    font-size:14px;
    color:#ccc;
    word-break:break-word;
}

/* impressum*/
.Impressum-container {
	width: 91%;
	height: 90%; 	
	
    max-height:600px;
    overflow-y:auto;	
	
    padding-right: 20px;
}
.Impressum-container h2 {
    background-color: yellow;
    color: black;
    padding: 4px 8px;
    font-size: 1.3em;
	margin-top: 0px;
}
.Impressum-container h3 {
    margin-top: 1em;
    font-size: 1.1em;
    color: white;
}
.Impressum-container p, address {
    font-size: 0.9em;
    line-height: 1.5em;
    color: white;
    margin: 0.5em 0;
}
.Impressum-container ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0.5em 0;
}
.Impressum-container li {
    margin-bottom: 0.3em;
}
.Impressum-container .footer {
    font-size: 0.7em;
    color: #cccccc;
    margin-top: 2em;
}
.Impressum-container .footer b {
    color: yellow;
}


.satzung{    	
    margin:auto;
    font-size:0.9rem;
    line-height:1.5;
	
	width: 91%;
	height: 90%; 	
	
	max-width:800px;
    max-height:600px;
	
    overflow-y:auto;	
}

.satzung h1{
    text-align:center;
    font-size:1.2rem;
    margin-bottom:0.5rem;
}

.subtitle{
    text-align:center;
}

.satzung h2{
    text-align:center;
    margin-top:12px;
    font-size:1rem;
}

.satzung ol{
    margin-left:0px;
	margin-top:0px;
}

.satzung li{
    margin-bottom:5px;
}

.satzung p{
    margin-left:20px;
	margin-top:0px;
	margin-bottom:10px;
}

.final{
    margin-top:30px;
    font-weight: bold;
    text-decoration: underline;	
}