/* DÜSEN // RECHTLICHES 1.3.12
 * Only styles the existing Impressum/Datenschutz Gutenberg content.
 * All legally relevant text remains untouched and editable in WordPress.
 */
body.dusen-legal-page{
  background:#f6f6f3;
}
body.dusen-legal-page main > .section.section--tight[style*="padding-top"]{
  padding-top:clamp(100px,10vw,145px) !important;
  padding-bottom:clamp(64px,8vw,110px) !important;
}
body.dusen-legal-page .wp-content{
  max-width:none;
  line-height:1.66;
}
body.dusen-legal-page .dusen-legal{
  max-width:1140px;
  margin-inline:auto;
  counter-reset:dusen-legal-section;
  color:#231f20;
  font-size:clamp(15px,1.12vw,16px);
  overflow-wrap:break-word;
}
/* Dark graphic headline replaces the plain document appearance. */
body.dusen-legal-page .dusen-legal__head{
  position:relative;
  padding:clamp(35px,5.9vw,82px) clamp(25px,5.7vw,78px);
  min-height:250px;
  margin:0 0 clamp(24px,3.4vw,44px);
  background:#231f20;
  border-radius:15px;
  color:#fff;
  overflow:hidden;
  isolation:isolate;
  box-shadow:0 19px 44px rgba(35,31,32,.14);
}
body.dusen-legal-page .dusen-legal__head::before{
  content:"DÜSEN  /  RECHTLICHES";
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:5px 10px;
  margin-bottom:16px;
  border-radius:999px;
  background:#fff200;
  color:#231f20;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.3;
}
body.dusen-legal-page .dusen-legal__head::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:min(62%,540px);
  aspect-ratio:1;
  top:-28%;right:-9%;
  background-image:radial-gradient(circle,#fff200 26%,transparent 29%);
  background-size:17px 17px;
  -webkit-mask-image:radial-gradient(ellipse at 70% 38%,#000 3%,transparent 68%);
  mask-image:radial-gradient(ellipse at 70% 38%,#000 3%,transparent 68%);
  transform:rotate(13deg);
  opacity:.75;
  pointer-events:none;
}
body.dusen-legal-page .dusen-legal__head h1,
body.dusen-legal-page .dusen-legal__head .wp-block-heading{
  max-width:90%;
  margin:0!important;
  color:#fff!important;
  font-size:clamp(49px,7vw,94px)!important;
  font-weight:900;
  letter-spacing:-.066em;
  line-height:.99;
  text-wrap:balance;
}
body.dusen-legal-page .dusen-legal__head h1::after{
  content:".";
  color:#fff200;
}
body.dusen-legal-page .dusen-legal__lead{
  max-width:65ch;
  margin:18px 0 0;
  color:#e6e2df;
  font-size:clamp(15px,1.6vw,18px);
  font-weight:500;
  line-height:1.55;
}
/* Anchor navigation stays fully functional. */
body.dusen-legal-page .dusen-legal__toc{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:27px;
}
body.dusen-legal-page .dusen-legal__toc a{
  min-height:44px;
  padding:10px 16px;
  border:1.5px solid #231f20;
  background:#fff;
  color:#231f20;
  border-radius:6px;
  text-decoration:none;
  font-size:13px;
  font-weight:850;
  letter-spacing:.01em;
  box-shadow:none;
  transition:background .16s ease,transform .16s ease,border-color .16s ease;
}
body.dusen-legal-page .dusen-legal__toc a::after{
  content:"↗";
  display:inline-block;
  margin-left:8px;
  font-size:15px;
  line-height:1;
}
body.dusen-legal-page .dusen-legal__toc a:hover,
body.dusen-legal-page .dusen-legal__toc a:focus-visible{
  background:#fff200;
  border-color:#fff200;
  color:#231f20;
  transform:translateY(-2px);
}
body.dusen-legal-page .dusen-legal__head .dusen-legal__toc a{
  background:#ffffff12;
  border-color:#ffffff9c;
  color:#fff;
}
body.dusen-legal-page .dusen-legal__head .dusen-legal__toc a:hover,
body.dusen-legal-page .dusen-legal__head .dusen-legal__toc a:focus-visible{
  background:#fff200;
  border-color:#fff200;
  color:#231f20;
}
/* Readable legal cards: no fake content, no overlaid text. */
body.dusen-legal-page .dusen-legal-card{
  position:relative;
  isolation:isolate;
  counter-increment:dusen-legal-section;
  padding:clamp(27px,4.1vw,55px) clamp(24px,4.5vw,62px);
  margin:0 0 clamp(22px,3vw,38px);
  border:1px solid #e8e5e0;
  border-left:0;
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 32px rgba(35,31,32,.055);
  overflow:hidden;
  scroll-margin-top:120px;
}
body.dusen-legal-page .dusen-legal-card::before{
  content:"";
  position:absolute;
  top:0;bottom:0;left:0;
  width:7px;
  background:#fff200;
}
body.dusen-legal-page .dusen-legal-card::after{
  content:"";
  position:absolute;
  z-index:-1;
  top:-75px;right:-50px;
  width:260px;height:210px;
  border-radius:0;
  background:radial-gradient(circle,#231f20 24%,transparent 28%) 0 0/13px 13px;
  -webkit-mask-image:radial-gradient(ellipse at 100% 0%,#000 0%,transparent 75%);
  mask-image:radial-gradient(ellipse at 100% 0%,#000 0%,transparent 75%);
  opacity:.12;
  box-shadow:none;
  pointer-events:none;
}
body.dusen-legal-page .dusen-legal-card > h2{
  margin:0 0 clamp(23px,3vw,36px)!important;
  padding:0 0 17px;
  border-bottom:1px solid #e9e7e4;
  color:#231f20;
  font-size:clamp(27px,3.3vw,44px);
  font-weight:900;
  letter-spacing:-.045em;
  line-height:1.08;
}
body.dusen-legal-page .dusen-legal-card > h2::before{
  content:"0" counter(dusen-legal-section) " / ";
  display:inline-block;
  vertical-align:middle;
  margin-right:12px;
  color:#817a77;
  font:850 12px/1.2 Helvetica,"Helvetica Neue",Arial,sans-serif;
  letter-spacing:.05em;
}
body.dusen-legal-page .dusen-legal-card h3{
  margin:28px 0 10px;
  font-size:clamp(19px,2vw,23px);
  font-weight:900;
  letter-spacing:-.025em;
  line-height:1.2;
}
body.dusen-legal-page .dusen-legal-card h4{
  font-size:16px;
  margin:18px 0 8px;
  font-weight:850;
}
body.dusen-legal-page .dusen-legal-card p,
body.dusen-legal-page .dusen-legal-card li:not(.dusen-infolist li){
  max-width:89ch;
  line-height:1.75;
}
body.dusen-legal-page .dusen-legal-card p{margin:0 0 13px;}
body.dusen-legal-page .dusen-legal-card :is(a[href^="mailto:"],a[href^="tel:"],a[href^="https:"]){
  color:#231f20;
  text-decoration-color:#eadf00;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
body.dusen-legal-page .dusen-legal-card a:focus-visible{
  outline:3px solid #d4c900;
  outline-offset:3px;
}
/* Consistent icon tiles for address, phone and email in the legal details. */
body.dusen-legal-page .dusen-infolist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
  margin:20px 0 24px;
  padding:0;
}
body.dusen-legal-page .dusen-infolist > li{
  display:grid;
  grid-template-columns:43px minmax(0,1fr);
  gap:13px;
  align-items:start;
  padding:15px;
  border:1px solid #ece9e5;
  border-radius:10px;
  background:#faf9f6;
}
body.dusen-legal-page .dusen-infolist .info-icon{
  width:43px;height:43px;
  border-radius:8px;
  background:#fff200;
}
body.dusen-legal-page .dusen-infolist .info-title{
  margin:0 0 3px;
  font-size:13px;
  font-weight:900;
}
body.dusen-legal-page .dusen-infolist .info-text{
  margin:0;
  color:#514c4b;
  font-size:14px;
  font-weight:500;
  line-height:1.52;
  overflow-wrap:anywhere;
}
/* Keep native details/summary keyboard interaction intact. */
body.dusen-legal-page .dusen-legal details{
  border:1px solid #e3e0dc;
  border-radius:9px;
  background:#f8f8f5;
}
body.dusen-legal-page .dusen-legal summary{
  padding:15px 18px;
  font-weight:850;
  cursor:pointer;
}
body.dusen-legal-page .dusen-legal details[open]{
  background:#fff;
  border-color:#d2c500;
}
body.dusen-legal-page .dusen-legal-card:target{
  outline:3px solid #d4c900;
  outline-offset:3px;
}
/* On phones the document must stay comfortable to read, not look like a flyer. */
@media (max-width:760px){
  body.dusen-legal-page main > .section.section--tight[style*="padding-top"]{
    padding-top:85px!important;
    padding-bottom:65px!important;
  }
  body.dusen-legal-page main .container{
    width:calc(100% - 28px);
  }
  body.dusen-legal-page .dusen-legal__head{
    padding:34px 24px 28px;
    min-height:0;
    border-radius:11px;
  }
  body.dusen-legal-page .dusen-legal__head h1{
    max-width:100%;
    font-size:clamp(42px,12vw,65px)!important;
  }
  body.dusen-legal-page .dusen-legal__head::after{width:300px;right:-120px;top:-25px;opacity:.40;}
  body.dusen-legal-page .dusen-legal__toc{gap:8px;}
  body.dusen-legal-page .dusen-legal__toc a{padding:8px 11px;min-height:39px;font-size:12px;}
  body.dusen-legal-page .dusen-legal-card{padding:26px 19px 30px 23px;}
  body.dusen-legal-page .dusen-legal-card > h2{font-size:clamp(25px,7.5vw,35px);}
  body.dusen-legal-page .dusen-infolist{grid-template-columns:1fr;gap:10px;}
  body.dusen-legal-page .dusen-infolist > li{padding:13px;}
  body.dusen-legal-page .dusen-legal-card p{font-size:14px;line-height:1.7;}
}
@media (prefers-reduced-motion:reduce){
  body.dusen-legal-page .dusen-legal__toc a{transition:none;}
}
