/* DÜSEN Startseite V2 / Gestaltungsrunde 2 (1.3.2)
   Wird ausschließlich auf der V2-Seitenvorlage geladen. Gutenberg-Inhalte bleiben bearbeitbar.
   Layout-Bausteine: Hero, markante Sticker, luftige Facts, Fotokacheln, Finder, Social, Becher. */

/* 1. Hero – Textblock am linken Seitenrand wie im Entwurf, nicht zentriert.
      Logo wandert in der HÖHE näher an die optische Mitte. */
.dusen-v2 .dusen-v2__hero{
  min-height:clamp(630px,84svh,810px);
  padding:clamp(115px,15vh,165px) max(32px,calc((100% - 1220px)/2)) 100px;
  justify-content:flex-start;
  align-items:center;
  text-align:left;
}
.dusen-v2 .dusen-v2__hero::after{
  background:linear-gradient(90deg,rgba(0,0,0,.83) 0%,rgba(0,0,0,.58) 44%,rgba(0,0,0,.08) 100%);
}
.dusen-v2 .dusen-v2__hero::before{
  width:min(35vw,475px);right:-9%;bottom:-28%;opacity:.52;transform:rotate(-7deg);
}
.dusen-v2 .dusen-v2__hero-content{
  width:min(630px,57%);margin:0;display:flex;flex-direction:column;
  align-items:flex-start;text-align:left;transform:translateY(16px);
}
.dusen-v2 .dusen-v2__hero-logo{
  width:clamp(285px,32vw,485px);max-width:100%;margin:0 0 12px;
  transform:translateY(10px);
}
.dusen-v2 .dusen-v2__hero-title{
  font-size:clamp(43px,4.15vw,64px);max-width:16ch;
  line-height:1;letter-spacing:-.046em;margin:0 0 16px;text-align:left;
}
.dusen-v2 .dusen-v2__hero-text{
  max-width:40ch;margin:0 0 24px;line-height:1.48;
  font-size:clamp(16px,1.12vw,19px);text-align:left;
}
.dusen-v2 .dusen-v2__hero .wp-block-buttons{justify-content:flex-start;}
/* Sticker mit einer organischen, rund ausgeformten Outline. Handgezogene Pfeile sind dekoratives SVG. */
.dusen-v2 .dusen-v2__hero-sticker{
  top:37%;bottom:auto;right:clamp(28px,7.7vw,152px);
  width:max-content;max-width:200px;padding:19px 20px 17px;
  background:var(--v2-yellow);border:3px solid #141414;
  border-radius:46% 54% 50% 51% / 58% 48% 52% 44%;
  transform:rotate(-11deg);box-shadow:none;
  color:#111;text-align:center;font-size:clamp(14px,1.55vw,21px);
  line-height:1.05;font-weight:1000;letter-spacing:-.035em;
}
.dusen-v2 .dusen-v2__hero-sticker::before,
.dusen-v2 .dusen-v2__hero-sticker::after{
  content:"";position:absolute;pointer-events:none;
  width:85px;height:78px;background-position:center;background-repeat:no-repeat;background-size:contain;
}
.dusen-v2 .dusen-v2__hero-sticker::before{
  left:-85px;bottom:-58px;background-image:url('../img/arrow-hand-left.svg');transform:rotate(-18deg);
}
.dusen-v2 .dusen-v2__hero-sticker::after{
  right:-53px;bottom:-95px;background-image:url('../img/arrow-hand-right.svg');transform:rotate(14deg);
}

/* 2. Punktraster: wenige asymmetrische, weich auslaufende Bereiche statt harter Kacheln.
      Der obere weiße Übergang ist schräg, aber ohne zackige Kanten. */
.dusen-v2 .dusen-v2__story{padding:112px var(--v2-pad) 100px;isolation:isolate;}
.dusen-v2 .dusen-v2__story::before{
  top:-47px;height:48px;left:-1%;right:-1%;z-index:2;
  clip-path:polygon(0 92%,100% 0,100% 100%,0 100%);
  background:#fff;
}
.dusen-v2 .dusen-v2__story::after{
  z-index:2;top:-45px;left:-95px;width:min(300px,27vw);height:195px;
  background:radial-gradient(circle,#161616 25%,transparent 28%) 0 0/13px 13px;
  mask-image:radial-gradient(ellipse at top left,#000 8%,transparent 68%);
  -webkit-mask-image:radial-gradient(ellipse at top left,#000 8%,transparent 68%);
  transform:rotate(13deg);opacity:.8;
}
.dusen-v2 .dusen-v2__story-photo::after{
  right:-45px;bottom:-40px;width:165px;height:135px;
  background:radial-gradient(circle,#231f20 22%,transparent 26%) 0 0/10px 10px;
  mask-image:radial-gradient(ellipse at right bottom,#000,transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse at right bottom,#000,transparent 75%);
}
.dusen-v2 .dusen-v2__story > *{position:relative;z-index:3;}
/* Desktop: Bestands-Blöcke ohne Neuanlegen in drei Spalten führen.
   Die Gutenberg-Spalten bleiben im Editor wie gewohnt bearbeitbar. */
@media(min-width:1101px){
 .dusen-v2 .dusen-v2__story{
   display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) minmax(220px,.65fr);
   align-items:center;column-gap:clamp(23px,3.15vw,52px);row-gap:0;
 }
 .dusen-v2 .dusen-v2__story-grid{display:contents;}
 .dusen-v2 .dusen-v2__story-imagecol{grid-column:1;grid-row:1;min-width:0;width:auto;flex-basis:auto;}
 .dusen-v2 .dusen-v2__story-copy{grid-column:2;grid-row:1;min-width:0;width:auto;flex-basis:auto;}
 .dusen-v2 .dusen-v2__facts{grid-column:3;grid-row:1;}
}
.dusen-v2 .dusen-v2__story-photo{transform:rotate(-4deg);box-shadow:13px 18px 0 rgba(0,0,0,.06);}
.dusen-v2 .dusen-v2__story-photo img{aspect-ratio:1.11;}
.dusen-v2 .dusen-v2__image-sticker{border-radius:3px;transform:rotate(-7deg);}
.dusen-v2 .dusen-v2__story-copy .dusen-v2__heading{font-size:clamp(34px,3.55vw,54px);}
.dusen-v2 .dusen-v2__story-copy p{line-height:1.6;font-size:clamp(14px,1.05vw,17px);}
/* Drei Fakten nicht als drei beiläufige Boxen – sondern wie im Entwurf als schmale Iconleiste. */
.dusen-v2 .dusen-v2__facts{
 display:flex;flex-direction:column;justify-content:center;align-items:stretch;
 gap:25px;margin:0;max-width:none;width:100%;
}
.dusen-v2 .dusen-v2__facts p{
 display:flex;align-items:center;gap:13px;width:100%;padding:0;
 min-height:58px;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;
 font-size:clamp(13px,1.05vw,15px);line-height:1.4;
}
.dusen-v2 .dusen-v2__fact-icon{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 48px;width:48px;height:48px;border-radius:12px;background:#fff200;
 color:#171717;font-size:27px;font-weight:900;line-height:1;
 transform:rotate(-2deg);
}
.dusen-v2 .dusen-v2__fact-label{display:block;flex:1;min-width:0;}
.dusen-v2 .dusen-v2__fact-label strong{display:block;font-weight:900;}
/* Nur für Editor ohne JS-Aufwertung: auch weiterhin lesbar. */
.editor-styles-wrapper .dusen-v2 .dusen-v2__facts{display:flex;}

/* 3. Breite, ganz einfache Foto-Türen – keine Karteneinfassungen, keine harten Dots. */
.dusen-v2 .dusen-v2__routes{background:#fff;isolation:isolate;}
.dusen-v2 .dusen-v2__routes-columns{display:flex;gap:4px;}
.dusen-v2 .dusen-v2__routes-columns > .wp-block-column{margin:0;min-width:0;}
.dusen-v2 .dusen-v2__route{min-height:500px;padding:clamp(34px,4.5vw,72px);}
.dusen-v2 .dusen-v2__route::after{
 background:linear-gradient(0deg,rgba(0,0,0,.89),rgba(0,0,0,.34) 58%,rgba(0,0,0,.04));
}
.dusen-v2 .dusen-v2__route h2{
 color:var(--v2-yellow);font-size:clamp(42px,4.5vw,67px);margin:0 0 15px;max-width:12ch;
}
.dusen-v2 .dusen-v2__route h2::first-line{color:white;}
.dusen-v2 .dusen-v2__route p{font-size:16px;line-height:1.48;max-width:31ch;margin-bottom:17px;}
.dusen-v2 .dusen-v2__routes::before{
 top:auto;bottom:-28px;left:1%;width:145px;height:92px;
 background:radial-gradient(circle,#231f20 22%,transparent 25%) 0 0/11px 11px;
 mask-image:radial-gradient(ellipse at bottom left,#000 0%,transparent 72%);
 -webkit-mask-image:radial-gradient(ellipse at bottom left,#000 0%,transparent 72%);
}
.dusen-v2 .dusen-v2__routes::after{display:none;}

/* 4. Standortfinder: echte Plugin-Elemente bleiben klickbar.
      Die lesbare Einleitung wird nur auf der Startseite per JS in die linke Spalte verschoben.
      Wird JS blockiert, bleiben Überschrift und Finder einfach untereinander. */
.dusen-v2 .dusen-v2__where{padding:88px var(--v2-pad) 95px;}
.dusen-v2 .dusen-v2__where::after{
 right:-65px;top:5px;width:230px;height:240px;
 background:radial-gradient(circle,#231f20 23%,transparent 27%) 0 0/13px 13px;
 opacity:.32;
}
.dusen-v2 .dusen-v2__finder{
 border:7px solid #fff;border-radius:22px;background:#fff;
 box-shadow:0 19px 48px rgba(0,0,0,.09);overflow:hidden;
}
body.dusen-v2-active .dusen-v2__finder #duesen-v4-wrap{height:485px;flex-direction:row-reverse;border:0;border-radius:13px;}
body.dusen-v2-active .dusen-v2__finder #duesen-map-section{
 flex:1 1 auto;min-width:0;height:485px;min-height:485px;border-radius:0 12px 12px 0;
}
body.dusen-v2-active .dusen-v2__finder #duesen-sidebar-v4{
 flex:0 0 clamp(280px,33%,370px);width:clamp(280px,33%,370px);
 max-width:42%;height:485px;max-height:none;border:0;border-right:1px solid #eee;
}
body.dusen-v2-active .dusen-v2__finder .sb-header{padding:15px 21px 13px;}
body.dusen-v2-active .dusen-v2__finder .sb-filters{padding:10px 21px;}
body.dusen-v2-active .dusen-v2__finder .dusen-v2__finder-intro{padding:20px 21px 0;}
body.dusen-v2-active .dusen-v2__finder .dusen-v2__finder-intro .dusen-v2__kicker{
 margin:0 0 9px;font-size:10px;
}
body.dusen-v2-active .dusen-v2__finder .dusen-v2__finder-intro .dusen-v2__heading{
 margin:0 0 8px;font-size:clamp(30px,2.8vw,41px);line-height:1;
}
body.dusen-v2-active .dusen-v2__finder .dusen-v2__finder-intro > p:not(.dusen-v2__kicker){
 margin:0;font-size:13px;line-height:1.5;
}
body.dusen-v2-active .dusen-v2__finder #search-v4{background:#231f20;color:#fff;border:1px solid #444;font-size:13px;}
body.dusen-v2-active .dusen-v2__finder #search-v4::placeholder{color:#d6d6d6;opacity:1;}
body.dusen-v2-active .dusen-v2__finder #duesen-list-v4{padding:12px 17px;}
body.dusen-v2-active .dusen-v2__finder .loc-card-v4{padding:10px 12px;margin-bottom:7px;}
body.dusen-v2-active .dusen-v2__finder .sb-footer{padding:9px 17px;}

/* 5. Instagram: bessere Kopflinie, größere Bildflächen und mehr Rand. */
.dusen-v2 .dusen-v2__instagram{
 display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:22px;
 padding-top:95px;padding-bottom:110px;background:#231f20;
}
.dusen-v2 .dusen-v2__instagram::before{
 top:-50px;right:-125px;width:340px;opacity:.3;
}
.dusen-v2 .dusen-v2__instagram::after{
 left:-70px;bottom:-40px;width:235px;height:230px;
 opacity:.8;
}
.dusen-v2 .dusen-v2__instagram > .dusen-v2__kicker{
 grid-column:1;grid-row:1;justify-self:start;margin:0 0 14px;
}
.dusen-v2 .dusen-v2__instagram > .dusen-v2__heading{
 grid-column:1;grid-row:2;margin:0 0 28px;font-size:clamp(38px,4.2vw,61px);
}
.dusen-v2 .dusen-v2__instagram > .dusen-v2__social-link{
 grid-column:2;grid-row:2;align-self:center;margin:0 0 28px;font-size:16px;text-align:right;
}
.dusen-v2 .dusen-v2__instagram > .dig-gallery,
.dusen-v2 .dusen-v2__instagram > .dig-fallback{
 grid-column:1/-1;grid-row:3;width:100%;margin:0 auto;
}
.dusen-v2 .dusen-v2__instagram .dig-gallery{display:grid;grid-template-columns:repeat(var(--dig-columns,5),minmax(0,1fr));gap:18px;}
.dusen-v2 .dusen-v2__instagram .dig-post{border-radius:13px;aspect-ratio:4 / 5;}
.dusen-v2 .dusen-v2__instagram .dig-fallback{max-width:var(--v2-max);color:#fff;}
.dusen-v2 .dusen-v2__instagram .dig-fallback a{color:#fff200;}

/* 6. CTA – illustrierter Becher ohne Fotokasten. Bis Bild im Gutenberg-Editor
      ersetzt wird, zeichnet das Theme beim bisherigen Foto automatisch den Becher. */
.dusen-v2 .dusen-v2__ending{padding-top:65px;padding-bottom:55px;overflow:hidden;}
.dusen-v2 .dusen-v2__ending::before{
 top:-13px;height:14px;clip-path:polygon(0 100%,0 55%,25% 74%,46% 38%,71% 59%,100% 45%,100% 100%);
}
.dusen-v2 .dusen-v2__ending::after{
 right:-65px;bottom:-105px;opacity:.52;
}
.dusen-v2 .dusen-v2__ending-columns{gap:20px;align-items:center;}
.dusen-v2 .dusen-v2__ending-visual{max-width:345px;min-width:210px;position:relative;}
.dusen-v2 .dusen-v2__ending-visual figure,
.dusen-v2 .dusen-v2__ending-visual figure img{
 border:0;box-shadow:none;transform:none;background:transparent;
}
.dusen-v2 .dusen-v2__ending-visual figure{width:100%;margin:0;}
.dusen-v2 .dusen-v2__ending-visual figure img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;}
/* Die bisherige Foto-Datei wird automatisch durch eine SVG-Illustration ersetzt.
   Sobald in Gutenberg ein anderes Bild ausgewählt wird, erscheint dieses stattdessen. */
.dusen-v2 .dusen-v2__ending-visual figure:has(img[src*="photo-cup-bar.jpg"], img[alt="Ein DÜSEN Bierbecher"]){
 min-height:300px;aspect-ratio:1.08;
 background:url('../img/duesen-becher-illustration.svg') center/contain no-repeat;
}
.dusen-v2 .dusen-v2__ending-visual figure:has(img[src*="photo-cup-bar.jpg"], img[alt="Ein DÜSEN Bierbecher"]) img{
 opacity:0;height:300px;
}
/* neue Blockvorlage verwendet die PNG-Illustration direkt */

@media(max-width:1100px){
 .dusen-v2 .dusen-v2__story-grid{display:flex;gap:30px;}
 .dusen-v2 .dusen-v2__facts{flex-direction:row;gap:15px;margin:38px auto 0;width:min(var(--v2-max),100%);}
 .dusen-v2 .dusen-v2__facts p{flex:1;gap:10px;}
 .dusen-v2 .dusen-v2__fact-icon{width:40px;height:40px;flex-basis:40px;font-size:23px;}
 .dusen-v2 .dusen-v2__hero-sticker{right:5%;top:33%;}
 .dusen-v2 .dusen-v2__instagram .dig-gallery{gap:12px;}
}
@media(max-width:900px){
 .dusen-v2 .dusen-v2__hero{min-height:690px;padding:110px 35px 85px;}
 .dusen-v2 .dusen-v2__hero-content{width:min(530px,64%);}
 .dusen-v2 .dusen-v2__hero-logo{width:min(390px,100%);}
 .dusen-v2 .dusen-v2__hero-sticker{top:38%;right:24px;font-size:13px;}
 .dusen-v2 .dusen-v2__story{padding:90px 30px;}
 .dusen-v2 .dusen-v2__story-grid{gap:26px;}
 .dusen-v2 .dusen-v2__routes .dusen-v2__route{min-height:440px;padding:35px;}
 .dusen-v2 .dusen-v2__route h2{font-size:clamp(36px,5.5vw,54px);}
 .dusen-v2 .dusen-v2__route p{font-size:14px;}
 .dusen-v2 .dusen-v2__where{padding:75px 25px;}
 body.dusen-v2-active .dusen-v2__finder #duesen-v4-wrap{height:465px;}
 body.dusen-v2-active .dusen-v2__finder #duesen-sidebar-v4{width:300px;flex-basis:300px;height:465px;max-width:47%;}
 body.dusen-v2-active .dusen-v2__finder #duesen-map-section{height:465px;min-height:465px;}
 .dusen-v2 .dusen-v2__instagram{padding:85px 26px;}
}
@media(max-width:700px){
 .dusen-v2 .dusen-v2__hero{min-height:660px;min-height:92svh;align-items:center;padding:120px 24px 125px;}
 .dusen-v2 .dusen-v2__hero::after{background:linear-gradient(0deg,rgba(0,0,0,.80),rgba(0,0,0,.40));}
 .dusen-v2 .dusen-v2__hero-content{width:100%;transform:translateY(0);}
 .dusen-v2 .dusen-v2__hero-logo{width:min(325px,78vw);margin:0 0 17px;transform:none;}
 .dusen-v2 .dusen-v2__hero-title{font-size:clamp(42px,10vw,60px);}
 .dusen-v2 .dusen-v2__hero-text{font-size:15px;max-width:30ch;}
 .dusen-v2 .dusen-v2__hero-sticker{
   right:25px;top:auto;bottom:43px;font-size:11px;padding:11px 12px;max-width:140px;
 }
 .dusen-v2 .dusen-v2__hero-sticker::before{left:-48px;bottom:-25px;width:45px;height:45px;}
 .dusen-v2 .dusen-v2__hero-sticker::after{right:-25px;bottom:-48px;width:38px;height:38px;}
 .dusen-v2 .dusen-v2__story{padding:76px 23px 79px;display:block;}
 .dusen-v2 .dusen-v2__story-grid{display:flex;flex-direction:column;gap:55px;}
 .dusen-v2 .dusen-v2__story-copy,.dusen-v2 .dusen-v2__story-imagecol{width:100%;}
 .dusen-v2 .dusen-v2__story-photo{max-width:90%;margin:0 auto;}
 .dusen-v2 .dusen-v2__facts{display:flex;flex-direction:column;gap:12px;margin-top:38px;}
 .dusen-v2 .dusen-v2__facts p{min-height:54px;flex:1;padding:0;}
 .dusen-v2 .dusen-v2__routes-columns{display:flex;flex-direction:column;gap:4px;}
 .dusen-v2 .dusen-v2__route{min-height:415px;padding:37px 28px;}
 .dusen-v2 .dusen-v2__route h2{font-size:clamp(43px,12vw,59px);}
 .dusen-v2 .dusen-v2__where{padding:65px 18px 72px;}
 body.dusen-v2-active .dusen-v2__finder #duesen-v4-wrap{height:auto;display:flex;flex-direction:column;}
 body.dusen-v2-active .dusen-v2__finder #duesen-sidebar-v4{
   order:0;width:100%;flex:0 0 auto;height:365px;max-width:100%;max-height:none;
 }
 body.dusen-v2-active .dusen-v2__finder #duesen-map-section{
   order:1;flex:0 0 330px;min-height:330px;height:330px;width:100%;border-radius:0 0 11px 11px;
 }
 body.dusen-v2-active .dusen-v2__finder .dusen-v2__finder-intro{padding:17px 16px 0;}
 body.dusen-v2-active .dusen-v2__finder .sb-header{padding:10px 16px;}
 body.dusen-v2-active .dusen-v2__finder .sb-filters{padding:8px 16px;}
 body.dusen-v2-active .dusen-v2__finder #duesen-list-v4{padding:8px 12px;}
 .dusen-v2 .dusen-v2__instagram{
   padding:80px 22px 88px;display:grid;grid-template-columns:1fr;
 }
 .dusen-v2 .dusen-v2__instagram > .dusen-v2__kicker{grid-row:1;}
 .dusen-v2 .dusen-v2__instagram > .dusen-v2__heading{grid-row:2;grid-column:1;font-size:clamp(33px,9vw,48px);margin:0 0 12px;}
 .dusen-v2 .dusen-v2__instagram > .dusen-v2__social-link{grid-row:3;grid-column:1;text-align:left;margin:0 0 25px;}
 .dusen-v2 .dusen-v2__instagram > .dig-gallery,
 .dusen-v2 .dusen-v2__instagram > .dig-fallback{grid-row:4;grid-column:1;}
 .dusen-v2 .dusen-v2__instagram .dig-gallery{grid-template-columns:1fr;gap:0;}
 .dusen-v2 .dusen-v2__instagram .dig-gallery .dig-post{aspect-ratio:1;}
 .dusen-v2 .dusen-v2__ending{padding:50px 24px 28px;}
 .dusen-v2 .dusen-v2__ending-visual{max-width:240px;align-self:center;min-width:0;}
 .dusen-v2 .dusen-v2__ending-visual figure:has(img[src*="photo-cup-bar.jpg"], img[alt="Ein DÜSEN Bierbecher"]){min-height:240px;}
 .dusen-v2 .dusen-v2__ending-visual figure:has(img[src*="photo-cup-bar.jpg"], img[alt="Ein DÜSEN Bierbecher"]) img{height:240px;}
}
@media(prefers-reduced-motion:reduce){
 .dusen-v2 .dusen-v2__hero-content{transform:none;}
}
/* Explicit Gutenberg flex defaults for consistent frontend and editor previews. */
.dusen-v2 .wp-block-buttons{display:flex;align-items:center;}
.dusen-v2 .dusen-v2__routes-columns{width:100%;margin:0;display:flex;}
.dusen-v2 .dusen-v2__routes-columns > .wp-block-column{flex:1 1 50%;}
.dusen-v2 .dusen-v2__ending-columns{display:flex;width:min(var(--v2-max),100%);}
.dusen-v2 .dusen-v2__ending-columns > .wp-block-column:first-child{flex:1 1 68%;min-width:0;}
.dusen-v2 .dusen-v2__ending-columns > .dusen-v2__ending-visual{flex:0 0 30%;}
@media(max-width:700px){
 .dusen-v2 .dusen-v2__routes-columns{flex-direction:column;}
 .dusen-v2 .dusen-v2__routes-columns > .wp-block-column{flex:1 1 auto;}
 .dusen-v2 .dusen-v2__ending-columns{flex-direction:column;}
 .dusen-v2 .dusen-v2__ending-columns > .wp-block-column:first-child,
 .dusen-v2 .dusen-v2__ending-columns > .dusen-v2__ending-visual{flex:1 1 auto;width:100%;}
}
