@import url("fontawesome-all.min.css");

@font-face {
    font-family: 'robotoregular';
    src: url('../webfonts/roboto-regular-webfont.woff2') format('woff2'), url('../fonts/roboto-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotobold';
    src: url('../webfonts/roboto-bold-webfont.woff2') format('woff2'), url('../fonts/roboto-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotolight';
    src: url('../webfonts/roboto-light-webfont.woff2') format('woff2'), url('../fonts/roboto-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotomedium';
    src: url('../webfonts/roboto-medium-webfont.woff2') format('woff2'), url('../fonts/roboto-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --overlay-title-size: 30px;
    --overlay-body-size: 16px;
	--overlay-subtitle-size: 24px;
	
    --tooltip-size: 18px;

    --color-text: #1f2933;
    --color-muted: #5b6573;
    --color-white: #ffffff;
    --color-dark-overlay: rgba(0, 0, 0, .68);
    --color-point: #ffffff;
    --color-point-text: #1f2933;
    --color-point-border: rgba(0, 0, 0, .2);


    --radius-overlay: 18px;
    --shadow-overlay: 0 24px 80px rgba(0, 0, 0, .32);
    --shadow-point: 0 8px 24px rgba(0, 0, 0, .22);

	--overlay-nav-button-size: 40px;
	--overlay-nav-icon-size: 16px;
	--overlay-nav-dot-size: 9px;
	--overlay-nav-gap: 10px;

	--color-overlay-nav: #9DE900;
	--color-overlay-nav-inactive: #d6d6d6;

}

/*@media (min-width: 768px) {*/
@media (orientation: landscape) {
    :root {
        --overlay-title-size: 36px;
        --overlay-body-size: 18px;
		--overlay-subtitle-size: 28px;
        --tooltip-size: 16px;
		
		  --overlay-nav-button-size: 44px;
        --overlay-nav-icon-size: 18px;
        --overlay-nav-dot-size: 10px;
        --overlay-nav-gap: 12px;
    }
}

/*@media (min-width: 1200px) {*/

@media
    (orientation: landscape) and
    (min-width: 1200px) and
    (min-height: 700px) {
		
		
    :root {
        --overlay-title-size: 44px;
        --overlay-body-size: 20px;
		--overlay-subtitle-size: 30px;
        --tooltip-size: 20px;
		
		--overlay-nav-button-size: 50px;
		--overlay-nav-icon-size: 20px;
		--overlay-nav-dot-size: 11px;
		--overlay-nav-gap: 14px;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    font-family: 'robotoregular';
    color: var(--color-text);
    background: #000000;
}


.map_items {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

#mapWoman {
    visibility: hidden;
}

#mapWoman.is-ready {
    visibility: visible;
}

.map_woman {
    position: absolute;
    z-index: 3;

    display: block;
    height: auto;

    transform: translate(-50%, -50%);

    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.map_points {
    z-index: 4;
}

.map_item {
    position: absolute;
    overflow: visible;
    transform: translate(-50%, -50%);
    filter: brightness(100%);
    transition: filter .1s ease;
    will-change: filter;
}

.map_item.is-highlighted {
 /*  filter: brightness(70%);*/
	 animation: brightnessPulse 0.5s ease-in-out infinite alternate;
}

@keyframes brightnessPulse {
    from {
        filter: brightness(100%);
    }

    to {
        filter: brightness(80%);
    }
}

.map_item_crop {
    position: absolute;
    overflow: hidden;
}

.map_item_texture {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Die Wandgrafik liegt innerhalb der Item-Ebene über allen Möbeln. */
.map_item_walls {

    z-index: 1000;
    transform: none;
    filter: none;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .map_item {
        transition: none;
    }
}

.map_item[data-item-id] {
    pointer-events: auto;
    cursor: pointer;
}

.map_item_crop,
.map_item_texture {
    pointer-events: none;
}

.map_item_walls {
    pointer-events: none;
}


#overlayTitle::after {
    content: "";
    display: block;
    width: 70%;
    height:4px;
    margin-top: 10px;
    background-color: #9DE900;
}

#overlaySubTitle{
	font-size: var(--overlay-subtitle-size);
	font-family: "robotobold";
	margin-bottom: 14px;
	color: var(--point-color);
}



.overlay_pagination {
	
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    /*justify-content: space-between;
	gap: var(--overlay-nav-gap);
	*/
	justify-content: center;
	gap:24px;
    
    margin-top: 0;
    padding-top: 0;
	
}

#overlayPrev{margin-right:60px}
#overlayNext{margin-left:60px}



 
.overlay_pagination.is-hidden {
    display: none;
}

.overlay_page_arrow {
    width: var(--overlay-nav-button-size);
    height: var(--overlay-nav-button-size);
    min-width: var(--overlay-nav-button-size);
    flex: 0 0 var(--overlay-nav-button-size);

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

    padding: 0;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 50%;

    background: #ffffff;
		/*color: var(--color-overlay-nav);*/
		color: #003A4E;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);

    font-size: var(--overlay-nav-icon-size);
    line-height: 1;

    cursor: pointer;

    transition:
        opacity .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.overlay_page_arrow:hover:not(:disabled),
.overlay_page_arrow:focus-visible:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .24);
}

.overlay_page_arrow:focus-visible {
    outline: 2px solid var(--color-overlay-nav);
    outline-offset: 3px;
}

.overlay_page_arrow:disabled {
    opacity: .3;
    cursor: default;
}

.overlay_page_dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--overlay-nav-gap);
}

.overlay_page_dot {
    width: var(--overlay-nav-dot-size);
    height: var(--overlay-nav-dot-size);
    min-width: var(--overlay-nav-dot-size);

    display: block;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: var(--color-overlay-nav-inactive);

    cursor: pointer;

    transition:
        background-color .2s ease,
        transform .2s ease;
}

.overlay_page_dot.is-active {
    background: var(--color-overlay-nav);
    transform: scale(1.08);
}

.overlay_page_dot:hover {
    transform: scale(1.18);
}

.overlay_page_dot:focus-visible {
    outline: 2px solid var(--color-overlay-nav);
    outline-offset: 3px;
}

button {
    font: inherit;
}

.supermarket_page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.supermarket_stage {
       width: min(
        100%,
        calc(100dvh * 16 / 9),
        1920px
    );
	min-width: 1000px;
}

.map_canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0px;
    background-image: url("../img/supermarket_landscape.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.map_canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.map_points {
    position: absolute;
    inset: 0;
}


.map_points {
    z-index: 3;
    pointer-events: none;
}


.map_point {
    position: absolute;
    display: inline-flex;
    align-items: center;
	flex-direction: column;
    gap: 10px;
	
    padding: 0;
    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--color-point-text);
    box-shadow: none;

    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;

    transition: transform .1s ease;
}

.map_point:hover,
.map_point:focus,
.map_point.is-item-hovered {
    transform: translate(-50%, -50%) scale(1.1);
    outline: none;
	z-index:1;
}

.point_number {
    --point-color: #0A5C9D;
    --icon-offset-landscape: 0px;
    --icon-offset-portrait: 0px;

    position: relative;
    z-index: 2;

    width: 60px;
    height: 60px;
    min-width: 60px;
    flex: 0 0 60px;

    display: block;

    border-radius: 50%;
    outline: 2px solid #ffffff;

    background-color: var(--point-color);
    background-image: url("../img/icons.png");
    background-repeat: no-repeat;
    background-size: auto 60px;
    background-position: var(--icon-offset-landscape) 0;

    /*box-shadow: var(--shadow-point);*/
	box-shadow: 0 2px 10px rgba(0, 0, 0, .8);
	
}

.point_label {
    position: relative;
    z-index: 1;
    display: block;
    padding: 10px 18px 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-point);
	

    font-family: 'robotomedium';
    font-size: var(--tooltip-size);
    line-height: 1.2;
    white-space: nowrap;
}

.overlay_wrapper {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    padding: 32px;
    background-color: rgba(0, 0, 0, 0);

    visibility: hidden;
    pointer-events: none;

    transition:
        background-color 500ms ease,
        visibility 0s linear 500ms;
}

.overlay_wrapper.is-open {
    background-color: rgba(0, 0, 0, 0.5);

    visibility: visible;
    pointer-events: auto;

    transition:
        background-color 500ms ease,
        visibility 0s linear 0s;
}

.overlay_window {
    position: relative;
    width: min(1120px, 92dvw);
    max-height: calc(100dvh - 64px);
	 height: 80dvh;
      overflow: hidden;
    border-radius: var(--radius-overlay);
    background: var(--color-white);
    box-shadow: var(--shadow-overlay);

    opacity: 0;
    transform: scale(0.95);

    transition:
        opacity 500ms ease,
        transform 500ms ease;
}

.overlay_wrapper.is-open .overlay_window {
    opacity: 1;
    transform: scale(1);
}

.overlay_content {
	
	height: 100%;
	display: grid;
	grid-template-columns:
	minmax(280px, .8fr)
	minmax(320px, 1.2fr);
	grid-template-rows: minmax(0, 1fr) auto;
	column-gap: 34px;
	row-gap: 18px;
	padding: 40px;
}

.overlay_media {
	
	min-height: 0;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: #f3f5f7;
	overflow: hidden;
}

.overlay_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay_image.is-hidden,
.overlay_image_fallback.is-hidden {
    display: none;
}

.overlay_image_fallback {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--color-muted);
    font-size: var(--overlay-body-size);
    text-align: center;
}

.overlay_text {
	min-width: 0;
	min-height: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding-right: 0px;
}

.overlay_heading {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.overlay_icon {
    --point-color: #0A5C9D;
    --icon-offset-landscape: 0px;
    --icon-offset-portrait: 0px;

    width: 70px;
    height: 70px;
    min-width: 70px;
    flex: 0 0 70px;

    display: block;
    border-radius: 50%;

    background-color: var(--point-color);
    background-image: url("../img/icons.png");
    background-repeat: no-repeat;
    background-size: auto 70px;
    background-position: var(--icon-offset-landscape) 0;
}

.overlay_text h2 {
    margin: 0;
    font-size: var(--overlay-title-size);
    font-family: 'robotobold';
    line-height: 1.08;
    letter-spacing: -.02em;
	color:#003A4E;
}

.overlay_body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;

    margin: 0;
    padding-right: 0px;

    color: var(--color-muted);
    font-size: var(--overlay-body-size);
    line-height: 1.3;
}

.overlay_body p {
    margin: 0 0 1em;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.overlay_body p:last-child {
    margin-bottom: 0;
}

.overlay_close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: var(--overlay-nav-button-size);
    height: var(--overlay-nav-button-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 60px;
    background: #ffffff;
    color: #003A4E;
    cursor: pointer;
    transition: background .2s ease;
	font-size: 22px;
	border: 1px solid rgba(0, 0, 0, .12);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.overlay_close:hover,
.overlay_close:focus {
    outline: none;
}


.overlay_body p.icon1,
.overlay_body p.icon2,
.overlay_body p.icon3,
.overlay_body p.icon4,
.overlay_body p.icon5 {
	min-height:100px;
	margin: 0px 0 20px;
	padding: 12px 30px 12px 110px;
	border-radius: 24px;
	background-color: var(--point-color, #058A60);
	background-repeat: no-repeat;
	background-position: 20px center;
	background-size: 70px 70px;
	color: #ffffff;
}

.overlay_body p.icon1 {
    background-image: url("../img/icon1.png");
}

.overlay_body p.icon2 {
    background-image: url("../img/icon2.png");
}

.overlay_body p.icon3 {
    background-image: url("../img/icon3.png");
}

.overlay_body p.icon4 {
    background-image: url("../img/icon4.png");
}
.overlay_body p.icon5 {
    background-image: url("../img/icon5.png");
}


@media (orientation: portrait), (max-width: 767px) {
 
    .overlay_body p.icon1,
    .overlay_body p.icon2,
    .overlay_body p.icon3,
	.overlay_body p.icon4,
    .overlay_body p.icon5 {
        min-height: 88px;

        margin-bottom: 14px;
        padding: 16px 18px 16px 88px;

        border-radius: 22px;

        background-position: 18px center;
        background-size: 54px 54px;
    }
	
	.overlay_icon {

    width: 60px;
    height: 60px;
    min-width: 60px;
    flex: 0 0 60px;

    background-size: auto 60px;
    background-position: var(--icon-offset-portrait) 0;
}

	
	
    .supermarket_page {
        padding: 0px;
        align-items: center;
    }

    .supermarket_stage {
         width: min(
        100%,
        calc(100dvh * 9 / 16),
        760px
    );
	min-width: 350px;
    }

    .map_canvas {
        aspect-ratio: 9 / 16;
        border-radius: 0px;
        background-image: url("../img/supermarket_portrait.png");
    }

 .map_point {
    width: auto;
    height: auto;
    justify-content: flex-start;
    padding: 0;
}


    .point_label {
        display: none;
    }

    .overlay_wrapper {
        padding: 10px;
    }

    .overlay_window {
        width: calc(100dvw - 20px);
        height: calc(100dvh - 20px);
        max-height: none;
        border-radius: 14px;
		overflow: hidden;
    }

    .overlay_content {
		
		height: 100%;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows:
		20%
		minmax(0, 1fr)
		auto;
		gap: 18px;
		padding:20px;
		
    }

    .overlay_media {
        min-height: 0;
        height: 100%;
    }

    .overlay_image {
        max-height: 100%;
    }

    .overlay_image_fallback {
        min-height: 0;
        height: 100%;
    }

    .overlay_text {
     min-height: 0;
    height: 100%;
    padding-right: 0;
    }
	
	.overlay_heading {
	gap: 12px;
	margin-bottom: 12px;
	}

	.overlay_pagination {
        grid-column: 1;
        margin-top: 0;
        padding-top: 0;
}

#overlayTitle::after {
  
    height:2px;
    margin-top: 8px;

}

}

@media (prefers-reduced-motion: reduce) {
    .overlay_wrapper,
    .overlay_window,
    .map_point,
    .overlay_close,
    .overlay_page_arrow,
    .overlay_page_dot {
        transition: none;
    }

}