/* DÜSEN Startseite · Designrunde 3 (1.3.3)
 * Ergänzende, ausschließlich auf der V2-Vorlage geladene Layoutregeln.
 * Bestehende Gutenberg-Blöcke bleiben unangetastet.
 */

/* HERO / STICKER — einfacher, linksbündiger Text, skizzenhaftes Etikett */
.dusen-v2 .dusen-v2__hero-content{
  align-items:flex-start;text-align:left;width:min(580px,57%);transform:translateY(4%);
}
.dusen-v2 .dusen-v2__hero-logo{
  width:clamp(290px,33vw,500px);margin:0 0 8px;transform:none;
}
.dusen-v2 .dusen-v2__hero-title{
  font-size:clamp(40px,4.2vw,62px);line-height:.98;letter-spacing:-.046em;
  max-width:15ch;margin:0 0 16px;
}
.dusen-v2 .dusen-v2__hero-text{font-size:clamp(15px,1.22vw,18px);max-width:39ch;line-height:1.55;}
.dusen-v2 .dusen-v2__hero{padding-block:105px 115px;min-height:clamp(630px,88svh,820px);}
/* Block text itself remains editable. Hand-cut paper rectangle like the story sticker;
   light outline directly on type instead of a bulky blob. */
.dusen-v2 .dusen-v2__hero-sticker{
  right:clamp(35px,7vw,115px);top:38%;bottom:auto;
  padding:15px 18px 13px;max-width:none;
  border:2px solid #141414;border-radius:5px 9px 6px 4px;
  box-shadow:5px 5px 0 #141414;background:#fff200;
  color:#101010;-webkit-text-stroke:.4px #101010;
  font-weight:950;font-size:clamp(15px,1.55vw,21px);
  line-height:1.02;letter-spacing:-.03em;transform:rotate(-8deg);
}
.dusen-v2 .dusen-v2__hero-sticker::before{left:-82px;bottom:-58px;width:85px;height:80px;}
.dusen-v2 .dusen-v2__hero-sticker::after{right:-53px;bottom:-90px;width:83px;height:75px;}

/* BORDER DETAILS — few organic halftone areas, not a repeated hard strip */
.dusen-v2 .dusen-v2__story::before{
 top:-44px;height:46px;clip-path:polygon(0 92%,25% 74%,51% 54%,80% 21%,100% 0,100% 100%,0 100%);
}
.dusen-v2 .dusen-v2__story::after{
 top:-32px;left:-57px;width:250px;height:215px;opacity:.67;transform:rotate(9deg);
 background:radial-gradient(circle,#1c1c1c 26%,transparent 30%) 0 0/12px 12px;
 -webkit-mask-image:radial-gradient(ellipse at 10% 12%,#000 8%,transparent 70%);
 mask-image:radial-gradient(ellipse at 10% 12%,#000 8%,transparent 70%);
}
.dusen-v2 .dusen-v2__story-photo::after{
 right:-34px;bottom:-38px;width:132px;height:146px;opacity:.72;
 -webkit-mask-image:radial-gradient(ellipse at right bottom,#000 0%,transparent 72%);
 mask-image:radial-gradient(ellipse at right bottom,#000 0%,transparent 72%);
}
.dusen-v2 .dusen-v2__routes::before{
 top:auto;left:0;bottom:-20px;width:180px;height:120px;opacity:.45;
 -webkit-mask-image:radial-gradient(ellipse at left bottom,#000 0%,transparent 77%);
 mask-image:radial-gradient(ellipse at left bottom,#000 0%,transparent 77%);
}
.dusen-v2 .dusen-v2__instagram::before{opacity:.17;top:-18%;right:-10%;width:min(560px,52vw);}
.dusen-v2 .dusen-v2__instagram::after{left:-70px;bottom:-60px;width:215px;height:215px;opacity:.72;}
.dusen-v2 .dusen-v2__ending::before{top:-12px;height:14px;clip-path:polygon(0 100%,0 53%,22% 68%,48% 23%,70% 64%,100% 42%,100% 100%);}

/* STORY — four facts are illustration-like editorial items, not cards */
@media(min-width:1101px){
 .dusen-v2 .dusen-v2__story{
   grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) minmax(235px,.76fr);
   column-gap:clamp(25px,2.8vw,45px);
 }
}
.dusen-v2 .dusen-v2__facts{gap:19px;max-width:100%;}
.dusen-v2 .dusen-v2__facts p{
 display:flex;align-items:center;gap:16px;min-width:0;min-height:68px;
 padding:0;margin:0;background:transparent!important;border:0!important;
 border-radius:0!important;box-shadow:none!important;
 font-size:clamp(13px,1vw,15px);line-height:1.36;
}
.dusen-v2 .dusen-v2__fact-icon{
 position:relative;flex:0 0 54px;width:54px;height:54px;
 border-radius:13px;transform:rotate(-3deg);
 background:#fff200;color:#1b1919;display:grid;place-items:center;
}
.dusen-v2 .dusen-v2__fact-icon svg{display:block;width:30px;height:30px;stroke:currentColor;stroke-width:2.35;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.dusen-v2 .dusen-v2__fact-label strong{display:block;font-weight:900;line-height:1.26;margin-bottom:2px;}
.dusen-v2 .dusen-v2__facts p:nth-child(even) .dusen-v2__fact-icon{transform:rotate(4deg);}
.dusen-v2 .dusen-v2__image-sticker{border:2px solid #1b1b1b;box-shadow:4px 5px 0 #1b1b1b;}

/* ROUTES — simple cinematic photo panels; avoid splitting AUSSCHENKEN at any width.
   cqw scales the heading to its *actual card width*, not the viewport. */
.dusen-v2 .dusen-v2__routes{margin:0!important;padding:0!important;background:#151515;}
.dusen-v2 .dusen-v2__routes-columns{
 gap:4px!important;display:flex!important;margin:0!important;padding:0!important;width:100%;align-items:stretch;
}
.dusen-v2 .dusen-v2__routes-columns > .wp-block-column{flex:1 1 50%;min-width:0;margin:0!important;}
.dusen-v2 .dusen-v2__route{
 container-type:inline-size;min-height:clamp(475px,38vw,650px);padding:clamp(35px,5vw,78px);
 display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:0;
}
.dusen-v2 .dusen-v2__route::after{
 background:linear-gradient(to top,rgba(0,0,0,.90) 0%,rgba(0,0,0,.56) 42%,rgba(0,0,0,.12) 78%,transparent 100%);
}
.dusen-v2 .dusen-v2__route h2{
 display:block;margin:0 0 15px;max-width:none;width:max-content;max-inline-size:100%;
 font-size:clamp(29px,5.5cqw,66px);line-height:1.01;font-weight:950;letter-spacing:-.05em;
 white-space:nowrap;overflow-wrap:normal;word-break:keep-all;hyphens:none;
}
.dusen-v2 .dusen-v2__route p{
 font-size:clamp(14px,1.1vw,17px);line-height:1.48;margin:0 0 21px;
 max-width:35ch;color:#fff;
}
.dusen-v2 .dusen-v2__route .wp-block-buttons{margin:0;}
.dusen-v2 .dusen-v2__route .dusen-v2__btn .wp-block-button__link{padding:13px 19px;min-height:47px;}
.dusen-v2 .dusen-v2__route-photo img{object-position:50% 50%;}
.dusen-v2 .dusen-v2__route--beer .dusen-v2__route-photo img{object-position:43% 55%;}

/* CTA — an illustrated cup, no photo card, no background square */
.dusen-v2 .dusen-v2__ending{overflow:hidden;}
.dusen-v2 .dusen-v2__ending-visual{position:relative;flex:0 0 35%!important;max-width:390px;min-width:0;}
.dusen-v2 .dusen-v2__ending-visual figure{
 margin:0;width:100%;padding:0!important;border:0!important;
 box-shadow:none!important;transform:none!important;background:transparent;
}
.dusen-v2 .dusen-v2__ending-visual figure img{
 display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;
 background:transparent;border:0;box-shadow:none;
}
/* Compatibility for Gutenberg blocks inserted BEFORE 1.3.3.
   Replacing the image in Gutenberg removes this fallback automatically. */
.dusen-v2 .dusen-v2__ending-visual figure:has(img[src*="duesen-becher-illustration.png"],img[src*="photo-cup-bar.jpg"],img[src*="duesen-becher-illustration.svg"]){
 min-height:250px;aspect-ratio:600 / 470;
 background:url('../img/duesen-becher-illustration-v3.png') center/contain no-repeat!important;
}
.dusen-v2 .dusen-v2__ending-visual figure:has(img[src*="duesen-becher-illustration.png"],img[src*="photo-cup-bar.jpg"],img[src*="duesen-becher-illustration.svg"]) img{
 opacity:0!important;visibility:hidden;height:auto;
}

/* TABLET — two-column facts, lighter hero, generous photo tiles */
@media (min-width:701px) and (max-width:1100px){
 .dusen-v2 .dusen-v2__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 26px;}
 .dusen-v2 .dusen-v2__facts p{flex:auto;}
 .dusen-v2 .dusen-v2__story-grid{gap:clamp(25px,3vw,40px);}
 .dusen-v2 .dusen-v2__route{padding:clamp(28px,3.5vw,52px);}
 .dusen-v2 .dusen-v2__route h2{font-size:clamp(29px,5.2cqw,56px);}
 .dusen-v2 .dusen-v2__hero-sticker{right:30px;top:42%;font-size:15px;}
}

/* PHONE — real mobile sizing; no horizontal scroll and no sticker over CTAs */
@media(max-width:700px){
 .dusen-v2 .dusen-v2__hero{
   min-height:clamp(620px,92svh,830px);padding:105px 23px 140px;align-items:center;
 }
 .dusen-v2 .dusen-v2__hero-content{width:100%;max-width:520px;transform:none;}
 .dusen-v2 .dusen-v2__hero-logo{width:min(340px,84vw);margin-bottom:12px;}
 .dusen-v2 .dusen-v2__hero-title{font-size:clamp(37px,10vw,54px);line-height:1.0;}
 .dusen-v2 .dusen-v2__hero-text{max-width:34ch;font-size:15px;}
 .dusen-v2 .dusen-v2__hero-sticker{
   top:auto;right:26px;bottom:29px;padding:10px 12px;font-size:11px;
   border-width:2px;transform:rotate(-6deg);box-shadow:3px 3px 0 #141414;
 }
 .dusen-v2 .dusen-v2__hero-sticker::before{left:-38px;bottom:-22px;width:42px;height:40px;}
 .dusen-v2 .dusen-v2__hero-sticker::after{right:-24px;bottom:-40px;width:40px;height:38px;}
 .dusen-v2 .dusen-v2__story{padding-block:80px 78px;}
 .dusen-v2 .dusen-v2__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 15px;}
 .dusen-v2 .dusen-v2__facts p{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:0;}
 .dusen-v2 .dusen-v2__fact-icon{width:49px;height:49px;flex-basis:49px;}
 .dusen-v2 .dusen-v2__fact-icon svg{width:27px;height:27px;}
 .dusen-v2 .dusen-v2__routes-columns{flex-direction:column;gap:4px;}
 .dusen-v2 .dusen-v2__routes-columns > .wp-block-column{flex:1 1 auto;min-width:0;}
 .dusen-v2 .dusen-v2__route{min-height:480px;padding:34px 28px;}
 .dusen-v2 .dusen-v2__route h2{font-size:clamp(31px,8.1cqw,54px);}
 .dusen-v2 .dusen-v2__route p{font-size:15px;max-width:34ch;}
 .dusen-v2 .dusen-v2__ending-visual{width:100%;max-width:345px;flex-basis:auto!important;align-self:center;}
 .dusen-v2 .dusen-v2__ending-visual figure:has(img[src*="duesen-becher-illustration.png"],img[src*="photo-cup-bar.jpg"],img[src*="duesen-becher-illustration.svg"]){min-height:220px;}
}
@media(max-width:400px){
 .dusen-v2 .dusen-v2__facts{gap:19px 10px;}
 .dusen-v2 .dusen-v2__route{padding:32px 22px;min-height:455px;}
 .dusen-v2 .dusen-v2__route h2{font-size:clamp(29px,8cqw,48px);}
 .dusen-v2 .dusen-v2__hero-sticker{right:20px;bottom:22px;}
}
@supports not (font-size:5cqw){
 .dusen-v2 .dusen-v2__route h2{font-size:clamp(29px,3.5vw,60px);}
 @media(max-width:700px){.dusen-v2 .dusen-v2__route h2{font-size:clamp(29px,7.3vw,50px);}}
}
