html {
   font-family: sans-serif;
   font-size: 16px;
   color: rgb(51, 51, 51);
   background-image: url("/static/hintergrund.jpg");
   background-repeat: no-repeat;
   background-position: center center;
   background-size: cover;
   background-attachment: fixed;
}

p { margin: 0.5rem 0;}
a { color: #a51a3e; }
h2 { margin: 1.5rem 0 1.0rem 0;}

div#logobox {
   width: 100%;
   background-color: #a51a3e;
   position:sticky;
   height: 80px; /* logo height is excessive 94px */
   top: 0;
   left: 0;
}
div#logobox > img { margin-left: max(10%, 60px); }

body { margin:0; }

#flexbox {
   background:rgb(245, 245, 228);
   background:rgba(238, 238, 234, 0.93);
   background:rgba(245, 245, 238, 0.93);
   border-radius:0.3rem;

   display: flex;
   width: min(100%, 800px);
   margin: 0.5rem auto;
   padding: 1rem;
   flex-wrap: wrap;
}

#flexbox > p { flex-basis: 100%; }
.anmerkung { margin: 0.2rem 0; font-size: 0.8rem; }

#messagebox, #infobox { flex-basis: 100%; }
#messagebox > p { padding: 0.5rem 2rem; margin: 0;}
#messagebox > p.message { color: dodgerblue; }
#messagebox > p.warning { color: white; background: darkorange; }
#messagebox > p.error { color: white; background: crimson; }

#inspirationsbox {
   display: flex;
   flex-flow: column;
   justify-content: center;
   align-items: stretch;
   gap: 0.5rem;
}
#inspirationsbox form {
   position: relative;
   left: 2rem;
   bottom: 1.2rem;
}
#inspirationsbox form input[type=submit]{
   border: 1px solid #a51a3e;
   border-radius: 0.2rem;
   color: white;
   background: #a51a3e;
}
#loginform {
   display: flex;
   flex-flow: row;
   margin: 2rem 0;
   gap: 0.5rem;
}

#editforms {
   background: white;
   background:rgb(250, 250, 250);
   border-radius: 0.3rem;
   margin: 2rem 0 1rem 0;
   width: 100%;
   padding: 0.3rem;

   display: flex;
   flex-flow: row;
}
#editforms form {
   display: flex;
   flex-flow: column;
   padding: 0.3rem;
   gap: 0.2rem;
   flex-basis:100%;
}
#editforms input[type=submit], #helferform input[type=submit] {
   color: #a51a3e;
   margin-bottom: 0.5rem;
}
#editforms input[type=submit] {
   font-size: 1.2rem;
}
#editforms dl dt span {
   font-family: monospace;
   color: #a51a3e;
   background: #eee;
}
#editforms dl dd {
   margin-bottom: 4px;
}
#helferform {
   display: flex;
   flex-flow: column;
}
div.erlaeuterungen {
   border: 1px dotted #a51a3e;
   margin: 1rem 2rem;
   padding: 0.5em;
   border-radius: 0.3rem;
}

/* Karten */
.centermargin {
   margin:0 auto; /* unklar, ob sinn voll: Vorschau vs Listenansicht */
}

.container {
   width: 720px;
   display: grid;
   grid-template-areas:
   "bild text"
   "footer footer";
   grid-template-columns: 1fr 2fr;
   gap: 0.3rem;
   background-color: white;
   padding: 10px 7px 0px 7px;

   border: 2px solid #a51a3e;;
   border-radius:10px;

   box-shadow: 1px 3px 5px;
}
.container:hover {
   /*border-color: lime;*/
}
.container div {
   background-color: inherit;
}
.container div.bild  {
   grid-area: bild;
   text-align: center;
   display: flex;
   justify-content: center;
   margin-bottom: 12px;
}
.container div.bild img {
   max-width: 100%;
   max-height: 240px;
   border-radius:8px;
}
.container div.text  {
   grid-area: text;
   white-space: pre-line;

   /*background-color: #eee;*/
   padding: 10px;
   color: rgb(51, 51, 51);
}
.container div.footer  {
   grid-area: footer;

   background-color: white;
   border-top: 1px solid #a51a3e;
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   align-items: center;
   align-content: flex-start;
   justify-content: flex-end;
}
.container div.footer div {
   background-color: #eee;
   min-width: 1.4em;
   text-align:center;
   padding: 2px;
   margin: 0 2px; 
   color: #888;
}
.container div.footer div.an {
   background-color: #99ff99;
   color: rgb(51, 51, 51);
}
.container div.footer div.teilnehmer {
   font-size: 1.4em;
   background-color: inherit;
   color: #a51a3e;
   color: rgb(165, 26, 62);
   margin-right: 16px;
   /*text-align: left;*/
}
.container div.footer img {
   margin-left: 28px;
}
table {
   margin: 1rem 1rem auto 2rem;
   border-collapse: collapse;
}
th, td {
   border-bottom: 1px solid grey;
   padding: 2px 1rem 2px 1rem;
   text-align: center;
}
td:first-child {
   text-align: left;
}
