/* Facelift + responsive Darstellung (2026)
 * Wird nach main.css und form.css geladen und überschreibt nur Layout-Angaben;
 * Farben, Schriften und Inhalte bleiben wie bisher.
 */

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

body
{
  height: auto;
  min-height: 100%;
  padding: 48px 16px 0;
}

img
{
  max-width: 100%;
  height: auto;
}

/* Bühne -------------------------------------------------------------------------------- */

#site
{
  width: auto;
  max-width: 882px;
  padding-bottom: 8px;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

#logo
{
  width: auto;
  padding: 38px 40px 30px;
}

#site_content
{
  width: auto;
  margin: 0 40px;
}

/* Hauptmenü ---------------------------------------------------------------------------- */

#menu
{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  width: auto;
  margin-bottom: 22px;
}

#menu li
{
  float: none;
  margin: 0;
}

#menu br
{
  display: none;
}

/* Kopfbild der Seiten */
#site_content > img
{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Inhalt + Seitenleiste ------------------------------------------------------------------ */

.content_holder
{
  display: flex;
  align-items: flex-start;
  gap: 25px;
  width: auto;
  margin: 40px 0 0 49px;
}

.content_holder > br.clear
{
  display: none;
}

.content
{
  flex: 0 1 460px;
  width: auto;
  min-width: 0;
  margin: 0;
  float: none;
}

.sidebar
{
  flex: 0 0 250px;
  width: auto;
  float: none;
}

.sidebar ul
{
  width: auto;
}

/* Bildleiste ------------------------------------------------------------------------------ */

#footer .line
{
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 40px;
}

#footer .thumbs
{
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 24px;
}

#footer .thumbs .zoom_img
{
  float: none;
  width: auto;
  height: auto;
  margin: 0;
}

#footer .thumbs img
{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  transition: opacity 0.2s;
}

#footer .thumbs a:hover img
{
  opacity: 0.85;
}

/* Rechtliches unterhalb der Bühne ---------------------------------------------------------- */

.site-legal
{
  padding: 22px 16px 40px;
  text-align: center;
  font-family: Arial, Verdana, sans-serif;
  font-size: 13px;
  color: #F7F4DF;
}

.site-legal a
{
  margin: 0 10px;
  font-family: Arial, Verdana, sans-serif;
  font-size: 13px;
  color: #F7F4DF;
  letter-spacing: 0.05em;
}

.site-legal a:hover
{
  color: #FFF;
  border-bottom: 1px solid #FFF;
}

/* Tablet ------------------------------------------------------------------------------------ */

@media (max-width: 900px)
{
  .content_holder
  {
    margin-left: 0;
  }

  .content
  {
    flex: 1 1 auto;
  }
}

/* Smartphone --------------------------------------------------------------------------------- */

@media (max-width: 760px)
{
  body
  {
    padding: 0;
  }

  #site
  {
    border-radius: 0;
    box-shadow: none;
    padding-bottom: 0;
  }

  #logo
  {
    padding: 22px 16px 18px;
  }

  #site_content
  {
    margin: 0 16px;
  }

  #menu
  {
    justify-content: center;
    gap: 6px 18px;
  }

  #menu li a
  {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .content_holder
  {
    display: block;
    margin-top: 26px;
  }

  .content
  {
    margin-bottom: 30px;
  }

  .sidebar
  {
    padding-top: 10px;
  }

  h1
  {
    font-size: 18px;
  }

  #footer .thumbs
  {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .site-legal
  {
    padding-bottom: 28px;
  }

  /* Kontaktformular: Bezeichnung über dem Feld */
  .kf-row
  {
    flex-direction: column;
    align-items: stretch;
  }

  .kf-label
  {
    flex: none;
    padding: 0 0 4px;
    text-align: left;
    white-space: normal;
  }

  .kf-label:empty
  {
    display: none;
  }

  .kf-intro
  {
    margin-left: 0;
  }

  .kf input[type="text"],
  .kf input[type="email"],
  .kf input[type="tel"],
  .kf textarea
  {
    font-size: 16px;   /* verhindert automatisches Zoomen auf iOS */
  }

  .kf-captcha
  {
    flex-wrap: wrap;
  }
}
