@charset "UTF-8";

:root {
    --htw:color-mix(in srgb,var(--mcb) 40%,transparent 100%);
    --htr:color-mix(in srgb,var(--mcs) 100%,transparent 100%);
    --htb:color-mix(in srgb,var(--tcd) 85%,transparent 15%);
}

#mainmenu { position:fixed; }

#hero {
    position:relative; width:100dvw; height:100dvh; margin:0; padding:0; overflow:hidden;
    background-color:var(--wineclor); background-size:cover; background-position:center;
}
#hero > .cover { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); max-width:none; width:max(100dvw, calc(100dvh * (16 / 9))); height:max(100dvh, calc(100dvw * (9 / 16))); }
#hero > .cover > picture,
#hero > .cover > picture > img {
    display:block; width:100%; max-width:none; height:100%; object-fit:cover;
    /* animation-duration:60s; animation-fill-mode:both; animation-iteration-count:infinite; animation-name:ken; animation-timing-function:linear; */
}

#pois { position:absolute; z-index:2; top:50%; left:50%; transform:translate(-50%,-50%); max-width:none; list-style:none; padding:0; margin:0; width:max(100dvw, calc(100dvh * (16 / 9))); height:max(100dvh, calc(100dvw * (9 / 16))); }
#pois > .poi {
    position:absolute; width:1.77em; height:1.75em; float:none;
    background-color:var(--htr); border:0.4em solid var(--htw); box-shadow:inset 0 0 0 2px var(--mcb);
    border-radius:50%; transition:transform 0.5s ease-out;
    backdrop-filter: brightness(1.1) blur(2px) contrast(1.1);
}
#pois > .poi:has(a) { background-color: var(--mch); }
#pois > .poi:is(:hover,:focus-within) { z-index:20; background-color:var(--mcb); border-color:var(--mcs); transform-origin:center; transform:scale(1.1); }
#pois > .poi:has(a):is(:hover,:focus-within) { border-color:var(--mch); }
#pois > .poi::after { content:""; position:absolute; inset:-0.4em; max-width:none; border-radius:50%; box-shadow:0 0 0 2px var(--mcs); opacity:0; pointer-events:none; }
#pois > .poi:has(a)::after { box-shadow:0 0 0 2px var(--mch); }
@media (prefers-reduced-motion:no-preference) {
    #pois > .poi:is(:hover,:focus-within)::after { animation:poi-ripple 0.7s ease-out; }
}
@keyframes poi-ripple { from { opacity:0.9; transform:scale(1); } to { opacity:0; transform:scale(2.4); } }
#pois > .poi > .entry {
    width:calc(100% + 1em); max-width:none; height:calc(100% + 1em);
    position:absolute; top:-0.5em; left:-0.5em;
}
#pois > .poi > a.entry[href^='http']:not([href*="der-weinmanager"]) u::after {
  content: " \2197"; /* Erzeugt das Symbol ↗ */
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.9em;
  text-decoration: none;
}
#pois > .poi > .entry > span { position:absolute; width:28ch; max-width:70vw; height:auto; opacity:0; pointer-events:none; user-select:none; }
#pois > .poi:is(:hover,:focus-within) > .entry > span {
    transition:opacity 0.25s ease-in-out 0.15s; /* nur beim Einblenden; Ausblenden sofort */
    opacity:1; visibility:visible; backdrop-filter:blur(6px); padding:0.5em 0.75em;
    border-radius:0.25em; background-color:var(--htb); box-shadow:0 4px 16px -4px #000000AA, inset 0 0 5em #00000077;
    text-align:left; text-shadow:none!important; color:var(--mcb); font-size:0.8em; font-family:var(--basefont); font-weight:300; hyphens:auto; line-height:120%;
}
#pois > .poi:is(:hover,:focus-within) > .entry > span > u:last-child {
    display: block;
    max-width: unset;
    margin: 0.75em 0 -0.5em -0.75em;
    padding: 0.5em 0.75em;
    font-size: 0.85em;
    line-height: 110%;
    text-decoration: none;
    /* white-space: nowrap; */
    width: auto;
    text-wrap: pretty;
    /* text-wrap: balance; */
    overflow: visible;
    /* outline: 2px solid var(--mcg); */
    border-radius: 0 1em 0 0.25em;
    background-color: var(--mch);
}
#pois > .poi > div.entry:hover { cursor:help; }
#pois > .poi.top span { top:50%; bottom:unset; }
#pois > .poi.bottom span { bottom:50%; top:unset; }
#pois > .poi.left span { left:50%; right:unset; }
#pois > .poi.right span { right:50%; left:unset; }
#pois > .poi > .entry > span > strong { display:block; font-size:125%; font-weight:bold; padding-bottom:0.25em; }

/* LINK-TOOLTIP UEBER DEM POI */
#pois > .poi.top > a.entry > span { top:0; }
#pois > .poi.bottom > a.entry > span { bottom:0; }
#pois > .poi.left > a.entry > span { left:0; }
#pois > .poi.right > a.entry > span { right:0; }
#pois > .poi:is(:hover,:focus-within) > a.entry > span { pointer-events:auto; cursor:pointer; }

/* TOUCH: ERSTER TAP = VORSCHAU (li erhaelt Fokus), TAP AUF TOOLTIP = NAVIGATION, TAP DANEBEN = SCHLIESSEN */
@media (hover:none) {
    #pois > .poi > a.entry { pointer-events:none; }
    #pois > .poi::before { content:""; position:absolute; inset:-1em; max-width:none; border-radius:50%; } /* Trefferflaeche >= 44px, zaehlt als li */
    #pois > .poi:focus { outline:none; } /* Zustand sichtbar ueber Tooltip + Scale */
}

#hero > #glCanvas {
    position:absolute; inset:0; z-index:0;
    display:block; width:100%; height:100%;
    opacity:0; transition:opacity 1s cubic-bezier(.22,1,.36,1);
}
#hero > #glCanvas.loaded { opacity:1; }

#hero > .cover { z-index:1; }
#hero > .cover > picture[hidden] { display:none; }

#hero .scrlbtn {
    position:absolute; z-index:5; bottom:4em; left:50%;
    display:inline-block; width:auto; height:auto; margin:0 auto;
    transform:translateX(-50%); cursor:pointer;
}
#hero .scrlbtn > svg { width:2.75em; height:auto; }

#intro > h1 { font-size:300%; margin-bottom:-0.25em; }
#intro > .icon::before { opacity:0.85; }
#intro > h2 {
    position:relative; z-index:1; margin-top:0.75em;
    font-family:'Laila', sans-serif; font-size:150%; font-weight:bold; line-height:135%;
    opacity:1; color:currentColor; text-shadow: var(--mcb) 4px 0px 0px, var(--mcb) 3.87565px 0.989616px 0px, var(--mcb) 3.51033px 1.9177px 0px, var(--mcb) 2.92676px 2.72656px 0px, var(--mcb) 2.16121px 3.36588px 0px, var(--mcb) 1.26129px 3.79594px 0px, var(--mcb) 0.282949px 3.98998px 0px, var(--mcb) -0.712984px 3.93594px 0px, var(--mcb) -1.66459px 3.63719px 0px, var(--mcb) -2.51269px 3.11229px 0px, var(--mcb) -3.20457px 2.39389px 0px, var(--mcb) -3.69721px 1.52664px 0px, var(--mcb) -3.95997px 0.56448px 0px, var(--mcb) -3.97652px -0.432781px 0px, var(--mcb) -3.74583px -1.40313px 0px, var(--mcb) -3.28224px -2.28625px 0px, var(--mcb) -2.61457px -3.02721px 0px, var(--mcb) -1.78435px -3.57996px 0px, var(--mcb) -0.843183px -3.91012px 0px, var(--mcb) 0.150409px -3.99717px 0px, var(--mcb) 1.13465px -3.8357px 0px, var(--mcb) 2.04834px -3.43574px 0px, var(--mcb) 2.83468px -2.82216px 0px, var(--mcb) 3.44477px -2.03312px 0px, var(--mcb) 3.84068px -1.11766px 0px, var(--mcb) 3.9978px -0.132717px 0px;;
}

hr { opacity:0.55; }

/* TEASER */
#teaser { display:flex; flex-wrap:wrap; gap:3.5em 2em; padding-top:3.5em; padding-bottom:3em; }
#teaser > article { --p:0.3333; position:relative; display:flex; flex-direction:column; width:calc(var(--p) * (100% + 2em) - 2em); text-align:center; }
#teaser > article::before { 
    content:""; max-width:unset; width:calc(100% + 4px); height:40px;
    position:absolute; top:-35px; left:-2px;
    background-color:var(--mcb); box-shadow:0 13px 15px -16px black;
}
#teaser figure { position:relative; float:none; max-width:none; margin:0 0 1.5em 0; aspect-ratio:3 / 2; border-radius:2px; background-color:transparent; }
#teaser figure > img:last-child { position:relative; z-index:-1; display:block; width:100%; height:auto; aspect-ratio:3 / 2; object-fit:cover; border-radius:inherit; }
#teaser figure > img:first-child {
    position:absolute; z-index:2; top:0; left:50%;
    width:4em; height:4em; padding:0.6em; translate:-50% -45%;
    border-radius:50%; overflow:hidden;
    filter: invert(66%) sepia(28%) saturate(557%) hue-rotate(26deg) brightness(94%) contrast(84%);
    /*filter: invert(20%) sepia(18%) saturate(6591%) hue-rotate(339deg) brightness(89%) contrast(76%);*/
}
#teaser figure::after { 
    content:""; position:absolute; z-index:1; top:0; left:50%;
    width:4em; height:4em; padding:0.5em; translate:-50% -45%;
    border-radius:50%; background-color:var(--mcb);  box-shadow: 0 6px 6px -4px #000000BB;
}
#teaser h3 { margin:0; padding:0; font-size:135%; line-height:125%; }
#teaser h3 > span { display:block; margin-bottom:0.3em; font-family:var(--basefont); font-size:1.2rem; line-height:130%; color:var(--mcs); }
#teaser h3 + small { font-size:1.2rem; }
#teaser small { display:block; margin-top:0.75em; opacity:0.75; }
#teaser p { flex:1; padding:1.5em 0; text-align:left; }
#teaser .button { align-self:center; }

/* WEIN DES MONATS */
.wdm {
    display:grid; align-items:start; padding:3em 0 0 0; gap:0.5em 2em;
    grid-template-columns:minmax(0,1fr) minmax(0,2.2fr) minmax(0,1.5fr);
    grid-template-areas: "fig head head" "fig text basket";
    grid-template-rows: auto 1fr;
}
.wdm > figure  { grid-area:fig; }
.wdm > hgroup  { grid-area:head; }
.wdm > div     { grid-area:text; padding-bottom:1em; }
.wdm > .basket { grid-area:basket; align-self:start; }
.wdm + .wdm { margin-top:3em; }
.wdm.ro { --winecolor:var(--mcs); }
.wdm.we { --winecolor:var(--mch); }
.wdm.sü { --winecolor:var(--mcw); }
.wdm.sc { --winecolor:var(--mcy); }

/* WEIN DES MONATS FLASCHE */
.wdm > figure { position:relative; float:none; max-width:none; margin:0; text-align:center; line-height:0; user-select:none; }
.wdm > figure::before { content:""; position:absolute; inset:-1.5em -1em; background:url("/assets/icons/divider_green.svg") center / contain no-repeat; opacity:0.15; pointer-events:none; }
.wdm > figure > img {
    position:relative; display:inline-block; width:auto; height:auto; max-height:19.5rem; border-radius:1em;
    filter:drop-shadow(0 3px 0px #00000033) drop-shadow(0 6px 1px #00000022) drop-shadow(0 9px 2px #00000011) drop-shadow(-16px 32px 64px color-mix(in srgb,transparent 100%, var(--winecolor) 25%)) drop-shadow(-12px 12px 12px #00000022);
}
.wdm > figure[data-stoerer]::after { left:50%; transform:translate(-115%, 0) rotate(-12deg); line-height:110%; }

/* WEIN DES MONATS KOPF: Kategorie- und Weingut-Pille (wie wine_classification), darunter h3 */
.wdm > hgroup > p {
    display:flex; flex-wrap:wrap; align-items:center; gap:0.35em 0.5em;
    max-width:none; margin:0; padding:0 0 0.6em 0;
    font-size:90%; line-height:130%; letter-spacing:0.02em;
}
.wdm > hgroup > p > * {
    display:inline-block; z-index:auto; line-height:inherit; border:0;
    padding:0.25em 0.5em; border-radius:5px; background-color:#0000000E; color:#000000AA;
}
.wdm > hgroup > p > a { transition:background-color 0.4s ease-out, color 0.3s ease-out; }
.wdm > hgroup > p > a::before { content:none; }
.wdm > hgroup > p > a:is(:hover,:focus-visible) { background-color:var(--winecolor); color:var(--mcb); text-shadow:none; }
.wdm h3 { margin:0; padding:0; font-size:150%; font-weight:normal; line-height:125%; color:var(--winecolor); text-wrap:balance; }
.wdm > div > p { padding:0 0 1em 0; }
.wdm > div > small { display:block; margin:0; opacity:0.75; }

/* WEIN DES MONATS ECKDATEN */
.wdm dl { font-size:80%; padding:0.5em 0 0 0; }
.wdm dd { padding-left:0.6em; line-height:130%; }
.wdm dd > i { font-style:normal; opacity:0.5; color:var(--winecolor); }
.wdm dt > img, .wdm dt:not(:first-child)::before {
    content:""; display:block; float:right; width:1em; height:1em; padding:2px; margin:0.1em 0 0 0.1em;
    border-radius:50%; box-shadow:0 0 1px 0.5px var(--tsb); transform:scale(1.3); pointer-events:none;
    background:var(--icon) content-box 0 0 / 100% 100% no-repeat, #fcfbf0;
}
.wdm dt:not(:first-child) { text-indent:-999em; white-space:nowrap; line-height:0; }
.wdm dt:nth-of-type(2) { --icon:url("/assets/icons/mini/sweet.svg"); }
.wdm.ro dt:nth-of-type(2) { --icon:url("/assets/icons/mini/red.svg"); }
.wdm.we dt:nth-of-type(2) { --icon:url("/assets/icons/mini/white.svg"); }
.wdm dt:nth-of-type(3) { --icon:url("/assets/icons/mini/maker.svg"); }
.wdm dt:nth-of-type(4) { --icon:url("/assets/icons/mini/grape.svg"); }

/* WEIN DES MONATS WARENKORB: eine Zeile ueber die volle Spaltenbreite, Preis links, Menge + Korb rechts */
.wdm > .basket > form { display:flex; align-items:center; gap:0 0.75em; box-sizing:border-box; width:100%; max-width:35ch; padding:0.35em 0.9em 0.35em 1em; white-space:nowrap; }
.wdm > .basket > form > b { flex:1; padding:0.25em 0.65em 0.25em 0; font-size:130%; border-right:1px solid #ccc; }
.wdm > .basket > form > b > s { display:inline; margin-right:0.35em; font-size:75%; font-weight:normal; opacity:0.6; text-decoration-color:var(--mcs); text-decoration-thickness:2px; }
.wdm > .basket > form > span { margin:0; }
.wdm > .basket > form > button { flex:none; transform:none; }
.wdm > .basket > form > button:hover { transform:scale(1.15); }

/* SCHMALE ANSICHT */
@media (max-width:64rem) {
    /* Flasche links ueber die ganze Hoehe, rechts Kopf > Text > Warenkorb */
    .wdm { grid-template-columns:minmax(0,1fr) minmax(0,3fr); grid-template-areas:"fig head" "fig text" "fig basket"; grid-template-rows:auto auto 1fr; }
}
@media (max-width:50rem) {
    #teaser > article { --p:1!important; }
    /* Flasche neben Kopf + Text, Warenkorb darunter ueber die volle Breite */
    .wdm { grid-template-columns:6em minmax(0,1fr); grid-template-areas:"fig head" "fig text" "basket basket"; grid-template-rows:auto 1fr auto; gap:1em 1.5em; padding-top:2em; }
    .wdm > figure > img { max-height:14rem; }
    .wdm h3 { font-size:130%; }
}
@media (max-width:37.5rem) {
    #pois { display:none; }
    /* Flasche nur neben dem Kopf, Text und Warenkorb volle Breite */
    .wdm { grid-template-columns:4.5em minmax(0,1fr); grid-template-areas:"fig head" "text text" "basket basket"; grid-template-rows:auto auto auto; align-items:center; }
    .wdm > figure > img { max-height:10rem; }
    .wdm > div, .wdm > .basket { align-self:start; }
}

@supports ( animation-timeline:scroll() ) {
    #hero .scrlbtn { transform:translate3D(-50%,0,0); animation: scrlbtn-fade linear both; animation-timeline: scroll(root); animation-range: 0 5%; }
    @keyframes scrlbtn-fade {
        100% { transform:translate3D(-50%,-100px,0); opacity:0; }
    }
    @media (min-width:50.0625rem) and (not ((min-aspect-ratio:3/2) and (max-height:30rem))) {
        #mainmenu {
            background-color: rgba(1,2,3,0.2);
            backdrop-filter: blur(3px);
            animation: mainmenu-bg linear both; animation-timeline: scroll(root); animation-range: 0 5%;
        }
        @keyframes mainmenu-bg {
            100% { background-color:var(--mcb); }
        }
        #mainmenu > ul > li > .baselink { border-bottom-color:transparent; }
        #mainmenu > ul > li > .baselink > span,
        #mainmenu > ul > li > .baselink:hover > span  {
            color:white;
            animation: mainmenu-color linear both; animation-timeline: scroll(root); animation-range: 0 10%;
        }
        @keyframes mainmenu-color {
            100% { color:var(--mcd); }
        }
        #mainmenu > ul > li > .baselink > img.icon,
        #logo img.bottom,
        #logo img.bg {
            opacity:0;
            transform:translate3d(0,-1em,0);
            animation: mainmenu-opacity linear both; animation-timeline: scroll(root); animation-range: 5% 10%;
        }
        @keyframes mainmenu-opacity {
            35% { opacity:1; }
            100% { opacity:1; transform:translate3d(0,0,0); }
        }
        #logo img.top {
            filter:grayscale(1) invert(1) brightness(3);
            animation: mainmenu-logo linear both; animation-timeline: scroll(root); animation-range: 0 10%;
        }
        @keyframes mainmenu-logo {
            35% { filter:grayscale(1) invert(0) brightness(2.5); }
            100% { filter:grayscale(0) invert(0) brightness(1); }
        }
        #winebasket:not(:popover-open) #wishlist { opacity:0; animation: basket linear both; animation-timeline: scroll(root); animation-range: 0 10%; }
        @keyframes basket {
            35% { opacity:0; }
            100% { opacity:1; }
        }
    }
}