/* Adventskalender – Bundesverband der Mütterzentren
   Mit CI-Farben, Hover-Glow und Bild als Hintergrund je Türchen
*/

:root {
  --bv-primary: #d12c4a;   /* warmes Rot */
  --bv-secondary: #ffcc33; /* warmes Gelb-Gold */
  --bv-dark: #413a52;      /* dunkles Violett/Grau */
  --bv-light: #ffffff;
}

/* Grundlayout mit CI-Anmutung */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fdf2f5 0, #ffffff 45%, #f5f0ff 100%);
  color: #333333;
  margin: 0;
  padding: 0;
}

h1,h2,h3,h4,h5,h6,.title,legend {font-weight: lighter;}
h1,h2,h3,h4,h5,h6,.title,legend { font-family: 'Ubuntu Condensed', 'Helvetica', arial, sans-serif; font-weight: normal !important; }

body, input, button, select, textarea { font-family: 'Ubuntu', 'Helvetica', arial, sans-serif; font-weight: normal; }

/* Header / Branding */
.bv-header {
  background: #fff;
}

.bv-header-title {
    display:block;
    text-align:center;
    margin-top:1rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bv-primary);
}

/* Wrapper & Grid */
.calendar-wrapper {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem 2rem;
}

.calendar-grid {
  margin-top: 1.5rem;
}

/* Kleines „Schneeflocken“-Detail */
.snow-row {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.7;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Hinweis- / Statusbereiche */
.calendar-loading,
.calendar-error {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.calendar-error {
  color: #b3261e;
}

/* Türchen-Kacheln – Bild als Hintergrund */
.door {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  background-color: var(--bv-dark);
  color: var(--bv-light);
  cursor: pointer;

  /* gleiche Höhe für alle Türen in jeder Zeile über Seitenverhältnis */
  aspect-ratio: 4 / 5;
  height: auto;
  width: 100%;

  display: flex;
  align-items: stretch;
  justify-content: center;

  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    outline 0.15s ease,
    outline-offset 0.15s ease;
}



/* Fallback-Hintergrund, wenn kein Bild gesetzt ist */
.door.no-image {
  background-image: radial-gradient(circle at top, rgba(255,255,255,0.55), rgba(65,58,82,0.8));
}

/* Fallback-Stern bei kein Bild */
.door.no-image::before {
  content: "★";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--bv-secondary);
  text-shadow:
    0 0 6px rgba(65,58,82,0.7),
    0 0 16px rgba(209,44,74,0.7);
}

/* sanfter Hover-Glow im BVdMZ-Farbspektrum */
.door:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(65,58,82,0.35);
  outline: 2px solid rgba(255,204,51,0.9);
  outline-offset: 2px;
}

/* Overlay-Inhalt im Türchen (nur Status-Badge) */
.door-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0.6rem 0.7rem;
  width: 100%;
  text-align: left;
  
}

/* Status-Badge unten links */
.door-status {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background-color: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--bv-secondary);
}

/* Zustände: gesperrt / geöffnet / heute */
.door.locked {
  background-color: var(--bv-dark);
  cursor: default;
  opacity: 0.9;
}

.door.locked .door-status {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background-color: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--bv-secondary);
}

.door.locked {

}

.door.unlocked {
  /* Hintergrund bleibt Bild/Standard – kein Vollflächig-Rot mehr */
}

.door.today {
  box-shadow: 0 0 0 3px rgba(255,204,51,0.9), 0 0 18px rgba(255,204,51,0.85);
}

/* Modal-Styling */
#calendarModal .modal-dialog {
  max-width: 1200px; /* sehr groß */
}

.modal-header {
  background-color: var(--bv-primary);
  color: var(--bv-light);
  border-bottom: none;
}

.modal-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.modal-body {
  background: linear-gradient(180deg, #fffaf4 0, #ffffff 40%, #f9f2ff 100%);
}

.modal-footer {
  border-top: none;
}

/* Flex-Layout für Bild + Text im Modal */
.calendar-modal-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}


.calendar-modal-image {
  flex: 0 0 35%;
  max-width: 35%;
  padding-right: 1rem;
}


.calendar-modal-image img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  display: block;
}

.calendar-modal-text {
  flex: 1 0 65%;
  max-width: 65%;
  padding-left: 1rem;
  font-size: 1.35rem;
  line-height: 1.5;
}


/* Layoutvarianten ab 576px: Bild links / rechts / oben (steuerbar über JSON) */
@media (min-width: 576px) {
    .bv-header-title {
        font-size: 2.2rem;
    }

    .calendar-modal-flex.layout-image-left {
        flex-direction: row;
    }

    .calendar-modal-flex.layout-image-right {
        flex-direction: row-reverse;
    }

    .calendar-modal-flex.layout-image-top {
        flex-direction: column;
    }

    .calendar-modal-image {
        flex: 0 0 35%;
        max-width: 35%;
        padding-right: 1rem;
    }
}
/* Weitere Anpassungen für größere Screens */
@media (min-width: 992px) {
  .calendar-modal-flex {
    flex-wrap: nowrap !important;
  }

  .door {
    height: 100%;
    min-height: 190px;
  }
}

/* Medien-Layer (Bild oder Video) im Hintergrund der Tür */

.door-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #111;
}

.door-media img,
.door-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback, wenn weder Bild noch Video vorhanden ist */
.door.no-media .door-media {
  background-image: radial-gradient(circle at top, rgba(255,255,255,0.55), rgba(65,58,82,0.8));
}

.door.no-media .door-media::before {
  content: "★";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--bv-secondary);
  text-shadow:
    0 0 6px rgba(65,58,82,0.7),
    0 0 16px rgba(209,44,74,0.7);
}

/* Inhaltsebene über dem Medien-Layer */
.door-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.6rem 0.7rem;
  width: 100%;
}


.door-status svg {
  width: 14px;
  height: 14px;
  display: block;
  /* nutzt currentColor */
}

.door-status-locked {
  color: #d0d0d0;
}

.door-status-open {
  color: var(--bv-secondary);
}

.door-status-today {
  color: var(--bv-secondary);
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}


@media (max-width: 768px) {
  .calendar-modal-image,
  .calendar-modal-text {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }
}
/* Kleines Hinweis-Modal für gesperrte Türchen */
.locked-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 2px solid var(--bv-secondary);
}

.locked-modal-text {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #333333;
}






#calendar-grid {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

#calendar-grid.loaded {
  visibility: visible;
  opacity: 1;
}


/* LAYER-FIX: door-media unter door-inner legen */
.door {
    position: relative !important;
    overflow: hidden !important;
}

.door-media {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1 !important;
}

.door-media img,
.door-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.door-inner {
    position: relative !important;
    z-index: 2 !important;
}

/* Hover-Effekte deaktivieren, solange ein Bootstrap-Modal geöffnet ist */
body.modal-open .door:hover {
  transform: none;
  box-shadow: none;
  outline: none;
  outline-offset: 0;
}
#rt-footer-surround > div {
    padding-top: 15px;
}
#rt-footer {
    color: rgb(153, 0, 0) !important;
    text-align: left;
}
body [class*="rt-grid"] {
    display: inline;
    float: left;
    position: relative;
    margin: 0;
}
.rt-grid-4 {
    width: 400px;
}

div.clear{
    background: none;
    border: 0;
    clear: both;
    display: block;
    float: none;
    font-size: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
}
#rt-copyright {
    background-color: #525050;
    color: #c3c5c7;
    text-shadow: none;
    border-radius: 0px 0px 2px 2px;
    -webkit-border-radius: 0px 0px 2px 2px;
    -moz-border-radius: 0px 0px 2px 2px;
    border-radius: 0px 0px 2px 2px;
}
.rt-container {
    width: 1200px;
    margin: 0 auto;
}
.rt-grid-12 {
    width: 1200px;
}
#rt-copyright .rt-block {
    padding: 5px 10px;
    margin: 5px 10px;
    position: relative;
}
.ct-align-center {
    text-align: center;
}
ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.menu li {
    font-size: 14px;
    padding: 0 0 5px 0;
    margin: 0;
    line-height: 20px;
    display:block;
    width:100%;
}
#rt-copyright a{
    color: #d7d7d7;
    text-decoration: none;
}
ul.menu li a, ul.menu li .item, ul.menu li .separator {
    display:block;
    width:100%;
    padding-bottom: 3px;
    margin-bottom: 3px;
}
.bouncer {
    -ms-transition: all .4s cubic-bezier(0,1.8,1,1.8);
    -moz-transition: all .4s cubic-bezier(0,1.8,1,1.8);
    -webkit-transition: all .4s cubic-bezier(0,1.8,1,1.8);
    transition: all .4s cubic-bezier(0,1.8,1,1.8);
}
.pic {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background-color: #b70024;
    border-radius: 100%;
}
.pic a {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    overflow: hidden;
}

.bouncer img {
    width: 38px;
    padding: 12.5px 0px 0px 12.5px;
    max-width: 100%;
    width: auto \9;
    height: auto;
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}
.bouncer:hover {
    -ms-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

#rt-footer {
    background-color: #dae7f8;
    color: rgb(153, 0, 0) !important;
    text-align: left;
}

.rt-block {
    padding: 15px;
    margin: 10px;
    margin-left: 0px;
    margin-right: 0;
    position: relative;
}

#rt-header {
    z-index: 1000;
    border-top: none;
    top: 0;
    left: 0;
    background-color: #ffffff;
    background: rgba(255,255,255,0.7);
    width: 100%;
    height: 100%;
    position: relative;
}
#rt-header .logo-block, #rt-top .logo-block {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
}
.logo-block {
    text-align: left;
}
.logo-block {
    padding: 0 15px;
    margin: 7px 10px;
    margin-right: 10px;
    margin-left: 10px;
}
#rt-logo {
    display: block;
}
#rt-header .logo-block #rt-logo-img{
    max-height: 100px;
    width: auto;
    vertical-align: top;
}
#rt-header img{
    max-width: 100%;
    height:auto;
    border:0;
}
.rt-grid-4::before{
    display: table;
    content: "";
    clear: both;
}
.rt-grid-4::after{
    display: table;
    content: "";
    clear: both;
}
.menu-block {
    padding: 0;
    margin: 0;
    margin-right: 0px;
    margin-left: 0px;
}
.gf-menu, .gf-menu .item, .breadcrumb, [class^="icon-"] {
    font-family: 'Ubuntu', 'Helvetica', arial, sans-serif;
    font-weight: normal;
}
.gf-menu.l1 {
    margin: 0;
    margin-top:35px;
    margin-left: 0px;
    margin-left: 10px;
}
.gf-menu {
    list-style: none;
    width: auto;
    height: auto;
    max-width: 767px;
    white-space: nowrap;
    padding:0;
}
.gf-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 10px;
}
.gf-menu.l1 > li[class^="item"] {
    width: auto;
    height: auto;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    padding-right: 0px;
    padding-left: 15px;
    padding-bottom: 5px;
    margin-top: 18px;
    border-radius: 0;
    border-bottom: none;
    display: inline-block;
    float: none;
    margin: 0 -5px 0 0;
}
.gf-menu li[class^="item"] {
    position: relative;
    padding: 0;
}
.gf-menu .item {
    line-height: 21px;
    padding: 5px 10px;
    text-decoration: none;
    display: inline-block;
    outline: 0;
    cursor: pointer;
    color: #4d4946;
    text-align: left;
    width: 100%;
}
.gf-menu .dropdown{
    transition: opacity 0.2s ease-out;
    left: -999em;
    text-align: left;
    opacity: 0;
    padding: 0;
    position: absolute;
}
.dropdown{
    postion:relative;
}
.gf-menu.l1 > li[class^="item"]:hover {
    background-color: #ffffff;
    background-color: rgba(218, 218, 218, 0.05);
}
.gf-menu li.parent:hover {
    z-index: 10210;
}
.gf-menu.l1 > li[class^="item"] {
    border-radius: 0;
    width: 114px;
    height: 114px;
    margin-bottom: 5px;
    border-bottom: none;
    display: inline-block;
    float: none;
    margin: 0 -5px 0 0;
    margin-top: 0px;
}
.gf-menu.l1 > li[class^="item"] {
    width: auto;
    height: auto;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    padding-right: 0px;
    padding-left: 15px;
    padding-bottom: 5px;
    margin-top: 18px;
}
.gf-menu.l1 > li[class^="item"] > .item {
    position: relative;
    margin-top: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
    vertical-align: top;
    font-size: 18px;
    width: auto;
}
#rt-showcase {
    background-color: transparent;
    height: 10px !important;
    color: #ffffff;
}
#rt-showcase > .rt-showcase-pattern > .rt-container, #rt-showcase > .rt-showcase-pattern > .rt-container .rt-grid-12 {
    height: 10px !important;
}
#rt-showcase > .rt-showcase-pattern > .rt-container {
    text-shadow: none;
    width: 100%;
}
#rt-showcase > .rt-showcase-pattern > .rt-container .rt-grid-12 {
    width: 100%;
}
#rt-showcase > .rt-showcase-pattern > .rt-container .rt-grid-12 {
    height: 10px !important;
}
#rt-showcase .rt-block {
    z-index: 1;
}
#rt-showcase > .rt-showcase-pattern > .rt-container .rt-grid-12 .rt-block {
    margin: 0;
    padding: 0;
}
.gf-menu.l1 > li[class^="item"] > .item {
    color: #4d4946;
}
.gf-menu .dropdown .column {
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    background: rgba(255,255,255,0.9);
    border-radius: 0;
    z-index: 1;
    padding-bottom: 10px;
    padding-left: 5px;
}
.gf-menu.l1 .dropdown > .column {
    border-top: none;
}

@media only screen and (min-width: 768px) {
    .gf-menu.l1 {
        margin-top: 35px;
    }
    .gf-menu.l1 > li:hover > .item {
        text-indent: 0px;
        -webkit-transition: none;
        -moz-transition: none;
        -o-transition: none;
        transition: none;
        color: #cb253d;
    }
    .gf-menu li:hover > .dropdown, .gf-menu li.active:hover > .dropdown {
        opacity: 1;
        filter: alpha(opacity=100);
        left: 0;
        top: auto;
        visibility: visible;
        opacity: 1;
    }
    .gf-menu li:hover > .item {
        text-indent: 5px;
        -webkit-transition: text-indent .3s ease-out;
        -moz-transition: text-indent .3s ease-out;
        -o-transition: text-indent .3s ease-out;
        transition: text-indent .3s ease-out;
        text-shadow: none;
        color: #cb253d;
    }
    .gf-menu .dropdown li[class^="item"]:hover > .flyout {
        left: 100%;
        top: 0px;
    }
    .gf-menu li:hover > .dropdown, .gf-menu li.active:hover > .dropdown {
        opacity: 1;
        visibility: visible;
    }
}
.gf-menu .item.icon [class^="icon-"], .gf-menu .item.icon [class*="icon-"] {
    background-image: none !important;
    width: auto;
    margin-top: -5px;
    display: inline-block;
    font-style: normal;
}
.gf-menu .item.icon [class^="icon-"]::before, .gf-menu .item.icon [class*="icon-"]::before {
    text-indent: 0;
    margin-right: 5px;
}
[class^="icon-"]::before, [class*=" icon-"]::before {
    font-family: FontAwesome, sans-serif;
    font-weight: normal;
    font-style: normal;
    text-decoration: inherit;
    display: inline-block;
}

.icon-home::before {
    content: "\f015";
}

@font-face {
    font-family: 'FontAwesome';
    src: url('/libraries/gantry/assets/jui/fonts/fontawesome-webfont.eot?v=3.2.1');
    src: url('/libraries/gantry/assets/jui/fonts/fontawesome-webfont.eot?#iefix&v=3.2.1') format('embedded-opentype'), url('/libraries/gantry/assets/jui/fonts/fontawesome-webfont.woff?v=3.2.1') format('woff'), url('/libraries/gantry/assets/jui/fonts/fontawesome-webfont.ttf?v=3.2.1') format('truetype'), url('/libraries/gantry/assets/jui/fonts/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1') format('svg');
    font-weight: normal;
    font-style: normal;
}