body,form,figure{margin:0;padding:0}img{border:0}header,footer,nav,section,aside,article,figure,figcaption{display:block}body{font-size:100.01%}select,input,textarea{font-size:99%}#container,.inside{position:relative}#main,#left,#right{float:left;position:relative}#main{width:100%}#left{margin-left:-100%}#right{margin-right:-100%}#footer{clear:both}#main .inside{min-height:1px}.ce_gallery>ul,.content-gallery>ul{margin:0;padding:0;overflow:hidden;list-style:none}.ce_gallery>ul li,.content-gallery>ul li{float:left}.ce_gallery>ul li.col_first,.content-gallery>ul li.col_first{clear:left}.float_left,.media--left>figure{float:left}.float_right,.media--right>figure{float:right}.block{overflow:hidden}.media{display:flow-root}.clear,#clear{height:.1px;font-size:.1px;line-height:.1px;clear:both}.invisible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.custom{display:block}#container:after,.custom:after{content:"";display:table;clear:both}
@media (max-width:767px){#wrapper{margin:0;width:auto}#container{padding-left:0;padding-right:0}#main,#left,#right{float:none;width:auto}#left{right:0;margin-left:0}#right{margin-right:0}}img{max-width:100%;height:auto}.audio_container audio{max-width:100%}.video_container video{max-width:100%;height:auto}.aspect,.responsive{position:relative;height:0}.aspect iframe,.responsive iframe{position:absolute;top:0;left:0;width:100%;height:100%}.aspect--16\:9,.responsive.ratio-169{padding-bottom:56.25%}.aspect--16\:10,.responsive.ratio-1610{padding-bottom:62.5%}.aspect--21\:9,.responsive.ratio-219{padding-bottom:42.8571%}.aspect--4\:3,.responsive.ratio-43{padding-bottom:75%}.aspect--3\:2,.responsive.ratio-32{padding-bottom:66.6666%}.aspect--9\:16,.responsive.ratio-916{padding-bottom:177.7777%}.aspect--1\:1,.responsive.ratio-11{padding-bottom:100%}
/* -----------------------------------------------------
   GRUNDLAYOUT (DESKTOP)
----------------------------------------------------- */


/* cabin-sketch-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cabin Sketch';
  font-style: normal;
  font-weight: 400;
  src: url('/files/layout/fonts/cabin-sketch-v19-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('/files/layout/fonts/cabin-sketch-v19-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/files/layout/fonts/cabin-sketch-v19-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('/files/layout/fonts/cabin-sketch-v19-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('/files/layout/fonts/cabin-sketch-v19-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/files/layout/fonts/cabin-sketch-v19-latin-regular.svg#CabinSketch') format('svg'); /* Legacy iOS */
}

/* cabin-sketch-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cabin Sketch';
  font-style: normal;
  font-weight: 700;
  src: url('/files/layout/fonts/cabin-sketch-v19-latin-700.eot'); /* IE9 Compat Modes */
  src: url('/files/layout/fonts/cabin-sketch-v19-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/files/layout/fonts/cabin-sketch-v19-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('/files/layout/fonts/cabin-sketch-v19-latin-700.woff') format('woff'), /* Modern Browsers */
       url('/files/layout/fonts/cabin-sketch-v19-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/files/layout/fonts/cabin-sketch-v19-latin-700.svg#CabinSketch') format('svg'); /* Legacy iOS */
}

/* ===============================
   Basis
================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #f4f4f4;
}

a {
  color: #0066aa;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

/* ===============================
   Header
================================ */
#header .inside {
  background-color:#c4c0c0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo headline"
    "logo menu";
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.3rem;
  padding: 0.5rem 1.5rem;
}

#logo {
  grid-area: logo;
}

#headline {
  grid-area: headline;
  font-family: "Cabin Sketch", sans-serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  color: #000;
  font-weight: 700;
}

#desktopmenu {
  font-size: 1.0rem;
  grid-area: menu;
}

#desktopmenu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#desktopmenu a,
#desktopmenu strong {
  display: block;
  color: #a15f5f;
  background-color:#fff;
  font-weight:bold;
  padding: 0.025rem 0.25rem;
}

.desktopmenu .active,
.desktopmenu strong.active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ===============================
   Mobile Navigation
================================ */
#nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-size: 1.6rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.mobilemenu {
  display: none;
  background: #083f1e;
}

.mobilemenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobilemenu a,
.mobilemenu strong {
  display: block;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobilemenu ul ul a {
  padding-left: 2.5rem;
  background: rgba(0, 0, 0, 0.12);
}

.mobilemenu ul ul ul a {
  padding-left: 3.5rem;
}

/* ===============================
   Layout: linke Spalte + Hauptinhalt
================================ */
#container {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-areas: "left main";
  gap: 2rem;
  padding: 2rem 1.5rem;
  background: #fff;
}

#left {
  grid-area: left;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

#main {
  grid-area: main;
  float: none !important;
  width: auto !important;
  min-width: 0;
  background: #fff;
}

#main .inside,
#left .inside {
  padding: 0;
}

/* ===============================
   Linke Desktop-Navigation
================================ */
#left .inside {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

#left .mod_navigation,
#left .mod_navigation ul,
#left .mod_navigation li {
  margin: 0 !important;
  padding: 0 !important;
}

#left nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#left nav a,
#left nav strong {
  width: 100%;
  display: block;
  padding: 0.7rem 1rem;
  margin-bottom: 0.25rem;
  background: #e9f2ec;
  color: #123;
  border-left: 4px solid transparent;
}

#left nav a:hover,
#left nav a:focus,
#left nav .active,
#left nav strong.active {
  background: #d6eadc;
  border-left-color: #0b5a2a;
  text-decoration: none;
}

/* Kalender links */
.minicalendar {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.minicalendar th,
.minicalendar td {
  text-align: center;
  padding: 0.35rem;
  border: 1px solid #ddd;
}

.minicalendar .today {
  background: #0b5a2a;
  color: #fff;
  font-weight: bold;
}

/* ===============================
   Hauptinhalt
================================ */
.mod_article {
  max-width: 820px;
}

h2 {
  margin-top: 0;
  color: #0b5a2a;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h3 {
  margin-top: 2rem;
  color: #333;
}

.content-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.content-table td {
  padding: 0.6rem;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.content-table td:first-child {
  font-weight: bold;
  width: 35%;
}

a.link_extern,
.link_extern {
    /*display: inline-block;
	position: relative;*/
    padding-right: 0.1em; /* Platz für das Icon */
}

a.link_extern::after,
.link_extern::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.1em;
	margin-bottom: -0.15em;
    background: url('/files/layout/layout2026/link_ext_orange.svg') no-repeat center center;
    background-size: contain;
}

/* ANPASSUNGEN FÜR STARTSEITE */
body.startseite #main .inside {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  column-count: auto !important;
}

body.startseite .start-left {
  grid-column: 1;
  max-width: none;
  width: auto;
  float: none !important;
  clear: none !important;
}

body.startseite .start-right {
  grid-column: 2;
  max-width: none;
  width: auto;
  float: none !important;
  clear: none !important;
}

/* RAHMEN UND ÜBERSCHRIFTEN FÜR STARTSEITE */

.startseite .startelement_top {
	background: #a15f5f;
	text-align: center;
	color: #ffffff;
	font-size: 1.4rem;
	margin-bottom: 0px;
}

.startseite .startelement_mid {
	background: #f4f4f4;
	text-align: center;
	border-style: solid;
	border-color: #a15f5f;
	border-width: 0 1px 0px 1px;
	margin-top: 0px;
	margin-bottom: 0px;
}

.startseite .startelement_mid table {
	margin-bottom: 0 !important;
}

.startseite h3.startelement_mid {
	font-size: 1.1rem;
	background: #dddddd;
}

.startseite .startelement_bottom {
	background: #f4f4f4;
	border-style: solid;
	border-color: #a15f5f;
	border-width: 0 1px 1px 1px;
	margin-bottom: 20px;
	text-align: center;
	margin-top: 0px;
	padding-top: 5px;
	padding-bottom: 0px;
}

.startseite .startelement_mid a,
.startseite .startelement_bottom a {
	font-weight: bold;
}

.startseite .startelement_bottom .startelement_info {
	font-size: 0.8rem;
}

.startseite .content-table td {
	width: 50%;
}

.startseite .start-right .layout_short {
  border-bottom: 1px solid #a15f5f;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.startseite .layout_short:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.startseite .start-right .info {
  font-size: 0.7rem;
  color: #999999;
  text-align: right;
  padding-right: 10px;
  padding-top: 0px;
}

/* Überschrift der einzelnen Meldungen */
.startseite .start-right h2 {
	margin: 0px;
	font-size: 1.2rem;
}

/* Überschrift "Meldungen" */
.startseite .start-right h2.startelement_top {
	font-size: 1.4rem;
}

.startseite .start-right .ce_text p {
	margin: 0px;
	font-size: 0.9rem;
	text-align: left;
	padding-right: 10px;
	padding-left: 10px;
}

.startseite .start-right .more {
	font-size: 0.9rem;
  color: #999999;
  text-align: right;
  padding-right: 5px;
  padding-top: 0px;
}




/* HAUPTSPALTE - KALENDER */
/* HAUPTFRAME - KALENDER */
#article-9, /* Ausnahme für Anfahrt */
#article-20 { /* Ausnahme für Kalender */
  max-width: none;
  width: 100%;
}

table.calendar {
    width:100%;
    background-color:#fafafa;
}

.calendar .head {
    padding-top:.5em;
    padding-bottom:.5em;
    text-align:center;
    background:#f3f3f3;
    border-top:1px solid #dfdfdf;
    border-bottom:1px solid #dfdfdf;
}

.calendar th.previous {
    padding-left:.75em;
    text-align:left;
    border-left:1px solid #dfdfdf;
}

.calendar th.next {
    padding-right:.75em;
    text-align:right;
    border-right:1px solid #dfdfdf;
}

/* Anzeigefehler #main a */
.calendar th a {
    text-decoration:none;
    color:#333;
}

/* Anzeigefehler #main a:hover */
.calendar th a:hover {
    text-decoration:underline;
}

.calendar td {
    width:14.3%;
    height:9em;
    vertical-align:top;
    border-right:1px solid #dfdfdf;
    border-bottom:1px solid #dfdfdf;
}

.calendar .col_first {
    border-left:1px solid #dfdfdf;
}

.calendar .weekend {
    background-color:#f3f3f3;
}

.calendar .label {
    padding-top:2px;
    padding-bottom:2px;
    background-color:#3b3b3b;
    font-weight:bold;
    color:#fff;
}

.calendar .today {
    background-color:#f3f3f3;
}

.calendar .header {
    margin:1px;
    padding:1px;
    background-color:#e5e5de;
    font-size:.9em;
    text-decoration:none;
    color:#666;
}

/* Kategorie Kalender "SV Ungerhausen" */
.calendar .cal_3 {
    padding:1px;
    background-color:#b0d9ff;
	border-top:1px solid #fff;
}

/* Kategorie Kalender "Fußball 1. Herren" */
.calendar .cal_1 {
    padding:1px;
    background-color:#ffafaf;
	border-top:1px solid #fff;
}

/* Kategorie Kalender "Fußball 2. Herren" */
.calendar .cal_2 {
    padding:1px;
    background-color:#ff8080;
	border-top:1px solid #fff;
}

/* Kategorie Kalender "Tischtennis 1. Herren" */
.calendar .cal_4 {
    padding:1px;
    background-color:#bfbbbb;
	border-top:1px solid #fff;
}

/* Kategorie Kalender "Tischtennis 2. Herren" */
.calendar .cal_5 {
    padding:1px;
    background-color:#ffa300;
	border-top:1px solid #fff;
}

/* Kategorie Kalender "Tischtennis 3. Herren" */
.calendar .cal_6 {
    padding:1px;
    background-color:#ffd000;
	border-top:1px solid #fff;
}

.calendar .event a {
    font-size:11px;
    line-height:1.1em;
    text-decoration:none;
    color:#333;
}

.calendar .event a:hover {
    text-decoration:underline;
}

.calendar td:hover {
  background-color: #afd4c6;
}



/* HAUPTSPALTE - ANSPRECHPARTNER */
/* Bereichsüberschriften wie Vorstandschaft, Fußball, Gymnastik */
#main .mod_article:not(.ansprechpartner) > h1.content-headline {
  background: #c4c0c0;
  width: 50%;
  color: #fff;
  padding: 0.45rem 0.8rem;
  margin: 0rem 0 1rem 0;
  font-size: 1.5rem;
}

/* Ansprechpartner-Karte */
#main .ansprechpartner {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  grid-template-areas:
    "title title"
    "image data"
    "toplink toplink";
  gap: 0.8rem 1rem;

  max-width: none;
  margin-bottom: 1.5rem;
  padding: 0;
  border: 1px solid #a15f5f;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Funktion / Rolle */
#main .ansprechpartner h2 {
  grid-area: title;
  margin: 0;
  padding: 0.5rem 0.8rem;
  background: #a15f5f;
  color: #fff;
  font-size: 1.2rem;
}

/* Bild */
#main .ansprechpartner .content-image {
  grid-area: image;
  padding: 0.8rem 0 0.8rem 0.8rem;
}

#main .ansprechpartner figure {
  margin: 0;
}

#main .ansprechpartner img {
  display: block;
  width: 100px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
}

/* Daten-Tabelle */
#main .ansprechpartner .content-table {
  grid-area: data;
  padding: 0.8rem 0.8rem 0.8rem 0;
}

#main .ansprechpartner table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

#main .ansprechpartner td {
  padding: 0.25rem 0.4rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

#main .ansprechpartner tr:last-child td {
  border-bottom: 0;
}

#main .ansprechpartner td:first-child {
  width: 28%;
  color: #666;
  font-weight: bold;
  text-align: right;
}

#main .ansprechpartner td:last-child {
  text-align: left;
}

/* Name hervorheben */
#main .ansprechpartner tr:first-child td:last-child {
  font-weight: bold;
  font-size: 1.1rem;
  color: #222;
}

/* Nach-oben-Link */
#main .ansprechpartner .content-toplink {
  grid-area: toplink;
  padding: 0 0.8rem 0.6rem 0.8rem;
  text-align: right;
  font-size: 0.85rem;
}




/* KONTAKT */

/* KONTAKT */

#kontakt .ce_form {
  max-width: 720px;
  /*margin: 0 auto;*/
  padding: 1.5rem;
  background: #fafafa;
  border: 1px solid #a15f5f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#kontakt .ce_form form {
  max-width: none;
  margin: 0;
}

#kontakt .formbody .widget {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

#kontakt .formbody label {
  text-align: right;
  font-weight: bold;
  color: #333;
}

#kontakt .formbody input,
#kontakt .formbody select,
#kontakt .formbody textarea {
  width: 100% !important;
  padding: 0.55rem 0.65rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

#kontakt .formbody textarea {
  min-height: 180px;
  resize: vertical;
}

#kontakt .widget-textarea {
  align-items: start !important;
}

#kontakt .mandatory .mandatory {
  color: #c00;
  font-weight: bold;
}

#kontakt .widget-submit {
  display: flex !important;
  justify-content: flex-end;
}

#kontakt .widget-submit button {
  background: #a15f5f;
  color: #fff;
  border: 0;
  padding: 0.7rem 1.4rem;
  font-weight: bold;
  cursor: pointer;
}

#kontakt .widget-submit button:hover,
#kontakt .widget-submit button:focus {
  background: #874f4f;
}



/* HAUPTSPALTE - MELDUNGEN */
/* News-Element: Verfasser */
#main .mod_newsreader {
    min-height:400px;
}

/* News-Element: Verfasser */
#main .mod_newsreader .info {
    text-align:right;
    font-size:0.8rem;
    color:#808080;
}

/* News-Element: Zurück-Button */
#main .mod_eventreader .back,
#main .mod_newsreader .back {
    text-align:right;
}

/* News-Liste: Überschrift "Weitere Meldungen" */
#main .mod_newslist h1 {
    margin-top:20px;
    padding:5px;
    text-align:center;
    background-color:#a15f5f;
    font-size:1.6rem;
    font-weight:bold;
    color:#fff;
}

/* News-Liste: Listenelement */
#main .mod_newslist .layout_simple {
    margin-bottom:10px;
    margin-left:50px;
}

/* News-Liste: Listenelement */
#main .mod_newslist .layout_simple a {
    margin-left:10px;
}

/* Vor-Zurück-Leiste */
#main .mod_newslist .pagination {
    margin-top:20px;
    padding:2px;
    text-align:center;
    background-color:#a15f5f;
    font-size:1.4rem;
    color:#fff;
}

/* Vor-Zurück-Leiste: Seite 1 von x und Seitenwechsel */
#main .mod_newslist .pagination p,
#main .mod_newslist .pagination ul {
    margin:0 auto;
    padding:0;
    text-align:center;
}

/* Vor-Zurück-Leiste: Seite 1 von x */
#main .mod_newslist .pagination p {
    font-size:0.8rem;
}

/* Vor-Zurück-Leiste: Abstand und nebeneinander der Seitenlinks */
#main .mod_newslist .pagination li {
    display:inline;
    padding:2px 5px;
    font-size:1.0rem;
    list-style-type:none;
}

/* Vor-Zurück-Leiste: Seitenlinks */
#main .mod_newslist .pagination a {
    color:#fff;
}

/* Vor-Zurück-Leiste: Seitenlinks */
#main .mod_newslist .pagination .active {
    color:#c3c3c3;
}



/* HISTORIE */
#article-18 {
  max-width: none;
  width: 100%;
}

#article-18 > .content-text:first-of-type {
  background: #fafafa;
  border-left: 5px solid #a15f5f;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.element_history {
  position: relative;
  margin: 0 0 1.5rem 2rem;
  padding: 1rem 1rem 1rem 1.4rem;
  background: #fafafa;
  border: 1px solid #ddd;
  border-left: 5px solid #a15f5f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.element_history::before {
  content: "";
  position: absolute;
  left: -2.15rem;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  background: #a15f5f;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #a15f5f;
}

#article-18 {
  position: relative;
}

#article-18::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 8rem;
  bottom: 0;
  width: 2px;
  background: #d8c7c7;
}

.element_history h3 {
  margin: 0 0 0.5rem 0;
  color: #a15f5f;
  font-size: 1.15rem;
}

.element_history p {
  margin: 0;
}

.element_history figure {
  float: left;
  margin: 0.2rem 1rem 0.5rem 0;
}

.element_history img {
  display: block;
  max-width: 180px;
  height: auto;
  border: 1px solid #ddd;
  background: #fff;
  padding: 3px;
}

.element_history::after {
  content: "";
  display: block;
  clear: both;
}

/* Galerie in der Historie */
.element_history.content-gallery ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
}

.element_history.content-gallery li {
  margin: 0;
}

/* Mobile */
@media (max-width: 800px) {
  #article-18::before {
    display: none;
  }

  .element_history {
    margin-left: 0;
  }

  .element_history::before {
    display: none;
  }

  .element_history figure {
    float: none;
    margin: 0 0 0.8rem 0;
  }

  .element_history img {
    max-width: 100%;
  }
}


/* ===============================
   Footer
================================ */
#footer {
  background: #a15f5f;
  color: #fff;
}

#footer .inside {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  flex-wrap: wrap;
}

#footermenu ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#footermenu a,
#footermenu strong {
  color: #fff;
}

/* Back to top */
#backToTop {
  display: none;
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #0b5a2a;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===============================
   Hilfsklassen
================================ */
.invisible {
  position: absolute;
  left: -9999px;
}


/* ===============================
   Responsive Desktop
================================ */
@media (min-width: 801px) {
	/* Mindesthöhe */
	#container {
		min-height: calc(100vh - 223px);
	}
	
	/* Mobilen Kalender ausschalten*/
	.cal_mobile {
		display: none;
	}
}




/* ===============================
   Responsive Mobile
================================ */
@media (max-width: 800px) {
	
	/* Linke Spalte ausblenden */
#left {
  display: none;
}

/* Layout auf eine Spalte umstellen */
#container {
  grid-template-columns: 1fr;
  grid-template-areas: "main";
}

/* optional: etwas mehr Platz */
#container {
  padding: 1rem;
}




/* Startseite: alles untereinander */
  body.startseite #main .inside {
    display: block !important;
    grid-template-columns: none !important;
  }

  body.startseite .start-left,
  body.startseite .start-right {
    grid-column: auto !important;
    width: 100% !important;
    max-width: none !important;
  }


#main .mod_article:not(.ansprechpartner) > h1.content-headline {
  width: 100%;
}



 .mobilemenu.open {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: both !important;
    grid-column: 1 / -1;
  }

  .mobilemenu {
    width: 100% !important;
  }

  .mobilemenu ul,
  .mobilemenu li {
    width: 100% !important;
  }

  .mobilemenu a,
  .mobilemenu strong {
    width: 100% !important;
  }



  #header .inside {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo headline toggle";
  }

  #nav-toggle {
    display: block;
    grid-area: toggle;
    margin-left: auto;
  }

  .desktopmenu {
    display: none;
  }

  .mobilemenu.open {
    display: block;
  }
  
  .start-grid {
    display: block;
  }
  
  .bfv-popup {
    padding: 0.5rem;
  }

  .bfv-popup-box {
    width: 100%;
    max-height: 95vh;
  }
  
  
  /* KALENDER */
	/* Umschalten Desktop ↔ Mobile */
	.cal_desktop {
		display: none;
	}

	.cal_mobile {
		display: block;
	}
	
	/* Breite & Zentrierung */
	.cal_mobile table.minicalendar {
		width: 100%;
		table-layout: fixed;   /* ✅ verhindert Überlaufen */
		border-collapse: collapse;
	}

	.cal_mobile th,
	.cal_mobile td {
		text-align: center;
		padding: 6px 0;
		font-size: 0.85rem;
	}
	
	/* Header-Zeile */
	.cal_mobile .head {
		background-color: #dcf5df;
	}

	.cal_mobile .head.current {
		font-weight: bold;
	}
	
	.cal_mobile td.active a {
		display: inline-block;
		width: 100%;
		line-height: 2;
		background-color: #b0d9ff; /*#dcf5df;*/
		border-radius: 10%;
		font-weight: bold;
	}
	
	/* Ansprechpartner */
	#main .ansprechpartner {
    display: block;
  }

  #main .ansprechpartner .content-image {
    padding: 0.8rem;
    text-align: center;
  }

  #main .ansprechpartner img {
    margin: 0 auto;
  }

  #main .ansprechpartner .content-table {
    padding: 0 0.8rem 0.8rem 0.8rem;
  }

  #main .ansprechpartner td:first-child {
    width: 35%;
    text-align: left;
  }
  
  
  /* KONTAKTFORMULAR */
	@media (max-width: 800px) {
  #kontakt .ce_form {
    padding: 1rem;
  }

  #kontakt .formbody .widget {
    display: block !important;
  }

  #kontakt .formbody label {
    display: block;
    text-align: left;
    margin-bottom: 0.3rem;
  }

  #kontakt .widget-submit button {
    width: 100%;
  }
  
  
  
  /* MELDUNGEN */
	/* Einzelne Meldung */
	.mod_newslist .layout_simple {
		display: block;
		padding-left: 0px;
		padding-right: 0px;
		margin-left: 5px !important;
		margin: 0;
		border-bottom: 1px solid #cfded3;   /* ✅ Trennbalken */
		padding-bottom: 14px;
	}

	/* Datum + Uhrzeit */
	.mod_newslist .layout_simple time {
		display: block;                    /* ✅ eigene Zeile */
		font-size: 0.85rem;
		color: #666;
		margin-bottom: 4px;
	}

	/* Meldungstitel */
	.mod_newslist .layout_simple a {
		display: block;                    /* ✅ volle Breite */
		font-size: 1rem;
		font-weight: bold;
		line-height: 1.3;
		padding-left: 0;  
		margin-left: 0 !important;
		margin: 0;
	}
	/* Trennlinie nur bis zur letzten Meldung entfernen */
	.mod_newslist .layout_simple:last-child {
		border-bottom: none;
	}
}
  
}



/* BFV-POPUP */
#bfv-open {
  background: #a15f5f;
  color: #fff;
  border: 0;
  padding: .7rem 1rem;
  font-weight: bold;
  cursor: pointer;
}

#bfv-overlay {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 999999 !important;
  background: rgba(0,0,0,.75) !important;
  padding: 2rem !important;
}

#bfv-overlay.is-open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#bfv-window {
  width: min(1050px, 96vw) !important;
  height: min(850px, 92vh) !important;
  background: #fff !important;
  overflow: auto !important;
  padding: 1rem !important;
  position: relative !important;
}
