/*
 * kochs-immobilien.de – site stylesheet, ported from html/css/basic.css of
 * the PHP site. Units as before: 1rem = 100px above 1000px, 10vw up to
 * 1000px and 20vw up to 500px wide screens.
 *
 * Colours changed for WCAG 2.2 AA (accessibility spec, design D13), each
 * darkened only as far as needed:
 *   - sub-navigation button, inactive:  #71AAD5 → #347BB1
 *     (white bold 14px text: 2.50:1 → 4.55:1, needs 4.5:1)
 *   - form error text:                  #FF0000 → #EE0000
 *     (on white: 4.00:1 → 4.53:1, needs 4.5:1)
 *   - form field border:                #CBD0D8 → #8A95A7
 *     (against white: 1.55:1 → 3.03:1, needs 3:1 for UI components)
 * Added: visible keyboard focus, skip link, prefers-reduced-motion. Removed:
 * the hidden <h1>/<h2> labels and `outline: 0` on links.
 *
 * Font: Open Sans (SIL Open Font License 1.1, static/fonts/OFL.txt) instead of
 * Arial/Helvetica, which are not freely licensed. Self-hosted variable font
 * (weights 300-800) from @fontsource-variable/open-sans 5.2.6, split into
 * the latin and latin-ext ranges so most pages load one file.
 */

/* Schrift */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/assets/open-sans-latin-wght-normal.d7a54758.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(/assets/open-sans-latin-ext-wght-normal.d5bab8e2.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 300 800;
  src: url(/assets/open-sans-latin-wght-italic.403c82a2.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Grundlagen */

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100px;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}

body {
  color: #000;
  font-family: "Open Sans", sans-serif;
  font-size: 0.12rem;
  height: 100%;
  background: #3987C5 url(/assets/background.dda96b9f.webp) left top repeat-x;
}

/* Form controls do not inherit the font by default. */
button, input, select, textarea {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: #00579D;
}
a:hover {
  text-decoration: underline;
}
img {
  border: 0;
}

:focus-visible {
  outline: 2px solid #00579D;
  outline-offset: 2px;
}
/* Programmatic focus targets (skip link, "Seitenanfang") need no ring. */
main:focus, header:focus {
  outline: none;
}

.skiplink {
  position: absolute;
  z-index: 2000;
  top: -1rem;
  left: 0.1rem;
  padding: 0.06rem 0.12rem;
  background: #FFF;
  color: #00579D;
  font-weight: bold;
}
.skiplink:focus {
  top: 0.05rem;
}

h1 {
  margin: 0.19rem 0 0.2rem 0;
  padding: 0 0 0.07rem 0;
  font-size: 0.21rem;
  font-weight: normal;
  color: #00579D;
  background: url(/assets/linie.ec7e9a01.webp) left bottom repeat-x;
}

h2 {
  font-size: 0.13rem;
  font-weight: bold;
  color: #5D5D5D;
  margin: 0.12rem 0 0.08rem 0;
}

fieldset {
  border: none;
}

.clear {
  clear: both;
}

/* Buttons that look like the links around them ("Seite drucken"). */
.linkbutton {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: #00579D;
  cursor: pointer;
}
.linkbutton:hover {
  text-decoration: underline;
}

/* Text for screen readers only. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Elements that only work with JavaScript; site.js sets html.js. */
.js-only {
  display: none;
}
.js .js-only {
  display: inline;
}

.trenner {
  margin: 0 0.07rem;
}

/* Container */

#container {
  width: 9.78rem;
  margin: 0 auto;
}
.shadow_top {
  height: 0.18rem;
  background: url(/assets/background_top.6bc950cc.webp);
  background-size: 9.78rem 0.18rem;
}
.shadow_bottom {
  height: 0.18rem;
  background: url(/assets/background_bottom.0020bb1c.webp);
  background-size: 9.78rem 0.18rem;
}
#toplinks {
  color: #00579D;
  text-align: right;
  padding: 0.07rem 0.21rem 0 0;
}
#header {
  position: relative;
  height: 2.59rem;
  background: url(/assets/background_center.0859a30d.webp) repeat-y;
  background-size: 9.78rem 1px;
}
#banner {
  position: absolute;
  top: -0.08rem;
  left: 0.1rem;
}
#banner span {
  display: block;
  position: absolute;
  left: -0.15rem;
  top: 0.3rem;
}

#content {
  background: url(/assets/background_center.0859a30d.webp) repeat-y;
  background-size: 9.78rem 1px;
}

#navi {
  position: relative;
  float: left;
  min-height: 4rem;
  margin-bottom: 0.25rem;
}
#logo {
  margin: 0.05rem 0 0 0.15rem;
  width: 2.22rem;
  height: auto;
  padding: 0.08rem 0 0.15rem 0.09rem;
  background: url(/assets/schatten_logo.8d26013c.webp) no-repeat;
}
/* The logo below the header image is for screens up to 1000px only. */
#logo_mobil {
  display: none;
}
#hauptnavigation ul {
  margin: 0.18rem 0 0 0.09rem;
}
#hauptnavigation li {
  display: block;
  width: 2.18rem;
  height: 0.3rem;
  line-height: 0.3rem;
  text-align: right;
  padding-right: 0.08rem;
  margin-top: -1px;
  list-style: none;
  background: url(/assets/linie.ec7e9a01.webp) left bottom repeat-x;
}
#hauptnavigation li.active {
  background: #00579D;
}
#hauptnavigation li a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0.14rem;
  text-transform: uppercase;
  color: #000;
}
#hauptnavigation li a:hover {
  text-decoration: none;
  color: #00579D;
}
#hauptnavigation li a.active, #hauptnavigation li a.active:hover {
  color: #FFF;
  font-weight: bold;
}
#hauptnavigation li a.active:focus-visible {
  outline-color: #FFF;
  outline-offset: -3px;
}

/* The menu button exists for the off-canvas navigation only. */
#togglenav {
  display: none;
}

#inhalt {
  position: relative;
  float: right;
  width: 6.15rem;
  margin: 0 0.63rem 0 0;
  padding-bottom: 0.15rem;
}
#inhalt #text {
  position: relative;
  float: left;
  width: 3.85rem;
}
#inhalt.firmenprofil #text {
  float: none;
}
#inhalt.startseite #text h2 {
  margin: 0 0 0.08rem 0;
}
#inhalt #bilder {
  position: relative;
  float: right;
  width: 2.08rem;
}
#inhalt #bilder img {
  margin-bottom: 0.14rem;
}

#inhalt p, #inhalt ul {
  margin: 0.08rem 0;
}
#inhalt li {
  margin-left: 0.2rem;
}

/* Link to the RSS feed below the offer lists */
#inhalt p.feed-link {
  margin: 0.2rem 0 0 0;
}

/* "Bitte wählen Sie eine Kategorie aus." (an <h4> on the PHP site) */
#inhalt p.hinweis {
  font-size: 0.13rem;
  font-weight: bold;
  color: #5D5D5D;
  margin: 0.12rem 0 0.08rem 0;
}

#footer {
  position: relative;
  clear: both;
  color: #00579D;
  padding: 0.08rem 0 0 3rem;
}
#footer::before {
  content: '';
  position: absolute;
  width: 9.58rem;
  height: 1px;
  top: 0;
  left: 0.1rem;
  background: #E2E7DB;
}

/* Inhalte */

#inhalt ul.schlagworte {
  list-style: none;
  margin: 0;
}
#inhalt ul.schlagworte li {
  position: relative;
  font-size: 0.17rem;
  font-weight: bold;
  font-style: italic;
  color: #5D5D5D;
  margin: 0.15rem 0;
  padding: 0 0 0 0.35rem;
}
#inhalt ul.schlagworte li::before {
  content: '';
  position: absolute;
  display: block;
  width: 0.3rem;
  height: 0.26rem;
  top: -0.05rem;
  left: 0;
  background: transparent url(/assets/sprite.038ab047.webp) center -1.08rem no-repeat;
  background-size: 0.4rem 1.5rem;
}

/* Startseite: Angebot der Woche. The heading was part of angebot_top.png;
   it is real text now, on the same box top without the lettering. */

#angebot {
  width: 2.22rem;
}
#angebot .top {
  height: 0.41rem;
  background: url(/assets/angebot_top.bc30ed2b.webp) no-repeat;
  background-size: 2.22rem 0.41rem;
}
#inhalt #angebot .top h2 {
  margin: 0;
  padding: 0.14rem 0.15rem 0 0;
  font-size: 0.145rem;
  line-height: 0.18rem;
  font-weight: normal;
  text-align: center;
  color: #282828;
}
#angebot .center a {
  display: block;
}
#angebot .center {
  background: url(/assets/angebot_center.984c025f.webp) repeat-y;
  background-size: 2.22rem 1px;
  text-align: center;
  padding: 0 0.28rem 0.05rem 0.12rem;
}
#inhalt #bilder #angebot .center img {
  width: 1.5rem;
  height: auto;
  border: 1px solid #C4C4C4;
  margin: 0;
}
#angebot .trennlinie {
  height: 1px;
  background: #D0D3D5;
  margin: 0.05rem 0;
}
#angebot .bottom {
  height: 0.15rem;
  background: url(/assets/angebot_bottom.d1efb6f8.webp) no-repeat;
  background-size: 2.22rem 0.15rem;
}

/* Verkauf/Vermietung */

  /* Subnavigation */

#submenu {
  width: 6.3rem;
}
#inhalt #submenu ul {
  display: flow-root;
  list-style: none;
  margin: 0;
}
#inhalt #submenu li.submenuitem {
  float: left;
  width: 1.95rem;
  margin: 0 0.15rem 0.15rem 0;
}
#submenu li.submenuitem a {
  display: block;
  text-align: center;
  padding: 0.1rem 0;
  color: #FFF;
  background: #347BB1; /* was #71AAD5, see the colour notes at the top */
  font-size: 0.14rem;
  font-weight: bold;
}
#submenu li.submenuitem a.active, #submenu li.submenuitem a:hover {
  text-decoration: none;
  background: #00579D;
  color: #FFF;
}

  /* Angebote (listing tiles, task 7) */

#inhalt ul.angebote {
  display: flow-root;
  width: 6.3rem;
  list-style: none;
  margin: 0;
}
#inhalt ul.angebote li.angebot {
  float: left;
  width: 1.95rem;
  margin: 0 0.15rem 0.15rem 0;
  background: #E8E8E8;
}
.angebot a {
  display: block;
  width: 1.85rem;
  height: 1.9rem;
  text-align: center;
  padding: 0.15rem 0.05rem 0.05rem 0.05rem;
}
.angebot a:hover {
  text-decoration: none;
}
.angebot a .name {
  display: block;
  font-weight: bold;
  padding-top: 0.05rem;
}
.angebot a .ort {
  display: block;
}
.angebot a img {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0 auto;
  object-fit: cover;
}

/* Exposé (layout variant B): gallery and key facts side by side above
   1000px, stacked below (see the media queries). */

#inhalt p.zurueck {
  margin: 0 0 0.1rem 0;
}
.expose-kopf {
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0.1rem 0 0.15rem 0;
}
.galerie {
  flex: 0 0 3.6rem;
  width: 3.6rem;
}
.eckdaten-box {
  flex: 1 1 auto;
  min-width: 0;
}
.galerie .gross a, .galerie .gross button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #F0F0F0;
  cursor: zoom-in;
}
.galerie img {
  display: block;
  width: 100%;
  height: auto;
}
.galerie .gross img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
#inhalt .galerie .thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.04rem;
  list-style: none;
  margin: 0.05rem 0 0 0;
}
#inhalt .galerie .thumbs li {
  margin: 0;
}
.galerie .thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
}
.galerie .thumb[aria-current="true"] {
  border-color: #00579D;
}
.galerie .thumb img {
  aspect-ratio: 1;
  object-fit: cover;
}

/* Fact lists: label and value per row, as the exposé tables upstream. */
#inhalt.expose dl {
  display: grid;
  grid-template-columns: fit-content(45%) 1fr;
}
#inhalt.expose dl > div {
  display: contents;
}
#inhalt.expose dt, #inhalt.expose dd {
  padding: 0.05rem 0.08rem;
  background: #E3E9ED;
  border-bottom: 2px solid #FFF;
}
#inhalt.expose dt {
  font-weight: bold;
  border-right: 2px solid #FFF;
}
#inhalt.expose dd {
  overflow-wrap: anywhere;
}
#inhalt.expose h3 {
  font-size: 0.12rem;
  color: #5D5D5D;
  margin: 0.1rem 0 0.05rem 0;
}
#inhalt p.anfrage-sprung {
  margin: 0.12rem 0 0 0;
}
a.button {
  display: inline-block;
  padding: 0.07rem 0.15rem;
  background: #00579D;
  color: #FFF;
  font-weight: bold;
  font-size: 0.13rem;
}
a.button:hover {
  text-decoration: none;
  background: #003F73;
}
#inhalt p.notiz {
  color: #5D5D5D;
  font-style: italic;
}

  /* Energy scale (classes from internal/energy) */

.energieskala-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.05rem 0.15rem;
  margin: 0.08rem 0 0.1rem 0;
}
.energieskala {
  width: 4.2rem;
  max-width: 100%;
  height: auto;
}
.energieskala .segment {
  stroke: #FFF;
  stroke-width: 1;
}
.energieskala .segment.current {
  stroke: #000;
  stroke-width: 3;
}
.energieskala rect.k-ap { fill: #00A651; }
.energieskala rect.k-a  { fill: #4CB848; }
.energieskala rect.k-b  { fill: #BED630; }
.energieskala rect.k-c  { fill: #FFF200; }
.energieskala rect.k-d  { fill: #FDB913; }
.energieskala rect.k-e  { fill: #F37021; }
.energieskala rect.k-f  { fill: #ED1C24; }
.energieskala rect.k-g  { fill: #C1272D; }
.energieskala rect.k-h  { fill: #8B1A1E; }
.energieskala text {
  font-family: "Open Sans", sans-serif;
  fill: #000;
}
.energieskala .klasse {
  font-size: 18px;
  font-weight: bold;
}
.energieskala .klasse.k-g, .energieskala .klasse.k-h {
  fill: #FFF;
}
.energieskala .tick {
  font-size: 14px;
  fill: #333;
}
.energieskala .marker polygon {
  fill: #000;
}
.energieskala .marker text {
  font-size: 17px;
  font-weight: bold;
}

  /* Enquiry form */

.anfrage {
  clear: both;
  margin-top: 0.2rem;
  padding-top: 0.05rem;
  border-top: 1px solid #E2E7DB;
}
.anfrage .feld {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.1rem;
  max-width: 4.6rem;
  margin-bottom: 0.08rem;
}
.anfrage label {
  padding-top: 0.04rem;
}
.anfrage input, .anfrage textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.03rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.12rem;
  border: 1px solid #8A95A7;
}
.anfrage textarea {
  resize: vertical;
}
.anfrage .button {
  margin-left: 1.3rem;
}
.anfrage button[type="submit"] {
  padding: 0.04rem 0.15rem;
  border: 0;
  background: #00579D;
  color: #FFF;
  font-family: "Open Sans", sans-serif;
  font-size: 0.13rem;
  font-weight: bold;
  letter-spacing: 0.02rem;
  cursor: pointer;
}
.anfrage button[type="submit"]:hover {
  background: #003F73;
}
/* Under the field, in the field column (one column on phones). */
.anfrage .feld .feld-fehler {
  grid-column: -2 / -1;
}
.anfrage .turnstile[data-sitekey] {
  margin-left: 1.3rem;
}

  /* Form messages and Turnstile (both forms) */

[hidden] {
  display: none !important;
}
.feld-fehler {
  display: block;
}
.formular-status, .ohne-js { /* .ohne-js: notice in <noscript> */
  font-weight: bold;
}
.formular-status:empty {
  margin: 0;
}
.formular-status.error {
  color: #EE0000;
}
.turnstile[data-sitekey] {
  min-height: 65px; /* the widget's height: no layout shift when it appears */
  margin-bottom: 0.08rem;
}
.turnstile[data-size="compact"] {
  min-height: 140px; /* the compact widget, in slots narrower than 300px */
}

  /* Error pages (404, 410, 500) */

#inhalt ul.wege {
  list-style: none;
  margin: 0.08rem 0 0.2rem 0;
}
#inhalt ul.wege li {
  margin: 0 0 0.04rem 0;
}
/* Stand-alone links: at least 24 px high (WCAG 2.2 target size, 2.5.8). */
#inhalt ul.wege a {
  display: inline-block;
  min-height: 0.24rem;
  line-height: 0.24rem;
}
#inhalt p.gone-titel {
  font-size: 0.14rem;
}
#inhalt p.gone-kontakt {
  margin: 0.2rem 0 0 0;
  font-weight: bold;
}
/* The withdrawn offer's photo, dimmed and marked with text (the label is
   not part of the image). */
.nicht-verfuegbar {
  position: relative;
  max-width: 3.6rem;
  margin: 0.08rem 0;
  background: #F0F0F0;
}
.nicht-verfuegbar img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
  opacity: 0.55;
}
.nicht-verfuegbar .marke {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.06rem 0.14rem;
  background: #333;
  color: #FFF;
  font-size: 0.16rem;
  font-weight: bold;
  white-space: nowrap;
}

  /* Full-screen gallery (created by site.js) */

body.vollbild-offen {
  overflow: hidden;
}
dialog.vollbild {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #FFF;
}
dialog.vollbild::backdrop {
  background: #000;
}
.vollbild-bild, .vollbild-bild picture {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.vollbild-bild img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
dialog.vollbild button {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid #FFF;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #FFF;
  font-size: 30px;
  line-height: 40px;
  cursor: pointer;
}
dialog.vollbild button:focus-visible {
  outline: 3px solid #FFF;
  outline-offset: 2px;
}
dialog.vollbild .vollbild-zurueck {
  left: 12px;
  top: 50%;
  margin-top: -24px;
}
dialog.vollbild .vollbild-weiter {
  right: 12px;
  top: 50%;
  margin-top: -24px;
}
dialog.vollbild .vollbild-schliessen {
  top: 12px;
  right: 12px;
}
.vollbild-zaehler {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 16px;
}

/* Kontakt */

.error {
  color: #EE0000; /* was #FF0000, see the colour notes at the top */
}

#kontakt h2 {
  margin: 0 0 0.08rem 0;
}
#kontakt div.label {
  float: left;
  width: 0.85rem;
  margin-bottom: 0.05rem;
  padding-top: 0.05rem;
}
#kontakt div.input {
  float: left;
  width: 3rem;
  margin-bottom: 0.15rem;
}
#kontakt div.input input, #kontakt div.input textarea {
  width: 2.9rem;
  padding: 0.03rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.12rem;
  border: 1px solid #8A95A7; /* was #CBD0D8, see the colour notes at the top */
}
#kontakt div.input textarea {
  min-width: 2.9rem;
  max-width: 2.9rem;
}
#kontakt div.button {
  clear: both;
}
#inhalt.kontakt #bilder h2 {
  margin: 0 0 0.08rem 0;
}
form#contact {
  margin-top: 0.15rem;
}
#kontakt #submit {
  padding: 0.03rem 0.1rem;
}

/* Impressum */

#inhalt.impressum {
  background: url(/assets/impressum.26befb1e.webp) 3.5rem 1rem no-repeat;
}

/* Tablet und Telefon */

@media screen and (max-width: 1000px) {

  html {
    font-size: 10vw;
  }

  body {
    font-size: 0.18rem;
  }

  h1 {
    font-size: 0.27rem;
  }

  h2, #inhalt p.hinweis {
    font-size: 0.19rem;
  }

  #container {
    padding-left: 0;
    transition: padding-left 0.4s;
  }

  .mobil_navi #container {
    padding-left: 5.1rem;
  }

  /* Off-canvas navigation (with JavaScript; without it the navigation
     stays in the page above the content). */
  .js #togglenav {
    position: absolute;
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    top: 0.11rem;
    left: 0.25rem;
    z-index: 1000;
    border: 0;
    cursor: pointer;
    transition: left 0.4s;
    background: transparent url(/assets/sprite.038ab047.webp) center 0 no-repeat;
    background-size: 0.4rem 1.5rem;
  }

  .js .mobil_navi #togglenav {
    left: 4.55rem;
    background-position: center -0.51rem;
  }

  #navi {
    float: none;
    min-height: 0;
  }

  .js #navi {
    position: fixed;
    z-index: 900;
    width: 5rem;
    height: 100%;
    top: 0;
    left: -5rem;
    margin: 0;
    overflow-y: auto;
    visibility: hidden;
    transition: left 0.4s, visibility 0s linear 0.4s;
  }

  .js .mobil_navi #navi {
    left: 0;
    visibility: visible;
    transition: left 0.4s;
  }

  #navi #logo {
    display: none;
  }

  /* Without JavaScript the navigation is a plain list above the content. */
  html:not(.js) #hauptnavigation ul {
    margin: 0.1rem 0 0.1rem 0;
  }

  html:not(.js) #hauptnavigation li {
    width: auto;
    margin-left: 0.15rem;
    margin-right: 0.15rem;
  }

  #hauptnavigation ul {
    margin: 0.45rem 0 0 0;
  }

  #hauptnavigation li {
    width: 4.08rem;
    height: 0.6rem;
    line-height: 0.6rem;
  }

  #hauptnavigation li a {
    font-size: 0.28rem;
  }

  #toplinks {
    padding: 0.35rem 0.21rem 0 0;
  }

  #banner_ribbon {
    width: 5.27rem;
    height: auto;
  }

  #banner_bild {
    width: 9.58rem;
    height: auto;
  }

  #logo_mobil {
    display: block;
    position: relative;
    width: 9.4rem;
    margin: 0.1rem;
    padding: 0.1rem;
    background: #FFF;
    box-shadow: 0 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  #logo_mobil img {
    width: 4.73rem;
    height: auto;
    transform: scale(1.4);
    margin: 0.2rem 0.15rem 0.15rem 2.25rem;
  }

  #inhalt {
    width: 8.6rem;
  }

  #inhalt #text {
    width: 5.15rem;
  }

  #inhalt.firmenprofil #text {
    width: 100%;
  }

  #inhalt #bilder {
    width: 3rem;
  }

  #kontakt > form {
    margin: 0.25rem 0;
  }

  #kontakt div.label {
    float: none;
    clear: both;
  }

  #kontakt div.input {
    margin-bottom: 0.15rem;
    width: 4.15rem;
  }

  #kontakt div.input input {
    width: 4rem;
    font-size: 0.18rem;
  }

  #kontakt div.input textarea {
    width: 4rem;
    min-width: 4rem;
    max-width: 4rem;
    font-size: 0.18rem;
  }

  #kontakt #submit {
    font-size: 0.15rem;
    padding: 0.03rem 0.1rem;
  }

  #inhalt ul.schlagworte li {
    font-size: 0.23rem;
  }

  #submenu li.submenuitem a {
    font-size: 0.14rem;
  }

  #inhalt ul.angebote {
    width: 100%;
  }

  .angebot {
    font-size: 0.15rem;
  }

  .angebot a {
    height: 2.4rem;
  }

  .angebot a img {
    width: 1.2rem;
    height: 1.2rem;
  }

  .expose-kopf {
    display: block;
  }

  .galerie {
    width: 100%;
  }

  .eckdaten-box {
    margin-top: 0.15rem;
  }

  #inhalt.expose h3, a.button, .anfrage input, .anfrage textarea, .anfrage button[type="submit"] {
    font-size: 0.18rem;
  }

  .energieskala {
    width: 100%;
  }


  #footer {
    padding: 0.08rem 0 0 3.65rem;
  }

}

@media screen and (max-width: 500px) {

  html {
    font-size: 20vw;
  }

  #container {
    width: 4.7rem;
  }

  .mobil_navi #container {
    padding-left: 4.45rem;
  }

  .js #navi {
    width: 3.7rem;
  }

  #hauptnavigation li {
    width: 3.7rem;
  }

  .js .mobil_navi #togglenav {
    left: 3.9rem;
  }

  #header {
    height: 1.15rem;
  }

  #banner_ribbon {
    width: 4.85rem;
  }

  #banner_bild {
    width: 4.6rem;
  }

  #angebot {
    margin-bottom: 0.03rem;
  }

  #inhalt {
    width: 4.3rem;
    padding: 0 0.15rem 0 0;
    margin: 0;
  }

  #inhalt #text {
    width: 100%;
  }

  #inhalt #bilder {
    float: none;
    padding: 0.3rem 0 0 0;
    clear: both;
  }

  #submenu {
    width: 4.3rem;
  }

  /* Centred instead of the PHP site's left padding of 1.15rem, so the
     third link ("Barrierefreiheit") fits on the line. */
  #footer {
    padding: 0.2rem 0 0 0;
    text-align: center;
  }

  #footer::before {
    width: 4.6rem;
  }

  #logo_mobil {
    width: 4.4rem;
  }

  #logo_mobil img {
    width: 2.05rem;
    margin: 0.4rem 0 0.3rem 1.08rem;
  }

  #kontakt div.input {
    width: 100%;
  }

  #inhalt .galerie .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  #inhalt.expose dl {
    grid-template-columns: 1fr;
  }

  #inhalt.expose dt {
    border-bottom: 0;
    border-right: 0;
    padding-bottom: 0;
  }

  .anfrage .feld {
    grid-template-columns: 1fr;
    gap: 0.03rem;
  }

  .anfrage .button, .anfrage .turnstile[data-sitekey] {
    margin-left: 0;
  }

  #kontakt div.input input {
    width: 4.2rem;
  }

  #kontakt div.input textarea {
    width: 4.2rem;
    min-width: 4.2rem;
    max-width: 4.2rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
