/* Andreas00 WBCE Responsive
   Klassische Farben und Bildwelt aus Andreas00; responsive Layoutbasis aus Andreas00B.
*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0 auto; padding: 0;
  font: 76% Verdana, Tahoma, Arial, sans-serif;
  background: #eaeaea url('img/bg.gif') top center repeat-y;
  color: #3a3a3a; line-height: 1.5;
}
#wrap {
  background: #e0caa5; color: #303030;
  margin: 0 auto; padding: 1px 5px;
  width: 100%; max-width: 770px; overflow-wrap: anywhere;
}
#header {
  color: #fff; background: #fff url('img/front.jpg') bottom center / cover no-repeat;
  min-height: 200px; margin: 0 0 10px; padding: 0;
  position: relative;
}
#header h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: normal;
  letter-spacing: -1px; line-height: 1.2;
  margin: 0; padding: 36px 18px 0 7.5%;
}
#header h1 a, #header h1 a:hover { color: inherit; text-decoration: none; }
#header p { font-size: 1.1em; letter-spacing: -1px; margin: 5px 0 5px 7.5%; padding: 0 0 0 3px; }
#menuswitch {
  position: absolute; width: 44px; height: 44px; bottom: 8px; left: 8px;
  display: none; border: 0; padding: 4px; background: #e0caa5;
  border-radius: 3px; cursor: pointer;
}
#menuswitch img { display: block; width: 100%; height: 100%; object-fit: contain; }
#avmenu {
  clear: left; float: left; width: 20%; min-width: 145px;
  margin: 0 0 10px; padding: 0;
}
#avmenu ul { list-style: none; margin: 0 0 20px; padding: 0; }
#avmenu li { margin: 0 0 5px; padding: 0; }
#avmenu li a {
  font-weight: bold; text-decoration: none; color: #505050; display: block;
  padding: 6px 8px 5px 10px; background: #f4f4f4 url('img/menubg.gif') bottom left repeat-x;
  border: 1px solid #aa8446; border-left: 4px solid #505050;
}
#avmenu li a:hover, #avmenu li a:focus, #avmenu li a.menu-current, #avmenu li a.current {
  background: #eaeaea url('img/menubg2.gif') bottom left repeat-x; color: #303030;
  border-color: #aa8446; border-left-color: #303030;
}
#avmenu ul ul { margin: 5px 0 5px 12px; font-size: .9em; }
#avmenu ul ul a { margin: 0; padding: 4px 5px 3px 8px; }
#avmenu h2 { font-size: 1.5em; font-weight: normal; }
#searchbox { padding: 0 0 12px; }
#searchbox label { display: block; margin-bottom: 3px; }
#searchform { width: 100%; max-width: 100%; }
#searchsubmit { margin-top: 4px; max-width: 100%; }
.maincontent { margin: 10px 0 10px 22%; min-width: 0; }
#extras { float: right; width: 22%; margin: 0 0 10px; padding: 0; font-size: .9em; }
#extras p, #extras ul { margin: 0 0 1.5em; line-height: 1.4; padding: 0; }
#extras a { font-weight: bold; }
#extras li { list-style: none; margin: 0 0 6px; padding: 0; }
#extras h2 { font-size: 1.4em; font-weight: normal; margin: 0 0 6px; letter-spacing: -1px; }
#content { float: left; width: 75%; margin: 10px 0; padding: 0; line-height: 1.5; text-align: left; }
#contentwide { margin: 10px 0; float: left; width: 96%; padding: 0; line-height: 1.5; text-align: left; }
#contentfull { margin: 10px; padding: 2px 0 0; line-height: 1.5; text-align: left; }
#content h2, #contentwide h2, #contentfull h2 { font-size: 1.8em; letter-spacing: -1px; font-weight: normal; margin: 8px 0 10px; padding: 0; }
#content h3, #contentwide h3, #contentfull h3 { font-size: 1.5em; font-weight: normal; margin: 6px 0; padding: 0; }
#content img, #contentwide img, #contentfull img { padding: 1px; display: inline; background: #cccccc; color: #303030; border: 4px solid #f0f0f0; max-width: 100%; height: auto; }
#content a, #contentwide a, #contentfull a { font-weight: bold; }
#content ul, #content ol, #contentwide ul, #contentwide ol, #contentfull ul, #contentfull ol { margin: 0 0 16px 20px; padding: 0; }
#content ul ul, #content ol ol, #contentwide ul ul, #contentwide ol ol, #contentfull ul ul, #contentfull ol ol { margin: 2px 0 2px 20px; }
#content li, #contentwide li, #contentfull li { margin: 0 0 2px 10px; padding: 0 0 0 4px; }
#footer { clear: both; margin: 0 auto; padding: 8px 6px; border-top: 2px solid #dadada; width: 100%; text-align: center; color: #555; background: #fff; font-size: .9em; }
#footer p { padding: 0; margin: 0; }
#footer a { color: #555; text-decoration: none; }
#footer a:hover { text-decoration: underline; }
a { color: #333; text-decoration: none; }
a:hover { color: #0000cc; text-decoration: underline; }
a img { border: 0; }
.hide { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: #000; padding: 8px; }
.skip-link:focus { left: 8px; }
@media (max-width: 640px) {
  body { background-image: none; font-size: 90%; }
  #wrap { padding: 1px 8px; }
  #header { min-height: 160px; background-position: center bottom; }
  #header h1 { padding: 22px 12px 0; font-size: clamp(1.45rem, 6vw, 2.1rem); letter-spacing: -.5px; }
  #header p { margin-left: 12px; }
  #menuswitch { display: block; }
  #avmenu { display: none; float: none; width: 100%; min-width: 0; margin: 0 0 12px; }
  #avmenu.is-open { display: block; }
  #avmenu ul { margin-bottom: 10px; }
  #avmenu li a { padding: 9px 10px; }
  .maincontent { margin: 10px 0; }
  #extras, #content, #contentwide, #contentfull { float: none; width: 100%; margin: 10px 0; }
  #extras { padding: 10px; background: rgba(255,255,255,.35); }
  #content h2, #contentwide h2, #contentfull h2 { font-size: 1.55em; }
}
@media (min-width: 641px) and (max-width: 760px) {
  #avmenu { width: 22%; min-width: 0; }
  .maincontent { margin-left: 24%; }
  #content { width: 72%; }
  #extras { width: 25%; }
}
/* Responsive Projektgalerie */
.projektgalerie {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 1.5rem 0;
}

.projektgalerie-kachel {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.projektgalerie-kachel img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 200 / 133;
    object-fit: cover;
    border: 0;
    transition: opacity 0.2s ease;
}

.projektgalerie-kachel span {
    display: block;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.projektgalerie-kachel:hover img {
    opacity: 0.8;
}

.projektgalerie-kachel:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Kleine Smartphones */
@media (max-width: 480px) {
    .projektgalerie {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}