*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0 8px;
    background-color: #EBE6DE;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 10pt;
    line-height: 1.4;
    text-align: center;
}

img { border: 0; }

a { color: #ffffff; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid #7E2601; outline-offset: 2px; }
.adresse a:focus-visible, .fuss-links a:focus-visible { outline-color: #ffffff; }

a.ank, a.kontakt, a.partner { color: #000000; }

.gesammt {
    max-width: 830px;
    margin: 15px auto;
    padding: 15px 14px 0;
    background-color: #B59C82;
    border: 1px solid #000000;
}

.banner {
    display: grid;
    grid-template-columns: 30% 70%;
    border: 1px solid #000000;
    background-color: #7E2601;
}
.banner img { display: block; width: 100%; height: auto; }

.adresse {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    text-align: left;
}
.adresse .inhalt { padding: 10px; }

.links { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.links a { display: block; padding: 17px 5px; line-height: 0; }
.links img { display: block; width: 32px; height: 32px; }

.box {
    margin-top: 10px;
    padding: 10px;
    background-color: #EBE6DE;
    text-align: left;
}

h1, h2, .ueberschrift {
    margin: 0 0 1.4em;
    font-family: arial, helvetica, sans-serif;
    font-size: 12pt;
    font-weight: normal;
    text-decoration: underline;
}
.box > h2:last-child { margin-bottom: 0; }

.raute { color: #7f3528; font-size: 12pt; }

ul.liste { margin: 0; padding: 0; list-style: none; }

.icon-willkommen { background: #EBE6DE url(../willkommen1.jpg) no-repeat right 12px bottom 10px; padding-bottom: 52px; }
.icon-qualitaet  { background: #EBE6DE url(../qualitaet1.jpg) no-repeat right 12px bottom 10px; padding-bottom: 52px; }
.icon-verlegung  { background: url(../verlegung1.jpg) no-repeat right 0 bottom 4px; }
.icon-ausstellung { background: url(../ausstellung1.jpg) no-repeat right 0 bottom 0; }
.icon-partner    { background: #EBE6DE url(../partner1.jpg) no-repeat right 12px bottom 10px; }
.icon-kontakt    { background: #EBE6DE url(../kontakt1.jpg) no-repeat right 12px bottom 10px; }

.leistungen {
    display: grid;
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) minmax(150px, 200px);
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background-color: #EBE6DE;
    text-align: left;
}
.leistungen .spalte { padding-bottom: 52px; }
.leistungen .ueberschrift { margin-bottom: 5px; display: block; }
.leistungen .bild img { display: block; width: 100%; height: auto; }

.doppel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 10px;
}
.doppel .box { margin-top: 0; padding-bottom: 52px; }
.doppel .ueberschrift { margin-bottom: 1.4em; }

.fuss-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 18px;
    padding: 10px 15px 15px;
    color: #ffffff;
}
.fuss-links a { display: inline-block; padding: 4px 0; }

.galerie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 1.4em;
}
.galerie.vier { grid-template-columns: repeat(4, 1fr); }
.galerie a { display: block; line-height: 0; }
.galerie img { display: block; width: 100%; height: auto; max-width: 250px; }
.galerie.vier img { max-width: 180px; }

body.recht { background-color: #B59C82; text-align: left; }
.recht-box {
    max-width: 700px;
    margin: 15px auto;
    padding: 30px 20px 20px;
    background: #ffffff url(../impressum1.jpg) no-repeat 96% 12px;
    border: 1px solid #000000;
    color: #000000;
}
.recht-box h1 { margin: 0 0 1em; padding-right: 44px; }
.recht-box h2 { margin: 2em 0 .8em; }
.recht-box h3 { margin: 1.4em 0 .4em; font-size: 10pt; }
.recht-box p, .recht-box ul { margin: 0 0 1em; }
.recht-box ul { padding-left: 1.4em; }
.recht-box a { color: #000000; text-decoration: underline; }
.recht-box a:hover { color: #7E2601; }
.recht-box address { font-style: normal; margin: 0 0 1em; }
.recht-box .nowrap { white-space: nowrap; }
.recht-zurueck { max-width: 700px; margin: 0 auto 15px; padding: 0 4px; text-align: right; }
.recht-zurueck a { display: inline-block; padding: 6px 0; color: #000000; text-decoration: underline; }
.recht-zurueck a + a { margin-left: 18px; }

@media (max-width: 720px) {
    .leistungen { grid-template-columns: 1fr; }
    .leistungen .spalte { padding-bottom: 52px; }
    .leistungen .bild { order: 0; }
    .doppel { grid-template-columns: 1fr; gap: 10px; }
    .links a { padding: 8px 5px; }
    .adresse .inhalt { width: 100%; padding-bottom: 0; }
    .links { width: 100%; justify-content: flex-start; padding: 0 5px; }
}

@media (max-width: 480px) {
    body { padding: 0; font-size: 12pt; }
    .gesammt { margin: 0 auto; padding: 8px 8px 0; border-width: 0 0 1px; }
    .adresse .inhalt { padding: 10px 2px 0; }
    .links { justify-content: space-between; padding: 0; }
    .links a { padding: 8px 6px; }

    .box, .leistungen { padding: 10px; }
    .raute { font-size: 14pt; }
    h1, h2, .ueberschrift { font-size: 14pt; }

    .galerie, .galerie.vier { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .galerie img, .galerie.vier img { max-width: none; }

    a.partner, a.kontakt { display: inline-block; padding: 5px 0; }
    .fuss-links { justify-content: space-between; padding: 8px 4px 15px; }
    .fuss-links a { padding: 8px 0; }

    .recht-box { margin: 0 auto; padding: 24px 14px 18px; border-width: 0 0 1px; }
    .recht-zurueck { padding: 0 14px; margin-top: 8px; }
}

@media print {
    body, body.recht { background: #ffffff; }
    .gesammt, .recht-box { border: 0; }
}
